]> 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.1.
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.1'
591 PACKAGE_STRING='bacula 7.4.1'
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.1 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.1:";;
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.1
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.1, 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            if test -z "${batch_insert_db_backends}"; then
24262               batch_insert_db_backends="MySQL"
24263            else
24264               batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24265            fi
24266         elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24267                -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24268            if test x$use_libtool != xno; then
24269               MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24270            else
24271               MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24272            fi
24273            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24274         fi
24275         if test "x${MYSQL_LIBS}" = x; then
24276            MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24277         fi
24278
24279
24280 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24281
24282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24283 $as_echo "yes" >&6; }
24284
24285         if test -z "${db_backends}" ; then
24286             db_backends="MySQL"
24287         else
24288             db_backends="${db_backends} MySQL"
24289         fi
24290         if test -z "${DB_BACKENDS}" ; then
24291             DB_BACKENDS="mysql"
24292         else
24293             DB_BACKENDS="${DB_BACKENDS} mysql"
24294         fi
24295
24296                                 if test "x$HAVE_LIBSR" = "xno"; then
24297           if test "x$support_batch_insert" = "xyes"; then
24298                         saved_LDFLAGS="${LDFLAGS}"
24299             LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24300             saved_LIBS="${LIBS}"
24301             LIBS="${saved_LIBS} -lz"
24302
24303             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24304 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24305 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24306   $as_echo_n "(cached) " >&6
24307 else
24308   ac_check_lib_save_LIBS=$LIBS
24309 LIBS="-lmysqlclient_r  $LIBS"
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h.  */
24312
24313 /* Override any GCC internal prototype to avoid an error.
24314    Use char because int might match the return type of a GCC
24315    builtin and then its argument prototype would still apply.  */
24316 #ifdef __cplusplus
24317 extern "C"
24318 #endif
24319 char mysql_thread_safe ();
24320 int
24321 main ()
24322 {
24323 return mysql_thread_safe ();
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 if ac_fn_c_try_link "$LINENO"; then :
24329   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24330 else
24331   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24332 fi
24333 rm -f core conftest.err conftest.$ac_objext \
24334     conftest$ac_exeext conftest.$ac_ext
24335 LIBS=$ac_check_lib_save_LIBS
24336 fi
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24338 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24339 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24340
24341 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24342
24343 fi
24344
24345             if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24346                 if test -z "${batch_insert_db_backends}"; then
24347                     batch_insert_db_backends="MySQL"
24348                 else
24349                     batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24350                 fi
24351             fi
24352
24353                         LDFLAGS="${saved_LDFLAGS}"
24354             LIBS="${saved_LIBS}"
24355           fi
24356         fi
24357      else
24358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24359 $as_echo "no" >&6; }
24360      fi
24361   fi
24362
24363 else
24364
24365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24366 $as_echo "no" >&6; }
24367
24368 fi
24369
24370
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24372 $as_echo_n "checking for MySQL embedded support... " >&6; }
24373
24374 # Check whether --with-embedded-mysql was given.
24375 if test "${with_embedded_mysql+set}" = set; then :
24376   withval=$with_embedded_mysql;
24377   if test "$withval" != "no"; then
24378         if test "$withval" = "yes"; then
24379                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24380                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24381                         if test -d /usr/local/mysql/lib64/mysql; then
24382                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24383                         else
24384                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24385                         fi
24386                         MYSQL_BINDIR=/usr/local/mysql/bin
24387                 elif test -f /usr/include/mysql/mysql.h; then
24388                         MYSQL_INCDIR=/usr/include/mysql
24389                         if test -d /usr/lib64/mysql; then
24390                                 MYSQL_LIBDIR=/usr/lib64/mysql
24391                         else
24392                                 MYSQL_LIBDIR=/usr/lib/mysql
24393                         fi
24394                         MYSQL_BINDIR=/usr/bin
24395                 elif test -f /usr/include/mysql.h; then
24396                         MYSQL_INCDIR=/usr/include
24397                         if test -d /usr/lib64; then
24398                                 MYSQL_LIBDIR=/usr/lib64
24399                         else
24400                                 MYSQL_LIBDIR=/usr/lib
24401                         fi
24402                         MYSQL_BINDIR=/usr/bin
24403                 elif test -f /usr/local/include/mysql/mysql.h; then
24404                         MYSQL_INCDIR=/usr/local/include/mysql
24405                         if test -d /usr/local/lib64/mysql; then
24406                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24407                         else
24408                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24409                         fi
24410                         MYSQL_BINDIR=/usr/local/bin
24411                 elif test -f /usr/local/include/mysql.h; then
24412                         MYSQL_INCDIR=/usr/local/include
24413                         if test -d /usr/local/lib64; then
24414                                 MYSQL_LIBDIR=/usr/local/lib64
24415                         else
24416                                 MYSQL_LIBDIR=/usr/local/lib
24417                         fi
24418                         MYSQL_BINDIR=/usr/local/bin
24419                 else
24420                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24422                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24423                 fi
24424         else
24425                 if test -f $withval/include/mysql/mysql.h; then
24426                         MYSQL_INCDIR=$withval/include/mysql
24427                         if test -d $withval/lib64/mysql; then
24428                                 MYSQL_LIBDIR=$withval/lib64/mysql
24429                         else
24430                                 MYSQL_LIBDIR=$withval/lib/mysql
24431                         fi
24432                         MYSQL_BINDIR=$withval/bin
24433                 elif test -f $withval/include/mysql.h; then
24434                         MYSQL_INCDIR=$withval/include
24435                         if test -d $withval/lib64; then
24436                                 MYSQL_LIBDIR=$withval/lib64
24437                         else
24438                                 MYSQL_LIBDIR=$withval/lib
24439                         fi
24440                         MYSQL_BINDIR=$withval/bin
24441                 else
24442                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24443 $as_echo "no" >&6; }
24444                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24445                 fi
24446         fi
24447      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24448      if test x$use_libtool != xno; then
24449         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24450      else
24451         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24452      fi
24453      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24454      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24455
24456
24457 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24458
24459
24460 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24461
24462      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24463 $as_echo "yes" >&6; }
24464
24465      if test -z "${db_backends}"; then
24466          db_backends="MySQL"
24467      else
24468          db_backends="${db_backends} MySQL"
24469      fi
24470      if test -z "${DB_BACKENDS}"; then
24471          DB_BACKENDS="mysql"
24472      else
24473          DB_BACKENDS="${DB_BACKENDS} mysql"
24474      fi
24475
24476                     if test "x$support_batch_insert" = "xyes"; then
24477                   saved_LDFLAGS="${LDFLAGS}"
24478          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24479          saved_LIBS="${LIBS}"
24480          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24481
24482          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24483 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24484 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24485   $as_echo_n "(cached) " >&6
24486 else
24487   ac_check_lib_save_LIBS=$LIBS
24488 LIBS="-lmysqlclient_r  $LIBS"
24489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24490 /* end confdefs.h.  */
24491
24492 /* Override any GCC internal prototype to avoid an error.
24493    Use char because int might match the return type of a GCC
24494    builtin and then its argument prototype would still apply.  */
24495 #ifdef __cplusplus
24496 extern "C"
24497 #endif
24498 char mysql_thread_safe ();
24499 int
24500 main ()
24501 {
24502 return mysql_thread_safe ();
24503   ;
24504   return 0;
24505 }
24506 _ACEOF
24507 if ac_fn_c_try_link "$LINENO"; then :
24508   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24509 else
24510   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24511 fi
24512 rm -f core conftest.err conftest.$ac_objext \
24513     conftest$ac_exeext conftest.$ac_ext
24514 LIBS=$ac_check_lib_save_LIBS
24515 fi
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24517 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24518 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24519
24520 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24521
24522 fi
24523
24524          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24525              if test -z "${batch_insert_db_backends}"; then
24526                  batch_insert_db_backends="MySQL"
24527              else
24528                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24529              fi
24530          fi
24531
24532                   LDFLAGS="${saved_LDFLAGS}"
24533          LIBS="${saved_LIBS}"
24534      fi
24535   else
24536      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24537 $as_echo "no" >&6; }
24538   fi
24539
24540 else
24541
24542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24543 $as_echo "no" >&6; }
24544
24545 fi
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24556 $as_echo_n "checking for SQLite3 support... " >&6; }
24557
24558 # Check whether --with-sqlite3 was given.
24559 if test "${with_sqlite3+set}" = set; then :
24560   withval=$with_sqlite3;
24561   if test "$withval" != "no"; then
24562      if test "$withval" = "yes"; then
24563         if test -f /usr/local/include/sqlite3.h; then
24564            SQLITE_INCDIR=/usr/local/include
24565            if test -d /usr/local/lib64; then
24566               SQLITE_LIBDIR=/usr/local/lib64
24567            else
24568               SQLITE_LIBDIR=/usr/local/lib
24569            fi
24570            SQLITE_BINDIR=/usr/local/bin
24571         elif test -f /usr/include/sqlite3.h; then
24572            SQLITE_INCDIR=/usr/include
24573            if test -d /usr/lib64; then
24574               SQLITE_LIBDIR=/usr/lib64
24575            else
24576               SQLITE_LIBDIR=/usr/lib
24577            fi
24578            SQLITE_BINDIR=/usr/bin
24579         elif test -f $prefix/include/sqlite3.h; then
24580            SQLITE_INCDIR=$prefix/include
24581            if test -d $prefix/lib64; then
24582               SQLITE_LIBDIR=$prefix/lib64
24583            else
24584               SQLITE_LIBDIR=$prefix/lib
24585            fi
24586            SQLITE_BINDIR=$prefix/bin
24587         else
24588            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24589 $as_echo "no" >&6; }
24590            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24591         fi
24592      else
24593         if test -f $withval/sqlite3.h; then
24594            SQLITE_INCDIR=$withval
24595            SQLITE_LIBDIR=$withval
24596            SQLITE_BINDIR=$withval
24597         elif test -f $withval/include/sqlite3.h; then
24598            SQLITE_INCDIR=$withval/include
24599            if test -d $withval/lib64; then
24600               SQLITE_LIBDIR=$withval/lib64
24601            else
24602               SQLITE_LIBDIR=$withval/lib
24603            fi
24604            SQLITE_BINDIR=$withval/bin
24605         else
24606            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24607 $as_echo "no" >&6; }
24608            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24609         fi
24610      fi
24611      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24612      if test x$use_libtool != xno; then
24613         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24614      else
24615         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24616      fi
24617      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24618      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24619
24620
24621 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24622
24623      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24624 $as_echo "yes" >&6; }
24625
24626      if test -z "${db_backends}"; then
24627          db_backends="SQLite3"
24628      else
24629          db_backends="${db_backends} SQLite3"
24630      fi
24631      if test -z "${DB_BACKENDS}"; then
24632          DB_BACKENDS="sqlite3"
24633      else
24634          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24635      fi
24636
24637                     if test "x$support_batch_insert" = "xyes"; then
24638                   saved_LDFLAGS="${LDFLAGS}"
24639          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24640
24641          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24642 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24643 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24644   $as_echo_n "(cached) " >&6
24645 else
24646   ac_check_lib_save_LIBS=$LIBS
24647 LIBS="-lsqlite3  $LIBS"
24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h.  */
24650
24651 /* Override any GCC internal prototype to avoid an error.
24652    Use char because int might match the return type of a GCC
24653    builtin and then its argument prototype would still apply.  */
24654 #ifdef __cplusplus
24655 extern "C"
24656 #endif
24657 char sqlite3_threadsafe ();
24658 int
24659 main ()
24660 {
24661 return sqlite3_threadsafe ();
24662   ;
24663   return 0;
24664 }
24665 _ACEOF
24666 if ac_fn_c_try_link "$LINENO"; then :
24667   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24668 else
24669   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24670 fi
24671 rm -f core conftest.err conftest.$ac_objext \
24672     conftest$ac_exeext conftest.$ac_ext
24673 LIBS=$ac_check_lib_save_LIBS
24674 fi
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24676 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24677 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24678
24679 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24680
24681 fi
24682
24683          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24684              if test -z "${batch_insert_db_backends}"; then
24685                  batch_insert_db_backends="SQLite3"
24686              else
24687                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24688              fi
24689          fi
24690
24691                   LDFLAGS="${saved_LDFLAGS}"
24692      fi
24693   else
24694      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24695 $as_echo "no" >&6; }
24696   fi
24697
24698 else
24699
24700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24701 $as_echo "no" >&6; }
24702
24703 fi
24704
24705
24706
24707
24708
24709
24710
24711 if test -z "${batch_insert_db_backends}"; then
24712    batch_insert_db_backends="None"
24713 fi
24714
24715 if test "x${db_backends}" = "x" ; then
24716    echo " "
24717    echo " "
24718    echo "You have not specified either --enable-client-only or one of the"
24719    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24720    echo "This is not permitted. Please reconfigure."
24721    echo " "
24722    echo "Aborting the configuration ..."
24723    echo " "
24724    echo " "
24725    exit 1
24726 fi
24727
24728 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24729    1)
24730       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24731       if test x$use_libtool = xno; then
24732          SHARED_CATALOG_TARGETS=""
24733       else
24734          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24735       fi
24736       ;;
24737    *)
24738                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24739
24740                         if test x$use_libtool = xno; then
24741          echo " "
24742          echo " "
24743          echo "You have specified two or more of the"
24744          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24745          echo "This is not permitted when not using libtool Please reconfigure."
24746          echo " "
24747          echo "Aborting the configuration ..."
24748          echo " "
24749          echo " "
24750          exit 1
24751       fi
24752
24753       SHARED_CATALOG_TARGETS=""
24754       for db_type in ${DB_BACKENDS}
24755       do
24756          if test -z "${SHARED_CATALOG_TARGETS}"; then
24757             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24758          else
24759             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24760          fi
24761       done
24762       ;;
24763 esac
24764
24765 if test x$use_libtool = xyes; then
24766    DB_LIBS=""
24767 fi
24768
24769
24770
24771
24772
24773
24774
24775 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24776
24777
24778 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24779    if test -z "$CCOPTS"; then
24780       CCOPTS='-g -O2 -Wall'
24781    fi
24782    CFLAGS="$CCOPTS"
24783 fi
24784
24785
24786
24787 largefile_support="no"
24788
24789    # Check whether --enable-largefile was given.
24790 if test "${enable_largefile+set}" = set; then :
24791   enableval=$enable_largefile;
24792 fi
24793
24794    if test "$enable_largefile" != no; then
24795      if test -n "$ac_tool_prefix"; then
24796   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24797 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24799 $as_echo_n "checking for $ac_word... " >&6; }
24800 if ${ac_cv_prog_GETCONF+:} false; then :
24801   $as_echo_n "(cached) " >&6
24802 else
24803   if test -n "$GETCONF"; then
24804   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24805 else
24806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24807 for as_dir in $PATH
24808 do
24809   IFS=$as_save_IFS
24810   test -z "$as_dir" && as_dir=.
24811     for ac_exec_ext in '' $ac_executable_extensions; do
24812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24813     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24815     break 2
24816   fi
24817 done
24818   done
24819 IFS=$as_save_IFS
24820
24821 fi
24822 fi
24823 GETCONF=$ac_cv_prog_GETCONF
24824 if test -n "$GETCONF"; then
24825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24826 $as_echo "$GETCONF" >&6; }
24827 else
24828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24829 $as_echo "no" >&6; }
24830 fi
24831
24832
24833 fi
24834 if test -z "$ac_cv_prog_GETCONF"; then
24835   ac_ct_GETCONF=$GETCONF
24836   # Extract the first word of "getconf", so it can be a program name with args.
24837 set dummy getconf; ac_word=$2
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24839 $as_echo_n "checking for $ac_word... " >&6; }
24840 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24841   $as_echo_n "(cached) " >&6
24842 else
24843   if test -n "$ac_ct_GETCONF"; then
24844   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24845 else
24846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24847 for as_dir in $PATH
24848 do
24849   IFS=$as_save_IFS
24850   test -z "$as_dir" && as_dir=.
24851     for ac_exec_ext in '' $ac_executable_extensions; do
24852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24853     ac_cv_prog_ac_ct_GETCONF="getconf"
24854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24855     break 2
24856   fi
24857 done
24858   done
24859 IFS=$as_save_IFS
24860
24861 fi
24862 fi
24863 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24864 if test -n "$ac_ct_GETCONF"; then
24865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24866 $as_echo "$ac_ct_GETCONF" >&6; }
24867 else
24868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24869 $as_echo "no" >&6; }
24870 fi
24871
24872   if test "x$ac_ct_GETCONF" = x; then
24873     GETCONF=""
24874   else
24875     case $cross_compiling:$ac_tool_warned in
24876 yes:)
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24879 ac_tool_warned=yes ;;
24880 esac
24881     GETCONF=$ac_ct_GETCONF
24882   fi
24883 else
24884   GETCONF="$ac_cv_prog_GETCONF"
24885 fi
24886
24887      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24888 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24889 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24890   $as_echo_n "(cached) " >&6
24891 else
24892   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24893         ac_cv_sys_largefile_CFLAGS=no
24894         case "$host_os" in
24895            # IRIX 6.2 and later require cc -n32.
24896            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24897              if test "$GCC" != yes; then
24898                ac_cv_sys_largefile_CFLAGS=-n32
24899              fi
24900              ac_save_CC="$CC"
24901              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24902              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24903 /* end confdefs.h.  */
24904
24905 int
24906 main ()
24907 {
24908
24909   ;
24910   return 0;
24911 }
24912 _ACEOF
24913 if ac_fn_c_try_link "$LINENO"; then :
24914
24915 else
24916   ac_cv_sys_largefile_CFLAGS=no
24917 fi
24918 rm -f core conftest.err conftest.$ac_objext \
24919     conftest$ac_exeext conftest.$ac_ext
24920              CC="$ac_save_CC"
24921            esac
24922       }
24923 fi
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24925 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24926      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24927 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24928 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24929   $as_echo_n "(cached) " >&6
24930 else
24931   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24932         ac_cv_sys_largefile_LDFLAGS=no
24933
24934       }
24935 fi
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24937 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24938      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24939 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24940 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24941   $as_echo_n "(cached) " >&6
24942 else
24943   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24944         ac_cv_sys_largefile_LIBS=no
24945
24946       }
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24949 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24950
24951      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24952        case "$ac_flag" in
24953        no) ;;
24954        -D_FILE_OFFSET_BITS=*) ;;
24955        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24956        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24957        -D?* | -I?*)
24958          case "$ac_flag" in
24959    no) ;;
24960    ?*)
24961      case "$CPPFLAGS" in
24962      '') CPPFLAGS="$ac_flag" ;;
24963      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24964      esac ;;
24965    esac ;;
24966        *)
24967          case "$ac_flag" in
24968    no) ;;
24969    ?*)
24970      case "$CFLAGS" in
24971      '') CFLAGS="$ac_flag" ;;
24972      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24973      esac ;;
24974    esac ;;
24975        esac
24976      done
24977      case "$ac_cv_sys_largefile_LDFLAGS" in
24978    no) ;;
24979    ?*)
24980      case "$LDFLAGS" in
24981      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24982      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24983      esac ;;
24984    esac
24985      case "$ac_cv_sys_largefile_LIBS" in
24986    no) ;;
24987    ?*)
24988      case "$LIBS" in
24989      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24990      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24991      esac ;;
24992    esac
24993      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24994 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24995 if ${ac_cv_sys_file_offset_bits+:} false; then :
24996   $as_echo_n "(cached) " >&6
24997 else
24998   ac_cv_sys_file_offset_bits=no
24999       ac_cv_sys_file_offset_bits=64
25000       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25001         case "$ac_flag" in
25002         -D_FILE_OFFSET_BITS)
25003           ac_cv_sys_file_offset_bits=1 ;;
25004         -D_FILE_OFFSET_BITS=*)
25005           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25006         esac
25007       done
25008
25009 fi
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25011 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25012    if test "$ac_cv_sys_file_offset_bits" != no; then
25013
25014 cat >>confdefs.h <<_ACEOF
25015 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25016 _ACEOF
25017
25018    fi
25019      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25020 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25021 if ${ac_cv_sys_largefile_source+:} false; then :
25022   $as_echo_n "(cached) " >&6
25023 else
25024   ac_cv_sys_largefile_source=no
25025       ac_cv_sys_largefile_source=1
25026       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25027         case "$ac_flag" in
25028         -D_LARGEFILE_SOURCE)
25029           ac_cv_sys_largefile_source=1 ;;
25030         -D_LARGEFILE_SOURCE=*)
25031           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25032         esac
25033       done
25034
25035 fi
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25037 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25038    if test "$ac_cv_sys_largefile_source" != no; then
25039
25040 cat >>confdefs.h <<_ACEOF
25041 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25042 _ACEOF
25043
25044    fi
25045      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25046 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25047 if ${ac_cv_sys_large_files+:} false; then :
25048   $as_echo_n "(cached) " >&6
25049 else
25050   ac_cv_sys_large_files=no
25051       ac_cv_sys_large_files=1
25052       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25053         case "$ac_flag" in
25054         -D_LARGE_FILES)
25055           ac_cv_sys_large_files=1 ;;
25056         -D_LARGE_FILES=*)
25057           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25058         esac
25059       done
25060
25061 fi
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25063 $as_echo "$ac_cv_sys_large_files" >&6; }
25064    if test "$ac_cv_sys_large_files" != no; then
25065
25066 cat >>confdefs.h <<_ACEOF
25067 #define _LARGE_FILES $ac_cv_sys_large_files
25068 _ACEOF
25069
25070    fi
25071    fi
25072
25073
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25075 $as_echo_n "checking for X... " >&6; }
25076
25077
25078 # Check whether --with-x was given.
25079 if test "${with_x+set}" = set; then :
25080   withval=$with_x;
25081 fi
25082
25083 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25084 if test "x$with_x" = xno; then
25085   # The user explicitly disabled X.
25086   have_x=disabled
25087 else
25088   case $x_includes,$x_libraries in #(
25089     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25090     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25091   $as_echo_n "(cached) " >&6
25092 else
25093   # One or both of the vars are not set, and there is no cached value.
25094 ac_x_includes=no ac_x_libraries=no
25095 rm -f -r conftest.dir
25096 if mkdir conftest.dir; then
25097   cd conftest.dir
25098   cat >Imakefile <<'_ACEOF'
25099 incroot:
25100         @echo incroot='${INCROOT}'
25101 usrlibdir:
25102         @echo usrlibdir='${USRLIBDIR}'
25103 libdir:
25104         @echo libdir='${LIBDIR}'
25105 _ACEOF
25106   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25107     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25108     for ac_var in incroot usrlibdir libdir; do
25109       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25110     done
25111     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25112     for ac_extension in a so sl dylib la dll; do
25113       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25114          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25115         ac_im_usrlibdir=$ac_im_libdir; break
25116       fi
25117     done
25118     # Screen out bogus values from the imake configuration.  They are
25119     # bogus both because they are the default anyway, and because
25120     # using them would break gcc on systems where it needs fixed includes.
25121     case $ac_im_incroot in
25122         /usr/include) ac_x_includes= ;;
25123         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25124     esac
25125     case $ac_im_usrlibdir in
25126         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25127         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25128     esac
25129   fi
25130   cd ..
25131   rm -f -r conftest.dir
25132 fi
25133
25134 # Standard set of common directories for X headers.
25135 # Check X11 before X11Rn because it is often a symlink to the current release.
25136 ac_x_header_dirs='
25137 /usr/X11/include
25138 /usr/X11R7/include
25139 /usr/X11R6/include
25140 /usr/X11R5/include
25141 /usr/X11R4/include
25142
25143 /usr/include/X11
25144 /usr/include/X11R7
25145 /usr/include/X11R6
25146 /usr/include/X11R5
25147 /usr/include/X11R4
25148
25149 /usr/local/X11/include
25150 /usr/local/X11R7/include
25151 /usr/local/X11R6/include
25152 /usr/local/X11R5/include
25153 /usr/local/X11R4/include
25154
25155 /usr/local/include/X11
25156 /usr/local/include/X11R7
25157 /usr/local/include/X11R6
25158 /usr/local/include/X11R5
25159 /usr/local/include/X11R4
25160
25161 /usr/X386/include
25162 /usr/x386/include
25163 /usr/XFree86/include/X11
25164
25165 /usr/include
25166 /usr/local/include
25167 /usr/unsupported/include
25168 /usr/athena/include
25169 /usr/local/x11r5/include
25170 /usr/lpp/Xamples/include
25171
25172 /usr/openwin/include
25173 /usr/openwin/share/include'
25174
25175 if test "$ac_x_includes" = no; then
25176   # Guess where to find include files, by looking for Xlib.h.
25177   # First, try using that file with no special directory specified.
25178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25179 /* end confdefs.h.  */
25180 #include <X11/Xlib.h>
25181 _ACEOF
25182 if ac_fn_c_try_cpp "$LINENO"; then :
25183   # We can compile using X headers with no special include directory.
25184 ac_x_includes=
25185 else
25186   for ac_dir in $ac_x_header_dirs; do
25187   if test -r "$ac_dir/X11/Xlib.h"; then
25188     ac_x_includes=$ac_dir
25189     break
25190   fi
25191 done
25192 fi
25193 rm -f conftest.err conftest.i conftest.$ac_ext
25194 fi # $ac_x_includes = no
25195
25196 if test "$ac_x_libraries" = no; then
25197   # Check for the libraries.
25198   # See if we find them without any special options.
25199   # Don't add to $LIBS permanently.
25200   ac_save_LIBS=$LIBS
25201   LIBS="-lX11 $LIBS"
25202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h.  */
25204 #include <X11/Xlib.h>
25205 int
25206 main ()
25207 {
25208 XrmInitialize ()
25209   ;
25210   return 0;
25211 }
25212 _ACEOF
25213 if ac_fn_c_try_link "$LINENO"; then :
25214   LIBS=$ac_save_LIBS
25215 # We can link X programs with no special library path.
25216 ac_x_libraries=
25217 else
25218   LIBS=$ac_save_LIBS
25219 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25220 do
25221   # Don't even attempt the hair of trying to link an X program!
25222   for ac_extension in a so sl dylib la dll; do
25223     if test -r "$ac_dir/libX11.$ac_extension"; then
25224       ac_x_libraries=$ac_dir
25225       break 2
25226     fi
25227   done
25228 done
25229 fi
25230 rm -f core conftest.err conftest.$ac_objext \
25231     conftest$ac_exeext conftest.$ac_ext
25232 fi # $ac_x_libraries = no
25233
25234 case $ac_x_includes,$ac_x_libraries in #(
25235   no,* | *,no | *\'*)
25236     # Didn't find X, or a directory has "'" in its name.
25237     ac_cv_have_x="have_x=no";; #(
25238   *)
25239     # Record where we found X for the cache.
25240     ac_cv_have_x="have_x=yes\
25241         ac_x_includes='$ac_x_includes'\
25242         ac_x_libraries='$ac_x_libraries'"
25243 esac
25244 fi
25245 ;; #(
25246     *) have_x=yes;;
25247   esac
25248   eval "$ac_cv_have_x"
25249 fi # $with_x != no
25250
25251 if test "$have_x" != yes; then
25252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25253 $as_echo "$have_x" >&6; }
25254   no_x=yes
25255 else
25256   # If each of the values was on the command line, it overrides each guess.
25257   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25258   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25259   # Update the cache value to reflect the command line values.
25260   ac_cv_have_x="have_x=yes\
25261         ac_x_includes='$x_includes'\
25262         ac_x_libraries='$x_libraries'"
25263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25264 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25265 fi
25266
25267 if test "$no_x" = yes; then
25268   # Not all programs may use this symbol, but it does not hurt to define it.
25269
25270 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25271
25272   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25273 else
25274   if test -n "$x_includes"; then
25275     X_CFLAGS="$X_CFLAGS -I$x_includes"
25276   fi
25277
25278   # It would also be nice to do this for all -L options, not just this one.
25279   if test -n "$x_libraries"; then
25280     X_LIBS="$X_LIBS -L$x_libraries"
25281     # For Solaris; some versions of Sun CC require a space after -R and
25282     # others require no space.  Words are not sufficient . . . .
25283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25284 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25285     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25286     ac_xsave_c_werror_flag=$ac_c_werror_flag
25287     ac_c_werror_flag=yes
25288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h.  */
25290
25291 int
25292 main ()
25293 {
25294
25295   ;
25296   return 0;
25297 }
25298 _ACEOF
25299 if ac_fn_c_try_link "$LINENO"; then :
25300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25301 $as_echo "no" >&6; }
25302        X_LIBS="$X_LIBS -R$x_libraries"
25303 else
25304   LIBS="$ac_xsave_LIBS -R $x_libraries"
25305        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306 /* end confdefs.h.  */
25307
25308 int
25309 main ()
25310 {
25311
25312   ;
25313   return 0;
25314 }
25315 _ACEOF
25316 if ac_fn_c_try_link "$LINENO"; then :
25317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25318 $as_echo "yes" >&6; }
25319           X_LIBS="$X_LIBS -R $x_libraries"
25320 else
25321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25322 $as_echo "neither works" >&6; }
25323 fi
25324 rm -f core conftest.err conftest.$ac_objext \
25325     conftest$ac_exeext conftest.$ac_ext
25326 fi
25327 rm -f core conftest.err conftest.$ac_objext \
25328     conftest$ac_exeext conftest.$ac_ext
25329     ac_c_werror_flag=$ac_xsave_c_werror_flag
25330     LIBS=$ac_xsave_LIBS
25331   fi
25332
25333   # Check for system-dependent libraries X programs must link with.
25334   # Do this before checking for the system-independent R6 libraries
25335   # (-lICE), since we may need -lsocket or whatever for X linking.
25336
25337   if test "$ISC" = yes; then
25338     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25339   else
25340     # Martyn Johnson says this is needed for Ultrix, if the X
25341     # libraries were built with DECnet support.  And Karl Berry says
25342     # the Alpha needs dnet_stub (dnet does not exist).
25343     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h.  */
25346
25347 /* Override any GCC internal prototype to avoid an error.
25348    Use char because int might match the return type of a GCC
25349    builtin and then its argument prototype would still apply.  */
25350 #ifdef __cplusplus
25351 extern "C"
25352 #endif
25353 char XOpenDisplay ();
25354 int
25355 main ()
25356 {
25357 return XOpenDisplay ();
25358   ;
25359   return 0;
25360 }
25361 _ACEOF
25362 if ac_fn_c_try_link "$LINENO"; then :
25363
25364 else
25365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25366 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25367 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25368   $as_echo_n "(cached) " >&6
25369 else
25370   ac_check_lib_save_LIBS=$LIBS
25371 LIBS="-ldnet  $LIBS"
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373 /* end confdefs.h.  */
25374
25375 /* Override any GCC internal prototype to avoid an error.
25376    Use char because int might match the return type of a GCC
25377    builtin and then its argument prototype would still apply.  */
25378 #ifdef __cplusplus
25379 extern "C"
25380 #endif
25381 char dnet_ntoa ();
25382 int
25383 main ()
25384 {
25385 return dnet_ntoa ();
25386   ;
25387   return 0;
25388 }
25389 _ACEOF
25390 if ac_fn_c_try_link "$LINENO"; then :
25391   ac_cv_lib_dnet_dnet_ntoa=yes
25392 else
25393   ac_cv_lib_dnet_dnet_ntoa=no
25394 fi
25395 rm -f core conftest.err conftest.$ac_objext \
25396     conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25398 fi
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25400 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25401 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25402   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25403 fi
25404
25405     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25406       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25407 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25408 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25409   $as_echo_n "(cached) " >&6
25410 else
25411   ac_check_lib_save_LIBS=$LIBS
25412 LIBS="-ldnet_stub  $LIBS"
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h.  */
25415
25416 /* Override any GCC internal prototype to avoid an error.
25417    Use char because int might match the return type of a GCC
25418    builtin and then its argument prototype would still apply.  */
25419 #ifdef __cplusplus
25420 extern "C"
25421 #endif
25422 char dnet_ntoa ();
25423 int
25424 main ()
25425 {
25426 return dnet_ntoa ();
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 if ac_fn_c_try_link "$LINENO"; then :
25432   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25433 else
25434   ac_cv_lib_dnet_stub_dnet_ntoa=no
25435 fi
25436 rm -f core conftest.err conftest.$ac_objext \
25437     conftest$ac_exeext conftest.$ac_ext
25438 LIBS=$ac_check_lib_save_LIBS
25439 fi
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25441 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25442 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25443   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25444 fi
25445
25446     fi
25447 fi
25448 rm -f core conftest.err conftest.$ac_objext \
25449     conftest$ac_exeext conftest.$ac_ext
25450     LIBS="$ac_xsave_LIBS"
25451
25452     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25453     # to get the SysV transport functions.
25454     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25455     # needs -lnsl.
25456     # The nsl library prevents programs from opening the X display
25457     # on Irix 5.2, according to T.E. Dickey.
25458     # The functions gethostbyname, getservbyname, and inet_addr are
25459     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25460     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25461 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25462
25463 fi
25464
25465     if test $ac_cv_func_gethostbyname = no; then
25466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25467 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25468 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25469   $as_echo_n "(cached) " >&6
25470 else
25471   ac_check_lib_save_LIBS=$LIBS
25472 LIBS="-lnsl  $LIBS"
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h.  */
25475
25476 /* Override any GCC internal prototype to avoid an error.
25477    Use char because int might match the return type of a GCC
25478    builtin and then its argument prototype would still apply.  */
25479 #ifdef __cplusplus
25480 extern "C"
25481 #endif
25482 char gethostbyname ();
25483 int
25484 main ()
25485 {
25486 return gethostbyname ();
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 if ac_fn_c_try_link "$LINENO"; then :
25492   ac_cv_lib_nsl_gethostbyname=yes
25493 else
25494   ac_cv_lib_nsl_gethostbyname=no
25495 fi
25496 rm -f core conftest.err conftest.$ac_objext \
25497     conftest$ac_exeext conftest.$ac_ext
25498 LIBS=$ac_check_lib_save_LIBS
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25501 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25502 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25503   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25504 fi
25505
25506       if test $ac_cv_lib_nsl_gethostbyname = no; then
25507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25508 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25509 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25510   $as_echo_n "(cached) " >&6
25511 else
25512   ac_check_lib_save_LIBS=$LIBS
25513 LIBS="-lbsd  $LIBS"
25514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25515 /* end confdefs.h.  */
25516
25517 /* Override any GCC internal prototype to avoid an error.
25518    Use char because int might match the return type of a GCC
25519    builtin and then its argument prototype would still apply.  */
25520 #ifdef __cplusplus
25521 extern "C"
25522 #endif
25523 char gethostbyname ();
25524 int
25525 main ()
25526 {
25527 return gethostbyname ();
25528   ;
25529   return 0;
25530 }
25531 _ACEOF
25532 if ac_fn_c_try_link "$LINENO"; then :
25533   ac_cv_lib_bsd_gethostbyname=yes
25534 else
25535   ac_cv_lib_bsd_gethostbyname=no
25536 fi
25537 rm -f core conftest.err conftest.$ac_objext \
25538     conftest$ac_exeext conftest.$ac_ext
25539 LIBS=$ac_check_lib_save_LIBS
25540 fi
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25542 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25543 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25544   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25545 fi
25546
25547       fi
25548     fi
25549
25550     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25551     # socket/setsockopt and other routines are undefined under SCO ODT
25552     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25553     # on later versions), says Simon Leinen: it contains gethostby*
25554     # variants that don't use the name server (or something).  -lsocket
25555     # must be given before -lnsl if both are needed.  We assume that
25556     # if connect needs -lnsl, so does gethostbyname.
25557     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25558 if test "x$ac_cv_func_connect" = xyes; then :
25559
25560 fi
25561
25562     if test $ac_cv_func_connect = no; then
25563       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25564 $as_echo_n "checking for connect in -lsocket... " >&6; }
25565 if ${ac_cv_lib_socket_connect+:} false; then :
25566   $as_echo_n "(cached) " >&6
25567 else
25568   ac_check_lib_save_LIBS=$LIBS
25569 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25571 /* end confdefs.h.  */
25572
25573 /* Override any GCC internal prototype to avoid an error.
25574    Use char because int might match the return type of a GCC
25575    builtin and then its argument prototype would still apply.  */
25576 #ifdef __cplusplus
25577 extern "C"
25578 #endif
25579 char connect ();
25580 int
25581 main ()
25582 {
25583 return connect ();
25584   ;
25585   return 0;
25586 }
25587 _ACEOF
25588 if ac_fn_c_try_link "$LINENO"; then :
25589   ac_cv_lib_socket_connect=yes
25590 else
25591   ac_cv_lib_socket_connect=no
25592 fi
25593 rm -f core conftest.err conftest.$ac_objext \
25594     conftest$ac_exeext conftest.$ac_ext
25595 LIBS=$ac_check_lib_save_LIBS
25596 fi
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25598 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25599 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25600   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25601 fi
25602
25603     fi
25604
25605     # Guillermo Gomez says -lposix is necessary on A/UX.
25606     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25607 if test "x$ac_cv_func_remove" = xyes; then :
25608
25609 fi
25610
25611     if test $ac_cv_func_remove = no; then
25612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25613 $as_echo_n "checking for remove in -lposix... " >&6; }
25614 if ${ac_cv_lib_posix_remove+:} false; then :
25615   $as_echo_n "(cached) " >&6
25616 else
25617   ac_check_lib_save_LIBS=$LIBS
25618 LIBS="-lposix  $LIBS"
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h.  */
25621
25622 /* Override any GCC internal prototype to avoid an error.
25623    Use char because int might match the return type of a GCC
25624    builtin and then its argument prototype would still apply.  */
25625 #ifdef __cplusplus
25626 extern "C"
25627 #endif
25628 char remove ();
25629 int
25630 main ()
25631 {
25632 return remove ();
25633   ;
25634   return 0;
25635 }
25636 _ACEOF
25637 if ac_fn_c_try_link "$LINENO"; then :
25638   ac_cv_lib_posix_remove=yes
25639 else
25640   ac_cv_lib_posix_remove=no
25641 fi
25642 rm -f core conftest.err conftest.$ac_objext \
25643     conftest$ac_exeext conftest.$ac_ext
25644 LIBS=$ac_check_lib_save_LIBS
25645 fi
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25647 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25648 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25649   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25650 fi
25651
25652     fi
25653
25654     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25655     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25656 if test "x$ac_cv_func_shmat" = xyes; then :
25657
25658 fi
25659
25660     if test $ac_cv_func_shmat = no; then
25661       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25662 $as_echo_n "checking for shmat in -lipc... " >&6; }
25663 if ${ac_cv_lib_ipc_shmat+:} false; then :
25664   $as_echo_n "(cached) " >&6
25665 else
25666   ac_check_lib_save_LIBS=$LIBS
25667 LIBS="-lipc  $LIBS"
25668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25669 /* end confdefs.h.  */
25670
25671 /* Override any GCC internal prototype to avoid an error.
25672    Use char because int might match the return type of a GCC
25673    builtin and then its argument prototype would still apply.  */
25674 #ifdef __cplusplus
25675 extern "C"
25676 #endif
25677 char shmat ();
25678 int
25679 main ()
25680 {
25681 return shmat ();
25682   ;
25683   return 0;
25684 }
25685 _ACEOF
25686 if ac_fn_c_try_link "$LINENO"; then :
25687   ac_cv_lib_ipc_shmat=yes
25688 else
25689   ac_cv_lib_ipc_shmat=no
25690 fi
25691 rm -f core conftest.err conftest.$ac_objext \
25692     conftest$ac_exeext conftest.$ac_ext
25693 LIBS=$ac_check_lib_save_LIBS
25694 fi
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25696 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25697 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25698   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25699 fi
25700
25701     fi
25702   fi
25703
25704   # Check for libraries that X11R6 Xt/Xaw programs need.
25705   ac_save_LDFLAGS=$LDFLAGS
25706   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25707   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25708   # check for ICE first), but we must link in the order -lSM -lICE or
25709   # we get undefined symbols.  So assume we have SM if we have ICE.
25710   # These have to be linked with before -lX11, unlike the other
25711   # libraries we check for below, so use a different variable.
25712   # John Interrante, Karl Berry
25713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25714 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25715 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25716   $as_echo_n "(cached) " >&6
25717 else
25718   ac_check_lib_save_LIBS=$LIBS
25719 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h.  */
25722
25723 /* Override any GCC internal prototype to avoid an error.
25724    Use char because int might match the return type of a GCC
25725    builtin and then its argument prototype would still apply.  */
25726 #ifdef __cplusplus
25727 extern "C"
25728 #endif
25729 char IceConnectionNumber ();
25730 int
25731 main ()
25732 {
25733 return IceConnectionNumber ();
25734   ;
25735   return 0;
25736 }
25737 _ACEOF
25738 if ac_fn_c_try_link "$LINENO"; then :
25739   ac_cv_lib_ICE_IceConnectionNumber=yes
25740 else
25741   ac_cv_lib_ICE_IceConnectionNumber=no
25742 fi
25743 rm -f core conftest.err conftest.$ac_objext \
25744     conftest$ac_exeext conftest.$ac_ext
25745 LIBS=$ac_check_lib_save_LIBS
25746 fi
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25748 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25749 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25750   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25751 fi
25752
25753   LDFLAGS=$ac_save_LDFLAGS
25754
25755 fi
25756
25757
25758 for ac_header in \
25759    assert.h \
25760    fcntl.h \
25761    grp.h \
25762    pwd.h \
25763    libc.h \
25764    limits.h \
25765    stdarg.h \
25766    stdlib.h \
25767    stdint.h \
25768    inttypes.h \
25769    string.h \
25770    strings.h \
25771    termios.h \
25772    termcap.h \
25773    term.h \
25774    unistd.h \
25775    sys/bitypes.h \
25776    sys/byteorder.h \
25777    sys/ioctl.h \
25778    sys/select.h \
25779    sys/socket.h \
25780    sys/sockio.h \
25781    sys/stat.h \
25782    sys/time.h \
25783    sys/types.h \
25784    arpa/nameser.h \
25785    mtio.h \
25786    sys/mtio.h \
25787    sys/tape.h \
25788    regex.h \
25789
25790 do :
25791   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25794   cat >>confdefs.h <<_ACEOF
25795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25796 _ACEOF
25797
25798 fi
25799
25800 done
25801
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25803 $as_echo_n "checking for ANSI C header files... " >&6; }
25804 if ${ac_cv_header_stdc+:} false; then :
25805   $as_echo_n "(cached) " >&6
25806 else
25807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25808 /* end confdefs.h.  */
25809 #include <stdlib.h>
25810 #include <stdarg.h>
25811 #include <string.h>
25812 #include <float.h>
25813
25814 int
25815 main ()
25816 {
25817
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 if ac_fn_c_try_compile "$LINENO"; then :
25823   ac_cv_header_stdc=yes
25824 else
25825   ac_cv_header_stdc=no
25826 fi
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828
25829 if test $ac_cv_header_stdc = yes; then
25830   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832 /* end confdefs.h.  */
25833 #include <string.h>
25834
25835 _ACEOF
25836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25837   $EGREP "memchr" >/dev/null 2>&1; then :
25838
25839 else
25840   ac_cv_header_stdc=no
25841 fi
25842 rm -f conftest*
25843
25844 fi
25845
25846 if test $ac_cv_header_stdc = yes; then
25847   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25849 /* end confdefs.h.  */
25850 #include <stdlib.h>
25851
25852 _ACEOF
25853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25854   $EGREP "free" >/dev/null 2>&1; then :
25855
25856 else
25857   ac_cv_header_stdc=no
25858 fi
25859 rm -f conftest*
25860
25861 fi
25862
25863 if test $ac_cv_header_stdc = yes; then
25864   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25865   if test "$cross_compiling" = yes; then :
25866   :
25867 else
25868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25869 /* end confdefs.h.  */
25870 #include <ctype.h>
25871 #include <stdlib.h>
25872 #if ((' ' & 0x0FF) == 0x020)
25873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25875 #else
25876 # define ISLOWER(c) \
25877                    (('a' <= (c) && (c) <= 'i') \
25878                      || ('j' <= (c) && (c) <= 'r') \
25879                      || ('s' <= (c) && (c) <= 'z'))
25880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25881 #endif
25882
25883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25884 int
25885 main ()
25886 {
25887   int i;
25888   for (i = 0; i < 256; i++)
25889     if (XOR (islower (i), ISLOWER (i))
25890         || toupper (i) != TOUPPER (i))
25891       return 2;
25892   return 0;
25893 }
25894 _ACEOF
25895 if ac_fn_c_try_run "$LINENO"; then :
25896
25897 else
25898   ac_cv_header_stdc=no
25899 fi
25900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25901   conftest.$ac_objext conftest.beam conftest.$ac_ext
25902 fi
25903
25904 fi
25905 fi
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25907 $as_echo "$ac_cv_header_stdc" >&6; }
25908 if test $ac_cv_header_stdc = yes; then
25909
25910 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25911
25912 fi
25913
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25915 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25916 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25917   $as_echo_n "(cached) " >&6
25918 else
25919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25920 /* end confdefs.h.  */
25921 #include <sys/types.h>
25922 int
25923 main ()
25924 {
25925 return makedev(0, 0);
25926   ;
25927   return 0;
25928 }
25929 _ACEOF
25930 if ac_fn_c_try_link "$LINENO"; then :
25931   ac_cv_header_sys_types_h_makedev=yes
25932 else
25933   ac_cv_header_sys_types_h_makedev=no
25934 fi
25935 rm -f core conftest.err conftest.$ac_objext \
25936     conftest$ac_exeext conftest.$ac_ext
25937
25938 fi
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25940 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25941
25942 if test $ac_cv_header_sys_types_h_makedev = no; then
25943 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25944 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25945
25946 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25947
25948 fi
25949
25950
25951
25952   if test $ac_cv_header_sys_mkdev_h = no; then
25953     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25954 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25955
25956 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25957
25958 fi
25959
25960
25961   fi
25962 fi
25963
25964 ac_header_dirent=no
25965 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25966   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25968 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25969 if eval \${$as_ac_Header+:} false; then :
25970   $as_echo_n "(cached) " >&6
25971 else
25972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25973 /* end confdefs.h.  */
25974 #include <sys/types.h>
25975 #include <$ac_hdr>
25976
25977 int
25978 main ()
25979 {
25980 if ((DIR *) 0)
25981 return 0;
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 if ac_fn_c_try_compile "$LINENO"; then :
25987   eval "$as_ac_Header=yes"
25988 else
25989   eval "$as_ac_Header=no"
25990 fi
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992 fi
25993 eval ac_res=\$$as_ac_Header
25994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25995 $as_echo "$ac_res" >&6; }
25996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25997   cat >>confdefs.h <<_ACEOF
25998 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25999 _ACEOF
26000
26001 ac_header_dirent=$ac_hdr; break
26002 fi
26003
26004 done
26005 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26006 if test $ac_header_dirent = dirent.h; then
26007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26008 $as_echo_n "checking for library containing opendir... " >&6; }
26009 if ${ac_cv_search_opendir+:} false; then :
26010   $as_echo_n "(cached) " >&6
26011 else
26012   ac_func_search_save_LIBS=$LIBS
26013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014 /* end confdefs.h.  */
26015
26016 /* Override any GCC internal prototype to avoid an error.
26017    Use char because int might match the return type of a GCC
26018    builtin and then its argument prototype would still apply.  */
26019 #ifdef __cplusplus
26020 extern "C"
26021 #endif
26022 char opendir ();
26023 int
26024 main ()
26025 {
26026 return opendir ();
26027   ;
26028   return 0;
26029 }
26030 _ACEOF
26031 for ac_lib in '' dir; do
26032   if test -z "$ac_lib"; then
26033     ac_res="none required"
26034   else
26035     ac_res=-l$ac_lib
26036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26037   fi
26038   if ac_fn_c_try_link "$LINENO"; then :
26039   ac_cv_search_opendir=$ac_res
26040 fi
26041 rm -f core conftest.err conftest.$ac_objext \
26042     conftest$ac_exeext
26043   if ${ac_cv_search_opendir+:} false; then :
26044   break
26045 fi
26046 done
26047 if ${ac_cv_search_opendir+:} false; then :
26048
26049 else
26050   ac_cv_search_opendir=no
26051 fi
26052 rm conftest.$ac_ext
26053 LIBS=$ac_func_search_save_LIBS
26054 fi
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26056 $as_echo "$ac_cv_search_opendir" >&6; }
26057 ac_res=$ac_cv_search_opendir
26058 if test "$ac_res" != no; then :
26059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26060
26061 fi
26062
26063 else
26064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26065 $as_echo_n "checking for library containing opendir... " >&6; }
26066 if ${ac_cv_search_opendir+:} false; then :
26067   $as_echo_n "(cached) " >&6
26068 else
26069   ac_func_search_save_LIBS=$LIBS
26070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26071 /* end confdefs.h.  */
26072
26073 /* Override any GCC internal prototype to avoid an error.
26074    Use char because int might match the return type of a GCC
26075    builtin and then its argument prototype would still apply.  */
26076 #ifdef __cplusplus
26077 extern "C"
26078 #endif
26079 char opendir ();
26080 int
26081 main ()
26082 {
26083 return opendir ();
26084   ;
26085   return 0;
26086 }
26087 _ACEOF
26088 for ac_lib in '' x; do
26089   if test -z "$ac_lib"; then
26090     ac_res="none required"
26091   else
26092     ac_res=-l$ac_lib
26093     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26094   fi
26095   if ac_fn_c_try_link "$LINENO"; then :
26096   ac_cv_search_opendir=$ac_res
26097 fi
26098 rm -f core conftest.err conftest.$ac_objext \
26099     conftest$ac_exeext
26100   if ${ac_cv_search_opendir+:} false; then :
26101   break
26102 fi
26103 done
26104 if ${ac_cv_search_opendir+:} false; then :
26105
26106 else
26107   ac_cv_search_opendir=no
26108 fi
26109 rm conftest.$ac_ext
26110 LIBS=$ac_func_search_save_LIBS
26111 fi
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26113 $as_echo "$ac_cv_search_opendir" >&6; }
26114 ac_res=$ac_cv_search_opendir
26115 if test "$ac_res" != no; then :
26116   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26117
26118 fi
26119
26120 fi
26121
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26123 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26124 if ${ac_cv_header_stat_broken+:} false; then :
26125   $as_echo_n "(cached) " >&6
26126 else
26127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128 /* end confdefs.h.  */
26129 #include <sys/types.h>
26130 #include <sys/stat.h>
26131
26132 #if defined S_ISBLK && defined S_IFDIR
26133 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26134 #endif
26135
26136 #if defined S_ISBLK && defined S_IFCHR
26137 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26138 #endif
26139
26140 #if defined S_ISLNK && defined S_IFREG
26141 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26142 #endif
26143
26144 #if defined S_ISSOCK && defined S_IFREG
26145 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26146 #endif
26147
26148 _ACEOF
26149 if ac_fn_c_try_compile "$LINENO"; then :
26150   ac_cv_header_stat_broken=no
26151 else
26152   ac_cv_header_stat_broken=yes
26153 fi
26154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26155 fi
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26157 $as_echo "$ac_cv_header_stat_broken" >&6; }
26158 if test $ac_cv_header_stat_broken = yes; then
26159
26160 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26161
26162 fi
26163
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26165 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26166 if ${ac_cv_header_sys_wait_h+:} false; then :
26167   $as_echo_n "(cached) " >&6
26168 else
26169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26170 /* end confdefs.h.  */
26171 #include <sys/types.h>
26172 #include <sys/wait.h>
26173 #ifndef WEXITSTATUS
26174 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26175 #endif
26176 #ifndef WIFEXITED
26177 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26178 #endif
26179
26180 int
26181 main ()
26182 {
26183   int s;
26184   wait (&s);
26185   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26186   ;
26187   return 0;
26188 }
26189 _ACEOF
26190 if ac_fn_c_try_compile "$LINENO"; then :
26191   ac_cv_header_sys_wait_h=yes
26192 else
26193   ac_cv_header_sys_wait_h=no
26194 fi
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196 fi
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26198 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26199 if test $ac_cv_header_sys_wait_h = yes; then
26200
26201 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26202
26203 fi
26204
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26206 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26207 if ${ac_cv_header_time+:} false; then :
26208   $as_echo_n "(cached) " >&6
26209 else
26210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211 /* end confdefs.h.  */
26212 #include <sys/types.h>
26213 #include <sys/time.h>
26214 #include <time.h>
26215
26216 int
26217 main ()
26218 {
26219 if ((struct tm *) 0)
26220 return 0;
26221   ;
26222   return 0;
26223 }
26224 _ACEOF
26225 if ac_fn_c_try_compile "$LINENO"; then :
26226   ac_cv_header_time=yes
26227 else
26228   ac_cv_header_time=no
26229 fi
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231 fi
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26233 $as_echo "$ac_cv_header_time" >&6; }
26234 if test $ac_cv_header_time = yes; then
26235
26236 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26237
26238 fi
26239
26240 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26241 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26242
26243 cat >>confdefs.h <<_ACEOF
26244 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26245 _ACEOF
26246
26247
26248 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26249
26250 fi
26251
26252
26253 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26254 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26255
26256 cat >>confdefs.h <<_ACEOF
26257 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26258 _ACEOF
26259
26260
26261 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26262
26263 else
26264   case " $LIBOBJS " in
26265   *" fileblocks.$ac_objext "* ) ;;
26266   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26267  ;;
26268 esac
26269
26270 fi
26271
26272
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26274 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26275 if ${ac_cv_struct_tm+:} false; then :
26276   $as_echo_n "(cached) " >&6
26277 else
26278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h.  */
26280 #include <sys/types.h>
26281 #include <time.h>
26282
26283 int
26284 main ()
26285 {
26286 struct tm tm;
26287                                      int *p = &tm.tm_sec;
26288                                      return !p;
26289   ;
26290   return 0;
26291 }
26292 _ACEOF
26293 if ac_fn_c_try_compile "$LINENO"; then :
26294   ac_cv_struct_tm=time.h
26295 else
26296   ac_cv_struct_tm=sys/time.h
26297 fi
26298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299 fi
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26301 $as_echo "$ac_cv_struct_tm" >&6; }
26302 if test $ac_cv_struct_tm = sys/time.h; then
26303
26304 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26305
26306 fi
26307
26308 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26309 #include <$ac_cv_struct_tm>
26310
26311 "
26312 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26313
26314 cat >>confdefs.h <<_ACEOF
26315 #define HAVE_STRUCT_TM_TM_ZONE 1
26316 _ACEOF
26317
26318
26319 fi
26320
26321 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26322
26323 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26324
26325 else
26326   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26327 "
26328 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26329   ac_have_decl=1
26330 else
26331   ac_have_decl=0
26332 fi
26333
26334 cat >>confdefs.h <<_ACEOF
26335 #define HAVE_DECL_TZNAME $ac_have_decl
26336 _ACEOF
26337
26338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26339 $as_echo_n "checking for tzname... " >&6; }
26340 if ${ac_cv_var_tzname+:} false; then :
26341   $as_echo_n "(cached) " >&6
26342 else
26343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26344 /* end confdefs.h.  */
26345 #include <time.h>
26346 #if !HAVE_DECL_TZNAME
26347 extern char *tzname[];
26348 #endif
26349
26350 int
26351 main ()
26352 {
26353 return tzname[0][0];
26354   ;
26355   return 0;
26356 }
26357 _ACEOF
26358 if ac_fn_c_try_link "$LINENO"; then :
26359   ac_cv_var_tzname=yes
26360 else
26361   ac_cv_var_tzname=no
26362 fi
26363 rm -f core conftest.err conftest.$ac_objext \
26364     conftest$ac_exeext conftest.$ac_ext
26365 fi
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26367 $as_echo "$ac_cv_var_tzname" >&6; }
26368   if test $ac_cv_var_tzname = yes; then
26369
26370 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26371
26372   fi
26373 fi
26374
26375
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26377 $as_echo_n "checking for utime.h... " >&6; }
26378 if ${ba_cv_header_utime_h+:} false; then :
26379   $as_echo_n "(cached) " >&6
26380 else
26381
26382        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26383 /* end confdefs.h.  */
26384
26385               #include <sys/types.h>
26386               #include <utime.h>
26387
26388 int
26389 main ()
26390 {
26391
26392               struct utimbuf foo
26393
26394   ;
26395   return 0;
26396 }
26397 _ACEOF
26398 if ac_fn_c_try_compile "$LINENO"; then :
26399
26400               ba_cv_header_utime_h=yes
26401
26402 else
26403
26404               ba_cv_header_utime_h=no
26405
26406
26407 fi
26408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26409
26410
26411 fi
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26413 $as_echo "$ba_cv_header_utime_h" >&6; }
26414 test $ba_cv_header_utime_h = yes &&
26415 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26416
26417
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26419 $as_echo_n "checking for socklen_t... " >&6; }
26420 if ${ba_cv_header_socklen_t+:} false; then :
26421   $as_echo_n "(cached) " >&6
26422 else
26423
26424        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26425 /* end confdefs.h.  */
26426
26427               #include <sys/types.h>
26428               #include <sys/socket.h>
26429
26430 int
26431 main ()
26432 {
26433
26434               socklen_t x
26435
26436   ;
26437   return 0;
26438 }
26439 _ACEOF
26440 if ac_fn_c_try_compile "$LINENO"; then :
26441
26442              ba_cv_header_socklen_t=yes
26443
26444 else
26445
26446              ba_cv_header_socklen_t=no
26447
26448
26449 fi
26450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26451
26452
26453 fi
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26455 $as_echo "$ba_cv_header_socklen_t" >&6; }
26456 test $ba_cv_header_socklen_t = yes &&
26457 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26458
26459
26460 ac_ext=cpp
26461 ac_cpp='$CXXCPP $CPPFLAGS'
26462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26465
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26467 $as_echo_n "checking for ioctl_req_t... " >&6; }
26468 if ${ba_cv_header_ioctl_req_t+:} false; then :
26469   $as_echo_n "(cached) " >&6
26470 else
26471
26472        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26473 /* end confdefs.h.  */
26474
26475               #include <unistd.h>
26476               #include <sys/types.h>
26477               #include <sys/ioctl.h>
26478
26479 int
26480 main ()
26481 {
26482
26483               int (*d_ioctl)(int fd, unsigned long int request, ...);
26484               d_ioctl = ::ioctl;
26485
26486   ;
26487   return 0;
26488 }
26489 _ACEOF
26490 if ac_fn_cxx_try_compile "$LINENO"; then :
26491
26492              ba_cv_header_ioctl_req_t=yes
26493
26494 else
26495
26496              ba_cv_header_ioctl_req_t=no
26497
26498
26499 fi
26500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26501
26502
26503 fi
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26505 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26506 test $ba_cv_header_ioctl_req_t = yes &&
26507 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26508
26509
26510 ac_ext=c
26511 ac_cpp='$CPP $CPPFLAGS'
26512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26515
26516
26517 ac_ext=cpp
26518 ac_cpp='$CXXCPP $CPPFLAGS'
26519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26522
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26524 $as_echo_n "checking for typeof... " >&6; }
26525 if ${ba_cv_have_typeof+:} false; then :
26526   $as_echo_n "(cached) " >&6
26527 else
26528
26529        if test "$cross_compiling" = yes; then :
26530
26531               ba_cv_have_typeof=no
26532
26533
26534 else
26535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26536 /* end confdefs.h.  */
26537
26538               main(){char *a = 0; a = (typeof a)a;}
26539
26540 _ACEOF
26541 if ac_fn_cxx_try_run "$LINENO"; then :
26542
26543               ba_cv_have_typeof=yes
26544
26545 else
26546
26547               ba_cv_have_typeof=no
26548
26549 fi
26550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26551   conftest.$ac_objext conftest.beam conftest.$ac_ext
26552 fi
26553
26554
26555
26556 fi
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26558 $as_echo "$ba_cv_have_typeof" >&6; }
26559 test $ba_cv_have_typeof = yes &&
26560 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26561
26562 ac_ext=c
26563 ac_cpp='$CPP $CPPFLAGS'
26564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26567
26568
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26570 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26571 if ${ac_cv_c_const+:} false; then :
26572   $as_echo_n "(cached) " >&6
26573 else
26574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575 /* end confdefs.h.  */
26576
26577 int
26578 main ()
26579 {
26580
26581 #ifndef __cplusplus
26582   /* Ultrix mips cc rejects this sort of thing.  */
26583   typedef int charset[2];
26584   const charset cs = { 0, 0 };
26585   /* SunOS 4.1.1 cc rejects this.  */
26586   char const *const *pcpcc;
26587   char **ppc;
26588   /* NEC SVR4.0.2 mips cc rejects this.  */
26589   struct point {int x, y;};
26590   static struct point const zero = {0,0};
26591   /* AIX XL C 1.02.0.0 rejects this.
26592      It does not let you subtract one const X* pointer from another in
26593      an arm of an if-expression whose if-part is not a constant
26594      expression */
26595   const char *g = "string";
26596   pcpcc = &g + (g ? g-g : 0);
26597   /* HPUX 7.0 cc rejects these. */
26598   ++pcpcc;
26599   ppc = (char**) pcpcc;
26600   pcpcc = (char const *const *) ppc;
26601   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26602     char tx;
26603     char *t = &tx;
26604     char const *s = 0 ? (char *) 0 : (char const *) 0;
26605
26606     *t++ = 0;
26607     if (s) return 0;
26608   }
26609   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26610     int x[] = {25, 17};
26611     const int *foo = &x[0];
26612     ++foo;
26613   }
26614   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26615     typedef const int *iptr;
26616     iptr p = 0;
26617     ++p;
26618   }
26619   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26620        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26621     struct s { int j; const int *ap[3]; } bx;
26622     struct s *b = &bx; b->j = 5;
26623   }
26624   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26625     const int foo = 10;
26626     if (!foo) return 0;
26627   }
26628   return !cs[0] && !zero.x;
26629 #endif
26630
26631   ;
26632   return 0;
26633 }
26634 _ACEOF
26635 if ac_fn_c_try_compile "$LINENO"; then :
26636   ac_cv_c_const=yes
26637 else
26638   ac_cv_c_const=no
26639 fi
26640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26641 fi
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26643 $as_echo "$ac_cv_c_const" >&6; }
26644 if test $ac_cv_c_const = no; then
26645
26646 $as_echo "#define const /**/" >>confdefs.h
26647
26648 fi
26649
26650
26651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26652 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26653 if ${ac_cv_c_bigendian+:} false; then :
26654   $as_echo_n "(cached) " >&6
26655 else
26656   ac_cv_c_bigendian=unknown
26657     # See if we're dealing with a universal compiler.
26658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26659 /* end confdefs.h.  */
26660 #ifndef __APPLE_CC__
26661                not a universal capable compiler
26662              #endif
26663              typedef int dummy;
26664
26665 _ACEOF
26666 if ac_fn_c_try_compile "$LINENO"; then :
26667
26668         # Check for potential -arch flags.  It is not universal unless
26669         # there are at least two -arch flags with different values.
26670         ac_arch=
26671         ac_prev=
26672         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26673          if test -n "$ac_prev"; then
26674            case $ac_word in
26675              i?86 | x86_64 | ppc | ppc64)
26676                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26677                  ac_arch=$ac_word
26678                else
26679                  ac_cv_c_bigendian=universal
26680                  break
26681                fi
26682                ;;
26683            esac
26684            ac_prev=
26685          elif test "x$ac_word" = "x-arch"; then
26686            ac_prev=arch
26687          fi
26688        done
26689 fi
26690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26691     if test $ac_cv_c_bigendian = unknown; then
26692       # See if sys/param.h defines the BYTE_ORDER macro.
26693       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h.  */
26695 #include <sys/types.h>
26696              #include <sys/param.h>
26697
26698 int
26699 main ()
26700 {
26701 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26702                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26703                      && LITTLE_ENDIAN)
26704               bogus endian macros
26705              #endif
26706
26707   ;
26708   return 0;
26709 }
26710 _ACEOF
26711 if ac_fn_c_try_compile "$LINENO"; then :
26712   # It does; now see whether it defined to BIG_ENDIAN or not.
26713          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26714 /* end confdefs.h.  */
26715 #include <sys/types.h>
26716                 #include <sys/param.h>
26717
26718 int
26719 main ()
26720 {
26721 #if BYTE_ORDER != BIG_ENDIAN
26722                  not big endian
26723                 #endif
26724
26725   ;
26726   return 0;
26727 }
26728 _ACEOF
26729 if ac_fn_c_try_compile "$LINENO"; then :
26730   ac_cv_c_bigendian=yes
26731 else
26732   ac_cv_c_bigendian=no
26733 fi
26734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735 fi
26736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26737     fi
26738     if test $ac_cv_c_bigendian = unknown; then
26739       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26741 /* end confdefs.h.  */
26742 #include <limits.h>
26743
26744 int
26745 main ()
26746 {
26747 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26748               bogus endian macros
26749              #endif
26750
26751   ;
26752   return 0;
26753 }
26754 _ACEOF
26755 if ac_fn_c_try_compile "$LINENO"; then :
26756   # It does; now see whether it defined to _BIG_ENDIAN or not.
26757          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758 /* end confdefs.h.  */
26759 #include <limits.h>
26760
26761 int
26762 main ()
26763 {
26764 #ifndef _BIG_ENDIAN
26765                  not big endian
26766                 #endif
26767
26768   ;
26769   return 0;
26770 }
26771 _ACEOF
26772 if ac_fn_c_try_compile "$LINENO"; then :
26773   ac_cv_c_bigendian=yes
26774 else
26775   ac_cv_c_bigendian=no
26776 fi
26777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26778 fi
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780     fi
26781     if test $ac_cv_c_bigendian = unknown; then
26782       # Compile a test program.
26783       if test "$cross_compiling" = yes; then :
26784   # Try to guess by grepping values from an object file.
26785          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26786 /* end confdefs.h.  */
26787 short int ascii_mm[] =
26788                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26789                 short int ascii_ii[] =
26790                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26791                 int use_ascii (int i) {
26792                   return ascii_mm[i] + ascii_ii[i];
26793                 }
26794                 short int ebcdic_ii[] =
26795                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26796                 short int ebcdic_mm[] =
26797                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26798                 int use_ebcdic (int i) {
26799                   return ebcdic_mm[i] + ebcdic_ii[i];
26800                 }
26801                 extern int foo;
26802
26803 int
26804 main ()
26805 {
26806 return use_ascii (foo) == use_ebcdic (foo);
26807   ;
26808   return 0;
26809 }
26810 _ACEOF
26811 if ac_fn_c_try_compile "$LINENO"; then :
26812   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26813               ac_cv_c_bigendian=yes
26814             fi
26815             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26816               if test "$ac_cv_c_bigendian" = unknown; then
26817                 ac_cv_c_bigendian=no
26818               else
26819                 # finding both strings is unlikely to happen, but who knows?
26820                 ac_cv_c_bigendian=unknown
26821               fi
26822             fi
26823 fi
26824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825 else
26826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26827 /* end confdefs.h.  */
26828 $ac_includes_default
26829 int
26830 main ()
26831 {
26832
26833              /* Are we little or big endian?  From Harbison&Steele.  */
26834              union
26835              {
26836                long int l;
26837                char c[sizeof (long int)];
26838              } u;
26839              u.l = 1;
26840              return u.c[sizeof (long int) - 1] == 1;
26841
26842   ;
26843   return 0;
26844 }
26845 _ACEOF
26846 if ac_fn_c_try_run "$LINENO"; then :
26847   ac_cv_c_bigendian=no
26848 else
26849   ac_cv_c_bigendian=yes
26850 fi
26851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26852   conftest.$ac_objext conftest.beam conftest.$ac_ext
26853 fi
26854
26855     fi
26856 fi
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26858 $as_echo "$ac_cv_c_bigendian" >&6; }
26859  case $ac_cv_c_bigendian in #(
26860    yes)
26861
26862 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26863 ;; #(
26864    no)
26865
26866 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26867  ;; #(
26868    universal)
26869
26870 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26871
26872      ;; #(
26873    *)
26874      as_fn_error $? "unknown endianness
26875  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26876  esac
26877
26878
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26880 $as_echo_n "checking how to get filesystem type... " >&6; }
26881 fstype=no
26882 # The order of these tests is important.
26883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26884 /* end confdefs.h.  */
26885
26886        #include <sys/statvfs.h>
26887        #include <sys/fstyp.h>
26888
26889 _ACEOF
26890 if ac_fn_c_try_cpp "$LINENO"; then :
26891   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26892  fstype=SVR4
26893
26894 fi
26895 rm -f conftest.err conftest.i conftest.$ac_ext
26896 if test $fstype = no; then
26897    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26898 /* end confdefs.h.  */
26899
26900           #include <sys/statfs.h>
26901           #include <sys/fstyp.h>
26902
26903 _ACEOF
26904 if ac_fn_c_try_cpp "$LINENO"; then :
26905   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26906  fstype=SVR3
26907
26908 fi
26909 rm -f conftest.err conftest.i conftest.$ac_ext
26910 fi
26911 if test $fstype = no; then
26912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26913 /* end confdefs.h.  */
26914
26915           #include <sys/statfs.h>
26916           #include <sys/vmount.h>
26917
26918 _ACEOF
26919 if ac_fn_c_try_cpp "$LINENO"; then :
26920   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26921  fstype=AIX
26922
26923 fi
26924 rm -f conftest.err conftest.i conftest.$ac_ext
26925 fi
26926 if test $fstype = no; then
26927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26928 /* end confdefs.h.  */
26929
26930           #include <mntent.h>
26931
26932 _ACEOF
26933 if ac_fn_c_try_cpp "$LINENO"; then :
26934   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26935  fstype=4.3BSD
26936
26937 fi
26938 rm -f conftest.err conftest.i conftest.$ac_ext
26939 fi
26940 if test $fstype = no; then
26941    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26942 /* end confdefs.h.  */
26943 #include <sys/mount.h>
26944
26945 _ACEOF
26946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26947   $EGREP "f_type;" >/dev/null 2>&1; then :
26948   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26949  fstype=4.4BSD/OSF1
26950 fi
26951 rm -f conftest*
26952
26953 fi
26954 if test $fstype = no; then
26955    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26956 /* end confdefs.h.  */
26957
26958           #include <sys/mount.h>
26959           #include <sys/fs_types.h>
26960
26961 _ACEOF
26962 if ac_fn_c_try_cpp "$LINENO"; then :
26963   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26964  fstype=Ultrix
26965
26966 fi
26967 rm -f conftest.err conftest.i conftest.$ac_ext
26968 fi
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26970 $as_echo "$fstype" >&6; }
26971
26972 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26973 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26974
26975 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26976
26977 fi
26978
26979
26980
26981 ac_ext=cpp
26982 ac_cpp='$CXXCPP $CPPFLAGS'
26983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26986
26987 for ac_func in backtrace
26988 do :
26989   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26990 if test "x$ac_cv_func_backtrace" = xyes; then :
26991   cat >>confdefs.h <<_ACEOF
26992 #define HAVE_BACKTRACE 1
26993 _ACEOF
26994
26995 fi
26996 done
26997
26998 ac_ext=c
26999 ac_cpp='$CPP $CPPFLAGS'
27000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27003
27004
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27006 $as_echo_n "checking return type of signal handlers... " >&6; }
27007 if ${ac_cv_type_signal+:} false; then :
27008   $as_echo_n "(cached) " >&6
27009 else
27010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27011 /* end confdefs.h.  */
27012 #include <sys/types.h>
27013 #include <signal.h>
27014
27015 int
27016 main ()
27017 {
27018 return *(signal (0, 0)) (0) == 1;
27019   ;
27020   return 0;
27021 }
27022 _ACEOF
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024   ac_cv_type_signal=int
27025 else
27026   ac_cv_type_signal=void
27027 fi
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27029 fi
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27031 $as_echo "$ac_cv_type_signal" >&6; }
27032
27033 cat >>confdefs.h <<_ACEOF
27034 #define RETSIGTYPE $ac_cv_type_signal
27035 _ACEOF
27036
27037
27038
27039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27040 $as_echo_n "checking for type of signal functions... " >&6; }
27041   if ${bash_cv_signal_vintage+:} false; then :
27042   $as_echo_n "(cached) " >&6
27043 else
27044
27045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27046 /* end confdefs.h.  */
27047 #include <signal.h>
27048 int
27049 main ()
27050 {
27051
27052       sigset_t ss;
27053       struct sigaction sa;
27054       sigemptyset(&ss); sigsuspend(&ss);
27055       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27056       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27057
27058   ;
27059   return 0;
27060 }
27061 _ACEOF
27062 if ac_fn_c_try_link "$LINENO"; then :
27063   bash_cv_signal_vintage="posix"
27064 else
27065
27066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27067 /* end confdefs.h.  */
27068 #include <signal.h>
27069 int
27070 main ()
27071 {
27072
27073           int mask = sigmask(SIGINT);
27074           sigsetmask(mask); sigblock(mask); sigpause(mask);
27075
27076   ;
27077   return 0;
27078 }
27079 _ACEOF
27080 if ac_fn_c_try_link "$LINENO"; then :
27081   bash_cv_signal_vintage="4.2bsd"
27082 else
27083
27084         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h.  */
27086
27087           #include <signal.h>
27088           RETSIGTYPE foo() { }
27089 int
27090 main ()
27091 {
27092
27093                   int mask = sigmask(SIGINT);
27094                   sigset(SIGINT, foo); sigrelse(SIGINT);
27095                   sighold(SIGINT); sigpause(SIGINT);
27096
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 if ac_fn_c_try_link "$LINENO"; then :
27102   bash_cv_signal_vintage="svr3"
27103 else
27104   bash_cv_signal_vintage="v7"
27105
27106 fi
27107 rm -f core conftest.err conftest.$ac_objext \
27108     conftest$ac_exeext conftest.$ac_ext
27109
27110 fi
27111 rm -f core conftest.err conftest.$ac_objext \
27112     conftest$ac_exeext conftest.$ac_ext
27113
27114 fi
27115 rm -f core conftest.err conftest.$ac_objext \
27116     conftest$ac_exeext conftest.$ac_ext
27117
27118 fi
27119
27120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27121 $as_echo "$bash_cv_signal_vintage" >&6; }
27122   if test "$bash_cv_signal_vintage" = "posix"; then
27123     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27124
27125   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27126     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27127
27128   elif test "$bash_cv_signal_vintage" = "svr3"; then
27129     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27130
27131   fi
27132
27133 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27134 if test "x$ac_cv_type_mode_t" = xyes; then :
27135
27136 else
27137
27138 cat >>confdefs.h <<_ACEOF
27139 #define mode_t int
27140 _ACEOF
27141
27142 fi
27143
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27145 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27146 if ${ac_cv_type_uid_t+:} false; then :
27147   $as_echo_n "(cached) " >&6
27148 else
27149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27150 /* end confdefs.h.  */
27151 #include <sys/types.h>
27152
27153 _ACEOF
27154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27155   $EGREP "uid_t" >/dev/null 2>&1; then :
27156   ac_cv_type_uid_t=yes
27157 else
27158   ac_cv_type_uid_t=no
27159 fi
27160 rm -f conftest*
27161
27162 fi
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27164 $as_echo "$ac_cv_type_uid_t" >&6; }
27165 if test $ac_cv_type_uid_t = no; then
27166
27167 $as_echo "#define uid_t int" >>confdefs.h
27168
27169
27170 $as_echo "#define gid_t int" >>confdefs.h
27171
27172 fi
27173
27174 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27175 if test "x$ac_cv_type_size_t" = xyes; then :
27176
27177 else
27178
27179 cat >>confdefs.h <<_ACEOF
27180 #define size_t unsigned int
27181 _ACEOF
27182
27183 fi
27184
27185 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27186 if test "x$ac_cv_type_pid_t" = xyes; then :
27187
27188 else
27189
27190 cat >>confdefs.h <<_ACEOF
27191 #define pid_t int
27192 _ACEOF
27193
27194 fi
27195
27196 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27197 if test "x$ac_cv_type_off_t" = xyes; then :
27198
27199 else
27200
27201 cat >>confdefs.h <<_ACEOF
27202 #define off_t long int
27203 _ACEOF
27204
27205 fi
27206
27207
27208   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27209 if test "x$ac_cv_type_intptr_t" = xyes; then :
27210
27211 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27212
27213 else
27214   for ac_type in 'int' 'long int' 'long long int'; do
27215        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27216 /* end confdefs.h.  */
27217 $ac_includes_default
27218 int
27219 main ()
27220 {
27221 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27222 test_array [0] = 0;
27223 return test_array [0];
27224
27225   ;
27226   return 0;
27227 }
27228 _ACEOF
27229 if ac_fn_c_try_compile "$LINENO"; then :
27230
27231 cat >>confdefs.h <<_ACEOF
27232 #define intptr_t $ac_type
27233 _ACEOF
27234
27235           ac_type=
27236 fi
27237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27238        test -z "$ac_type" && break
27239      done
27240 fi
27241
27242
27243
27244   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27245 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27246
27247 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27248
27249 else
27250   for ac_type in 'unsigned int' 'unsigned long int' \
27251         'unsigned long long int'; do
27252        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253 /* end confdefs.h.  */
27254 $ac_includes_default
27255 int
27256 main ()
27257 {
27258 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27259 test_array [0] = 0;
27260 return test_array [0];
27261
27262   ;
27263   return 0;
27264 }
27265 _ACEOF
27266 if ac_fn_c_try_compile "$LINENO"; then :
27267
27268 cat >>confdefs.h <<_ACEOF
27269 #define uintptr_t $ac_type
27270 _ACEOF
27271
27272           ac_type=
27273 fi
27274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27275        test -z "$ac_type" && break
27276      done
27277 fi
27278
27279
27280 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27281 if test "x$ac_cv_type_ino_t" = xyes; then :
27282
27283 else
27284
27285 cat >>confdefs.h <<_ACEOF
27286 #define ino_t unsigned long
27287 _ACEOF
27288
27289 fi
27290
27291 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27292 if test "x$ac_cv_type_dev_t" = xyes; then :
27293
27294 else
27295
27296 cat >>confdefs.h <<_ACEOF
27297 #define dev_t unsigned long
27298 _ACEOF
27299
27300 fi
27301
27302 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27303 if test "x$ac_cv_type_daddr_t" = xyes; then :
27304
27305 else
27306
27307 cat >>confdefs.h <<_ACEOF
27308 #define daddr_t long
27309 _ACEOF
27310
27311 fi
27312
27313 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27314 if test "x$ac_cv_type_major_t" = xyes; then :
27315
27316 else
27317
27318 cat >>confdefs.h <<_ACEOF
27319 #define major_t int
27320 _ACEOF
27321
27322 fi
27323
27324 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27325 if test "x$ac_cv_type_minor_t" = xyes; then :
27326
27327 else
27328
27329 cat >>confdefs.h <<_ACEOF
27330 #define minor_t int
27331 _ACEOF
27332
27333 fi
27334
27335 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27336 if test "x$ac_cv_type_ssize_t" = xyes; then :
27337
27338 else
27339
27340 cat >>confdefs.h <<_ACEOF
27341 #define ssize_t int
27342 _ACEOF
27343
27344 fi
27345
27346 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27347 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27348
27349 cat >>confdefs.h <<_ACEOF
27350 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27351 _ACEOF
27352
27353
27354 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27355
27356 else
27357   case " $LIBOBJS " in
27358   *" fileblocks.$ac_objext "* ) ;;
27359   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27360  ;;
27361 esac
27362
27363 fi
27364
27365
27366 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27367 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27368
27369 cat >>confdefs.h <<_ACEOF
27370 #define HAVE_STRUCT_STAT_ST_RDEV 1
27371 _ACEOF
27372
27373
27374 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27375
27376 fi
27377
27378
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27380 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27381 if ${ac_cv_struct_tm+:} false; then :
27382   $as_echo_n "(cached) " >&6
27383 else
27384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27385 /* end confdefs.h.  */
27386 #include <sys/types.h>
27387 #include <time.h>
27388
27389 int
27390 main ()
27391 {
27392 struct tm tm;
27393                                      int *p = &tm.tm_sec;
27394                                      return !p;
27395   ;
27396   return 0;
27397 }
27398 _ACEOF
27399 if ac_fn_c_try_compile "$LINENO"; then :
27400   ac_cv_struct_tm=time.h
27401 else
27402   ac_cv_struct_tm=sys/time.h
27403 fi
27404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27405 fi
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27407 $as_echo "$ac_cv_struct_tm" >&6; }
27408 if test $ac_cv_struct_tm = sys/time.h; then
27409
27410 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27411
27412 fi
27413
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27415 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27416 if ${ac_cv_c_const+:} false; then :
27417   $as_echo_n "(cached) " >&6
27418 else
27419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27420 /* end confdefs.h.  */
27421
27422 int
27423 main ()
27424 {
27425
27426 #ifndef __cplusplus
27427   /* Ultrix mips cc rejects this sort of thing.  */
27428   typedef int charset[2];
27429   const charset cs = { 0, 0 };
27430   /* SunOS 4.1.1 cc rejects this.  */
27431   char const *const *pcpcc;
27432   char **ppc;
27433   /* NEC SVR4.0.2 mips cc rejects this.  */
27434   struct point {int x, y;};
27435   static struct point const zero = {0,0};
27436   /* AIX XL C 1.02.0.0 rejects this.
27437      It does not let you subtract one const X* pointer from another in
27438      an arm of an if-expression whose if-part is not a constant
27439      expression */
27440   const char *g = "string";
27441   pcpcc = &g + (g ? g-g : 0);
27442   /* HPUX 7.0 cc rejects these. */
27443   ++pcpcc;
27444   ppc = (char**) pcpcc;
27445   pcpcc = (char const *const *) ppc;
27446   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27447     char tx;
27448     char *t = &tx;
27449     char const *s = 0 ? (char *) 0 : (char const *) 0;
27450
27451     *t++ = 0;
27452     if (s) return 0;
27453   }
27454   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27455     int x[] = {25, 17};
27456     const int *foo = &x[0];
27457     ++foo;
27458   }
27459   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27460     typedef const int *iptr;
27461     iptr p = 0;
27462     ++p;
27463   }
27464   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27465        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27466     struct s { int j; const int *ap[3]; } bx;
27467     struct s *b = &bx; b->j = 5;
27468   }
27469   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27470     const int foo = 10;
27471     if (!foo) return 0;
27472   }
27473   return !cs[0] && !zero.x;
27474 #endif
27475
27476   ;
27477   return 0;
27478 }
27479 _ACEOF
27480 if ac_fn_c_try_compile "$LINENO"; then :
27481   ac_cv_c_const=yes
27482 else
27483   ac_cv_c_const=no
27484 fi
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486 fi
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27488 $as_echo "$ac_cv_c_const" >&6; }
27489 if test $ac_cv_c_const = no; then
27490
27491 $as_echo "#define const /**/" >>confdefs.h
27492
27493 fi
27494
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27496 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27497 if ${ac_cv_c_restrict+:} false; then :
27498   $as_echo_n "(cached) " >&6
27499 else
27500   ac_cv_c_restrict=no
27501    # The order here caters to the fact that C++ does not require restrict.
27502    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27503      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27504 /* end confdefs.h.  */
27505 typedef int * int_ptr;
27506         int foo (int_ptr $ac_kw ip) {
27507         return ip[0];
27508        }
27509 int
27510 main ()
27511 {
27512 int s[1];
27513         int * $ac_kw t = s;
27514         t[0] = 0;
27515         return foo(t)
27516   ;
27517   return 0;
27518 }
27519 _ACEOF
27520 if ac_fn_c_try_compile "$LINENO"; then :
27521   ac_cv_c_restrict=$ac_kw
27522 fi
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27524      test "$ac_cv_c_restrict" != no && break
27525    done
27526
27527 fi
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27529 $as_echo "$ac_cv_c_restrict" >&6; }
27530
27531  case $ac_cv_c_restrict in
27532    restrict) ;;
27533    no) $as_echo "#define restrict /**/" >>confdefs.h
27534  ;;
27535    *)  cat >>confdefs.h <<_ACEOF
27536 #define restrict $ac_cv_c_restrict
27537 _ACEOF
27538  ;;
27539  esac
27540
27541
27542 # The cast to long int works around a bug in the HP C Compiler
27543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27545 # This bug is HP SR number 8606223364.
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27547 $as_echo_n "checking size of char... " >&6; }
27548 if ${ac_cv_sizeof_char+:} false; then :
27549   $as_echo_n "(cached) " >&6
27550 else
27551   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27552
27553 else
27554   if test "$ac_cv_type_char" = yes; then
27555      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27557 as_fn_error 77 "cannot compute sizeof (char)
27558 See \`config.log' for more details" "$LINENO" 5; }
27559    else
27560      ac_cv_sizeof_char=0
27561    fi
27562 fi
27563
27564 fi
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27566 $as_echo "$ac_cv_sizeof_char" >&6; }
27567
27568
27569
27570 cat >>confdefs.h <<_ACEOF
27571 #define SIZEOF_CHAR $ac_cv_sizeof_char
27572 _ACEOF
27573
27574
27575 # The cast to long int works around a bug in the HP C Compiler
27576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27578 # This bug is HP SR number 8606223364.
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27580 $as_echo_n "checking size of short int... " >&6; }
27581 if ${ac_cv_sizeof_short_int+:} false; then :
27582   $as_echo_n "(cached) " >&6
27583 else
27584   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27585
27586 else
27587   if test "$ac_cv_type_short_int" = yes; then
27588      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27590 as_fn_error 77 "cannot compute sizeof (short int)
27591 See \`config.log' for more details" "$LINENO" 5; }
27592    else
27593      ac_cv_sizeof_short_int=0
27594    fi
27595 fi
27596
27597 fi
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27599 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27600
27601
27602
27603 cat >>confdefs.h <<_ACEOF
27604 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27605 _ACEOF
27606
27607
27608 # The cast to long int works around a bug in the HP C Compiler
27609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27611 # This bug is HP SR number 8606223364.
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27613 $as_echo_n "checking size of int... " >&6; }
27614 if ${ac_cv_sizeof_int+:} false; then :
27615   $as_echo_n "(cached) " >&6
27616 else
27617   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27618
27619 else
27620   if test "$ac_cv_type_int" = yes; then
27621      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27623 as_fn_error 77 "cannot compute sizeof (int)
27624 See \`config.log' for more details" "$LINENO" 5; }
27625    else
27626      ac_cv_sizeof_int=0
27627    fi
27628 fi
27629
27630 fi
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27632 $as_echo "$ac_cv_sizeof_int" >&6; }
27633
27634
27635
27636 cat >>confdefs.h <<_ACEOF
27637 #define SIZEOF_INT $ac_cv_sizeof_int
27638 _ACEOF
27639
27640
27641 # The cast to long int works around a bug in the HP C Compiler
27642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27644 # This bug is HP SR number 8606223364.
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27646 $as_echo_n "checking size of long int... " >&6; }
27647 if ${ac_cv_sizeof_long_int+:} false; then :
27648   $as_echo_n "(cached) " >&6
27649 else
27650   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27651
27652 else
27653   if test "$ac_cv_type_long_int" = yes; then
27654      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27656 as_fn_error 77 "cannot compute sizeof (long int)
27657 See \`config.log' for more details" "$LINENO" 5; }
27658    else
27659      ac_cv_sizeof_long_int=0
27660    fi
27661 fi
27662
27663 fi
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27665 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27666
27667
27668
27669 cat >>confdefs.h <<_ACEOF
27670 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27671 _ACEOF
27672
27673
27674 # The cast to long int works around a bug in the HP C Compiler
27675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27677 # This bug is HP SR number 8606223364.
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27679 $as_echo_n "checking size of long long int... " >&6; }
27680 if ${ac_cv_sizeof_long_long_int+:} false; then :
27681   $as_echo_n "(cached) " >&6
27682 else
27683   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27684
27685 else
27686   if test "$ac_cv_type_long_long_int" = yes; then
27687      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27689 as_fn_error 77 "cannot compute sizeof (long long int)
27690 See \`config.log' for more details" "$LINENO" 5; }
27691    else
27692      ac_cv_sizeof_long_long_int=0
27693    fi
27694 fi
27695
27696 fi
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27698 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27699
27700
27701
27702 cat >>confdefs.h <<_ACEOF
27703 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27704 _ACEOF
27705
27706
27707 # The cast to long int works around a bug in the HP C Compiler
27708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27710 # This bug is HP SR number 8606223364.
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27712 $as_echo_n "checking size of int *... " >&6; }
27713 if ${ac_cv_sizeof_int_p+:} false; then :
27714   $as_echo_n "(cached) " >&6
27715 else
27716   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27717
27718 else
27719   if test "$ac_cv_type_int_p" = yes; then
27720      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27722 as_fn_error 77 "cannot compute sizeof (int *)
27723 See \`config.log' for more details" "$LINENO" 5; }
27724    else
27725      ac_cv_sizeof_int_p=0
27726    fi
27727 fi
27728
27729 fi
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27731 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27732
27733
27734
27735 cat >>confdefs.h <<_ACEOF
27736 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27737 _ACEOF
27738
27739
27740
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27742 $as_echo_n "checking for u_int type... " >&6; }
27743 if ${ac_cv_have_u_int+:} false; then :
27744   $as_echo_n "(cached) " >&6
27745 else
27746
27747        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h.  */
27749
27750               #include <sys/types.h>
27751
27752 int
27753 main ()
27754 {
27755
27756               u_int a; a = 1;
27757
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 if ac_fn_c_try_compile "$LINENO"; then :
27763
27764               ac_cv_have_u_int="yes"
27765
27766 else
27767
27768               ac_cv_have_u_int="no"
27769
27770
27771 fi
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773
27774
27775 fi
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27777 $as_echo "$ac_cv_have_u_int" >&6; }
27778 if test "x$ac_cv_have_u_int" = "xyes" ; then
27779    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27780
27781    have_u_int=1
27782 fi
27783
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27785 $as_echo_n "checking for intmax_t type... " >&6; }
27786 if ${ac_cv_have_intmax_t+:} false; then :
27787   $as_echo_n "(cached) " >&6
27788 else
27789
27790        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h.  */
27792
27793               #include <sys/types.h>
27794
27795 int
27796 main ()
27797 {
27798
27799               intmax_t a; a = 1;
27800
27801   ;
27802   return 0;
27803 }
27804 _ACEOF
27805 if ac_fn_c_try_compile "$LINENO"; then :
27806
27807               ac_cv_have_intmax_t="yes"
27808
27809 else
27810
27811               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27812 /* end confdefs.h.  */
27813
27814                      #include <stdint.h>
27815
27816 int
27817 main ()
27818 {
27819
27820                      intmax_t a; a = 1;
27821
27822   ;
27823   return 0;
27824 }
27825 _ACEOF
27826 if ac_fn_c_try_compile "$LINENO"; then :
27827
27828                      ac_cv_have_intmax_t="yes"
27829
27830 else
27831
27832                      ac_cv_have_intmax_t="no"
27833
27834
27835 fi
27836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27837
27838
27839 fi
27840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27841
27842
27843 fi
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27845 $as_echo "$ac_cv_have_intmax_t" >&6; }
27846 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27847    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27848
27849    have_intmax_t=1
27850 fi
27851
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27853 $as_echo_n "checking for u_intmax_t type... " >&6; }
27854 if ${ac_cv_have_u_intmax_t+:} false; then :
27855   $as_echo_n "(cached) " >&6
27856 else
27857
27858        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27859 /* end confdefs.h.  */
27860
27861               #include <sys/types.h>
27862
27863 int
27864 main ()
27865 {
27866
27867               u_intmax_t a; a = 1;
27868
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 if ac_fn_c_try_compile "$LINENO"; then :
27874
27875               ac_cv_have_u_intmax_t="yes"
27876
27877 else
27878
27879               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27880 /* end confdefs.h.  */
27881
27882                      #include <stdint.h>
27883
27884 int
27885 main ()
27886 {
27887
27888                     u_intmax_t a; a = 1;
27889
27890   ;
27891   return 0;
27892 }
27893 _ACEOF
27894 if ac_fn_c_try_compile "$LINENO"; then :
27895
27896                     ac_cv_have_u_intmax_t="yes"
27897
27898 else
27899
27900                     ac_cv_have_u_intmax_t="no"
27901
27902
27903 fi
27904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27905
27906
27907 fi
27908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27909
27910
27911 fi
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27913 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27914 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27915    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27916
27917    have_u_intmax_t=1
27918 fi
27919
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27921 $as_echo_n "checking for intXX_t types... " >&6; }
27922 if ${ac_cv_have_intxx_t+:} false; then :
27923   $as_echo_n "(cached) " >&6
27924 else
27925
27926        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27927 /* end confdefs.h.  */
27928
27929               #include <sys/types.h>
27930
27931 int
27932 main ()
27933 {
27934
27935               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27936
27937   ;
27938   return 0;
27939 }
27940 _ACEOF
27941 if ac_fn_c_try_compile "$LINENO"; then :
27942
27943               ac_cv_have_intxx_t="yes"
27944
27945 else
27946
27947               ac_cv_have_intxx_t="no"
27948
27949
27950 fi
27951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27952
27953
27954 fi
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27956 $as_echo "$ac_cv_have_intxx_t" >&6; }
27957 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27958    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27959
27960    have_intxx_t=1
27961 fi
27962
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27964 $as_echo_n "checking for int64_t type... " >&6; }
27965 if ${ac_cv_have_int64_t+:} false; then :
27966   $as_echo_n "(cached) " >&6
27967 else
27968
27969        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27970 /* end confdefs.h.  */
27971
27972               #include <sys/types.h>
27973
27974 int
27975 main ()
27976 {
27977
27978               int64_t a; a = 1;
27979
27980   ;
27981   return 0;
27982 }
27983 _ACEOF
27984 if ac_fn_c_try_compile "$LINENO"; then :
27985
27986               ac_cv_have_int64_t="yes"
27987
27988 else
27989
27990               ac_cv_have_int64_t="no"
27991
27992
27993 fi
27994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27995
27996
27997 fi
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27999 $as_echo "$ac_cv_have_int64_t" >&6; }
28000 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28001    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28002
28003    have_int64_t=1
28004 fi
28005
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28007 $as_echo_n "checking for u_intXX_t types... " >&6; }
28008 if ${ac_cv_have_u_intxx_t+:} false; then :
28009   $as_echo_n "(cached) " >&6
28010 else
28011
28012        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28013 /* end confdefs.h.  */
28014
28015               #include <sys/types.h>
28016
28017 int
28018 main ()
28019 {
28020
28021               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28022
28023   ;
28024   return 0;
28025 }
28026 _ACEOF
28027 if ac_fn_c_try_compile "$LINENO"; then :
28028
28029              ac_cv_have_u_intxx_t="yes"
28030
28031 else
28032
28033              ac_cv_have_u_intxx_t="no"
28034
28035
28036 fi
28037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28038
28039
28040 fi
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28042 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28043 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28044    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28045
28046    have_u_intxx_t=1
28047 fi
28048
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28050 $as_echo_n "checking for u_int64_t types... " >&6; }
28051 if ${ac_cv_have_u_int64_t+:} false; then :
28052   $as_echo_n "(cached) " >&6
28053 else
28054
28055        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28056 /* end confdefs.h.  */
28057
28058               #include <sys/types.h>
28059
28060 int
28061 main ()
28062 {
28063
28064               u_int64_t a; a = 1;
28065
28066   ;
28067   return 0;
28068 }
28069 _ACEOF
28070 if ac_fn_c_try_compile "$LINENO"; then :
28071
28072              ac_cv_have_u_int64_t="yes"
28073
28074 else
28075
28076              ac_cv_have_u_int64_t="no"
28077
28078
28079 fi
28080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28081
28082
28083 fi
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28085 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28086 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28087    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28088
28089    have_u_int64_t=1
28090 fi
28091
28092 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28093     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28094 then
28095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28096 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28097    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098 /* end confdefs.h.  */
28099
28100           #include <sys/bitypes.h>
28101
28102 int
28103 main ()
28104 {
28105
28106           int8_t a; int16_t b; int32_t c;
28107           u_int8_t e; u_int16_t f; u_int32_t g;
28108           a = b = c = e = f = g = 1;
28109
28110   ;
28111   return 0;
28112 }
28113 _ACEOF
28114 if ac_fn_c_try_compile "$LINENO"; then :
28115
28116           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28117
28118           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28119
28120           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28121
28122           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28123 $as_echo "yes" >&6; }
28124
28125 else
28126
28127           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28128 $as_echo "no" >&6; }
28129
28130
28131 fi
28132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28133 fi
28134
28135 if test -z "$have_u_intxx_t" ; then
28136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28137 $as_echo_n "checking for uintXX_t types... " >&6; }
28138 if ${ac_cv_have_uintxx_t+:} false; then :
28139   $as_echo_n "(cached) " >&6
28140 else
28141
28142           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28143 /* end confdefs.h.  */
28144
28145                  #include <sys/types.h>
28146
28147 int
28148 main ()
28149 {
28150
28151                  uint8_t a; uint16_t b;
28152                  uint32_t c; a = b = c = 1;
28153
28154   ;
28155   return 0;
28156 }
28157 _ACEOF
28158 if ac_fn_c_try_compile "$LINENO"; then :
28159
28160                 ac_cv_have_uintxx_t="yes"
28161
28162 else
28163
28164                 ac_cv_have_uintxx_t="no"
28165
28166
28167 fi
28168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28169
28170
28171 fi
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28173 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28174    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28175       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28176
28177    fi
28178 fi
28179
28180 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28181     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28182 then
28183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28184 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28186 /* end confdefs.h.  */
28187
28188           #include <sys/bitypes.h>
28189
28190 int
28191 main ()
28192 {
28193
28194           int64_t a; u_int64_t b;
28195           a = b = 1;
28196
28197   ;
28198   return 0;
28199 }
28200 _ACEOF
28201 if ac_fn_c_try_compile "$LINENO"; then :
28202
28203           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28204
28205           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28206
28207           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28208 $as_echo "yes" >&6; }
28209
28210 else
28211
28212           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28213 $as_echo "no" >&6; }
28214
28215
28216 fi
28217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28218 fi
28219
28220 if (test -z "$have_uintxx_t" && \
28221     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28222 then
28223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28224 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28225    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28226 /* end confdefs.h.  */
28227
28228           #include <sys/bitypes.h>
28229
28230 int
28231 main ()
28232 {
28233
28234           uint8_t a; uint16_t b;
28235           uint32_t c; a = b = c = 1;
28236
28237   ;
28238   return 0;
28239 }
28240 _ACEOF
28241 if ac_fn_c_try_compile "$LINENO"; then :
28242
28243           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28244
28245           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28246 $as_echo "yes" >&6; }
28247
28248 else
28249
28250           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28251 $as_echo "no" >&6; }
28252
28253
28254 fi
28255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256 fi
28257
28258 for ac_func in \
28259    fork \
28260    getcwd \
28261    gethostname \
28262    getpid \
28263    gettimeofday \
28264    setpgid \
28265    setpgrp \
28266    setsid \
28267    signal \
28268    strerror \
28269    strncmp \
28270    strncpy \
28271    vfprintf \
28272
28273 do :
28274   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28275 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28276 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28277   cat >>confdefs.h <<_ACEOF
28278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28279 _ACEOF
28280
28281 else
28282   echo 'configure: cannot find needed function.'; exit 1
28283
28284 fi
28285 done
28286
28287
28288 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28289
28290 "
28291 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28292
28293 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28294
28295 fi
28296
28297
28298 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28299
28300 "
28301 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28302
28303 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28304
28305 fi
28306
28307
28308 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28309 if test "x$ac_cv_func_closefrom" = xyes; then :
28310
28311 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28312
28313 fi
28314
28315 for ac_func in getpagesize
28316 do :
28317   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28318 if test "x$ac_cv_func_getpagesize" = xyes; then :
28319   cat >>confdefs.h <<_ACEOF
28320 #define HAVE_GETPAGESIZE 1
28321 _ACEOF
28322
28323 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28324
28325 fi
28326 done
28327
28328 for ac_func in malloc_trim
28329 do :
28330   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28331 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28332   cat >>confdefs.h <<_ACEOF
28333 #define HAVE_MALLOC_TRIM 1
28334 _ACEOF
28335
28336 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28337
28338 fi
28339 done
28340
28341
28342 for ac_func in fchdir
28343 do :
28344   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28345 if test "x$ac_cv_func_fchdir" = xyes; then :
28346   cat >>confdefs.h <<_ACEOF
28347 #define HAVE_FCHDIR 1
28348 _ACEOF
28349  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28350
28351 fi
28352 done
28353
28354 for ac_func in strtoll
28355 do :
28356   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28357 if test "x$ac_cv_func_strtoll" = xyes; then :
28358   cat >>confdefs.h <<_ACEOF
28359 #define HAVE_STRTOLL 1
28360 _ACEOF
28361  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28362
28363 fi
28364 done
28365
28366 for ac_func in posix_fadvise
28367 do :
28368   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28369 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28370   cat >>confdefs.h <<_ACEOF
28371 #define HAVE_POSIX_FADVISE 1
28372 _ACEOF
28373
28374 fi
28375 done
28376
28377 for ac_func in posix_fallocate
28378 do :
28379   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28380 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28381   cat >>confdefs.h <<_ACEOF
28382 #define HAVE_POSIX_FALLOCATE 1
28383 _ACEOF
28384
28385 fi
28386 done
28387
28388 for ac_func in fdatasync
28389 do :
28390   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28391 if test "x$ac_cv_func_fdatasync" = xyes; then :
28392   cat >>confdefs.h <<_ACEOF
28393 #define HAVE_FDATASYNC 1
28394 _ACEOF
28395
28396 fi
28397 done
28398
28399
28400 for ac_func in chflags
28401 do :
28402   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28403 if test "x$ac_cv_func_chflags" = xyes; then :
28404   cat >>confdefs.h <<_ACEOF
28405 #define HAVE_CHFLAGS 1
28406 _ACEOF
28407
28408 fi
28409 done
28410
28411
28412 for ac_func in snprintf vsnprintf gethostid fseeko
28413 do :
28414   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28417   cat >>confdefs.h <<_ACEOF
28418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28419 _ACEOF
28420
28421 fi
28422 done
28423
28424
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28426 $as_echo_n "checking for va_copy... " >&6; }
28427 if ${ba_cv_va_copy+:} false; then :
28428   $as_echo_n "(cached) " >&6
28429 else
28430
28431        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28432 /* end confdefs.h.  */
28433
28434               #include <stdarg.h>
28435               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28436               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28437
28438 int
28439 main ()
28440 {
28441
28442               call_use_va_copy(1,2,3)
28443
28444   ;
28445   return 0;
28446 }
28447 _ACEOF
28448 if ac_fn_c_try_link "$LINENO"; then :
28449
28450               ba_cv_va_copy=yes
28451
28452 else
28453
28454               ba_cv_va_copy=no
28455
28456
28457 fi
28458 rm -f core conftest.err conftest.$ac_objext \
28459     conftest$ac_exeext conftest.$ac_ext
28460
28461
28462 fi
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28464 $as_echo "$ba_cv_va_copy" >&6; }
28465 test $ba_cv_va_copy = yes &&
28466 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28467
28468
28469 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28470 do :
28471   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28472 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28473 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28474   cat >>confdefs.h <<_ACEOF
28475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28476 _ACEOF
28477
28478 fi
28479 done
28480
28481
28482 # If resolver functions are not in libc check for -lnsl or -lresolv.
28483 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28484 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28486 $as_echo "using libc's resolver" >&6; }
28487 else
28488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28489 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28490 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28491   $as_echo_n "(cached) " >&6
28492 else
28493   ac_check_lib_save_LIBS=$LIBS
28494 LIBS="-lnsl  $LIBS"
28495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28496 /* end confdefs.h.  */
28497
28498 /* Override any GCC internal prototype to avoid an error.
28499    Use char because int might match the return type of a GCC
28500    builtin and then its argument prototype would still apply.  */
28501 #ifdef __cplusplus
28502 extern "C"
28503 #endif
28504 char gethostbyname_r ();
28505 int
28506 main ()
28507 {
28508 return gethostbyname_r ();
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 if ac_fn_c_try_link "$LINENO"; then :
28514   ac_cv_lib_nsl_gethostbyname_r=yes
28515 else
28516   ac_cv_lib_nsl_gethostbyname_r=no
28517 fi
28518 rm -f core conftest.err conftest.$ac_objext \
28519     conftest$ac_exeext conftest.$ac_ext
28520 LIBS=$ac_check_lib_save_LIBS
28521 fi
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28523 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28524 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28525   cat >>confdefs.h <<_ACEOF
28526 #define HAVE_LIBNSL 1
28527 _ACEOF
28528
28529   LIBS="-lnsl $LIBS"
28530
28531 fi
28532
28533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28534 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28535 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28536   $as_echo_n "(cached) " >&6
28537 else
28538   ac_check_lib_save_LIBS=$LIBS
28539 LIBS="-lresolv  $LIBS"
28540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28541 /* end confdefs.h.  */
28542
28543 /* Override any GCC internal prototype to avoid an error.
28544    Use char because int might match the return type of a GCC
28545    builtin and then its argument prototype would still apply.  */
28546 #ifdef __cplusplus
28547 extern "C"
28548 #endif
28549 char gethostbyname_r ();
28550 int
28551 main ()
28552 {
28553 return gethostbyname_r ();
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 if ac_fn_c_try_link "$LINENO"; then :
28559   ac_cv_lib_resolv_gethostbyname_r=yes
28560 else
28561   ac_cv_lib_resolv_gethostbyname_r=no
28562 fi
28563 rm -f core conftest.err conftest.$ac_objext \
28564     conftest$ac_exeext conftest.$ac_ext
28565 LIBS=$ac_check_lib_save_LIBS
28566 fi
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28568 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28569 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28570   cat >>confdefs.h <<_ACEOF
28571 #define HAVE_LIBRESOLV 1
28572 _ACEOF
28573
28574   LIBS="-lresolv $LIBS"
28575
28576 fi
28577
28578 fi
28579
28580
28581 for ac_func in inet_pton
28582 do :
28583   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28584 if test "x$ac_cv_func_inet_pton" = xyes; then :
28585   cat >>confdefs.h <<_ACEOF
28586 #define HAVE_INET_PTON 1
28587 _ACEOF
28588  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28589
28590 fi
28591 done
28592
28593 for ac_func in inet_ntop
28594 do :
28595   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28596 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28597   cat >>confdefs.h <<_ACEOF
28598 #define HAVE_INET_NTOP 1
28599 _ACEOF
28600  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28601
28602 fi
28603 done
28604
28605 for ac_func in gethostbyname2
28606 do :
28607   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28608 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28609   cat >>confdefs.h <<_ACEOF
28610 #define HAVE_GETHOSTBYNAME2 1
28611 _ACEOF
28612  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28613
28614 fi
28615 done
28616
28617 for ac_func in getnameinfo
28618 do :
28619   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28620 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28621   cat >>confdefs.h <<_ACEOF
28622 #define HAVE_GETNAMEINFO 1
28623 _ACEOF
28624  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28625
28626 fi
28627 done
28628
28629
28630
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28632 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28633 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28634   $as_echo_n "(cached) " >&6
28635 else
28636
28637        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28638 /* end confdefs.h.  */
28639
28640               #include <sys/socket.h>
28641
28642 int
28643 main ()
28644 {
28645
28646               struct sockaddr s; s.sa_len;
28647
28648   ;
28649   return 0;
28650 }
28651 _ACEOF
28652 if ac_fn_c_try_compile "$LINENO"; then :
28653
28654              ac_cv_struct_sockaddr_sa_len=yes
28655
28656 else
28657   ac_cv_struct_sockaddr_sa_len=no
28658
28659
28660 fi
28661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28662
28663
28664 fi
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28666 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28667
28668 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28669
28670 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28671
28672 fi
28673
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28675 $as_echo_n "checking for working getaddrinfo... " >&6; }
28676 if ${ac_cv_working_getaddrinfo+:} false; then :
28677   $as_echo_n "(cached) " >&6
28678 else
28679
28680        if test "$cross_compiling" = yes; then :
28681
28682               ac_cv_working_getaddrinfo="yes"
28683
28684
28685 else
28686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28687 /* end confdefs.h.  */
28688
28689               #include <netdb.h>
28690               #include <string.h>
28691               #include <sys/types.h>
28692               #include <sys/socket.h>
28693
28694               void main(void) {
28695                   struct addrinfo hints, *ai;
28696                   int error;
28697
28698                   memset(&hints, 0, sizeof(hints));
28699                   hints.ai_family = AF_UNSPEC;
28700                   hints.ai_socktype = SOCK_STREAM;
28701                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28702                   if (error) {
28703                       exit(1);
28704                   }
28705                   if (ai->ai_addr->sa_family != AF_INET) {
28706                       exit(1);
28707                   }
28708                   exit(0);
28709               }
28710
28711 _ACEOF
28712 if ac_fn_c_try_run "$LINENO"; then :
28713
28714               ac_cv_working_getaddrinfo="yes"
28715
28716 else
28717
28718               ac_cv_working_getaddrinfo="no"
28719
28720 fi
28721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28722   conftest.$ac_objext conftest.beam conftest.$ac_ext
28723 fi
28724
28725
28726
28727 fi
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28729 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28730 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28731 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28732
28733 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28734
28735 fi
28736
28737
28738 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28739   if test "$ac_cv_func_gai_strerror" != "yes"; then
28740     ac_cv_working_getaddrinfo="no"
28741   else
28742
28743 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28744
28745   fi
28746 fi
28747
28748 for ac_func in strftime
28749 do :
28750   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28751 if test "x$ac_cv_func_strftime" = xyes; then :
28752   cat >>confdefs.h <<_ACEOF
28753 #define HAVE_STRFTIME 1
28754 _ACEOF
28755
28756 else
28757   # strftime is in -lintl on SCO UNIX.
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28759 $as_echo_n "checking for strftime in -lintl... " >&6; }
28760 if ${ac_cv_lib_intl_strftime+:} false; then :
28761   $as_echo_n "(cached) " >&6
28762 else
28763   ac_check_lib_save_LIBS=$LIBS
28764 LIBS="-lintl  $LIBS"
28765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28766 /* end confdefs.h.  */
28767
28768 /* Override any GCC internal prototype to avoid an error.
28769    Use char because int might match the return type of a GCC
28770    builtin and then its argument prototype would still apply.  */
28771 #ifdef __cplusplus
28772 extern "C"
28773 #endif
28774 char strftime ();
28775 int
28776 main ()
28777 {
28778 return strftime ();
28779   ;
28780   return 0;
28781 }
28782 _ACEOF
28783 if ac_fn_c_try_link "$LINENO"; then :
28784   ac_cv_lib_intl_strftime=yes
28785 else
28786   ac_cv_lib_intl_strftime=no
28787 fi
28788 rm -f core conftest.err conftest.$ac_objext \
28789     conftest$ac_exeext conftest.$ac_ext
28790 LIBS=$ac_check_lib_save_LIBS
28791 fi
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28793 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28794 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28795   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28796
28797 LIBS="-lintl $LIBS"
28798 fi
28799
28800 fi
28801 done
28802
28803 for ac_func in vprintf
28804 do :
28805   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28806 if test "x$ac_cv_func_vprintf" = xyes; then :
28807   cat >>confdefs.h <<_ACEOF
28808 #define HAVE_VPRINTF 1
28809 _ACEOF
28810
28811 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28812 if test "x$ac_cv_func__doprnt" = xyes; then :
28813
28814 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28815
28816 fi
28817
28818 fi
28819 done
28820
28821
28822 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28823 # for constant arguments.  Useless!
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28825 $as_echo_n "checking for working alloca.h... " >&6; }
28826 if ${ac_cv_working_alloca_h+:} false; then :
28827   $as_echo_n "(cached) " >&6
28828 else
28829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28830 /* end confdefs.h.  */
28831 #include <alloca.h>
28832 int
28833 main ()
28834 {
28835 char *p = (char *) alloca (2 * sizeof (int));
28836                           if (p) return 0;
28837   ;
28838   return 0;
28839 }
28840 _ACEOF
28841 if ac_fn_c_try_link "$LINENO"; then :
28842   ac_cv_working_alloca_h=yes
28843 else
28844   ac_cv_working_alloca_h=no
28845 fi
28846 rm -f core conftest.err conftest.$ac_objext \
28847     conftest$ac_exeext conftest.$ac_ext
28848 fi
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28850 $as_echo "$ac_cv_working_alloca_h" >&6; }
28851 if test $ac_cv_working_alloca_h = yes; then
28852
28853 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28854
28855 fi
28856
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28858 $as_echo_n "checking for alloca... " >&6; }
28859 if ${ac_cv_func_alloca_works+:} false; then :
28860   $as_echo_n "(cached) " >&6
28861 else
28862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28863 /* end confdefs.h.  */
28864 #ifdef __GNUC__
28865 # define alloca __builtin_alloca
28866 #else
28867 # ifdef _MSC_VER
28868 #  include <malloc.h>
28869 #  define alloca _alloca
28870 # else
28871 #  ifdef HAVE_ALLOCA_H
28872 #   include <alloca.h>
28873 #  else
28874 #   ifdef _AIX
28875  #pragma alloca
28876 #   else
28877 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28878 void *alloca (size_t);
28879 #    endif
28880 #   endif
28881 #  endif
28882 # endif
28883 #endif
28884
28885 int
28886 main ()
28887 {
28888 char *p = (char *) alloca (1);
28889                                     if (p) return 0;
28890   ;
28891   return 0;
28892 }
28893 _ACEOF
28894 if ac_fn_c_try_link "$LINENO"; then :
28895   ac_cv_func_alloca_works=yes
28896 else
28897   ac_cv_func_alloca_works=no
28898 fi
28899 rm -f core conftest.err conftest.$ac_objext \
28900     conftest$ac_exeext conftest.$ac_ext
28901 fi
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28903 $as_echo "$ac_cv_func_alloca_works" >&6; }
28904
28905 if test $ac_cv_func_alloca_works = yes; then
28906
28907 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28908
28909 else
28910   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28911 # that cause trouble.  Some versions do not even contain alloca or
28912 # contain a buggy version.  If you still want to use their alloca,
28913 # use ar to extract alloca.o from them instead of compiling alloca.c.
28914
28915 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28916
28917 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28918
28919
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28921 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28922 if ${ac_cv_os_cray+:} false; then :
28923   $as_echo_n "(cached) " >&6
28924 else
28925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28926 /* end confdefs.h.  */
28927 #if defined CRAY && ! defined CRAY2
28928 webecray
28929 #else
28930 wenotbecray
28931 #endif
28932
28933 _ACEOF
28934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28935   $EGREP "webecray" >/dev/null 2>&1; then :
28936   ac_cv_os_cray=yes
28937 else
28938   ac_cv_os_cray=no
28939 fi
28940 rm -f conftest*
28941
28942 fi
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28944 $as_echo "$ac_cv_os_cray" >&6; }
28945 if test $ac_cv_os_cray = yes; then
28946   for ac_func in _getb67 GETB67 getb67; do
28947     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28948 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28949 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28950
28951 cat >>confdefs.h <<_ACEOF
28952 #define CRAY_STACKSEG_END $ac_func
28953 _ACEOF
28954
28955     break
28956 fi
28957
28958   done
28959 fi
28960
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28962 $as_echo_n "checking stack direction for C alloca... " >&6; }
28963 if ${ac_cv_c_stack_direction+:} false; then :
28964   $as_echo_n "(cached) " >&6
28965 else
28966   if test "$cross_compiling" = yes; then :
28967   ac_cv_c_stack_direction=0
28968 else
28969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28970 /* end confdefs.h.  */
28971 $ac_includes_default
28972 int
28973 find_stack_direction (int *addr, int depth)
28974 {
28975   int dir, dummy = 0;
28976   if (! addr)
28977     addr = &dummy;
28978   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28979   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28980   return dir + dummy;
28981 }
28982
28983 int
28984 main (int argc, char **argv)
28985 {
28986   return find_stack_direction (0, argc + !argv + 20) < 0;
28987 }
28988 _ACEOF
28989 if ac_fn_c_try_run "$LINENO"; then :
28990   ac_cv_c_stack_direction=1
28991 else
28992   ac_cv_c_stack_direction=-1
28993 fi
28994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28995   conftest.$ac_objext conftest.beam conftest.$ac_ext
28996 fi
28997
28998 fi
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29000 $as_echo "$ac_cv_c_stack_direction" >&6; }
29001 cat >>confdefs.h <<_ACEOF
29002 #define STACK_DIRECTION $ac_cv_c_stack_direction
29003 _ACEOF
29004
29005
29006 fi
29007
29008 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29009 # -lseq on Dynix/PTX, -lgen on Unixware.
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29011 $as_echo_n "checking for library containing getmntent... " >&6; }
29012 if ${ac_cv_search_getmntent+:} false; then :
29013   $as_echo_n "(cached) " >&6
29014 else
29015   ac_func_search_save_LIBS=$LIBS
29016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29017 /* end confdefs.h.  */
29018
29019 /* Override any GCC internal prototype to avoid an error.
29020    Use char because int might match the return type of a GCC
29021    builtin and then its argument prototype would still apply.  */
29022 #ifdef __cplusplus
29023 extern "C"
29024 #endif
29025 char getmntent ();
29026 int
29027 main ()
29028 {
29029 return getmntent ();
29030   ;
29031   return 0;
29032 }
29033 _ACEOF
29034 for ac_lib in '' sun seq gen; do
29035   if test -z "$ac_lib"; then
29036     ac_res="none required"
29037   else
29038     ac_res=-l$ac_lib
29039     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29040   fi
29041   if ac_fn_c_try_link "$LINENO"; then :
29042   ac_cv_search_getmntent=$ac_res
29043 fi
29044 rm -f core conftest.err conftest.$ac_objext \
29045     conftest$ac_exeext
29046   if ${ac_cv_search_getmntent+:} false; then :
29047   break
29048 fi
29049 done
29050 if ${ac_cv_search_getmntent+:} false; then :
29051
29052 else
29053   ac_cv_search_getmntent=no
29054 fi
29055 rm conftest.$ac_ext
29056 LIBS=$ac_func_search_save_LIBS
29057 fi
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29059 $as_echo "$ac_cv_search_getmntent" >&6; }
29060 ac_res=$ac_cv_search_getmntent
29061 if test "$ac_res" != no; then :
29062   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29063   ac_cv_func_getmntent=yes
29064
29065 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29066
29067 else
29068   ac_cv_func_getmntent=no
29069 fi
29070
29071
29072 for ac_func in getmntinfo
29073 do :
29074   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29075 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29076   cat >>confdefs.h <<_ACEOF
29077 #define HAVE_GETMNTINFO 1
29078 _ACEOF
29079  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29080
29081 fi
29082 done
29083
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29085 $as_echo_n "checking whether closedir returns void... " >&6; }
29086 if ${ac_cv_func_closedir_void+:} false; then :
29087   $as_echo_n "(cached) " >&6
29088 else
29089   if test "$cross_compiling" = yes; then :
29090   ac_cv_func_closedir_void=yes
29091 else
29092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h.  */
29094 $ac_includes_default
29095 #include <$ac_header_dirent>
29096 #ifndef __cplusplus
29097 int closedir ();
29098 #endif
29099
29100 int
29101 main ()
29102 {
29103 return closedir (opendir (".")) != 0;
29104   ;
29105   return 0;
29106 }
29107 _ACEOF
29108 if ac_fn_c_try_run "$LINENO"; then :
29109   ac_cv_func_closedir_void=no
29110 else
29111   ac_cv_func_closedir_void=yes
29112 fi
29113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29114   conftest.$ac_objext conftest.beam conftest.$ac_ext
29115 fi
29116
29117 fi
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29119 $as_echo "$ac_cv_func_closedir_void" >&6; }
29120 if test $ac_cv_func_closedir_void = yes; then
29121
29122 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29123
29124 fi
29125
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29127 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29128 if ${ac_cv_func_setpgrp_void+:} false; then :
29129   $as_echo_n "(cached) " >&6
29130 else
29131   if test "$cross_compiling" = yes; then :
29132   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29133 else
29134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29135 /* end confdefs.h.  */
29136 $ac_includes_default
29137 int
29138 main ()
29139 {
29140 /* If this system has a BSD-style setpgrp which takes arguments,
29141   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29142   exit successfully. */
29143   return setpgrp (1,1) != -1;
29144   ;
29145   return 0;
29146 }
29147 _ACEOF
29148 if ac_fn_c_try_run "$LINENO"; then :
29149   ac_cv_func_setpgrp_void=no
29150 else
29151   ac_cv_func_setpgrp_void=yes
29152 fi
29153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29154   conftest.$ac_objext conftest.beam conftest.$ac_ext
29155 fi
29156
29157 fi
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29159 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29160 if test $ac_cv_func_setpgrp_void = yes; then
29161
29162 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29163
29164 fi
29165             # AC_FUNC_FNMATCH    dnl use local version
29166
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29168 $as_echo_n "checking for gettext in -lintl... " >&6; }
29169 if ${ac_cv_lib_intl_gettext+:} false; then :
29170   $as_echo_n "(cached) " >&6
29171 else
29172   ac_check_lib_save_LIBS=$LIBS
29173 LIBS="-lintl  $LIBS"
29174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29175 /* end confdefs.h.  */
29176
29177 /* Override any GCC internal prototype to avoid an error.
29178    Use char because int might match the return type of a GCC
29179    builtin and then its argument prototype would still apply.  */
29180 #ifdef __cplusplus
29181 extern "C"
29182 #endif
29183 char gettext ();
29184 int
29185 main ()
29186 {
29187 return gettext ();
29188   ;
29189   return 0;
29190 }
29191 _ACEOF
29192 if ac_fn_c_try_link "$LINENO"; then :
29193   ac_cv_lib_intl_gettext=yes
29194 else
29195   ac_cv_lib_intl_gettext=no
29196 fi
29197 rm -f core conftest.err conftest.$ac_objext \
29198     conftest$ac_exeext conftest.$ac_ext
29199 LIBS=$ac_check_lib_save_LIBS
29200 fi
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29202 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29203 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29204   LIBS="$LIBS -lintl"
29205 fi
29206
29207
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29209 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29210 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29211   $as_echo_n "(cached) " >&6
29212 else
29213   ac_check_lib_save_LIBS=$LIBS
29214 LIBS="-lsun  $LIBS"
29215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29216 /* end confdefs.h.  */
29217
29218 /* Override any GCC internal prototype to avoid an error.
29219    Use char because int might match the return type of a GCC
29220    builtin and then its argument prototype would still apply.  */
29221 #ifdef __cplusplus
29222 extern "C"
29223 #endif
29224 char getpwnam ();
29225 int
29226 main ()
29227 {
29228 return getpwnam ();
29229   ;
29230   return 0;
29231 }
29232 _ACEOF
29233 if ac_fn_c_try_link "$LINENO"; then :
29234   ac_cv_lib_sun_getpwnam=yes
29235 else
29236   ac_cv_lib_sun_getpwnam=no
29237 fi
29238 rm -f core conftest.err conftest.$ac_objext \
29239     conftest$ac_exeext conftest.$ac_ext
29240 LIBS=$ac_check_lib_save_LIBS
29241 fi
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29243 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29244 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29245   cat >>confdefs.h <<_ACEOF
29246 #define HAVE_LIBSUN 1
29247 _ACEOF
29248
29249   LIBS="-lsun $LIBS"
29250
29251 fi
29252
29253
29254 for ac_header in zlib.h
29255 do :
29256   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29257 if test "x$ac_cv_header_zlib_h" = xyes; then :
29258   cat >>confdefs.h <<_ACEOF
29259 #define HAVE_ZLIB_H 1
29260 _ACEOF
29261
29262 fi
29263
29264 done
29265
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29267 $as_echo_n "checking for deflate in -lz... " >&6; }
29268 if ${ac_cv_lib_z_deflate+:} false; then :
29269   $as_echo_n "(cached) " >&6
29270 else
29271   ac_check_lib_save_LIBS=$LIBS
29272 LIBS="-lz  $LIBS"
29273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29274 /* end confdefs.h.  */
29275
29276 /* Override any GCC internal prototype to avoid an error.
29277    Use char because int might match the return type of a GCC
29278    builtin and then its argument prototype would still apply.  */
29279 #ifdef __cplusplus
29280 extern "C"
29281 #endif
29282 char deflate ();
29283 int
29284 main ()
29285 {
29286 return deflate ();
29287   ;
29288   return 0;
29289 }
29290 _ACEOF
29291 if ac_fn_c_try_link "$LINENO"; then :
29292   ac_cv_lib_z_deflate=yes
29293 else
29294   ac_cv_lib_z_deflate=no
29295 fi
29296 rm -f core conftest.err conftest.$ac_objext \
29297     conftest$ac_exeext conftest.$ac_ext
29298 LIBS=$ac_check_lib_save_LIBS
29299 fi
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29301 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29302 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29303   ZLIBS="-lz"
29304 fi
29305
29306 have_zlib=no
29307 if test x$ZLIBS = x-lz; then
29308    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29309
29310    have_zlib=yes
29311 fi
29312
29313
29314 AFS_CFLAGS=""
29315 AFS_LIBS=""
29316 support_afs=auto
29317 # Check whether --enable-afs was given.
29318 if test "${enable_afs+set}" = set; then :
29319   enableval=$enable_afs;
29320        if test x$enableval = xyes; then
29321           support_afs=yes
29322        elif test x$enableval = xno; then
29323           support_afs=no
29324        fi
29325
29326
29327 fi
29328
29329
29330 have_afs=no
29331 if test x$support_afs = xyes -o x$support_afs = xauto; then
29332
29333 # Check whether --with-afsdir was given.
29334 if test "${with_afsdir+set}" = set; then :
29335   withval=$with_afsdir; with_afsdir=$withval
29336
29337 fi
29338
29339
29340             if test x$with_afsdir = x; then
29341       for root in /usr /usr/local; do
29342          if test -d ${root}/include/afs/ ; then
29343             with_afsdir=${root}
29344             break
29345          fi
29346          if test -d ${root}/include/openafs/afs/ ; then
29347             with_afsdir=${root}
29348             break
29349          fi
29350       done
29351    fi
29352
29353    if test -d ${with_afsdir}/include/afs/ ; then
29354       AFS_CFLAGS="-I${with_afsdir}/include"
29355    else
29356       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29357          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29358       fi
29359    fi
29360
29361    saved_CFLAGS="${CFLAGS}"
29362    saved_CPPFLAGS="${CPPFLAGS}"
29363    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29364    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29365
29366    for ac_header in afs/afsint.h
29367 do :
29368   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29369 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29370   cat >>confdefs.h <<_ACEOF
29371 #define HAVE_AFS_AFSINT_H 1
29372 _ACEOF
29373
29374 fi
29375
29376 done
29377
29378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29379 /* end confdefs.h.  */
29380
29381           #include <afs/afsint.h>
29382           #include <afs/venus.h>
29383
29384 _ACEOF
29385 if ac_fn_c_try_cpp "$LINENO"; then :
29386
29387 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29388
29389
29390 fi
29391 rm -f conftest.err conftest.i conftest.$ac_ext
29392
29393    CFLAGS="${saved_CFLAGS}"
29394    CPPFLAGS="${saved_CPPFLAGS}"
29395
29396             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29397 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29398    for dir in ${with_afsdir}/lib \
29399               ${with_afsdir}/lib/afs \
29400               ${with_afsdir}/lib/openafs \
29401               ${with_afsdir}/lib64 \
29402               ${with_afsdir}/lib64/afs \
29403               ${with_afsdir}/lib64/openafs
29404    do
29405       for arch_type in .a .so
29406       do
29407          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29408          pkg=$?
29409          if test $pkg = 0; then
29410             have_afs=yes
29411             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29412             break
29413          fi
29414       done
29415    done
29416
29417    if test $have_afs = yes; then
29418       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29419 $as_echo "yes" >&6; }
29420    else
29421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29422 $as_echo "no" >&6; }
29423    fi
29424
29425    if test x$support_afs = xyes -a $have_afs != yes; then
29426       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29427   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29428    else
29429       if test $have_afs = yes; then
29430
29431 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29432
29433
29434 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29435
29436       fi
29437    fi
29438 fi
29439
29440
29441
29442
29443 # Check whether --enable-lzo was given.
29444 if test "${enable_lzo+set}" = set; then :
29445   enableval=$enable_lzo;
29446        if test x$enableval = xno; then
29447           support_lzo=no
29448        fi
29449
29450
29451 fi
29452
29453
29454 LZO_INC=
29455 LZO_LIBS=
29456 LZO_LDFLAGS=
29457
29458 have_lzo="no"
29459 if test x$support_lzo = xyes; then
29460
29461 # Check whether --with-lzo was given.
29462 if test "${with_lzo+set}" = set; then :
29463   withval=$with_lzo;
29464           case "$with_lzo" in
29465           no)
29466              :
29467              ;;
29468           yes|*)
29469              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29470                 LZO_INC="-I${with_lzo}/include"
29471                 LZO_LDFLAGS="-L${with_lzo}/lib"
29472                 with_lzo="${with_lzo}/include"
29473              else
29474                 with_lzo="/usr/include"
29475              fi
29476
29477              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29478 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29480
29481
29482 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29483
29484                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29485                     have_lzo="yes"
29486
29487 else
29488
29489                     echo " "
29490                     echo "lzoconf.h not found. lzo turned off ..."
29491                     echo " "
29492
29493
29494 fi
29495
29496
29497              ;;
29498           esac
29499
29500 else
29501
29502          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29503 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29504
29505             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29506 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29507
29508                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29509 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29510 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29511   $as_echo_n "(cached) " >&6
29512 else
29513   ac_check_lib_save_LIBS=$LIBS
29514 LIBS="-llzo2  $LIBS"
29515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29516 /* end confdefs.h.  */
29517
29518 /* Override any GCC internal prototype to avoid an error.
29519    Use char because int might match the return type of a GCC
29520    builtin and then its argument prototype would still apply.  */
29521 #ifdef __cplusplus
29522 extern "C"
29523 #endif
29524 char lzo1x_1_compress ();
29525 int
29526 main ()
29527 {
29528 return lzo1x_1_compress ();
29529   ;
29530   return 0;
29531 }
29532 _ACEOF
29533 if ac_fn_c_try_link "$LINENO"; then :
29534   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29535 else
29536   ac_cv_lib_lzo2_lzo1x_1_compress=no
29537 fi
29538 rm -f core conftest.err conftest.$ac_objext \
29539     conftest$ac_exeext conftest.$ac_ext
29540 LIBS=$ac_check_lib_save_LIBS
29541 fi
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29543 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29544 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29545
29546                  LZO_LIBS="-llzo2"
29547
29548 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29549
29550                  have_lzo=yes
29551
29552 fi
29553
29554
29555 fi
29556
29557
29558
29559 fi
29560
29561
29562
29563 fi
29564
29565 fi
29566
29567
29568
29569
29570
29571 support_acl=auto
29572 # Check whether --enable-acl was given.
29573 if test "${enable_acl+set}" = set; then :
29574   enableval=$enable_acl;
29575        if test x$enableval = xyes; then
29576           support_acl=yes
29577        elif test x$enableval = xno; then
29578           support_acl=no
29579        fi
29580
29581
29582 fi
29583
29584
29585 have_acl=no
29586 have_extended_acl=no
29587 if test x$support_acl = xyes -o x$support_acl = xauto; then
29588    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29589 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29590
29591 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29592
29593 fi
29594
29595
29596
29597             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29598 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29599
29600           have_acl=yes
29601
29602
29603 fi
29604
29605
29606             if test $have_acl = no; then
29607       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29608 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29609 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29610   $as_echo_n "(cached) " >&6
29611 else
29612   ac_check_lib_save_LIBS=$LIBS
29613 LIBS="-lacl  $LIBS"
29614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29615 /* end confdefs.h.  */
29616
29617 /* Override any GCC internal prototype to avoid an error.
29618    Use char because int might match the return type of a GCC
29619    builtin and then its argument prototype would still apply.  */
29620 #ifdef __cplusplus
29621 extern "C"
29622 #endif
29623 char acl_get_file ();
29624 int
29625 main ()
29626 {
29627 return acl_get_file ();
29628   ;
29629   return 0;
29630 }
29631 _ACEOF
29632 if ac_fn_c_try_link "$LINENO"; then :
29633   ac_cv_lib_acl_acl_get_file=yes
29634 else
29635   ac_cv_lib_acl_acl_get_file=no
29636 fi
29637 rm -f core conftest.err conftest.$ac_objext \
29638     conftest$ac_exeext conftest.$ac_ext
29639 LIBS=$ac_check_lib_save_LIBS
29640 fi
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29642 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29643 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29644
29645              have_acl=yes
29646              if test $have_afs = yes; then
29647                                                                 if test -d /usr/lib64/; then
29648                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29649                 else
29650                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29651                 fi
29652              else
29653                 FDLIBS="-lacl $FDLIBS"
29654              fi
29655
29656
29657 fi
29658
29659    fi
29660
29661                if test $have_acl = no -a \
29662            x${HAVE_OSF1_OS_TRUE} = x; then
29663       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29664 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29665 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29666   $as_echo_n "(cached) " >&6
29667 else
29668   ac_check_lib_save_LIBS=$LIBS
29669 LIBS="-lpacl  $LIBS"
29670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29671 /* end confdefs.h.  */
29672
29673 /* Override any GCC internal prototype to avoid an error.
29674    Use char because int might match the return type of a GCC
29675    builtin and then its argument prototype would still apply.  */
29676 #ifdef __cplusplus
29677 extern "C"
29678 #endif
29679 char acl_get_file ();
29680 int
29681 main ()
29682 {
29683 return acl_get_file ();
29684   ;
29685   return 0;
29686 }
29687 _ACEOF
29688 if ac_fn_c_try_link "$LINENO"; then :
29689   ac_cv_lib_pacl_acl_get_file=yes
29690 else
29691   ac_cv_lib_pacl_acl_get_file=no
29692 fi
29693 rm -f core conftest.err conftest.$ac_objext \
29694     conftest$ac_exeext conftest.$ac_ext
29695 LIBS=$ac_check_lib_save_LIBS
29696 fi
29697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29698 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29699 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29700
29701              have_acl=yes
29702              FDLIBS="-lpacl $FDLIBS"
29703
29704
29705 fi
29706
29707
29708       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29709 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29710       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29711       if test $? = 0; then
29712
29713 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29714
29715          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29716 $as_echo "yes" >&6; }
29717       else
29718          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29719 $as_echo "no" >&6; }
29720       fi
29721    fi
29722
29723             if test $have_acl = yes -a \
29724            x${HAVE_DARWIN_OS_TRUE} = x; then
29725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29726 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29727       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29728       if test $? = 0; then
29729
29730 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29731
29732          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29733 $as_echo "yes" >&6; }
29734       else
29735          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29736 $as_echo "no" >&6; }
29737       fi
29738    fi
29739
29740             if test $have_acl = yes -a \
29741            x${HAVE_FREEBSD_OS_TRUE} = x; then
29742       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29743 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29744       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29745       if test $? = 0; then
29746
29747 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29748
29749          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29750 $as_echo "yes" >&6; }
29751       else
29752          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29753 $as_echo "no" >&6; }
29754       fi
29755    fi
29756
29757             if test $have_acl = no -a \
29758            x${HAVE_SUN_OS_TRUE} = x; then
29759       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29760 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29761 if ${ac_cv_lib_sec_acltotext+:} false; then :
29762   $as_echo_n "(cached) " >&6
29763 else
29764   ac_check_lib_save_LIBS=$LIBS
29765 LIBS="-lsec  $LIBS"
29766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29767 /* end confdefs.h.  */
29768
29769 /* Override any GCC internal prototype to avoid an error.
29770    Use char because int might match the return type of a GCC
29771    builtin and then its argument prototype would still apply.  */
29772 #ifdef __cplusplus
29773 extern "C"
29774 #endif
29775 char acltotext ();
29776 int
29777 main ()
29778 {
29779 return acltotext ();
29780   ;
29781   return 0;
29782 }
29783 _ACEOF
29784 if ac_fn_c_try_link "$LINENO"; then :
29785   ac_cv_lib_sec_acltotext=yes
29786 else
29787   ac_cv_lib_sec_acltotext=no
29788 fi
29789 rm -f core conftest.err conftest.$ac_objext \
29790     conftest$ac_exeext conftest.$ac_ext
29791 LIBS=$ac_check_lib_save_LIBS
29792 fi
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29794 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29795 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29796
29797              have_acl=yes
29798              FDLIBS="-lsec $FDLIBS"
29799
29800              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29801 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29802 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29803   $as_echo_n "(cached) " >&6
29804 else
29805   ac_check_lib_save_LIBS=$LIBS
29806 LIBS="-lsec  $LIBS"
29807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29808 /* end confdefs.h.  */
29809
29810 /* Override any GCC internal prototype to avoid an error.
29811    Use char because int might match the return type of a GCC
29812    builtin and then its argument prototype would still apply.  */
29813 #ifdef __cplusplus
29814 extern "C"
29815 #endif
29816 char acl_totext ();
29817 int
29818 main ()
29819 {
29820 return acl_totext ();
29821   ;
29822   return 0;
29823 }
29824 _ACEOF
29825 if ac_fn_c_try_link "$LINENO"; then :
29826   ac_cv_lib_sec_acl_totext=yes
29827 else
29828   ac_cv_lib_sec_acl_totext=no
29829 fi
29830 rm -f core conftest.err conftest.$ac_objext \
29831     conftest$ac_exeext conftest.$ac_ext
29832 LIBS=$ac_check_lib_save_LIBS
29833 fi
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29835 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29836 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29837
29838                     have_extended_acl=yes
29839
29840
29841 fi
29842
29843
29844
29845 fi
29846
29847    fi
29848
29849             if test $have_acl = no -a \
29850            x${HAVE_AIX_OS_TRUE} = x; then
29851       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29852 if test "x$ac_cv_func_acl_get" = xyes; then :
29853
29854              have_acl=yes
29855
29856              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29857 if test "x$ac_cv_func_aclx_get" = xyes; then :
29858
29859                     have_extended_acl=yes
29860
29861
29862 fi
29863
29864
29865
29866 fi
29867
29868    fi
29869
29870    if test x$support_acl = xyes -a $have_acl != yes; then
29871       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29872   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29873    else
29874       if test $have_acl = yes; then
29875
29876 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29877
29878       fi
29879
29880       if test $have_extended_acl = yes; then
29881
29882 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29883
29884       fi
29885    fi
29886 fi
29887
29888 support_xattr=auto
29889 # Check whether --enable-xattr was given.
29890 if test "${enable_xattr+set}" = set; then :
29891   enableval=$enable_xattr;
29892        if test x$enableval = xyes; then
29893           support_xattr=yes
29894        elif test x$enableval = xno; then
29895           support_xattr=no
29896        fi
29897
29898
29899 fi
29900
29901
29902 have_xattr=no
29903 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29904                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29905            x${HAVE_NETBSD_OS_TRUE} = x -o \
29906            x${HAVE_OPENBSD_OS_TRUE} = x; then
29907       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29908 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29909
29910 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29911
29912 fi
29913
29914
29915       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29916 if test "x$ac_cv_header_libutil_h" = xyes; then :
29917
29918 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29919
29920 fi
29921
29922
29923       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29924 do :
29925   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29926 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29927 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29928   cat >>confdefs.h <<_ACEOF
29929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29930 _ACEOF
29931
29932              have_xattr=yes
29933
29934 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29935
29936
29937 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29938
29939
29940 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29941
29942
29943
29944 fi
29945 done
29946
29947
29948       if test $have_xattr = no; then
29949          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29950 do :
29951   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29954   cat >>confdefs.h <<_ACEOF
29955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29956 _ACEOF
29957
29958                 have_xattr=yes
29959
29960 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29961
29962
29963 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29964
29965
29966 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29967
29968
29969
29970 fi
29971 done
29972
29973       fi
29974
29975       if test $have_xattr = yes; then
29976          have_extattr_string_in_libc=no
29977          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29978 do :
29979   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29982   cat >>confdefs.h <<_ACEOF
29983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29984 _ACEOF
29985
29986                 have_extattr_string_in_libc=yes
29987
29988 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29989
29990
29991 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29992
29993
29994
29995 fi
29996 done
29997
29998
29999                                  if test $have_extattr_string_in_libc = no; then
30000             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30001 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30002 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30003   $as_echo_n "(cached) " >&6
30004 else
30005   ac_check_lib_save_LIBS=$LIBS
30006 LIBS="-lutil  $LIBS"
30007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008 /* end confdefs.h.  */
30009
30010 /* Override any GCC internal prototype to avoid an error.
30011    Use char because int might match the return type of a GCC
30012    builtin and then its argument prototype would still apply.  */
30013 #ifdef __cplusplus
30014 extern "C"
30015 #endif
30016 char extattr_namespace_to_string extattr_string_to_namespace ();
30017 int
30018 main ()
30019 {
30020 return extattr_namespace_to_string extattr_string_to_namespace ();
30021   ;
30022   return 0;
30023 }
30024 _ACEOF
30025 if ac_fn_c_try_link "$LINENO"; then :
30026   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30027 else
30028   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30029 fi
30030 rm -f core conftest.err conftest.$ac_objext \
30031     conftest$ac_exeext conftest.$ac_ext
30032 LIBS=$ac_check_lib_save_LIBS
30033 fi
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30035 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30036 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30037
30038
30039 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30040
30041
30042 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30043
30044                    FDLIBS="-lutil $FDLIBS"
30045
30046
30047 fi
30048
30049          fi
30050       fi
30051    fi
30052
30053                if test $have_xattr = no -a \
30054            x${HAVE_AIX_OS_TRUE} = x; then
30055       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30056 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30057
30058 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30059
30060 fi
30061
30062
30063       for ac_func in llistea lgetea lsetea
30064 do :
30065   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30067 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30068   cat >>confdefs.h <<_ACEOF
30069 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30070 _ACEOF
30071
30072              have_xattr=yes
30073
30074 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30075
30076
30077 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30078
30079
30080 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30081
30082
30083
30084 fi
30085 done
30086
30087
30088       if test $have_xattr = no; then
30089          for ac_func in listea getea setea
30090 do :
30091   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30093 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30094   cat >>confdefs.h <<_ACEOF
30095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30096 _ACEOF
30097
30098                 have_xattr=yes
30099
30100 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30101
30102
30103 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30104
30105
30106 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30107
30108
30109
30110 fi
30111 done
30112
30113       fi
30114    fi
30115
30116                if test $have_xattr = no -a \
30117            x${HAVE_OSF1_OS_TRUE} = x; then
30118       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30119 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30120
30121 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30122
30123 fi
30124
30125
30126       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30127 do :
30128   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30129 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30130 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30131   cat >>confdefs.h <<_ACEOF
30132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30133 _ACEOF
30134
30135              have_xattr=yes
30136
30137 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30138
30139
30140 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30141
30142
30143 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30144
30145
30146 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30147
30148
30149 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30150
30151
30152
30153 fi
30154 done
30155
30156    fi
30157
30158                if test $have_xattr = no -a \
30159            x${HAVE_SUN_OS_TRUE} = x; then
30160       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30161 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30162
30163 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30164
30165 fi
30166
30167
30168       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30169 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30170
30171 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30172
30173 fi
30174
30175
30176       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30177 if test "x$ac_cv_header_attr_h" = xyes; then :
30178
30179 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30180
30181 fi
30182
30183
30184
30185       for ac_func in openat fstatat unlinkat fchownat futimesat
30186 do :
30187   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30190   cat >>confdefs.h <<_ACEOF
30191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30192 _ACEOF
30193
30194              have_xattr=yes
30195
30196 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30197
30198
30199 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30200
30201
30202 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30203
30204
30205 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30206
30207
30208 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30209
30210
30211
30212 fi
30213 done
30214
30215
30216       if test $have_xattr = yes; then
30217          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30218 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30219 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30220   $as_echo_n "(cached) " >&6
30221 else
30222   ac_check_lib_save_LIBS=$LIBS
30223 LIBS="-lnvpair  $LIBS"
30224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30225 /* end confdefs.h.  */
30226
30227 /* Override any GCC internal prototype to avoid an error.
30228    Use char because int might match the return type of a GCC
30229    builtin and then its argument prototype would still apply.  */
30230 #ifdef __cplusplus
30231 extern "C"
30232 #endif
30233 char nvlist_next_nvpair ();
30234 int
30235 main ()
30236 {
30237 return nvlist_next_nvpair ();
30238   ;
30239   return 0;
30240 }
30241 _ACEOF
30242 if ac_fn_c_try_link "$LINENO"; then :
30243   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30244 else
30245   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30246 fi
30247 rm -f core conftest.err conftest.$ac_objext \
30248     conftest$ac_exeext conftest.$ac_ext
30249 LIBS=$ac_check_lib_save_LIBS
30250 fi
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30252 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30253 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30254
30255
30256 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30257
30258                 FDLIBS="-lnvpair $FDLIBS"
30259
30260
30261 fi
30262
30263       fi
30264    fi
30265
30266             if test $have_xattr = no; then
30267       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30268 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30269
30270 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30271
30272 fi
30273
30274
30275       for ac_func in llistxattr lgetxattr lsetxattr
30276 do :
30277   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30279 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30280   cat >>confdefs.h <<_ACEOF
30281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30282 _ACEOF
30283
30284              have_xattr=yes
30285
30286 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30287
30288
30289 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30290
30291
30292 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30293
30294
30295
30296 fi
30297 done
30298
30299
30300       if test $have_xattr = no; then
30301          for ac_func in listxattr getxattr setxattr
30302 do :
30303   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30305 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30306   cat >>confdefs.h <<_ACEOF
30307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30308 _ACEOF
30309
30310                 have_xattr=yes
30311
30312 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30313
30314
30315 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30316
30317
30318 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30319
30320
30321
30322 fi
30323 done
30324
30325       fi
30326    fi
30327
30328    if test x$support_xattr = xyes -a $have_xattr != yes; then
30329       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30330   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30331    else
30332       if test $have_xattr = yes; then
30333
30334 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30335
30336       fi
30337    fi
30338 fi
30339
30340 PTHREAD_LIB=""
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30342 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30343 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30344   $as_echo_n "(cached) " >&6
30345 else
30346   ac_check_lib_save_LIBS=$LIBS
30347 LIBS="-lpthread  $LIBS"
30348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30349 /* end confdefs.h.  */
30350
30351 /* Override any GCC internal prototype to avoid an error.
30352    Use char because int might match the return type of a GCC
30353    builtin and then its argument prototype would still apply.  */
30354 #ifdef __cplusplus
30355 extern "C"
30356 #endif
30357 char pthread_create ();
30358 int
30359 main ()
30360 {
30361 return pthread_create ();
30362   ;
30363   return 0;
30364 }
30365 _ACEOF
30366 if ac_fn_c_try_link "$LINENO"; then :
30367   ac_cv_lib_pthread_pthread_create=yes
30368 else
30369   ac_cv_lib_pthread_pthread_create=no
30370 fi
30371 rm -f core conftest.err conftest.$ac_objext \
30372     conftest$ac_exeext conftest.$ac_ext
30373 LIBS=$ac_check_lib_save_LIBS
30374 fi
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30376 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30377 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30378   PTHREAD_LIB="-lpthread"
30379 else
30380
30381        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30382 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30383 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30384   $as_echo_n "(cached) " >&6
30385 else
30386   ac_check_lib_save_LIBS=$LIBS
30387 LIBS="-lpthreads  $LIBS"
30388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30389 /* end confdefs.h.  */
30390
30391 /* Override any GCC internal prototype to avoid an error.
30392    Use char because int might match the return type of a GCC
30393    builtin and then its argument prototype would still apply.  */
30394 #ifdef __cplusplus
30395 extern "C"
30396 #endif
30397 char pthread_create ();
30398 int
30399 main ()
30400 {
30401 return pthread_create ();
30402   ;
30403   return 0;
30404 }
30405 _ACEOF
30406 if ac_fn_c_try_link "$LINENO"; then :
30407   ac_cv_lib_pthreads_pthread_create=yes
30408 else
30409   ac_cv_lib_pthreads_pthread_create=no
30410 fi
30411 rm -f core conftest.err conftest.$ac_objext \
30412     conftest$ac_exeext conftest.$ac_ext
30413 LIBS=$ac_check_lib_save_LIBS
30414 fi
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30416 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30417 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30418   PTHREAD_LIB="-lpthreads"
30419 else
30420
30421               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30422 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30423 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30424   $as_echo_n "(cached) " >&6
30425 else
30426   ac_check_lib_save_LIBS=$LIBS
30427 LIBS="-lc_r  $LIBS"
30428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30429 /* end confdefs.h.  */
30430
30431 /* Override any GCC internal prototype to avoid an error.
30432    Use char because int might match the return type of a GCC
30433    builtin and then its argument prototype would still apply.  */
30434 #ifdef __cplusplus
30435 extern "C"
30436 #endif
30437 char pthread_create ();
30438 int
30439 main ()
30440 {
30441 return pthread_create ();
30442   ;
30443   return 0;
30444 }
30445 _ACEOF
30446 if ac_fn_c_try_link "$LINENO"; then :
30447   ac_cv_lib_c_r_pthread_create=yes
30448 else
30449   ac_cv_lib_c_r_pthread_create=no
30450 fi
30451 rm -f core conftest.err conftest.$ac_objext \
30452     conftest$ac_exeext conftest.$ac_ext
30453 LIBS=$ac_check_lib_save_LIBS
30454 fi
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30456 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30457 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30458   PTHREAD_LIB="-lc_r"
30459 else
30460
30461                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30462 if test "x$ac_cv_func_pthread_create" = xyes; then :
30463
30464 fi
30465
30466
30467
30468 fi
30469
30470
30471
30472 fi
30473
30474
30475
30476 fi
30477
30478
30479 for ac_header in sys/prctl.h sys/capability.h
30480 do :
30481   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30482 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30484   cat >>confdefs.h <<_ACEOF
30485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30486 _ACEOF
30487
30488 fi
30489
30490 done
30491
30492 for ac_func in prctl setreuid
30493 do :
30494   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30496 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30497   cat >>confdefs.h <<_ACEOF
30498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30499 _ACEOF
30500
30501 fi
30502 done
30503
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30505 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30506 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30507   $as_echo_n "(cached) " >&6
30508 else
30509   ac_check_lib_save_LIBS=$LIBS
30510 LIBS="-lcap  $LIBS"
30511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30512 /* end confdefs.h.  */
30513
30514 /* Override any GCC internal prototype to avoid an error.
30515    Use char because int might match the return type of a GCC
30516    builtin and then its argument prototype would still apply.  */
30517 #ifdef __cplusplus
30518 extern "C"
30519 #endif
30520 char cap_set_proc ();
30521 int
30522 main ()
30523 {
30524 return cap_set_proc ();
30525   ;
30526   return 0;
30527 }
30528 _ACEOF
30529 if ac_fn_c_try_link "$LINENO"; then :
30530   ac_cv_lib_cap_cap_set_proc=yes
30531 else
30532   ac_cv_lib_cap_cap_set_proc=no
30533 fi
30534 rm -f core conftest.err conftest.$ac_objext \
30535     conftest$ac_exeext conftest.$ac_ext
30536 LIBS=$ac_check_lib_save_LIBS
30537 fi
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30539 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30540 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30541   CAP_LIBS="-lcap"
30542 else
30543   CAP_LIBS=
30544 fi
30545
30546 if test x$CAP_LIBS = x-lcap; then
30547
30548 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30549
30550 fi
30551
30552
30553
30554 $as_echo "#define FDLIBS 1" >>confdefs.h
30555
30556
30557 CFLAGS=${CFLAGS--O}
30558
30559 if test x$have_gcc = xyes ; then
30560    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30561    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30562 fi
30563 LDFLAGS=${LDFLAGS--O}
30564 CPPFLAGS="$CPPFLAGS"
30565 CFLAGS="$CFLAGS"
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581 OBJLIST=
30582
30583
30584 lld="lld"
30585 llu="llu"
30586
30587 WCFLAGS=
30588 WLDFLAGS=
30589
30590 PSCMD="ps -e"
30591 WIN32=
30592 MACOSX=
30593 COMPRESS_MANPAGES=yes
30594
30595 case "$DISTNAME" in
30596 aix)
30597    DISTVER=`uname -r`
30598    PSCMD="ps -e -o pid,comm"
30599    PFILES="${PFILES} platforms/aix/Makefile"
30600    TAPEDRIVE="/dev/rmt0.1"
30601   ;;
30602 alpha)
30603    DISTVER=`uname -r`
30604    PTHREAD_LIB="-lpthread -lexc"
30605    if test "${CC}" = "gcc" ; then
30606       lld="lld"
30607       llu="llu"
30608    else
30609       lld="ld"
30610       llu="lu"
30611    fi
30612    TAPEDRIVE="/dev/nrmt0"
30613   ;;
30614 bsdi)
30615    DISTVER=`uname -a |awk '{print $3}'`
30616    TAPEDRIVE="/dev/nrmt0"
30617    PTHREAD_LIB="-pthread"
30618    CFLAGS="${CFLAGS} -pthread"
30619    PSCMD="ps -ax -o pid,command"
30620    lld="qd"
30621    llu="qu"
30622    PFILES="${PFILES} \
30623        platforms/bsdi/Makefile \
30624        platforms/bsdi/bacula-fd \
30625        platforms/bsdi/bacula-sd \
30626        platforms/bsdi/bacula-dir"
30627    largefile_support="yes"
30628   ;;
30629 cygwin)
30630    DISTVER=`uname -a |awk '{print $3}'`
30631    TAPEDRIVE="/dev/nrst0"
30632    WIN32=win32
30633    WCFLAGS="-mwindows"
30634    WLDFLAGS="-mwindows"
30635   ;;
30636 darwin)
30637    DISTVER=`uname -r`
30638    TAPEDRIVE="/dev/nst0"
30639    PSCMD="ps -e -o pid,command"
30640    MACOSX=macosx
30641    PFILES="${PFILES} \
30642       platforms/darwin/Makefile"
30643   ;;
30644 osx)
30645    DISTVER=`uname -r`
30646    TAPEDRIVE="/dev/nst0"
30647    PSCMD="ps -e -o pid,command"
30648    MACOSX=macosx
30649    PFILES="${PFILES} \
30650       platforms/osx/Makefile"
30651   ;;
30652 debian)
30653    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30654       DISTNAME="ubuntu"
30655    fi
30656    DISTVER=`cat /etc/debian_version`
30657    if test -f /etc/lsb-release ; then
30658       . /etc/lsb-release
30659       if test "x$DISTRIB_ID" != "x" ; then
30660          DISTNAME=$DISTRIB_ID
30661       fi
30662       if test "x$DISTRIB_RELEASE" != "x" ; then
30663          DISTVER=$DISTRIB_RELEASE
30664       fi
30665    fi
30666    if test "$DISTNAME" = "Ubuntu" ; then
30667       DISTNAME="ubuntu"
30668    fi
30669    TAPEDRIVE="/dev/nst0"
30670    PSCMD="ps -e -o pid,command"
30671    if test "$DISTNAME" = "ubuntu" ; then
30672       PFILES="${PFILES} \
30673          platforms/ubuntu/Makefile \
30674          platforms/ubuntu/bacula-fd \
30675          platforms/ubuntu/bacula-sd \
30676          platforms/ubuntu/bacula-dir"
30677    else
30678       PFILES="${PFILES} \
30679          platforms/debian/Makefile \
30680          platforms/debian/bacula-fd \
30681          platforms/debian/bacula-sd \
30682          platforms/debian/bacula-dir"
30683    fi
30684   ;;
30685 freebsd)
30686    DISTVER=`uname -a |awk '{print $3}'`
30687    VER=`echo $DISTVER | cut -c 1`
30688    if test x$VER = x4 ; then
30689       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30690       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30691    fi
30692    lld="qd"
30693    llu="qu"
30694    TAPEDRIVE="/dev/nrsa0"
30695    PSCMD="ps -ax -o pid,command"
30696    PFILES="${PFILES} \
30697        platforms/freebsd/Makefile \
30698        platforms/freebsd/bacula-fd \
30699        platforms/freebsd/bacula-sd \
30700        platforms/freebsd/bacula-dir"
30701    largefile_support="yes"
30702   ;;
30703 hurd)
30704    DISTVER=`uname -r`
30705    TAPEDRIVE="/dev/nst0"
30706    PSCMD="ps -e -o pid,command"
30707    PFILES="${PFILES} \
30708        platforms/hurd/Makefile \
30709        platforms/hurd/bacula-fd \
30710        platforms/hurd/bacula-sd \
30711        platforms/hurd/bacula-dir"
30712   ;;
30713 hpux)
30714    PSCMD="UNIX95=1; ps -e -o pid,comm"
30715    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30716    DISTVER=`uname -r`
30717    TAPEDRIVE="/dev/rmt/0hnb"
30718    PTHREAD_LIB="-lpthread"
30719    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30720
30721   ;;
30722 irix)
30723    DISTVER=`uname -r`
30724    TAPEDRIVE="/dev/rmt/0cbn"
30725    PSCMD="ps -e -o pid,comm"
30726    PFILES="${PFILES} \
30727        platforms/irix/Makefile \
30728        platforms/irix/bacula-fd \
30729        platforms/irix/bacula-sd \
30730        platforms/irix/bacula-dir"
30731   ;;
30732 netbsd)
30733    DISTVER=`uname -a |awk '{print $3}'`
30734    lld="qd"
30735    llu="qu"
30736    TAPEDRIVE="/dev/nrst0"
30737    PSCMD="ps -ax -o pid,command"
30738    PTHREAD_LIB="-pthread"
30739    CFLAGS="${CFLAGS} -pthread"
30740   ;;
30741 openbsd)
30742    DISTVER=`uname -a |awk '{print $3}'`
30743    lld="qd"
30744    llu="qu"
30745    TAPEDRIVE="/dev/nrst0"
30746    PSCMD="ps -ax -o pid,command"
30747    PTHREAD_LIB="-pthread"
30748    CFLAGS="${CFLAGS} -pthread"
30749    PFILES="${PFILES} \
30750        platforms/openbsd/Makefile \
30751        platforms/openbsd/bacula-fd \
30752        platforms/openbsd/bacula-sd \
30753        platforms/openbsd/bacula-dir"
30754   ;;
30755 redhat)
30756    if test -f /etc/whitebox-release ; then
30757       f=/etc/whitebox-release
30758    else
30759       f=/etc/redhat-release
30760    fi
30761    if test `cat $f | grep release |\
30762          cut -f 3 -d ' '`x = "Enterprise"x ; then
30763       DISTVER="Enterprise "`cat $f | grep release |\
30764           cut -f 6 -d ' '`
30765    else
30766        DISTVER=`cat /etc/redhat-release | grep release |\
30767            cut -f 5 -d ' '`
30768    fi
30769    TAPEDRIVE="/dev/nst0"
30770    PSCMD="ps -e -o pid,command"
30771    PFILES="${PFILES} \
30772        platforms/redhat/Makefile \
30773        platforms/redhat/bacula-fd \
30774        platforms/redhat/bacula-sd \
30775        platforms/redhat/bacula-dir
30776        "
30777   ;;
30778 mandrake)
30779    DISTVER=`cat /etc/mandrake-release | grep release |\
30780       cut -f 5 -d ' '`
30781    TAPEDRIVE="/dev/nst0"
30782    PSCMD="ps -e -o pid,command"
30783    PFILES="${PFILES} \
30784        platforms/mandrake/Makefile \
30785        platforms/mandrake/bacula-fd \
30786        platforms/mandrake/bacula-sd \
30787        platforms/mandrake/bacula-dir \
30788        "
30789   ;;
30790 gentoo)
30791    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30792    TAPEDRIVE="/dev/nst0"
30793    PSCMD="ps -e -o pid,command"
30794    PFILES="${PFILES} \
30795        platforms/gentoo/Makefile \
30796     platforms/gentoo/bacula-init \
30797        platforms/gentoo/bacula-fd \
30798        platforms/gentoo/bacula-sd \
30799        platforms/gentoo/bacula-dir"
30800   ;;
30801 slackware)
30802    DISTVER=`cat /etc/slackware-version`
30803    TAPEDRIVE="/dev/nst0"
30804    PSCMD="ps -e -o pid,command"
30805    PFILES="${PFILES} \
30806        platforms/slackware/Makefile \
30807        platforms/slackware/rc.bacula-fd \
30808        platforms/slackware/rc.bacula-sd \
30809        platforms/slackware/rc.bacula-dir\
30810        platforms/slackware/functions.bacula"
30811   ;;
30812 solaris)
30813    DISTVER=`uname -r`
30814    TAPEDRIVE="/dev/rmt/0cbn"
30815    PSCMD="ps -e -o pid,comm"
30816    PFILES="${PFILES} \
30817        platforms/solaris/Makefile \
30818        platforms/solaris/bacula-fd \
30819        platforms/solaris/bacula-sd \
30820        platforms/solaris/bacula-dir"
30821    COMPRESS_MANPAGES=
30822    case ${DISTVER} in
30823    5.5|5.6)
30824       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30825
30826       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30827
30828       ;;
30829    5.7|5.8)
30830       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30831
30832       ;;
30833    *)
30834       ;;
30835    esac
30836    LIBS="$LIBS -lresolv -lrt"
30837   ;;
30838 suse)
30839    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30840        cut -f 3 -d ' '`
30841    TAPEDRIVE="/dev/nst0"
30842    PSCMD="ps -e -o pid,command"
30843    PFILES="${PFILES} \
30844        platforms/suse/Makefile \
30845        platforms/suse/bacula-fd \
30846        platforms/suse/bacula-sd \
30847        platforms/suse/bacula-dir \
30848        platforms/suse/bacula"
30849   ;;
30850 suse5)
30851    DISTNAME=suse
30852    DISTVER=5.x
30853    TAPEDRIVE="/dev/nst0"
30854    PSCMD="ps -e -o pid,command"
30855    PFILES="${PFILES} \
30856        platforms/suse/Makefile \
30857        platforms/suse/bacula-fd \
30858        platforms/suse/bacula-sd \
30859        platforms/suse/bacula-dir"
30860   ;;
30861 unknown)
30862    DISTVER=unknown
30863    TAPEDRIVE="/dev/nst0"
30864   ;;
30865 *)
30866   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30867   ;;
30868 esac
30869
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30871 $as_echo_n "checking for systemd support... " >&6; }
30872
30873 # Check whether --with-systemd was given.
30874 if test "${with_systemd+set}" = set; then :
30875   withval=$with_systemd;
30876        if test "$withval" != "no"; then
30877            if test "$withval" = "yes"; then
30878                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30879            else
30880                SYSTEMD_UNITDIR="${withval}"
30881            fi
30882
30883            PFILES="${PFILES} \
30884                    platforms/systemd/Makefile \
30885                    platforms/systemd/bacula-dir.service \
30886                    platforms/systemd/bacula-fd.service \
30887                    platforms/systemd/bacula-sd.service"
30888
30889 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30890
30891            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30892 $as_echo "yes" >&6; }
30893            support_systemd="yes"
30894        else
30895            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30896 $as_echo "no" >&6; }
30897            support_systemd="no"
30898        fi
30899
30900 else
30901
30902        support_systemd="no"
30903        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30904 $as_echo "no" >&6; }
30905
30906
30907 fi
30908
30909
30910
30911
30912
30913 LIBS="$PTHREAD_LIB $LIBS"
30914
30915 cat >>confdefs.h <<_ACEOF
30916 #define lld "$lld"
30917 _ACEOF
30918
30919 cat >>confdefs.h <<_ACEOF
30920 #define llu "$llu"
30921 _ACEOF
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931 MCOMMON=./autoconf/Make.common
30932
30933
30934 if test "x${subsysdir}" = "x${sbindir}" ; then
30935    echo " "
30936    echo " "
30937    echo "You have set both --sbindir and --with-subsys-dir"
30938    echo "  equal to: ${subsysdir} "
30939    echo "This is not permitted. Please reconfigure."
30940    echo " "
30941    echo "Aborting configuration ..."
30942    echo " "
30943    echo " "
30944    exit 1
30945 fi
30946
30947
30948 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"
30949
30950 ac_config_commands="$ac_config_commands default"
30951
30952 cat >confcache <<\_ACEOF
30953 # This file is a shell script that caches the results of configure
30954 # tests run on this system so they can be shared between configure
30955 # scripts and configure runs, see configure's option --config-cache.
30956 # It is not useful on other systems.  If it contains results you don't
30957 # want to keep, you may remove or edit it.
30958 #
30959 # config.status only pays attention to the cache file if you give it
30960 # the --recheck option to rerun configure.
30961 #
30962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30964 # following values.
30965
30966 _ACEOF
30967
30968 # The following way of writing the cache mishandles newlines in values,
30969 # but we know of no workaround that is simple, portable, and efficient.
30970 # So, we kill variables containing newlines.
30971 # Ultrix sh set writes to stderr and can't be redirected directly,
30972 # and sets the high bit in the cache file unless we assign to the vars.
30973 (
30974   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30975     eval ac_val=\$$ac_var
30976     case $ac_val in #(
30977     *${as_nl}*)
30978       case $ac_var in #(
30979       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30981       esac
30982       case $ac_var in #(
30983       _ | IFS | as_nl) ;; #(
30984       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30985       *) { eval $ac_var=; unset $ac_var;} ;;
30986       esac ;;
30987     esac
30988   done
30989
30990   (set) 2>&1 |
30991     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30992     *${as_nl}ac_space=\ *)
30993       # `set' does not quote correctly, so add quotes: double-quote
30994       # substitution turns \\\\ into \\, and sed turns \\ into \.
30995       sed -n \
30996         "s/'/'\\\\''/g;
30997           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30998       ;; #(
30999     *)
31000       # `set' quotes correctly as required by POSIX, so do not add quotes.
31001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31002       ;;
31003     esac |
31004     sort
31005 ) |
31006   sed '
31007      /^ac_cv_env_/b end
31008      t clear
31009      :clear
31010      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31011      t end
31012      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31013      :end' >>confcache
31014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31015   if test -w "$cache_file"; then
31016     if test "x$cache_file" != "x/dev/null"; then
31017       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31018 $as_echo "$as_me: updating cache $cache_file" >&6;}
31019       if test ! -f "$cache_file" || test -h "$cache_file"; then
31020         cat confcache >"$cache_file"
31021       else
31022         case $cache_file in #(
31023         */* | ?:*)
31024           mv -f confcache "$cache_file"$$ &&
31025           mv -f "$cache_file"$$ "$cache_file" ;; #(
31026         *)
31027           mv -f confcache "$cache_file" ;;
31028         esac
31029       fi
31030     fi
31031   else
31032     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31033 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31034   fi
31035 fi
31036 rm -f confcache
31037
31038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31039 # Let make expand exec_prefix.
31040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31041
31042 DEFS=-DHAVE_CONFIG_H
31043
31044 ac_libobjs=
31045 ac_ltlibobjs=
31046 U=
31047 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31048   # 1. Remove the extension, and $U if already installed.
31049   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31050   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31051   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31052   #    will be set to the directory where LIBOBJS objects are built.
31053   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31054   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31055 done
31056 LIBOBJS=$ac_libobjs
31057
31058 LTLIBOBJS=$ac_ltlibobjs
31059
31060
31061
31062
31063 : "${CONFIG_STATUS=./config.status}"
31064 ac_write_fail=0
31065 ac_clean_files_save=$ac_clean_files
31066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31068 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31069 as_write_fail=0
31070 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31071 #! $SHELL
31072 # Generated by $as_me.
31073 # Run this file to recreate the current configuration.
31074 # Compiler output produced by configure, useful for debugging
31075 # configure, is in config.log if it exists.
31076
31077 debug=false
31078 ac_cs_recheck=false
31079 ac_cs_silent=false
31080
31081 SHELL=\${CONFIG_SHELL-$SHELL}
31082 export SHELL
31083 _ASEOF
31084 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31085 ## -------------------- ##
31086 ## M4sh Initialization. ##
31087 ## -------------------- ##
31088
31089 # Be more Bourne compatible
31090 DUALCASE=1; export DUALCASE # for MKS sh
31091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31092   emulate sh
31093   NULLCMD=:
31094   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31095   # is contrary to our usage.  Disable this feature.
31096   alias -g '${1+"$@"}'='"$@"'
31097   setopt NO_GLOB_SUBST
31098 else
31099   case `(set -o) 2>/dev/null` in #(
31100   *posix*) :
31101     set -o posix ;; #(
31102   *) :
31103      ;;
31104 esac
31105 fi
31106
31107
31108 as_nl='
31109 '
31110 export as_nl
31111 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31112 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31115 # Prefer a ksh shell builtin over an external printf program on Solaris,
31116 # but without wasting forks for bash or zsh.
31117 if test -z "$BASH_VERSION$ZSH_VERSION" \
31118     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31119   as_echo='print -r --'
31120   as_echo_n='print -rn --'
31121 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31122   as_echo='printf %s\n'
31123   as_echo_n='printf %s'
31124 else
31125   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31126     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31127     as_echo_n='/usr/ucb/echo -n'
31128   else
31129     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31130     as_echo_n_body='eval
31131       arg=$1;
31132       case $arg in #(
31133       *"$as_nl"*)
31134         expr "X$arg" : "X\\(.*\\)$as_nl";
31135         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31136       esac;
31137       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31138     '
31139     export as_echo_n_body
31140     as_echo_n='sh -c $as_echo_n_body as_echo'
31141   fi
31142   export as_echo_body
31143   as_echo='sh -c $as_echo_body as_echo'
31144 fi
31145
31146 # The user is always right.
31147 if test "${PATH_SEPARATOR+set}" != set; then
31148   PATH_SEPARATOR=:
31149   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31150     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31151       PATH_SEPARATOR=';'
31152   }
31153 fi
31154
31155
31156 # IFS
31157 # We need space, tab and new line, in precisely that order.  Quoting is
31158 # there to prevent editors from complaining about space-tab.
31159 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31160 # splitting by setting IFS to empty value.)
31161 IFS=" ""        $as_nl"
31162
31163 # Find who we are.  Look in the path if we contain no directory separator.
31164 as_myself=
31165 case $0 in #((
31166   *[\\/]* ) as_myself=$0 ;;
31167   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31168 for as_dir in $PATH
31169 do
31170   IFS=$as_save_IFS
31171   test -z "$as_dir" && as_dir=.
31172     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31173   done
31174 IFS=$as_save_IFS
31175
31176      ;;
31177 esac
31178 # We did not find ourselves, most probably we were run as `sh COMMAND'
31179 # in which case we are not to be found in the path.
31180 if test "x$as_myself" = x; then
31181   as_myself=$0
31182 fi
31183 if test ! -f "$as_myself"; then
31184   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31185   exit 1
31186 fi
31187
31188 # Unset variables that we do not need and which cause bugs (e.g. in
31189 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31190 # suppresses any "Segmentation fault" message there.  '((' could
31191 # trigger a bug in pdksh 5.2.14.
31192 for as_var in BASH_ENV ENV MAIL MAILPATH
31193 do eval test x\${$as_var+set} = xset \
31194   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31195 done
31196 PS1='$ '
31197 PS2='> '
31198 PS4='+ '
31199
31200 # NLS nuisances.
31201 LC_ALL=C
31202 export LC_ALL
31203 LANGUAGE=C
31204 export LANGUAGE
31205
31206 # CDPATH.
31207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31208
31209
31210 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31211 # ----------------------------------------
31212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31214 # script with STATUS, using 1 if that was 0.
31215 as_fn_error ()
31216 {
31217   as_status=$1; test $as_status -eq 0 && as_status=1
31218   if test "$4"; then
31219     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31220     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31221   fi
31222   $as_echo "$as_me: error: $2" >&2
31223   as_fn_exit $as_status
31224 } # as_fn_error
31225
31226
31227 # as_fn_set_status STATUS
31228 # -----------------------
31229 # Set $? to STATUS, without forking.
31230 as_fn_set_status ()
31231 {
31232   return $1
31233 } # as_fn_set_status
31234
31235 # as_fn_exit STATUS
31236 # -----------------
31237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31238 as_fn_exit ()
31239 {
31240   set +e
31241   as_fn_set_status $1
31242   exit $1
31243 } # as_fn_exit
31244
31245 # as_fn_unset VAR
31246 # ---------------
31247 # Portably unset VAR.
31248 as_fn_unset ()
31249 {
31250   { eval $1=; unset $1;}
31251 }
31252 as_unset=as_fn_unset
31253 # as_fn_append VAR VALUE
31254 # ----------------------
31255 # Append the text in VALUE to the end of the definition contained in VAR. Take
31256 # advantage of any shell optimizations that allow amortized linear growth over
31257 # repeated appends, instead of the typical quadratic growth present in naive
31258 # implementations.
31259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31260   eval 'as_fn_append ()
31261   {
31262     eval $1+=\$2
31263   }'
31264 else
31265   as_fn_append ()
31266   {
31267     eval $1=\$$1\$2
31268   }
31269 fi # as_fn_append
31270
31271 # as_fn_arith ARG...
31272 # ------------------
31273 # Perform arithmetic evaluation on the ARGs, and store the result in the
31274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31275 # must be portable across $(()) and expr.
31276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31277   eval 'as_fn_arith ()
31278   {
31279     as_val=$(( $* ))
31280   }'
31281 else
31282   as_fn_arith ()
31283   {
31284     as_val=`expr "$@" || test $? -eq 1`
31285   }
31286 fi # as_fn_arith
31287
31288
31289 if expr a : '\(a\)' >/dev/null 2>&1 &&
31290    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31291   as_expr=expr
31292 else
31293   as_expr=false
31294 fi
31295
31296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31297   as_basename=basename
31298 else
31299   as_basename=false
31300 fi
31301
31302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31303   as_dirname=dirname
31304 else
31305   as_dirname=false
31306 fi
31307
31308 as_me=`$as_basename -- "$0" ||
31309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31310          X"$0" : 'X\(//\)$' \| \
31311          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31312 $as_echo X/"$0" |
31313     sed '/^.*\/\([^/][^/]*\)\/*$/{
31314             s//\1/
31315             q
31316           }
31317           /^X\/\(\/\/\)$/{
31318             s//\1/
31319             q
31320           }
31321           /^X\/\(\/\).*/{
31322             s//\1/
31323             q
31324           }
31325           s/.*/./; q'`
31326
31327 # Avoid depending upon Character Ranges.
31328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31331 as_cr_digits='0123456789'
31332 as_cr_alnum=$as_cr_Letters$as_cr_digits
31333
31334 ECHO_C= ECHO_N= ECHO_T=
31335 case `echo -n x` in #(((((
31336 -n*)
31337   case `echo 'xy\c'` in
31338   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31339   xy)  ECHO_C='\c';;
31340   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31341        ECHO_T=' ';;
31342   esac;;
31343 *)
31344   ECHO_N='-n';;
31345 esac
31346
31347 rm -f conf$$ conf$$.exe conf$$.file
31348 if test -d conf$$.dir; then
31349   rm -f conf$$.dir/conf$$.file
31350 else
31351   rm -f conf$$.dir
31352   mkdir conf$$.dir 2>/dev/null
31353 fi
31354 if (echo >conf$$.file) 2>/dev/null; then
31355   if ln -s conf$$.file conf$$ 2>/dev/null; then
31356     as_ln_s='ln -s'
31357     # ... but there are two gotchas:
31358     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31359     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31360     # In both cases, we have to default to `cp -pR'.
31361     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31362       as_ln_s='cp -pR'
31363   elif ln conf$$.file conf$$ 2>/dev/null; then
31364     as_ln_s=ln
31365   else
31366     as_ln_s='cp -pR'
31367   fi
31368 else
31369   as_ln_s='cp -pR'
31370 fi
31371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31372 rmdir conf$$.dir 2>/dev/null
31373
31374
31375 # as_fn_mkdir_p
31376 # -------------
31377 # Create "$as_dir" as a directory, including parents if necessary.
31378 as_fn_mkdir_p ()
31379 {
31380
31381   case $as_dir in #(
31382   -*) as_dir=./$as_dir;;
31383   esac
31384   test -d "$as_dir" || eval $as_mkdir_p || {
31385     as_dirs=
31386     while :; do
31387       case $as_dir in #(
31388       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31389       *) as_qdir=$as_dir;;
31390       esac
31391       as_dirs="'$as_qdir' $as_dirs"
31392       as_dir=`$as_dirname -- "$as_dir" ||
31393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31394          X"$as_dir" : 'X\(//\)[^/]' \| \
31395          X"$as_dir" : 'X\(//\)$' \| \
31396          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31397 $as_echo X"$as_dir" |
31398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31399             s//\1/
31400             q
31401           }
31402           /^X\(\/\/\)[^/].*/{
31403             s//\1/
31404             q
31405           }
31406           /^X\(\/\/\)$/{
31407             s//\1/
31408             q
31409           }
31410           /^X\(\/\).*/{
31411             s//\1/
31412             q
31413           }
31414           s/.*/./; q'`
31415       test -d "$as_dir" && break
31416     done
31417     test -z "$as_dirs" || eval "mkdir $as_dirs"
31418   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31419
31420
31421 } # as_fn_mkdir_p
31422 if mkdir -p . 2>/dev/null; then
31423   as_mkdir_p='mkdir -p "$as_dir"'
31424 else
31425   test -d ./-p && rmdir ./-p
31426   as_mkdir_p=false
31427 fi
31428
31429
31430 # as_fn_executable_p FILE
31431 # -----------------------
31432 # Test if FILE is an executable regular file.
31433 as_fn_executable_p ()
31434 {
31435   test -f "$1" && test -x "$1"
31436 } # as_fn_executable_p
31437 as_test_x='test -x'
31438 as_executable_p=as_fn_executable_p
31439
31440 # Sed expression to map a string onto a valid CPP name.
31441 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31442
31443 # Sed expression to map a string onto a valid variable name.
31444 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31445
31446
31447 exec 6>&1
31448 ## ----------------------------------- ##
31449 ## Main body of $CONFIG_STATUS script. ##
31450 ## ----------------------------------- ##
31451 _ASEOF
31452 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31453
31454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31455 # Save the log message, to keep $0 and so on meaningful, and to
31456 # report actual input values of CONFIG_FILES etc. instead of their
31457 # values after options handling.
31458 ac_log="
31459 This file was extended by bacula $as_me 7.4.1, which was
31460 generated by GNU Autoconf 2.69.  Invocation command line was
31461
31462   CONFIG_FILES    = $CONFIG_FILES
31463   CONFIG_HEADERS  = $CONFIG_HEADERS
31464   CONFIG_LINKS    = $CONFIG_LINKS
31465   CONFIG_COMMANDS = $CONFIG_COMMANDS
31466   $ $0 $@
31467
31468 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31469 "
31470
31471 _ACEOF
31472
31473 case $ac_config_files in *"
31474 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31475 esac
31476
31477 case $ac_config_headers in *"
31478 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31479 esac
31480
31481
31482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31483 # Files that config.status was made for.
31484 config_files="$ac_config_files"
31485 config_headers="$ac_config_headers"
31486 config_commands="$ac_config_commands"
31487
31488 _ACEOF
31489
31490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31491 ac_cs_usage="\
31492 \`$as_me' instantiates files and other configuration actions
31493 from templates according to the current configuration.  Unless the files
31494 and actions are specified as TAGs, all are instantiated by default.
31495
31496 Usage: $0 [OPTION]... [TAG]...
31497
31498   -h, --help       print this help, then exit
31499   -V, --version    print version number and configuration settings, then exit
31500       --config     print configuration, then exit
31501   -q, --quiet, --silent
31502                    do not print progress messages
31503   -d, --debug      don't remove temporary files
31504       --recheck    update $as_me by reconfiguring in the same conditions
31505       --file=FILE[:TEMPLATE]
31506                    instantiate the configuration file FILE
31507       --header=FILE[:TEMPLATE]
31508                    instantiate the configuration header FILE
31509
31510 Configuration files:
31511 $config_files
31512
31513 Configuration headers:
31514 $config_headers
31515
31516 Configuration commands:
31517 $config_commands
31518
31519 Report bugs to the package provider."
31520
31521 _ACEOF
31522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31523 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31524 ac_cs_version="\\
31525 bacula config.status 7.4.1
31526 configured by $0, generated by GNU Autoconf 2.69,
31527   with options \\"\$ac_cs_config\\"
31528
31529 Copyright (C) 2012 Free Software Foundation, Inc.
31530 This config.status script is free software; the Free Software Foundation
31531 gives unlimited permission to copy, distribute and modify it."
31532
31533 ac_pwd='$ac_pwd'
31534 srcdir='$srcdir'
31535 INSTALL='$INSTALL'
31536 AWK='$AWK'
31537 test -n "\$AWK" || AWK=awk
31538 _ACEOF
31539
31540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31541 # The default lists apply if the user does not specify any file.
31542 ac_need_defaults=:
31543 while test $# != 0
31544 do
31545   case $1 in
31546   --*=?*)
31547     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31548     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31549     ac_shift=:
31550     ;;
31551   --*=)
31552     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31553     ac_optarg=
31554     ac_shift=:
31555     ;;
31556   *)
31557     ac_option=$1
31558     ac_optarg=$2
31559     ac_shift=shift
31560     ;;
31561   esac
31562
31563   case $ac_option in
31564   # Handling of the options.
31565   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31566     ac_cs_recheck=: ;;
31567   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31568     $as_echo "$ac_cs_version"; exit ;;
31569   --config | --confi | --conf | --con | --co | --c )
31570     $as_echo "$ac_cs_config"; exit ;;
31571   --debug | --debu | --deb | --de | --d | -d )
31572     debug=: ;;
31573   --file | --fil | --fi | --f )
31574     $ac_shift
31575     case $ac_optarg in
31576     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31577     '') as_fn_error $? "missing file argument" ;;
31578     esac
31579     as_fn_append CONFIG_FILES " '$ac_optarg'"
31580     ac_need_defaults=false;;
31581   --header | --heade | --head | --hea )
31582     $ac_shift
31583     case $ac_optarg in
31584     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31585     esac
31586     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31587     ac_need_defaults=false;;
31588   --he | --h)
31589     # Conflict between --help and --header
31590     as_fn_error $? "ambiguous option: \`$1'
31591 Try \`$0 --help' for more information.";;
31592   --help | --hel | -h )
31593     $as_echo "$ac_cs_usage"; exit ;;
31594   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31595   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31596     ac_cs_silent=: ;;
31597
31598   # This is an error.
31599   -*) as_fn_error $? "unrecognized option: \`$1'
31600 Try \`$0 --help' for more information." ;;
31601
31602   *) as_fn_append ac_config_targets " $1"
31603      ac_need_defaults=false ;;
31604
31605   esac
31606   shift
31607 done
31608
31609 ac_configure_extra_args=
31610
31611 if $ac_cs_silent; then
31612   exec 6>/dev/null
31613   ac_configure_extra_args="$ac_configure_extra_args --silent"
31614 fi
31615
31616 _ACEOF
31617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31618 if \$ac_cs_recheck; then
31619   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31620   shift
31621   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31622   CONFIG_SHELL='$SHELL'
31623   export CONFIG_SHELL
31624   exec "\$@"
31625 fi
31626
31627 _ACEOF
31628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31629 exec 5>>config.log
31630 {
31631   echo
31632   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31633 ## Running $as_me. ##
31634 _ASBOX
31635   $as_echo "$ac_log"
31636 } >&5
31637
31638 _ACEOF
31639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31640 #
31641 # INIT-COMMANDS
31642 #
31643
31644
31645 # The HP-UX ksh and POSIX shell print the target directory to stdout
31646 # if CDPATH is set.
31647 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31648
31649 sed_quote_subst='$sed_quote_subst'
31650 double_quote_subst='$double_quote_subst'
31651 delay_variable_subst='$delay_variable_subst'
31652 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31653 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31654 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31655 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31656 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31657 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31658 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31659 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31660 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31661 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31662 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31663 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31664 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31665 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31666 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31667 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31668 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31669 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31670 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31671 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31672 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31673 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31674 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31675 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31676 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31677 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31678 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31679 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31680 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31681 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31682 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31683 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31684 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31685 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31686 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31687 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31688 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31689 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31690 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31691 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31692 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31693 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31694 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31695 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31696 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31697 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31698 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31699 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31700 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31701 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31702 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31703 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31704 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31705 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31706 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31707 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31708 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"`'
31709 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31710 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31711 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31712 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31713 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31714 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31715 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31716 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31717 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31718 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31719 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31720 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31721 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31722 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31723 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31724 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31725 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31726 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31727 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31728 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31729 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31730 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31731 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31732 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31733 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31734 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31735 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31736 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31737 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31738 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31739 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31740 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31741 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31742 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31743 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31744 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31745 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31746 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31747 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31748 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31749 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31750 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31751 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31752 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31753 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31754 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31755 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31756 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31757 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31758 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31759 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31760 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31761 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31762 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31763 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31764 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31765 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31766 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31767 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31768 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31769 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31770 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31771 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31772 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31773 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31774 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31775 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31776 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31777 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31778 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31779 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31780 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31781 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31782 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31783 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31784 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31785 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31786 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31787 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31788 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31789 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31790 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31791 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31792 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31793 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31794 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31795 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31796 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31797 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31798 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31799 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31800 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31801 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31802 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31803 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31804 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31805 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31806 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31807 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31808 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31809 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31810 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31811 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31812 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31813 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31815 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31816 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31817 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31818 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31819 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31820 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31821 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31822 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31823 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31824 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31825 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31826 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31827 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31828 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31829 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31830 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31831 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31832 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31833 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31834 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31835 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31836
31837 LTCC='$LTCC'
31838 LTCFLAGS='$LTCFLAGS'
31839 compiler='$compiler_DEFAULT'
31840
31841 # A function that is used when there is no print builtin or printf.
31842 func_fallback_echo ()
31843 {
31844   eval 'cat <<_LTECHO_EOF
31845 \$1
31846 _LTECHO_EOF'
31847 }
31848
31849 # Quote evaled strings.
31850 for var in SHELL \
31851 ECHO \
31852 PATH_SEPARATOR \
31853 SED \
31854 GREP \
31855 EGREP \
31856 FGREP \
31857 LD \
31858 NM \
31859 LN_S \
31860 lt_SP2NL \
31861 lt_NL2SP \
31862 reload_flag \
31863 OBJDUMP \
31864 deplibs_check_method \
31865 file_magic_cmd \
31866 file_magic_glob \
31867 want_nocaseglob \
31868 DLLTOOL \
31869 sharedlib_from_linklib_cmd \
31870 AR \
31871 AR_FLAGS \
31872 archiver_list_spec \
31873 STRIP \
31874 RANLIB \
31875 CC \
31876 CFLAGS \
31877 compiler \
31878 lt_cv_sys_global_symbol_pipe \
31879 lt_cv_sys_global_symbol_to_cdecl \
31880 lt_cv_sys_global_symbol_to_c_name_address \
31881 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31882 nm_file_list_spec \
31883 lt_prog_compiler_no_builtin_flag \
31884 lt_prog_compiler_pic \
31885 lt_prog_compiler_wl \
31886 lt_prog_compiler_static \
31887 lt_cv_prog_compiler_c_o \
31888 need_locks \
31889 MANIFEST_TOOL \
31890 DSYMUTIL \
31891 NMEDIT \
31892 LIPO \
31893 OTOOL \
31894 OTOOL64 \
31895 shrext_cmds \
31896 export_dynamic_flag_spec \
31897 whole_archive_flag_spec \
31898 compiler_needs_object \
31899 with_gnu_ld \
31900 allow_undefined_flag \
31901 no_undefined_flag \
31902 hardcode_libdir_flag_spec \
31903 hardcode_libdir_separator \
31904 exclude_expsyms \
31905 include_expsyms \
31906 file_list_spec \
31907 variables_saved_for_relink \
31908 libname_spec \
31909 library_names_spec \
31910 soname_spec \
31911 install_override_mode \
31912 finish_eval \
31913 old_striplib \
31914 striplib \
31915 compiler_lib_search_dirs \
31916 predep_objects \
31917 postdep_objects \
31918 predeps \
31919 postdeps \
31920 compiler_lib_search_path \
31921 LD_CXX \
31922 reload_flag_CXX \
31923 compiler_CXX \
31924 lt_prog_compiler_no_builtin_flag_CXX \
31925 lt_prog_compiler_pic_CXX \
31926 lt_prog_compiler_wl_CXX \
31927 lt_prog_compiler_static_CXX \
31928 lt_cv_prog_compiler_c_o_CXX \
31929 export_dynamic_flag_spec_CXX \
31930 whole_archive_flag_spec_CXX \
31931 compiler_needs_object_CXX \
31932 with_gnu_ld_CXX \
31933 allow_undefined_flag_CXX \
31934 no_undefined_flag_CXX \
31935 hardcode_libdir_flag_spec_CXX \
31936 hardcode_libdir_separator_CXX \
31937 exclude_expsyms_CXX \
31938 include_expsyms_CXX \
31939 file_list_spec_CXX \
31940 compiler_lib_search_dirs_CXX \
31941 predep_objects_CXX \
31942 postdep_objects_CXX \
31943 predeps_CXX \
31944 postdeps_CXX \
31945 compiler_lib_search_path_CXX; do
31946     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31947     *[\\\\\\\`\\"\\\$]*)
31948       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31949       ;;
31950     *)
31951       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31952       ;;
31953     esac
31954 done
31955
31956 # Double-quote double-evaled strings.
31957 for var in reload_cmds \
31958 old_postinstall_cmds \
31959 old_postuninstall_cmds \
31960 old_archive_cmds \
31961 extract_expsyms_cmds \
31962 old_archive_from_new_cmds \
31963 old_archive_from_expsyms_cmds \
31964 archive_cmds \
31965 archive_expsym_cmds \
31966 module_cmds \
31967 module_expsym_cmds \
31968 export_symbols_cmds \
31969 prelink_cmds \
31970 postlink_cmds \
31971 postinstall_cmds \
31972 postuninstall_cmds \
31973 finish_cmds \
31974 sys_lib_search_path_spec \
31975 sys_lib_dlsearch_path_spec \
31976 reload_cmds_CXX \
31977 old_archive_cmds_CXX \
31978 old_archive_from_new_cmds_CXX \
31979 old_archive_from_expsyms_cmds_CXX \
31980 archive_cmds_CXX \
31981 archive_expsym_cmds_CXX \
31982 module_cmds_CXX \
31983 module_expsym_cmds_CXX \
31984 export_symbols_cmds_CXX \
31985 prelink_cmds_CXX \
31986 postlink_cmds_CXX; do
31987     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31988     *[\\\\\\\`\\"\\\$]*)
31989       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31990       ;;
31991     *)
31992       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31993       ;;
31994     esac
31995 done
31996
31997 ac_aux_dir='$ac_aux_dir'
31998 xsi_shell='$xsi_shell'
31999 lt_shell_append='$lt_shell_append'
32000
32001 # See if we are running on zsh, and set the options which allow our
32002 # commands through without removal of \ escapes INIT.
32003 if test -n "\${ZSH_VERSION+set}" ; then
32004    setopt NO_GLOB_SUBST
32005 fi
32006
32007
32008     PACKAGE='$PACKAGE'
32009     VERSION='$VERSION'
32010     TIMESTAMP='$TIMESTAMP'
32011     RM='$RM'
32012     ofile='$ofile'
32013
32014
32015
32016
32017
32018 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32019     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32020     # from automake.
32021     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32022     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32023     LINGUAS="${LINGUAS-%UNSET%}"
32024
32025
32026 _ACEOF
32027
32028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32029
32030 # Handling of arguments.
32031 for ac_config_target in $ac_config_targets
32032 do
32033   case $ac_config_target in
32034     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32035     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32036     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32037     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32038     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32039     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32040     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32041     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32042     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32043     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32044     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32045     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32046     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32047     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32048     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32049     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32050     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32051     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32052     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32053     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32054     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32055     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32056     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32057     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32058     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32059     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32060     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32061     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32062     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32063     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32064     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32065     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32066     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32067     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32068     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32069     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32070     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32071     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32072     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32073     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32074     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32075     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32076     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32077     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32078     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32079     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32080     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32081     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32082     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32083     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32084     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32085     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32086     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32087     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32088     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32089     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32090     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32091     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32092     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32093     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32094     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32095     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32096     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32097     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32098     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32099     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32100     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32101     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32102     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32103     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32104     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32105     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32106     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32107     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32108     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32109     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32110     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32111     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32112     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32113     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32114     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32115     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32116     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32117     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32118     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32119     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32120     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32121     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32122     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32123     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32124     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32125     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32126     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32127     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32128     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32129     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32130     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32131     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32132     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32133     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32134     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32135     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32136     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32137     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32138     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32139
32140   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32141   esac
32142 done
32143
32144
32145 # If the user did not use the arguments to specify the items to instantiate,
32146 # then the envvar interface is used.  Set only those that are not.
32147 # We use the long form for the default assignment because of an extremely
32148 # bizarre bug on SunOS 4.1.3.
32149 if $ac_need_defaults; then
32150   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32151   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32152   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32153 fi
32154
32155 # Have a temporary directory for convenience.  Make it in the build tree
32156 # simply because there is no reason against having it here, and in addition,
32157 # creating and moving files from /tmp can sometimes cause problems.
32158 # Hook for its removal unless debugging.
32159 # Note that there is a small window in which the directory will not be cleaned:
32160 # after its creation but before its name has been assigned to `$tmp'.
32161 $debug ||
32162 {
32163   tmp= ac_tmp=
32164   trap 'exit_status=$?
32165   : "${ac_tmp:=$tmp}"
32166   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32167 ' 0
32168   trap 'as_fn_exit 1' 1 2 13 15
32169 }
32170 # Create a (secure) tmp directory for tmp files.
32171
32172 {
32173   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32174   test -d "$tmp"
32175 }  ||
32176 {
32177   tmp=./conf$$-$RANDOM
32178   (umask 077 && mkdir "$tmp")
32179 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32180 ac_tmp=$tmp
32181
32182 # Set up the scripts for CONFIG_FILES section.
32183 # No need to generate them if there are no CONFIG_FILES.
32184 # This happens for instance with `./config.status config.h'.
32185 if test -n "$CONFIG_FILES"; then
32186
32187 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32188   ac_cs_awk_getline=:
32189   ac_cs_awk_pipe_init=
32190   ac_cs_awk_read_file='
32191       while ((getline aline < (F[key])) > 0)
32192         print(aline)
32193       close(F[key])'
32194   ac_cs_awk_pipe_fini=
32195 else
32196   ac_cs_awk_getline=false
32197   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32198   ac_cs_awk_read_file='
32199       print "|#_!!_#|"
32200       print "cat " F[key] " &&"
32201       '$ac_cs_awk_pipe_init
32202   # The final `:' finishes the AND list.
32203   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32204 fi
32205 ac_cr=`echo X | tr X '\015'`
32206 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32207 # But we know of no other shell where ac_cr would be empty at this
32208 # point, so we can use a bashism as a fallback.
32209 if test "x$ac_cr" = x; then
32210   eval ac_cr=\$\'\\r\'
32211 fi
32212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32214   ac_cs_awk_cr='\\r'
32215 else
32216   ac_cs_awk_cr=$ac_cr
32217 fi
32218
32219 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32220 _ACEOF
32221
32222 # Create commands to substitute file output variables.
32223 {
32224   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32225   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32226   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32227   echo "_ACAWK" &&
32228   echo "_ACEOF"
32229 } >conf$$files.sh &&
32230 . ./conf$$files.sh ||
32231   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32232 rm -f conf$$files.sh
32233
32234 {
32235   echo "cat >conf$$subs.awk <<_ACEOF" &&
32236   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32237   echo "_ACEOF"
32238 } >conf$$subs.sh ||
32239   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32240 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32241 ac_delim='%!_!# '
32242 for ac_last_try in false false false false false :; do
32243   . ./conf$$subs.sh ||
32244     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32245
32246   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32247   if test $ac_delim_n = $ac_delim_num; then
32248     break
32249   elif $ac_last_try; then
32250     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32251   else
32252     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32253   fi
32254 done
32255 rm -f conf$$subs.sh
32256
32257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32258 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32259 _ACEOF
32260 sed -n '
32261 h
32262 s/^/S["/; s/!.*/"]=/
32263 p
32264 g
32265 s/^[^!]*!//
32266 :repl
32267 t repl
32268 s/'"$ac_delim"'$//
32269 t delim
32270 :nl
32271 h
32272 s/\(.\{148\}\)..*/\1/
32273 t more1
32274 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32275 p
32276 n
32277 b repl
32278 :more1
32279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32280 p
32281 g
32282 s/.\{148\}//
32283 t nl
32284 :delim
32285 h
32286 s/\(.\{148\}\)..*/\1/
32287 t more2
32288 s/["\\]/\\&/g; s/^/"/; s/$/"/
32289 p
32290 b
32291 :more2
32292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32293 p
32294 g
32295 s/.\{148\}//
32296 t delim
32297 ' <conf$$subs.awk | sed '
32298 /^[^""]/{
32299   N
32300   s/\n//
32301 }
32302 ' >>$CONFIG_STATUS || ac_write_fail=1
32303 rm -f conf$$subs.awk
32304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32305 _ACAWK
32306 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32307   for (key in S) S_is_set[key] = 1
32308   FS = "\a"
32309   \$ac_cs_awk_pipe_init
32310 }
32311 {
32312   line = $ 0
32313   nfields = split(line, field, "@")
32314   substed = 0
32315   len = length(field[1])
32316   for (i = 2; i < nfields; i++) {
32317     key = field[i]
32318     keylen = length(key)
32319     if (S_is_set[key]) {
32320       value = S[key]
32321       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32322       len += length(value) + length(field[++i])
32323       substed = 1
32324     } else
32325       len += 1 + keylen
32326   }
32327   if (nfields == 3 && !substed) {
32328     key = field[2]
32329     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32330       \$ac_cs_awk_read_file
32331       next
32332     }
32333   }
32334   print line
32335 }
32336 \$ac_cs_awk_pipe_fini
32337 _ACAWK
32338 _ACEOF
32339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32340 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32341   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32342 else
32343   cat
32344 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32345   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32346 _ACEOF
32347
32348 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32349 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32350 # trailing colons and then remove the whole line if VPATH becomes empty
32351 # (actually we leave an empty line to preserve line numbers).
32352 if test "x$srcdir" = x.; then
32353   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32354 h
32355 s///
32356 s/^/:/
32357 s/[      ]*$/:/
32358 s/:\$(srcdir):/:/g
32359 s/:\${srcdir}:/:/g
32360 s/:@srcdir@:/:/g
32361 s/^:*//
32362 s/:*$//
32363 x
32364 s/\(=[   ]*\).*/\1/
32365 G
32366 s/\n//
32367 s/^[^=]*=[       ]*$//
32368 }'
32369 fi
32370
32371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32372 fi # test -n "$CONFIG_FILES"
32373
32374 # Set up the scripts for CONFIG_HEADERS section.
32375 # No need to generate them if there are no CONFIG_HEADERS.
32376 # This happens for instance with `./config.status Makefile'.
32377 if test -n "$CONFIG_HEADERS"; then
32378 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32379 BEGIN {
32380 _ACEOF
32381
32382 # Transform confdefs.h into an awk script `defines.awk', embedded as
32383 # here-document in config.status, that substitutes the proper values into
32384 # config.h.in to produce config.h.
32385
32386 # Create a delimiter string that does not exist in confdefs.h, to ease
32387 # handling of long lines.
32388 ac_delim='%!_!# '
32389 for ac_last_try in false false :; do
32390   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32391   if test -z "$ac_tt"; then
32392     break
32393   elif $ac_last_try; then
32394     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32395   else
32396     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32397   fi
32398 done
32399
32400 # For the awk script, D is an array of macro values keyed by name,
32401 # likewise P contains macro parameters if any.  Preserve backslash
32402 # newline sequences.
32403
32404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32405 sed -n '
32406 s/.\{148\}/&'"$ac_delim"'/g
32407 t rset
32408 :rset
32409 s/^[     ]*#[    ]*define[       ][      ]*/ /
32410 t def
32411 d
32412 :def
32413 s/\\$//
32414 t bsnl
32415 s/["\\]/\\&/g
32416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32417 D["\1"]=" \3"/p
32418 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32419 d
32420 :bsnl
32421 s/["\\]/\\&/g
32422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32423 D["\1"]=" \3\\\\\\n"\\/p
32424 t cont
32425 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32426 t cont
32427 d
32428 :cont
32429 n
32430 s/.\{148\}/&'"$ac_delim"'/g
32431 t clear
32432 :clear
32433 s/\\$//
32434 t bsnlc
32435 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32436 d
32437 :bsnlc
32438 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32439 b cont
32440 ' <confdefs.h | sed '
32441 s/'"$ac_delim"'/"\\\
32442 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32443
32444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32445   for (key in D) D_is_set[key] = 1
32446   FS = "\a"
32447 }
32448 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32449   line = \$ 0
32450   split(line, arg, " ")
32451   if (arg[1] == "#") {
32452     defundef = arg[2]
32453     mac1 = arg[3]
32454   } else {
32455     defundef = substr(arg[1], 2)
32456     mac1 = arg[2]
32457   }
32458   split(mac1, mac2, "(") #)
32459   macro = mac2[1]
32460   prefix = substr(line, 1, index(line, defundef) - 1)
32461   if (D_is_set[macro]) {
32462     # Preserve the white space surrounding the "#".
32463     print prefix "define", macro P[macro] D[macro]
32464     next
32465   } else {
32466     # Replace #undef with comments.  This is necessary, for example,
32467     # in the case of _POSIX_SOURCE, which is predefined and required
32468     # on some systems where configure will not decide to define it.
32469     if (defundef == "undef") {
32470       print "/*", prefix defundef, macro, "*/"
32471       next
32472     }
32473   }
32474 }
32475 { print }
32476 _ACAWK
32477 _ACEOF
32478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32479   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32480 fi # test -n "$CONFIG_HEADERS"
32481
32482
32483 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32484 shift
32485 for ac_tag
32486 do
32487   case $ac_tag in
32488   :[FHLC]) ac_mode=$ac_tag; continue;;
32489   esac
32490   case $ac_mode$ac_tag in
32491   :[FHL]*:*);;
32492   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32493   :[FH]-) ac_tag=-:-;;
32494   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32495   esac
32496   ac_save_IFS=$IFS
32497   IFS=:
32498   set x $ac_tag
32499   IFS=$ac_save_IFS
32500   shift
32501   ac_file=$1
32502   shift
32503
32504   case $ac_mode in
32505   :L) ac_source=$1;;
32506   :[FH])
32507     ac_file_inputs=
32508     for ac_f
32509     do
32510       case $ac_f in
32511       -) ac_f="$ac_tmp/stdin";;
32512       *) # Look for the file first in the build tree, then in the source tree
32513          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32514          # because $ac_f cannot contain `:'.
32515          test -f "$ac_f" ||
32516            case $ac_f in
32517            [\\/$]*) false;;
32518            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32519            esac ||
32520            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32521       esac
32522       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32523       as_fn_append ac_file_inputs " '$ac_f'"
32524     done
32525
32526     # Let's still pretend it is `configure' which instantiates (i.e., don't
32527     # use $as_me), people would be surprised to read:
32528     #    /* config.h.  Generated by config.status.  */
32529     configure_input='Generated from '`
32530           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32531         `' by configure.'
32532     if test x"$ac_file" != x-; then
32533       configure_input="$ac_file.  $configure_input"
32534       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32535 $as_echo "$as_me: creating $ac_file" >&6;}
32536     fi
32537     # Neutralize special characters interpreted by sed in replacement strings.
32538     case $configure_input in #(
32539     *\&* | *\|* | *\\* )
32540        ac_sed_conf_input=`$as_echo "$configure_input" |
32541        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32542     *) ac_sed_conf_input=$configure_input;;
32543     esac
32544
32545     case $ac_tag in
32546     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32547       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32548     esac
32549     ;;
32550   esac
32551
32552   ac_dir=`$as_dirname -- "$ac_file" ||
32553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32554          X"$ac_file" : 'X\(//\)[^/]' \| \
32555          X"$ac_file" : 'X\(//\)$' \| \
32556          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32557 $as_echo X"$ac_file" |
32558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32559             s//\1/
32560             q
32561           }
32562           /^X\(\/\/\)[^/].*/{
32563             s//\1/
32564             q
32565           }
32566           /^X\(\/\/\)$/{
32567             s//\1/
32568             q
32569           }
32570           /^X\(\/\).*/{
32571             s//\1/
32572             q
32573           }
32574           s/.*/./; q'`
32575   as_dir="$ac_dir"; as_fn_mkdir_p
32576   ac_builddir=.
32577
32578 case "$ac_dir" in
32579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32580 *)
32581   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32582   # A ".." for each directory in $ac_dir_suffix.
32583   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32584   case $ac_top_builddir_sub in
32585   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32586   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32587   esac ;;
32588 esac
32589 ac_abs_top_builddir=$ac_pwd
32590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32591 # for backward compatibility:
32592 ac_top_builddir=$ac_top_build_prefix
32593
32594 case $srcdir in
32595   .)  # We are building in place.
32596     ac_srcdir=.
32597     ac_top_srcdir=$ac_top_builddir_sub
32598     ac_abs_top_srcdir=$ac_pwd ;;
32599   [\\/]* | ?:[\\/]* )  # Absolute name.
32600     ac_srcdir=$srcdir$ac_dir_suffix;
32601     ac_top_srcdir=$srcdir
32602     ac_abs_top_srcdir=$srcdir ;;
32603   *) # Relative name.
32604     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32605     ac_top_srcdir=$ac_top_build_prefix$srcdir
32606     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32607 esac
32608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32609
32610
32611   case $ac_mode in
32612   :F)
32613   #
32614   # CONFIG_FILE
32615   #
32616
32617   case $INSTALL in
32618   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32619   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32620   esac
32621 _ACEOF
32622
32623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32624 # If the template does not know about datarootdir, expand it.
32625 # FIXME: This hack should be removed a few years after 2.60.
32626 ac_datarootdir_hack=; ac_datarootdir_seen=
32627 ac_sed_dataroot='
32628 /datarootdir/ {
32629   p
32630   q
32631 }
32632 /@datadir@/p
32633 /@docdir@/p
32634 /@infodir@/p
32635 /@localedir@/p
32636 /@mandir@/p'
32637 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32638 *datarootdir*) ac_datarootdir_seen=yes;;
32639 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32640   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32641 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32642 _ACEOF
32643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32644   ac_datarootdir_hack='
32645   s&@datadir@&$datadir&g
32646   s&@docdir@&$docdir&g
32647   s&@infodir@&$infodir&g
32648   s&@localedir@&$localedir&g
32649   s&@mandir@&$mandir&g
32650   s&\\\${datarootdir}&$datarootdir&g' ;;
32651 esac
32652 _ACEOF
32653
32654 # Neutralize VPATH when `$srcdir' = `.'.
32655 # Shell code in configure.ac might set extrasub.
32656 # FIXME: do we really want to maintain this feature?
32657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32658 ac_sed_extra="$ac_vpsub
32659 $extrasub
32660 _ACEOF
32661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32662 :t
32663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32664 s|@configure_input@|$ac_sed_conf_input|;t t
32665 s&@top_builddir@&$ac_top_builddir_sub&;t t
32666 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32667 s&@srcdir@&$ac_srcdir&;t t
32668 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32669 s&@top_srcdir@&$ac_top_srcdir&;t t
32670 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32671 s&@builddir@&$ac_builddir&;t t
32672 s&@abs_builddir@&$ac_abs_builddir&;t t
32673 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32674 s&@INSTALL@&$ac_INSTALL&;t t
32675 $ac_datarootdir_hack
32676 "
32677 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32678 if $ac_cs_awk_getline; then
32679   $AWK -f "$ac_tmp/subs.awk"
32680 else
32681   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32682 fi \
32683   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32684
32685 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32686   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32687   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32688       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32689   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32690 which seems to be undefined.  Please make sure it is defined" >&5
32691 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32692 which seems to be undefined.  Please make sure it is defined" >&2;}
32693
32694   rm -f "$ac_tmp/stdin"
32695   case $ac_file in
32696   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32697   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32698   esac \
32699   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32700  ;;
32701   :H)
32702   #
32703   # CONFIG_HEADER
32704   #
32705   if test x"$ac_file" != x-; then
32706     {
32707       $as_echo "/* $configure_input  */" \
32708       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32709     } >"$ac_tmp/config.h" \
32710       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32711     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32712       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32713 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32714     else
32715       rm -f "$ac_file"
32716       mv "$ac_tmp/config.h" "$ac_file" \
32717         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32718     fi
32719   else
32720     $as_echo "/* $configure_input  */" \
32721       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32722       || as_fn_error $? "could not create -" "$LINENO" 5
32723   fi
32724  ;;
32725
32726   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32727 $as_echo "$as_me: executing $ac_file commands" >&6;}
32728  ;;
32729   esac
32730
32731
32732   case $ac_file$ac_mode in
32733     "libtool":C)
32734
32735     # See if we are running on zsh, and set the options which allow our
32736     # commands through without removal of \ escapes.
32737     if test -n "${ZSH_VERSION+set}" ; then
32738       setopt NO_GLOB_SUBST
32739     fi
32740
32741     cfgfile="${ofile}T"
32742     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32743     $RM "$cfgfile"
32744
32745     cat <<_LT_EOF >> "$cfgfile"
32746 #! $SHELL
32747
32748 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32749 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32751 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32752 #
32753 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32754 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32755 #                 Foundation, Inc.
32756 #   Written by Gordon Matzigkeit, 1996
32757 #
32758 #   This file is part of GNU Libtool.
32759 #
32760 # GNU Libtool is free software; you can redistribute it and/or
32761 # modify it under the terms of the GNU General Public License as
32762 # published by the Free Software Foundation; either version 2 of
32763 # the License, or (at your option) any later version.
32764 #
32765 # As a special exception to the GNU General Public License,
32766 # if you distribute this file as part of a program or library that
32767 # is built using GNU Libtool, you may include this file under the
32768 # same distribution terms that you use for the rest of that program.
32769 #
32770 # GNU Libtool is distributed in the hope that it will be useful,
32771 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32772 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32773 # GNU General Public License for more details.
32774 #
32775 # You should have received a copy of the GNU General Public License
32776 # along with GNU Libtool; see the file COPYING.  If not, a copy
32777 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32778 # obtained by writing to the Free Software Foundation, Inc.,
32779 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32780
32781
32782 # The names of the tagged configurations supported by this script.
32783 available_tags="CXX "
32784
32785 # ### BEGIN LIBTOOL CONFIG
32786
32787 # Which release of libtool.m4 was used?
32788 macro_version=$macro_version
32789 macro_revision=$macro_revision
32790
32791 # Whether or not to build shared libraries.
32792 build_libtool_libs=$enable_shared
32793
32794 # Whether or not to build static libraries.
32795 build_old_libs=$enable_static
32796
32797 # What type of objects to build.
32798 pic_mode=$pic_mode
32799
32800 # Whether or not to optimize for fast installation.
32801 fast_install=$enable_fast_install
32802
32803 # Shell to use when invoking shell scripts.
32804 SHELL=$lt_SHELL
32805
32806 # An echo program that protects backslashes.
32807 ECHO=$lt_ECHO
32808
32809 # The PATH separator for the build system.
32810 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32811
32812 # The host system.
32813 host_alias=$host_alias
32814 host=$host
32815 host_os=$host_os
32816
32817 # The build system.
32818 build_alias=$build_alias
32819 build=$build
32820 build_os=$build_os
32821
32822 # A sed program that does not truncate output.
32823 SED=$lt_SED
32824
32825 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32826 Xsed="\$SED -e 1s/^X//"
32827
32828 # A grep program that handles long lines.
32829 GREP=$lt_GREP
32830
32831 # An ERE matcher.
32832 EGREP=$lt_EGREP
32833
32834 # A literal string matcher.
32835 FGREP=$lt_FGREP
32836
32837 # A BSD- or MS-compatible name lister.
32838 NM=$lt_NM
32839
32840 # Whether we need soft or hard links.
32841 LN_S=$lt_LN_S
32842
32843 # What is the maximum length of a command?
32844 max_cmd_len=$max_cmd_len
32845
32846 # Object file suffix (normally "o").
32847 objext=$ac_objext
32848
32849 # Executable file suffix (normally "").
32850 exeext=$exeext
32851
32852 # whether the shell understands "unset".
32853 lt_unset=$lt_unset
32854
32855 # turn spaces into newlines.
32856 SP2NL=$lt_lt_SP2NL
32857
32858 # turn newlines into spaces.
32859 NL2SP=$lt_lt_NL2SP
32860
32861 # convert \$build file names to \$host format.
32862 to_host_file_cmd=$lt_cv_to_host_file_cmd
32863
32864 # convert \$build files to toolchain format.
32865 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32866
32867 # An object symbol dumper.
32868 OBJDUMP=$lt_OBJDUMP
32869
32870 # Method to check whether dependent libraries are shared objects.
32871 deplibs_check_method=$lt_deplibs_check_method
32872
32873 # Command to use when deplibs_check_method = "file_magic".
32874 file_magic_cmd=$lt_file_magic_cmd
32875
32876 # How to find potential files when deplibs_check_method = "file_magic".
32877 file_magic_glob=$lt_file_magic_glob
32878
32879 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32880 want_nocaseglob=$lt_want_nocaseglob
32881
32882 # DLL creation program.
32883 DLLTOOL=$lt_DLLTOOL
32884
32885 # Command to associate shared and link libraries.
32886 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32887
32888 # The archiver.
32889 AR=$lt_AR
32890
32891 # Flags to create an archive.
32892 AR_FLAGS=$lt_AR_FLAGS
32893
32894 # How to feed a file listing to the archiver.
32895 archiver_list_spec=$lt_archiver_list_spec
32896
32897 # A symbol stripping program.
32898 STRIP=$lt_STRIP
32899
32900 # Commands used to install an old-style archive.
32901 RANLIB=$lt_RANLIB
32902 old_postinstall_cmds=$lt_old_postinstall_cmds
32903 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32904
32905 # Whether to use a lock for old archive extraction.
32906 lock_old_archive_extraction=$lock_old_archive_extraction
32907
32908 # A C compiler.
32909 LTCC=$lt_CC
32910
32911 # LTCC compiler flags.
32912 LTCFLAGS=$lt_CFLAGS
32913
32914 # Take the output of nm and produce a listing of raw symbols and C names.
32915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32916
32917 # Transform the output of nm in a proper C declaration.
32918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32919
32920 # Transform the output of nm in a C name address pair.
32921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32922
32923 # Transform the output of nm in a C name address pair when lib prefix is needed.
32924 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32925
32926 # Specify filename containing input files for \$NM.
32927 nm_file_list_spec=$lt_nm_file_list_spec
32928
32929 # The root where to search for dependent libraries,and in which our libraries should be installed.
32930 lt_sysroot=$lt_sysroot
32931
32932 # The name of the directory that contains temporary libtool files.
32933 objdir=$objdir
32934
32935 # Used to examine libraries when file_magic_cmd begins with "file".
32936 MAGIC_CMD=$MAGIC_CMD
32937
32938 # Must we lock files when doing compilation?
32939 need_locks=$lt_need_locks
32940
32941 # Manifest tool.
32942 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32943
32944 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32945 DSYMUTIL=$lt_DSYMUTIL
32946
32947 # Tool to change global to local symbols on Mac OS X.
32948 NMEDIT=$lt_NMEDIT
32949
32950 # Tool to manipulate fat objects and archives on Mac OS X.
32951 LIPO=$lt_LIPO
32952
32953 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32954 OTOOL=$lt_OTOOL
32955
32956 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32957 OTOOL64=$lt_OTOOL64
32958
32959 # Old archive suffix (normally "a").
32960 libext=$libext
32961
32962 # Shared library suffix (normally ".so").
32963 shrext_cmds=$lt_shrext_cmds
32964
32965 # The commands to extract the exported symbol list from a shared archive.
32966 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32967
32968 # Variables whose values should be saved in libtool wrapper scripts and
32969 # restored at link time.
32970 variables_saved_for_relink=$lt_variables_saved_for_relink
32971
32972 # Do we need the "lib" prefix for modules?
32973 need_lib_prefix=$need_lib_prefix
32974
32975 # Do we need a version for libraries?
32976 need_version=$need_version
32977
32978 # Library versioning type.
32979 version_type=$version_type
32980
32981 # Shared library runtime path variable.
32982 runpath_var=$runpath_var
32983
32984 # Shared library path variable.
32985 shlibpath_var=$shlibpath_var
32986
32987 # Is shlibpath searched before the hard-coded library search path?
32988 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32989
32990 # Format of library name prefix.
32991 libname_spec=$lt_libname_spec
32992
32993 # List of archive names.  First name is the real one, the rest are links.
32994 # The last name is the one that the linker finds with -lNAME
32995 library_names_spec=$lt_library_names_spec
32996
32997 # The coded name of the library, if different from the real name.
32998 soname_spec=$lt_soname_spec
32999
33000 # Permission mode override for installation of shared libraries.
33001 install_override_mode=$lt_install_override_mode
33002
33003 # Command to use after installation of a shared archive.
33004 postinstall_cmds=$lt_postinstall_cmds
33005
33006 # Command to use after uninstallation of a shared archive.
33007 postuninstall_cmds=$lt_postuninstall_cmds
33008
33009 # Commands used to finish a libtool library installation in a directory.
33010 finish_cmds=$lt_finish_cmds
33011
33012 # As "finish_cmds", except a single script fragment to be evaled but
33013 # not shown.
33014 finish_eval=$lt_finish_eval
33015
33016 # Whether we should hardcode library paths into libraries.
33017 hardcode_into_libs=$hardcode_into_libs
33018
33019 # Compile-time system search path for libraries.
33020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33021
33022 # Run-time system search path for libraries.
33023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33024
33025 # Whether dlopen is supported.
33026 dlopen_support=$enable_dlopen
33027
33028 # Whether dlopen of programs is supported.
33029 dlopen_self=$enable_dlopen_self
33030
33031 # Whether dlopen of statically linked programs is supported.
33032 dlopen_self_static=$enable_dlopen_self_static
33033
33034 # Commands to strip libraries.
33035 old_striplib=$lt_old_striplib
33036 striplib=$lt_striplib
33037
33038
33039 # The linker used to build libraries.
33040 LD=$lt_LD
33041
33042 # How to create reloadable object files.
33043 reload_flag=$lt_reload_flag
33044 reload_cmds=$lt_reload_cmds
33045
33046 # Commands used to build an old-style archive.
33047 old_archive_cmds=$lt_old_archive_cmds
33048
33049 # A language specific compiler.
33050 CC=$lt_compiler
33051
33052 # Is the compiler the GNU compiler?
33053 with_gcc=$GCC
33054
33055 # Compiler flag to turn off builtin functions.
33056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33057
33058 # Additional compiler flags for building library objects.
33059 pic_flag=$lt_lt_prog_compiler_pic
33060
33061 # How to pass a linker flag through the compiler.
33062 wl=$lt_lt_prog_compiler_wl
33063
33064 # Compiler flag to prevent dynamic linking.
33065 link_static_flag=$lt_lt_prog_compiler_static
33066
33067 # Does compiler simultaneously support -c and -o options?
33068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33069
33070 # Whether or not to add -lc for building shared libraries.
33071 build_libtool_need_lc=$archive_cmds_need_lc
33072
33073 # Whether or not to disallow shared libs when runtime libs are static.
33074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33075
33076 # Compiler flag to allow reflexive dlopens.
33077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33078
33079 # Compiler flag to generate shared objects directly from archives.
33080 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33081
33082 # Whether the compiler copes with passing no objects directly.
33083 compiler_needs_object=$lt_compiler_needs_object
33084
33085 # Create an old-style archive from a shared archive.
33086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33087
33088 # Create a temporary old-style archive to link instead of a shared archive.
33089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33090
33091 # Commands used to build a shared archive.
33092 archive_cmds=$lt_archive_cmds
33093 archive_expsym_cmds=$lt_archive_expsym_cmds
33094
33095 # Commands used to build a loadable module if different from building
33096 # a shared archive.
33097 module_cmds=$lt_module_cmds
33098 module_expsym_cmds=$lt_module_expsym_cmds
33099
33100 # Whether we are building with GNU ld or not.
33101 with_gnu_ld=$lt_with_gnu_ld
33102
33103 # Flag that allows shared libraries with undefined symbols to be built.
33104 allow_undefined_flag=$lt_allow_undefined_flag
33105
33106 # Flag that enforces no undefined symbols.
33107 no_undefined_flag=$lt_no_undefined_flag
33108
33109 # Flag to hardcode \$libdir into a binary during linking.
33110 # This must work even if \$libdir does not exist
33111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33112
33113 # Whether we need a single "-rpath" flag with a separated argument.
33114 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33115
33116 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33117 # DIR into the resulting binary.
33118 hardcode_direct=$hardcode_direct
33119
33120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33121 # DIR into the resulting binary and the resulting library dependency is
33122 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33123 # library is relocated.
33124 hardcode_direct_absolute=$hardcode_direct_absolute
33125
33126 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33127 # into the resulting binary.
33128 hardcode_minus_L=$hardcode_minus_L
33129
33130 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33131 # into the resulting binary.
33132 hardcode_shlibpath_var=$hardcode_shlibpath_var
33133
33134 # Set to "yes" if building a shared library automatically hardcodes DIR
33135 # into the library and all subsequent libraries and executables linked
33136 # against it.
33137 hardcode_automatic=$hardcode_automatic
33138
33139 # Set to yes if linker adds runtime paths of dependent libraries
33140 # to runtime path list.
33141 inherit_rpath=$inherit_rpath
33142
33143 # Whether libtool must link a program against all its dependency libraries.
33144 link_all_deplibs=$link_all_deplibs
33145
33146 # Set to "yes" if exported symbols are required.
33147 always_export_symbols=$always_export_symbols
33148
33149 # The commands to list exported symbols.
33150 export_symbols_cmds=$lt_export_symbols_cmds
33151
33152 # Symbols that should not be listed in the preloaded symbols.
33153 exclude_expsyms=$lt_exclude_expsyms
33154
33155 # Symbols that must always be exported.
33156 include_expsyms=$lt_include_expsyms
33157
33158 # Commands necessary for linking programs (against libraries) with templates.
33159 prelink_cmds=$lt_prelink_cmds
33160
33161 # Commands necessary for finishing linking programs.
33162 postlink_cmds=$lt_postlink_cmds
33163
33164 # Specify filename containing input files.
33165 file_list_spec=$lt_file_list_spec
33166
33167 # How to hardcode a shared library path into an executable.
33168 hardcode_action=$hardcode_action
33169
33170 # The directories searched by this compiler when creating a shared library.
33171 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33172
33173 # Dependencies to place before and after the objects being linked to
33174 # create a shared library.
33175 predep_objects=$lt_predep_objects
33176 postdep_objects=$lt_postdep_objects
33177 predeps=$lt_predeps
33178 postdeps=$lt_postdeps
33179
33180 # The library search path used internally by the compiler when linking
33181 # a shared library.
33182 compiler_lib_search_path=$lt_compiler_lib_search_path
33183
33184 # ### END LIBTOOL CONFIG
33185
33186 _LT_EOF
33187
33188   case $host_os in
33189   aix3*)
33190     cat <<\_LT_EOF >> "$cfgfile"
33191 # AIX sometimes has problems with the GCC collect2 program.  For some
33192 # reason, if we set the COLLECT_NAMES environment variable, the problems
33193 # vanish in a puff of smoke.
33194 if test "X${COLLECT_NAMES+set}" != Xset; then
33195   COLLECT_NAMES=
33196   export COLLECT_NAMES
33197 fi
33198 _LT_EOF
33199     ;;
33200   esac
33201
33202
33203 ltmain="$ac_aux_dir/ltmain.sh"
33204
33205
33206   # We use sed instead of cat because bash on DJGPP gets confused if
33207   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33208   # text mode, it properly converts lines to CR/LF.  This bash problem
33209   # is reportedly fixed, but why not run on old versions too?
33210   sed '$q' "$ltmain" >> "$cfgfile" \
33211      || (rm -f "$cfgfile"; exit 1)
33212
33213   if test x"$xsi_shell" = xyes; then
33214   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33215 func_dirname ()\
33216 {\
33217 \    case ${1} in\
33218 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33219 \      *  ) func_dirname_result="${3}" ;;\
33220 \    esac\
33221 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33222   && mv -f "$cfgfile.tmp" "$cfgfile" \
33223     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33224 test 0 -eq $? || _lt_function_replace_fail=:
33225
33226
33227   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33228 func_basename ()\
33229 {\
33230 \    func_basename_result="${1##*/}"\
33231 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33232   && mv -f "$cfgfile.tmp" "$cfgfile" \
33233     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33234 test 0 -eq $? || _lt_function_replace_fail=:
33235
33236
33237   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33238 func_dirname_and_basename ()\
33239 {\
33240 \    case ${1} in\
33241 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33242 \      *  ) func_dirname_result="${3}" ;;\
33243 \    esac\
33244 \    func_basename_result="${1##*/}"\
33245 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33246   && mv -f "$cfgfile.tmp" "$cfgfile" \
33247     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33248 test 0 -eq $? || _lt_function_replace_fail=:
33249
33250
33251   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33252 func_stripname ()\
33253 {\
33254 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33255 \    # positional parameters, so assign one to ordinary parameter first.\
33256 \    func_stripname_result=${3}\
33257 \    func_stripname_result=${func_stripname_result#"${1}"}\
33258 \    func_stripname_result=${func_stripname_result%"${2}"}\
33259 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33260   && mv -f "$cfgfile.tmp" "$cfgfile" \
33261     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33262 test 0 -eq $? || _lt_function_replace_fail=:
33263
33264
33265   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33266 func_split_long_opt ()\
33267 {\
33268 \    func_split_long_opt_name=${1%%=*}\
33269 \    func_split_long_opt_arg=${1#*=}\
33270 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33271   && mv -f "$cfgfile.tmp" "$cfgfile" \
33272     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33273 test 0 -eq $? || _lt_function_replace_fail=:
33274
33275
33276   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33277 func_split_short_opt ()\
33278 {\
33279 \    func_split_short_opt_arg=${1#??}\
33280 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33281 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33282   && mv -f "$cfgfile.tmp" "$cfgfile" \
33283     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33284 test 0 -eq $? || _lt_function_replace_fail=:
33285
33286
33287   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33288 func_lo2o ()\
33289 {\
33290 \    case ${1} in\
33291 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33292 \      *)    func_lo2o_result=${1} ;;\
33293 \    esac\
33294 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33295   && mv -f "$cfgfile.tmp" "$cfgfile" \
33296     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33297 test 0 -eq $? || _lt_function_replace_fail=:
33298
33299
33300   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33301 func_xform ()\
33302 {\
33303     func_xform_result=${1%.*}.lo\
33304 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33305   && mv -f "$cfgfile.tmp" "$cfgfile" \
33306     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33307 test 0 -eq $? || _lt_function_replace_fail=:
33308
33309
33310   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33311 func_arith ()\
33312 {\
33313     func_arith_result=$(( $* ))\
33314 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33315   && mv -f "$cfgfile.tmp" "$cfgfile" \
33316     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33317 test 0 -eq $? || _lt_function_replace_fail=:
33318
33319
33320   sed -e '/^func_len ()$/,/^} # func_len /c\
33321 func_len ()\
33322 {\
33323     func_len_result=${#1}\
33324 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33325   && mv -f "$cfgfile.tmp" "$cfgfile" \
33326     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33327 test 0 -eq $? || _lt_function_replace_fail=:
33328
33329 fi
33330
33331 if test x"$lt_shell_append" = xyes; then
33332   sed -e '/^func_append ()$/,/^} # func_append /c\
33333 func_append ()\
33334 {\
33335     eval "${1}+=\\${2}"\
33336 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33337   && mv -f "$cfgfile.tmp" "$cfgfile" \
33338     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33339 test 0 -eq $? || _lt_function_replace_fail=:
33340
33341
33342   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33343 func_append_quoted ()\
33344 {\
33345 \    func_quote_for_eval "${2}"\
33346 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33347 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33348   && mv -f "$cfgfile.tmp" "$cfgfile" \
33349     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33350 test 0 -eq $? || _lt_function_replace_fail=:
33351
33352
33353   # Save a `func_append' function call where possible by direct use of '+='
33354   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33355     && mv -f "$cfgfile.tmp" "$cfgfile" \
33356       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33357   test 0 -eq $? || _lt_function_replace_fail=:
33358 else
33359   # Save a `func_append' function call even when '+=' is not available
33360   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33361     && mv -f "$cfgfile.tmp" "$cfgfile" \
33362       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33363   test 0 -eq $? || _lt_function_replace_fail=:
33364 fi
33365
33366 if test x"$_lt_function_replace_fail" = x":"; then
33367   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33368 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33369 fi
33370
33371
33372    mv -f "$cfgfile" "$ofile" ||
33373     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33374   chmod +x "$ofile"
33375
33376
33377     cat <<_LT_EOF >> "$ofile"
33378
33379 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33380
33381 # The linker used to build libraries.
33382 LD=$lt_LD_CXX
33383
33384 # How to create reloadable object files.
33385 reload_flag=$lt_reload_flag_CXX
33386 reload_cmds=$lt_reload_cmds_CXX
33387
33388 # Commands used to build an old-style archive.
33389 old_archive_cmds=$lt_old_archive_cmds_CXX
33390
33391 # A language specific compiler.
33392 CC=$lt_compiler_CXX
33393
33394 # Is the compiler the GNU compiler?
33395 with_gcc=$GCC_CXX
33396
33397 # Compiler flag to turn off builtin functions.
33398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33399
33400 # Additional compiler flags for building library objects.
33401 pic_flag=$lt_lt_prog_compiler_pic_CXX
33402
33403 # How to pass a linker flag through the compiler.
33404 wl=$lt_lt_prog_compiler_wl_CXX
33405
33406 # Compiler flag to prevent dynamic linking.
33407 link_static_flag=$lt_lt_prog_compiler_static_CXX
33408
33409 # Does compiler simultaneously support -c and -o options?
33410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33411
33412 # Whether or not to add -lc for building shared libraries.
33413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33414
33415 # Whether or not to disallow shared libs when runtime libs are static.
33416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33417
33418 # Compiler flag to allow reflexive dlopens.
33419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33420
33421 # Compiler flag to generate shared objects directly from archives.
33422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33423
33424 # Whether the compiler copes with passing no objects directly.
33425 compiler_needs_object=$lt_compiler_needs_object_CXX
33426
33427 # Create an old-style archive from a shared archive.
33428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33429
33430 # Create a temporary old-style archive to link instead of a shared archive.
33431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33432
33433 # Commands used to build a shared archive.
33434 archive_cmds=$lt_archive_cmds_CXX
33435 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33436
33437 # Commands used to build a loadable module if different from building
33438 # a shared archive.
33439 module_cmds=$lt_module_cmds_CXX
33440 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33441
33442 # Whether we are building with GNU ld or not.
33443 with_gnu_ld=$lt_with_gnu_ld_CXX
33444
33445 # Flag that allows shared libraries with undefined symbols to be built.
33446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33447
33448 # Flag that enforces no undefined symbols.
33449 no_undefined_flag=$lt_no_undefined_flag_CXX
33450
33451 # Flag to hardcode \$libdir into a binary during linking.
33452 # This must work even if \$libdir does not exist
33453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33454
33455 # Whether we need a single "-rpath" flag with a separated argument.
33456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33457
33458 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33459 # DIR into the resulting binary.
33460 hardcode_direct=$hardcode_direct_CXX
33461
33462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33463 # DIR into the resulting binary and the resulting library dependency is
33464 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33465 # library is relocated.
33466 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33467
33468 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33469 # into the resulting binary.
33470 hardcode_minus_L=$hardcode_minus_L_CXX
33471
33472 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33473 # into the resulting binary.
33474 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33475
33476 # Set to "yes" if building a shared library automatically hardcodes DIR
33477 # into the library and all subsequent libraries and executables linked
33478 # against it.
33479 hardcode_automatic=$hardcode_automatic_CXX
33480
33481 # Set to yes if linker adds runtime paths of dependent libraries
33482 # to runtime path list.
33483 inherit_rpath=$inherit_rpath_CXX
33484
33485 # Whether libtool must link a program against all its dependency libraries.
33486 link_all_deplibs=$link_all_deplibs_CXX
33487
33488 # Set to "yes" if exported symbols are required.
33489 always_export_symbols=$always_export_symbols_CXX
33490
33491 # The commands to list exported symbols.
33492 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33493
33494 # Symbols that should not be listed in the preloaded symbols.
33495 exclude_expsyms=$lt_exclude_expsyms_CXX
33496
33497 # Symbols that must always be exported.
33498 include_expsyms=$lt_include_expsyms_CXX
33499
33500 # Commands necessary for linking programs (against libraries) with templates.
33501 prelink_cmds=$lt_prelink_cmds_CXX
33502
33503 # Commands necessary for finishing linking programs.
33504 postlink_cmds=$lt_postlink_cmds_CXX
33505
33506 # Specify filename containing input files.
33507 file_list_spec=$lt_file_list_spec_CXX
33508
33509 # How to hardcode a shared library path into an executable.
33510 hardcode_action=$hardcode_action_CXX
33511
33512 # The directories searched by this compiler when creating a shared library.
33513 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33514
33515 # Dependencies to place before and after the objects being linked to
33516 # create a shared library.
33517 predep_objects=$lt_predep_objects_CXX
33518 postdep_objects=$lt_postdep_objects_CXX
33519 predeps=$lt_predeps_CXX
33520 postdeps=$lt_postdeps_CXX
33521
33522 # The library search path used internally by the compiler when linking
33523 # a shared library.
33524 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33525
33526 # ### END LIBTOOL TAG CONFIG: CXX
33527 _LT_EOF
33528
33529  ;;
33530     "default-1":C)
33531     for ac_file in $CONFIG_FILES; do
33532       # Support "outfile[:infile[:infile...]]"
33533       case "$ac_file" in
33534         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33535       esac
33536       # PO directories have a Makefile.in generated from Makefile.in.in.
33537       case "$ac_file" in */Makefile.in)
33538         # Adjust a relative srcdir.
33539         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33540         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33541         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33542         # In autoconf-2.13 it is called $ac_given_srcdir.
33543         # In autoconf-2.50 it is called $srcdir.
33544         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33545         case "$ac_given_srcdir" in
33546           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33547           /*) top_srcdir="$ac_given_srcdir" ;;
33548           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33549         esac
33550         # Treat a directory as a PO directory if and only if it has a
33551         # POTFILES.in file. This allows packages to have multiple PO
33552         # directories under different names or in different locations.
33553         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33554           rm -f "$ac_dir/POTFILES"
33555           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33556           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33557           POMAKEFILEDEPS="POTFILES.in"
33558           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33559           # on $ac_dir but don't depend on user-specified configuration
33560           # parameters.
33561           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33562             # The LINGUAS file contains the set of available languages.
33563             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33564               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33565             fi
33566             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33567             # Hide the ALL_LINGUAS assigment from automake.
33568             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33569             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33570           else
33571             # The set of available languages was given in configure.in.
33572             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33573           fi
33574           # Compute POFILES
33575           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33576           # Compute UPDATEPOFILES
33577           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33578           # Compute DUMMYPOFILES
33579           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33580           # Compute GMOFILES
33581           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33582           case "$ac_given_srcdir" in
33583             .) srcdirpre= ;;
33584             *) srcdirpre='$(srcdir)/' ;;
33585           esac
33586           POFILES=
33587           UPDATEPOFILES=
33588           DUMMYPOFILES=
33589           GMOFILES=
33590           for lang in $ALL_LINGUAS; do
33591             POFILES="$POFILES $srcdirpre$lang.po"
33592             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33593             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33594             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33595           done
33596           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33597           # environment variable.
33598           INST_LINGUAS=
33599           if test -n "$ALL_LINGUAS"; then
33600             for presentlang in $ALL_LINGUAS; do
33601               useit=no
33602               if test "%UNSET%" != "$LINGUAS"; then
33603                 desiredlanguages="$LINGUAS"
33604               else
33605                 desiredlanguages="$ALL_LINGUAS"
33606               fi
33607               for desiredlang in $desiredlanguages; do
33608                 # Use the presentlang catalog if desiredlang is
33609                 #   a. equal to presentlang, or
33610                 #   b. a variant of presentlang (because in this case,
33611                 #      presentlang can be used as a fallback for messages
33612                 #      which are not translated in the desiredlang catalog).
33613                 case "$desiredlang" in
33614                   "$presentlang"*) useit=yes;;
33615                 esac
33616               done
33617               if test $useit = yes; then
33618                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33619               fi
33620             done
33621           fi
33622           CATALOGS=
33623           if test -n "$INST_LINGUAS"; then
33624             for lang in $INST_LINGUAS; do
33625               CATALOGS="$CATALOGS $lang.gmo"
33626             done
33627           fi
33628           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33629           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"
33630           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33631             if test -f "$f"; then
33632               case "$f" in
33633                 *.orig | *.bak | *~) ;;
33634                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33635               esac
33636             fi
33637           done
33638         fi
33639         ;;
33640       esac
33641     done ;;
33642     "default":C)
33643  ;;
33644
33645   esac
33646 done # for ac_tag
33647
33648
33649 as_fn_exit 0
33650 _ACEOF
33651 ac_clean_files=$ac_clean_files_save
33652
33653 test $ac_write_fail = 0 ||
33654   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33655
33656
33657 # configure is writing to config.log, and then calls config.status.
33658 # config.status does its own redirection, appending to config.log.
33659 # Unfortunately, on DOS this fails, as config.log is still kept open
33660 # by configure, so config.status won't be able to write to it; its
33661 # output is simply discarded.  So we exec the FD to /dev/null,
33662 # effectively closing config.log, so it can be properly (re)opened and
33663 # appended to by config.status.  When coming back to configure, we
33664 # need to make the FD available again.
33665 if test "$no_create" != yes; then
33666   ac_cs_success=:
33667   ac_config_status_args=
33668   test "$silent" = yes &&
33669     ac_config_status_args="$ac_config_status_args --quiet"
33670   exec 5>/dev/null
33671   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33672   exec 5>>config.log
33673   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33674   # would make configure fail if this is the last instruction.
33675   $ac_cs_success || as_fn_exit 1
33676 fi
33677 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33678   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33679 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33680 fi
33681
33682
33683 if test "${support_bat}" = "yes" ; then
33684    if test "x$QMAKE" = "xnone"; then
33685       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33686    fi
33687
33688    cd src/qt-console
33689    echo "Creating bat Makefile"
33690    touch bat
33691    chmod 755 bat
33692    rm -f Makefile
33693    rm -rf moc32 obj32
33694    $QMAKE
33695    ${MAKE:-make} clean
33696    cd ${BUILD_DIR}
33697 fi
33698
33699 if test X"$GCC" = "Xyes" ; then
33700   echo "Doing make of dependencies"
33701   ${MAKE:-make} depend
33702 fi
33703
33704 cd src/qt-console
33705 chmod 755 install_conf_file build-depkgs-qt-console
33706 cd ${BUILD_DIR}
33707
33708 cd scripts
33709 chmod 755 bacula btraceback mtx-changer
33710 chmod 755 dvd-handler dvd-simulator
33711 chmod 755 bconsole disk-changer devel_bacula logrotate
33712 cd ..
33713
33714 c=updatedb
33715 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33716 chmod 755 $c/update_postgresql_tables_10_to_11
33717 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33718 chmod 755 $c/update_postgresql_tables_11_to_12
33719
33720
33721 c=src/cats
33722
33723 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33724 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33725
33726 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33727 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33728
33729 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33730 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33731
33732 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33733 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33734
33735 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33736 chmod 755 $c/sqlite
33737 chmod 755 $c/mysql
33738
33739 chmod 755 $c/install-default-backend
33740
33741 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33742    largefile_support="yes"
33743 fi
33744
33745 if test X"$GCC" = "Xyes" ; then
33746                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33747    if test "x${CCVERSION}" = "x" ; then
33748       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33749    fi
33750    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33751    if test x"${CXXVERSION}" = x ; then
33752       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33753    fi
33754 fi
33755
33756 # clean up any old junk
33757 echo " "
33758 echo "Cleaning up"
33759 echo " "
33760 ${MAKE:-make} clean
33761
33762 echo "
33763 Configuration on `date`:
33764
33765    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33766    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33767    Source code location:     ${srcdir}
33768    Install binaries:         ${sbindir}
33769    Install libraries:        ${libdir}
33770    Install config files:     ${sysconfdir}
33771    Scripts directory:        ${scriptdir}
33772    Archive directory:        ${archivedir}
33773    Working directory:        ${working_dir}
33774    PID directory:            ${piddir}
33775    Subsys directory:         ${subsysdir}
33776    Man directory:            ${mandir}
33777    Data directory:           ${datarootdir}
33778    Plugin directory:         ${plugindir}
33779    C Compiler:               ${CC} ${CCVERSION}
33780    C++ Compiler:             ${CXX} ${CXXVERSION}
33781    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33782    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33783    Libraries:                ${LIBS}
33784    Statically Linked Tools:  ${support_static_tools}
33785    Statically Linked FD:     ${support_static_fd}
33786    Statically Linked SD:     ${support_static_sd}
33787    Statically Linked DIR:    ${support_static_dir}
33788    Statically Linked CONS:   ${support_static_cons}
33789    Database backends:        ${db_backends}
33790    Database port:            ${db_port}
33791    Database name:            ${db_name}
33792    Database user:            ${db_user}
33793    Database SSL options:     ${db_ssl_options}
33794
33795    Job Output Email:         ${job_email}
33796    Traceback Email:          ${dump_email}
33797    SMTP Host Address:        ${smtp_host}
33798
33799    Director Port:            ${dir_port}
33800    File daemon Port:         ${fd_port}
33801    Storage daemon Port:      ${sd_port}
33802
33803    Director User:            ${dir_user}
33804    Director Group:           ${dir_group}
33805    Storage Daemon User:      ${sd_user}
33806    Storage DaemonGroup:      ${sd_group}
33807    File Daemon User:         ${fd_user}
33808    File Daemon Group:        ${fd_group}
33809
33810    Large file support:       $largefile_support
33811    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33812    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33813    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33814    TLS support:              ${support_tls}
33815    Encryption support:       ${support_crypto}
33816    ZLIB support:             ${have_zlib}
33817    LZO support:              ${have_lzo}
33818    enable-smartalloc:        ${support_smartalloc}
33819    enable-lockmgr:           ${support_lockmgr}
33820    bat support:              ${support_bat}
33821    client-only:              ${build_client_only}
33822    build-dird:               ${build_dird}
33823    build-stored:             ${build_stored}
33824    Plugin support:           ${have_plugins}
33825    AFS support:              ${have_afs}
33826    ACL support:              ${have_acl}
33827    XATTR support:            ${have_xattr}
33828    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33829    Batch insert enabled:     ${batch_insert_db_backends}
33830
33831   " > config.out
33832
33833 # create a small shell script useful for support with
33834 # configure options and config.out info
33835 cat > scripts/bacula_config << EOF
33836 #!/bin/sh
33837 cat << __EOC__
33838 $ $0 $ac_configure_args
33839 EOF
33840 cat config.out >> scripts/bacula_config
33841 echo __EOC__ >> scripts/bacula_config
33842 chmod 755 scripts/bacula_config
33843
33844 cat config.out