]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Patch to add MySQL ssl access
[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.2.0.
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.2.0'
591 PACKAGE_STRING='bacula 7.2.0'
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_port
685 db_password
686 db_user
687 db_name
688 db_ssl_options
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_DARWIN_OS_FALSE
765 HAVE_DARWIN_OS_TRUE
766 HAVE_IRIX_OS_FALSE
767 HAVE_IRIX_OS_TRUE
768 HAVE_SGI_OS_FALSE
769 HAVE_SGI_OS_TRUE
770 HAVE_BSDI_OS_FALSE
771 HAVE_BSDI_OS_TRUE
772 HAVE_OPENBSD_OS_FALSE
773 HAVE_OPENBSD_OS_TRUE
774 HAVE_NETBSD_OS_FALSE
775 HAVE_NETBSD_OS_TRUE
776 HAVE_FREEBSD_OS_FALSE
777 HAVE_FREEBSD_OS_TRUE
778 HAVE_LINUX_OS_FALSE
779 HAVE_LINUX_OS_TRUE
780 HAVE_HPUX_OS_FALSE
781 HAVE_HPUX_OS_TRUE
782 HAVE_AIX_OS_FALSE
783 HAVE_AIX_OS_TRUE
784 HAVE_OSF1_OS_FALSE
785 HAVE_OSF1_OS_TRUE
786 HAVE_HURD_OS_FALSE
787 HAVE_HURD_OS_TRUE
788 HAVE_SUN_OS_FALSE
789 HAVE_SUN_OS_TRUE
790 INCLUDE_UNINSTALL_TARGET
791 INCLUDE_INSTALL_TARGET
792 FD_PLUGIN_DIR
793 QMAKE_LIBTOOL
794 LIBTOOL_CLEAN_TARGET
795 LIBTOOL_UNINSTALL_TARGET
796 LIBTOOL_INSTALL_TARGET
797 DEFAULT_SHARED_OBJECT_TYPE
798 DEFAULT_ARCHIVE_TYPE
799 DEFAULT_OBJECT_TYPE
800 LIBADD_DL
801 LT_DLPREOPEN
802 LIBADD_DLD_LINK
803 LIBADD_SHL_LOAD
804 LIBADD_DLOPEN
805 LT_DLLOADERS
806 CXXCPP
807 OTOOL64
808 OTOOL
809 LIPO
810 NMEDIT
811 DSYMUTIL
812 MANIFEST_TOOL
813 RANLIB
814 STRIP
815 ac_ct_AR
816 DLLTOOL
817 OBJDUMP
818 LN_S
819 NM
820 ac_ct_DUMPBIN
821 DUMPBIN
822 LD
823 FGREP
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 LIBTOOL
833 LOCAL_DEFS
834 LOCAL_LDFLAGS
835 LOCAL_CFLAGS
836 LOCAL_LIBS
837 MAKE_SHELL
838 ARFLAGS
839 AWK
840 PIDOF
841 GMAKE
842 QMAKE
843 PKGCONFIG
844 DVDRWFORMAT
845 DVDRWMEDIAINFO
846 GROWISOFS
847 PYTHON
848 MKISOFS
849 DD
850 MTX
851 OPENSSL
852 AR
853 TBL
854 CMP
855 ECHO
856 SED
857 CP
858 REMOVE
859 MV
860 INSTALL_DATA
861 INSTALL_SCRIPT
862 INSTALL_PROGRAM
863 EGREP
864 GREP
865 CPP
866 ac_ct_CXX
867 CXXFLAGS
868 CXX
869 OBJEXT
870 EXEEXT
871 ac_ct_CC
872 CPPFLAGS
873 LDFLAGS
874 CFLAGS
875 CC
876 LIBBACFIND_LT_RELEASE
877 LIBBACCATS_LT_RELEASE
878 LIBBACSQL_LT_RELEASE
879 LIBBACCFG_LT_RELEASE
880 LIBBAC_LT_RELEASE
881 BQT4_VERSION
882 DEPKGS_VERSION
883 DEPKGS_QT_VERSION
884 BDB_VERSION
885 post_host
886 BACULA
887 LSMDATE
888 DATE
889 VERSION
890 FALSEPRG
891 TRUEPRG
892 TOP_DIR
893 BUILD_DIR
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_URL
925 PACKAGE_BUGREPORT
926 PACKAGE_STRING
927 PACKAGE_VERSION
928 PACKAGE_TARNAME
929 PACKAGE_NAME
930 PATH_SEPARATOR
931 SHELL'
932 ac_subst_files='MCOMMON'
933 ac_user_opts='
934 enable_option_checking
935 enable_libtool
936 enable_shared
937 enable_static
938 with_pic
939 enable_fast_install
940 with_gnu_ld
941 with_sysroot
942 enable_libtool_lock
943 enable_includes
944 enable_nls
945 enable_rpath
946 with_libiconv_prefix
947 with_libintl_prefix
948 with_included_gettext
949 enable_bat
950 enable_smartalloc
951 enable_lockmgr
952 enable_static_tools
953 enable_static_fd
954 enable_static_sd
955 enable_static_dir
956 enable_static_cons
957 enable_client_only
958 enable_build_dird
959 enable_build_stored
960 enable_conio
961 enable_ipv6
962 enable_readline
963 with_readline
964 with_tcp_wrappers
965 with_openssl
966 with_working_dir
967 with_archivedir
968 with_basename
969 with_hostname
970 with_scriptdir
971 with_bsrdir
972 with_logdir
973 with_plugindir
974 with_dump_email
975 with_job_email
976 with_smtp_host
977 with_pid_dir
978 with_subsys_dir
979 with_baseport
980 with_dir_password
981 with_fd_password
982 with_sd_password
983 with_mon_dir_password
984 with_mon_fd_password
985 with_mon_sd_password
986 with_db_name
987 with_db_user
988 with_db_password
989 with_db_port
990 with_db_ssl_options
991 with_dir_user
992 with_dir_group
993 with_sd_user
994 with_sd_group
995 with_fd_user
996 with_fd_group
997 with_sbin_perm
998 enable_batch_insert
999 with_postgresql
1000 with_mysql
1001 with_embedded_mysql
1002 with_sqlite3
1003 enable_largefile
1004 with_x
1005 enable_afs
1006 with_afsdir
1007 enable_lzo
1008 with_lzo
1009 enable_acl
1010 enable_xattr
1011 with_systemd
1012 '
1013       ac_precious_vars='build_alias
1014 host_alias
1015 target_alias
1016 CC
1017 CFLAGS
1018 LDFLAGS
1019 LIBS
1020 CPPFLAGS
1021 CXX
1022 CXXFLAGS
1023 CCC
1024 CPP
1025 CXXCPP
1026 XMKMF'
1027
1028
1029 # Initialize some variables set by options.
1030 ac_init_help=
1031 ac_init_version=false
1032 ac_unrecognized_opts=
1033 ac_unrecognized_sep=
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1037 exec_prefix=NONE
1038 no_create=
1039 no_recursion=
1040 prefix=NONE
1041 program_prefix=NONE
1042 program_suffix=NONE
1043 program_transform_name=s,x,x,
1044 silent=
1045 site=
1046 srcdir=
1047 verbose=
1048 x_includes=NONE
1049 x_libraries=NONE
1050
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1068 infodir='${datarootdir}/info'
1069 htmldir='${docdir}'
1070 dvidir='${docdir}'
1071 pdfdir='${docdir}'
1072 psdir='${docdir}'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1076
1077 ac_prev=
1078 ac_dashdash=
1079 for ac_option
1080 do
1081   # If the previous option needs an argument, assign it.
1082   if test -n "$ac_prev"; then
1083     eval $ac_prev=\$ac_option
1084     ac_prev=
1085     continue
1086   fi
1087
1088   case $ac_option in
1089   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1090   *=)   ac_optarg= ;;
1091   *)    ac_optarg=yes ;;
1092   esac
1093
1094   # Accept the important Cygnus configure options, so we can diagnose typos.
1095
1096   case $ac_dashdash$ac_option in
1097   --)
1098     ac_dashdash=yes ;;
1099
1100   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1101     ac_prev=bindir ;;
1102   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1103     bindir=$ac_optarg ;;
1104
1105   -build | --build | --buil | --bui | --bu)
1106     ac_prev=build_alias ;;
1107   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1108     build_alias=$ac_optarg ;;
1109
1110   -cache-file | --cache-file | --cache-fil | --cache-fi \
1111   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1112     ac_prev=cache_file ;;
1113   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1114   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1115     cache_file=$ac_optarg ;;
1116
1117   --config-cache | -C)
1118     cache_file=config.cache ;;
1119
1120   -datadir | --datadir | --datadi | --datad)
1121     ac_prev=datadir ;;
1122   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1123     datadir=$ac_optarg ;;
1124
1125   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1126   | --dataroo | --dataro | --datar)
1127     ac_prev=datarootdir ;;
1128   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1129   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1130     datarootdir=$ac_optarg ;;
1131
1132   -disable-* | --disable-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid feature name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "enable_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval enable_$ac_useropt=no ;;
1147
1148   -docdir | --docdir | --docdi | --doc | --do)
1149     ac_prev=docdir ;;
1150   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151     docdir=$ac_optarg ;;
1152
1153   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154     ac_prev=dvidir ;;
1155   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156     dvidir=$ac_optarg ;;
1157
1158   -enable-* | --enable-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error $? "invalid feature name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "enable_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval enable_$ac_useropt=\$ac_optarg ;;
1173
1174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176   | --exec | --exe | --ex)
1177     ac_prev=exec_prefix ;;
1178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180   | --exec=* | --exe=* | --ex=*)
1181     exec_prefix=$ac_optarg ;;
1182
1183   -gas | --gas | --ga | --g)
1184     # Obsolete; use --with-gas.
1185     with_gas=yes ;;
1186
1187   -help | --help | --hel | --he | -h)
1188     ac_init_help=long ;;
1189   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190     ac_init_help=recursive ;;
1191   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192     ac_init_help=short ;;
1193
1194   -host | --host | --hos | --ho)
1195     ac_prev=host_alias ;;
1196   -host=* | --host=* | --hos=* | --ho=*)
1197     host_alias=$ac_optarg ;;
1198
1199   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1200     ac_prev=htmldir ;;
1201   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1202   | --ht=*)
1203     htmldir=$ac_optarg ;;
1204
1205   -includedir | --includedir | --includedi | --included | --include \
1206   | --includ | --inclu | --incl | --inc)
1207     ac_prev=includedir ;;
1208   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209   | --includ=* | --inclu=* | --incl=* | --inc=*)
1210     includedir=$ac_optarg ;;
1211
1212   -infodir | --infodir | --infodi | --infod | --info | --inf)
1213     ac_prev=infodir ;;
1214   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215     infodir=$ac_optarg ;;
1216
1217   -libdir | --libdir | --libdi | --libd)
1218     ac_prev=libdir ;;
1219   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220     libdir=$ac_optarg ;;
1221
1222   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223   | --libexe | --libex | --libe)
1224     ac_prev=libexecdir ;;
1225   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226   | --libexe=* | --libex=* | --libe=*)
1227     libexecdir=$ac_optarg ;;
1228
1229   -localedir | --localedir | --localedi | --localed | --locale)
1230     ac_prev=localedir ;;
1231   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232     localedir=$ac_optarg ;;
1233
1234   -localstatedir | --localstatedir | --localstatedi | --localstated \
1235   | --localstate | --localstat | --localsta | --localst | --locals)
1236     ac_prev=localstatedir ;;
1237   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239     localstatedir=$ac_optarg ;;
1240
1241   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1242     ac_prev=mandir ;;
1243   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244     mandir=$ac_optarg ;;
1245
1246   -nfp | --nfp | --nf)
1247     # Obsolete; use --without-fp.
1248     with_fp=no ;;
1249
1250   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251   | --no-cr | --no-c | -n)
1252     no_create=yes ;;
1253
1254   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256     no_recursion=yes ;;
1257
1258   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260   | --oldin | --oldi | --old | --ol | --o)
1261     ac_prev=oldincludedir ;;
1262   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265     oldincludedir=$ac_optarg ;;
1266
1267   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1268     ac_prev=prefix ;;
1269   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270     prefix=$ac_optarg ;;
1271
1272   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273   | --program-pre | --program-pr | --program-p)
1274     ac_prev=program_prefix ;;
1275   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277     program_prefix=$ac_optarg ;;
1278
1279   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280   | --program-suf | --program-su | --program-s)
1281     ac_prev=program_suffix ;;
1282   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284     program_suffix=$ac_optarg ;;
1285
1286   -program-transform-name | --program-transform-name \
1287   | --program-transform-nam | --program-transform-na \
1288   | --program-transform-n | --program-transform- \
1289   | --program-transform | --program-transfor \
1290   | --program-transfo | --program-transf \
1291   | --program-trans | --program-tran \
1292   | --progr-tra | --program-tr | --program-t)
1293     ac_prev=program_transform_name ;;
1294   -program-transform-name=* | --program-transform-name=* \
1295   | --program-transform-nam=* | --program-transform-na=* \
1296   | --program-transform-n=* | --program-transform-=* \
1297   | --program-transform=* | --program-transfor=* \
1298   | --program-transfo=* | --program-transf=* \
1299   | --program-trans=* | --program-tran=* \
1300   | --progr-tra=* | --program-tr=* | --program-t=*)
1301     program_transform_name=$ac_optarg ;;
1302
1303   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1304     ac_prev=pdfdir ;;
1305   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306     pdfdir=$ac_optarg ;;
1307
1308   -psdir | --psdir | --psdi | --psd | --ps)
1309     ac_prev=psdir ;;
1310   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311     psdir=$ac_optarg ;;
1312
1313   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314   | -silent | --silent | --silen | --sile | --sil)
1315     silent=yes ;;
1316
1317   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1318     ac_prev=sbindir ;;
1319   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1320   | --sbi=* | --sb=*)
1321     sbindir=$ac_optarg ;;
1322
1323   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325   | --sharedst | --shareds | --shared | --share | --shar \
1326   | --sha | --sh)
1327     ac_prev=sharedstatedir ;;
1328   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1331   | --sha=* | --sh=*)
1332     sharedstatedir=$ac_optarg ;;
1333
1334   -site | --site | --sit)
1335     ac_prev=site ;;
1336   -site=* | --site=* | --sit=*)
1337     site=$ac_optarg ;;
1338
1339   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1340     ac_prev=srcdir ;;
1341   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342     srcdir=$ac_optarg ;;
1343
1344   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345   | --syscon | --sysco | --sysc | --sys | --sy)
1346     ac_prev=sysconfdir ;;
1347   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349     sysconfdir=$ac_optarg ;;
1350
1351   -target | --target | --targe | --targ | --tar | --ta | --t)
1352     ac_prev=target_alias ;;
1353   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354     target_alias=$ac_optarg ;;
1355
1356   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357     verbose=yes ;;
1358
1359   -version | --version | --versio | --versi | --vers | -V)
1360     ac_init_version=: ;;
1361
1362   -with-* | --with-*)
1363     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364     # Reject names that are not valid shell variable names.
1365     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366       as_fn_error $? "invalid package name: $ac_useropt"
1367     ac_useropt_orig=$ac_useropt
1368     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369     case $ac_user_opts in
1370       *"
1371 "with_$ac_useropt"
1372 "*) ;;
1373       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374          ac_unrecognized_sep=', ';;
1375     esac
1376     eval with_$ac_useropt=\$ac_optarg ;;
1377
1378   -without-* | --without-*)
1379     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380     # Reject names that are not valid shell variable names.
1381     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382       as_fn_error $? "invalid package name: $ac_useropt"
1383     ac_useropt_orig=$ac_useropt
1384     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385     case $ac_user_opts in
1386       *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390          ac_unrecognized_sep=', ';;
1391     esac
1392     eval with_$ac_useropt=no ;;
1393
1394   --x)
1395     # Obsolete; use --with-x.
1396     with_x=yes ;;
1397
1398   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1399   | --x-incl | --x-inc | --x-in | --x-i)
1400     ac_prev=x_includes ;;
1401   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1402   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1403     x_includes=$ac_optarg ;;
1404
1405   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1406   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1407     ac_prev=x_libraries ;;
1408   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1409   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1410     x_libraries=$ac_optarg ;;
1411
1412   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1413 Try \`$0 --help' for more information"
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     case $ac_envvar in #(
1420       '' | [0-9]* | *[!_$as_cr_alnum]* )
1421       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1422     esac
1423     eval $ac_envvar=\$ac_optarg
1424     export $ac_envvar ;;
1425
1426   *)
1427     # FIXME: should be removed in autoconf 3.0.
1428     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1429     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1430       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1431     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1432     ;;
1433
1434   esac
1435 done
1436
1437 if test -n "$ac_prev"; then
1438   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1439   as_fn_error $? "missing argument to $ac_option"
1440 fi
1441
1442 if test -n "$ac_unrecognized_opts"; then
1443   case $enable_option_checking in
1444     no) ;;
1445     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1446     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1447   esac
1448 fi
1449
1450 # Check all directory arguments for consistency.
1451 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452                 datadir sysconfdir sharedstatedir localstatedir includedir \
1453                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454                 libdir localedir mandir
1455 do
1456   eval ac_val=\$$ac_var
1457   # Remove trailing slashes.
1458   case $ac_val in
1459     */ )
1460       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461       eval $ac_var=\$ac_val;;
1462   esac
1463   # Be sure to have absolute directory names.
1464   case $ac_val in
1465     [\\/$]* | ?:[\\/]* )  continue;;
1466     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1467   esac
1468   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1469 done
1470
1471 # There might be people who depend on the old broken behavior: `$host'
1472 # used to hold the argument of --host etc.
1473 # FIXME: To remove some day.
1474 build=$build_alias
1475 host=$host_alias
1476 target=$target_alias
1477
1478 # FIXME: To remove some day.
1479 if test "x$host_alias" != x; then
1480   if test "x$build_alias" = x; then
1481     cross_compiling=maybe
1482   elif test "x$build_alias" != "x$host_alias"; then
1483     cross_compiling=yes
1484   fi
1485 fi
1486
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490 test "$silent" = yes && exec 6>/dev/null
1491
1492
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496   as_fn_error $? "working directory cannot be determined"
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498   as_fn_error $? "pwd does not report name of working directory"
1499
1500
1501 # Find the source files, if location was not specified.
1502 if test -z "$srcdir"; then
1503   ac_srcdir_defaulted=yes
1504   # Try the directory containing this script, then the parent directory.
1505   ac_confdir=`$as_dirname -- "$as_myself" ||
1506 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507          X"$as_myself" : 'X\(//\)[^/]' \| \
1508          X"$as_myself" : 'X\(//\)$' \| \
1509          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510 $as_echo X"$as_myself" |
1511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512             s//\1/
1513             q
1514           }
1515           /^X\(\/\/\)[^/].*/{
1516             s//\1/
1517             q
1518           }
1519           /^X\(\/\/\)$/{
1520             s//\1/
1521             q
1522           }
1523           /^X\(\/\).*/{
1524             s//\1/
1525             q
1526           }
1527           s/.*/./; q'`
1528   srcdir=$ac_confdir
1529   if test ! -r "$srcdir/$ac_unique_file"; then
1530     srcdir=..
1531   fi
1532 else
1533   ac_srcdir_defaulted=no
1534 fi
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1536   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1537   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1542         pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545   srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_env_${ac_var}_value=\$${ac_var}
1556   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564   # Omit some internal or obsolete options to make the list less imposing.
1565   # This message is too long to be a string in the A/UX 3.1 sh.
1566   cat <<_ACEOF
1567 \`configure' configures bacula 7.2.0 to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577   -h, --help              display this help and exit
1578       --help=short        display options specific to this package
1579       --help=recursive    display the short help of all the included packages
1580   -V, --version           display version information and exit
1581   -q, --quiet, --silent   do not print \`checking ...' messages
1582       --cache-file=FILE   cache test results in FILE [disabled]
1583   -C, --config-cache      alias for \`--cache-file=config.cache'
1584   -n, --no-create         do not create output files
1585       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588   --prefix=PREFIX         install architecture-independent files in PREFIX
1589                           [$ac_default_prefix]
1590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                           [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601   --bindir=DIR            user executables [EPREFIX/bin]
1602   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1603   --libexecdir=DIR        program executables [EPREFIX/libexec]
1604   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1605   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1606   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1607   --libdir=DIR            object code libraries [EPREFIX/lib]
1608   --includedir=DIR        C header files [PREFIX/include]
1609   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1610   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1611   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1612   --infodir=DIR           info documentation [DATAROOTDIR/info]
1613   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1614   --mandir=DIR            man documentation [DATAROOTDIR/man]
1615   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1616   --htmldir=DIR           html documentation [DOCDIR]
1617   --dvidir=DIR            dvi documentation [DOCDIR]
1618   --pdfdir=DIR            pdf documentation [DOCDIR]
1619   --psdir=DIR             ps documentation [DOCDIR]
1620 _ACEOF
1621
1622   cat <<\_ACEOF
1623
1624 X features:
1625   --x-includes=DIR    X include files are in DIR
1626   --x-libraries=DIR   X library files are in DIR
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635   case $ac_init_help in
1636      short | recursive ) echo "Configuration of bacula 7.2.0:";;
1637    esac
1638   cat <<\_ACEOF
1639
1640 Optional Features:
1641   --disable-option-checking  ignore unrecognized --enable/--with options
1642   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1643   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1644   --enable-libtool        enable building using GNU libtool [default=yes]
1645   --enable-shared[=PKGS]  build shared libraries [default=yes]
1646   --enable-static[=PKGS]  build static libraries [default=no]
1647   --enable-fast-install[=PKGS]
1648                           optimize for fast installation [default=yes]
1649   --disable-libtool-lock  avoid locking (might break parallel builds)
1650   --enable-includes       enable installing of include files [default=no]
1651   --disable-nls           do not use Native Language Support
1652   --disable-rpath         do not hardcode runtime library paths
1653   --enable-bat            enable build of bat Qt4 GUI [default=no]
1654   --enable-smartalloc     enable smartalloc debugging support [default=no]
1655   --enable-lockmgr        enable lock manager support [default=no]
1656   --enable-static-tools   enable static tape tools [default=no]
1657   --enable-static-fd      enable static File daemon [default=no]
1658   --enable-static-sd      enable static Storage daemon [default=no]
1659   --enable-static-dir     enable static Director [default=no]
1660   --enable-static-cons    enable static Console [default=no]
1661   --enable-client-only    build client (File daemon) only [default=no]
1662   --enable-build-dird     enable building of dird (Director) [default=yes]
1663   --enable-build-stored   enable building of stored (Storage daemon)
1664                           [default=yes]
1665   --disable-conio         disable conio support [default=no]
1666   --enable-ipv6           enable ipv6 support [default=yes]
1667   --disable-readline      disable readline support [default=yes]
1668   --enable-batch-insert   enable the DB batch insert code [default=yes]
1669   --disable-largefile     omit support for large files
1670   --disable-afs           disable afs support [default=auto]
1671   --disable-lzo           disable lzo support [default=yes]
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-sysroot=DIR Search for dependent libraries within DIR
1682                         (or the compiler's sysroot if not specified).
1683   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1684   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1685   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1686   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1687   --without-libintl-prefix     don't search for libintl in includedir and libdir
1688   --with-included-gettext use the GNU gettext library included here
1689   --with-readline[=DIR]   specify readline library directory
1690   --with-tcp-wrappers[=DIR]
1691                           enable tcpwrappers support
1692   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1693   --with-working-dir=PATH specify path of Bacula working directory
1694   --with-archivedir=PATH  specify path of SD archive directory
1695   --with-basename=RESNAME specify base resource name for daemons
1696   --with-hostname=RESNAME specify host name for daemons
1697   --with-scriptdir=PATH   specify path of Bacula scripts directory
1698   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1699   --with-logdir=PATH      specify path of Bacula logs directory
1700   --with-plugindir=PATH   specify path of Bacula plugins directory
1701   --with-dump-email=EMAIL dump email address
1702   --with-job-email=EMAIL  job output email address
1703   --with-smtp-host=HOST   SMTP mail host address
1704   --with-pid-dir=PATH     specify location of Bacula pid files
1705   --with-subsys-dir=PATH  specify location of Bacula subsys file
1706   --with-baseport=PORT    specify base port address for daemons
1707   --with-dir-password=PASSWORD
1708                           specify Director's password
1709   --with-fd-password=PASSWORD
1710                           specify Client's password
1711   --with-sd-password=PASSWORD
1712                           specify Storage daemon's password
1713   --with-mon-dir-password=PASSWORD
1714                           specify Director's password used by the monitor
1715   --with-mon-fd-password=PASSWORD
1716                           specify Client's password used by the monitor
1717   --with-mon-sd-password=PASSWORD
1718                           specify Storage daemon's password used by the
1719                           monitor
1720   --with-db-name=DBNAME   specify database name [default=bacula]
1721   --with-db-user=UNAME    specify database user [default=bacula]
1722   --with-db-password=PWD  specify database password [default=*none*]
1723   --with-db-port=DBPORT   specify a database port [default=null]
1724   --with-dir-user=USER    specify user for Director daemon
1725   --with-dir-group=GROUP  specify group for Director daemon
1726   --with-sd-user=USER     specify user for Storage daemon
1727   --with-sd-group=GROUP   specify group for Storage daemon
1728   --with-fd-user=USER     specify user for File daemon
1729   --with-fd-group=GROUP   specify group for File daemon
1730   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1731   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1732                           base install directory, [default=/usr/local/pgsql]
1733   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1734                           directory, default is to search through a number of
1735                           common places for the MySQL files.
1736   --with-embedded-mysql[=DIR]
1737                           Include MySQL support. DIR is the MySQL base install
1738                           directory, default is to search through a number of
1739                           common places for the MySQL files.
1740   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1741                           install directory, default is to search through a
1742                           number of common places for the SQLite3 files.
1743   --with-x                use the X Window System
1744   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1745   --with-lzo[=DIR]        specify lzo library directory
1746   --with-systemd[=UNITDIR]
1747                           Include systemd support. UNITDIR is where systemd
1748                           system .service files are located, default is to ask
1749                           systemctl.
1750
1751 Some influential environment variables:
1752   CC          C compiler command
1753   CFLAGS      C compiler flags
1754   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1755               nonstandard directory <lib dir>
1756   LIBS        libraries to pass to the linker, e.g. -l<library>
1757   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1758               you have headers in a nonstandard directory <include dir>
1759   CXX         C++ compiler command
1760   CXXFLAGS    C++ compiler flags
1761   CPP         C preprocessor
1762   CXXCPP      C++ preprocessor
1763   XMKMF       Path to xmkmf, Makefile generator for X Window System
1764
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1767
1768 Report bugs to the package provider.
1769 _ACEOF
1770 ac_status=$?
1771 fi
1772
1773 if test "$ac_init_help" = "recursive"; then
1774   # If there are subdirs, report their specific --help.
1775   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776     test -d "$ac_dir" ||
1777       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778       continue
1779     ac_builddir=.
1780
1781 case "$ac_dir" in
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *)
1784   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785   # A ".." for each directory in $ac_dir_suffix.
1786   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787   case $ac_top_builddir_sub in
1788   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790   esac ;;
1791 esac
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1796
1797 case $srcdir in
1798   .)  # We are building in place.
1799     ac_srcdir=.
1800     ac_top_srcdir=$ac_top_builddir_sub
1801     ac_abs_top_srcdir=$ac_pwd ;;
1802   [\\/]* | ?:[\\/]* )  # Absolute name.
1803     ac_srcdir=$srcdir$ac_dir_suffix;
1804     ac_top_srcdir=$srcdir
1805     ac_abs_top_srcdir=$srcdir ;;
1806   *) # Relative name.
1807     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808     ac_top_srcdir=$ac_top_build_prefix$srcdir
1809     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810 esac
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812
1813     cd "$ac_dir" || { ac_status=$?; continue; }
1814     # Check for guested configure.
1815     if test -f "$ac_srcdir/configure.gnu"; then
1816       echo &&
1817       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818     elif test -f "$ac_srcdir/configure"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure" --help=recursive
1821     else
1822       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823     fi || ac_status=$?
1824     cd "$ac_pwd" || { ac_status=$?; break; }
1825   done
1826 fi
1827
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1830   cat <<\_ACEOF
1831 bacula configure 7.2.0
1832 generated by GNU Autoconf 2.69
1833
1834 Copyright (C) 2012 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1837 _ACEOF
1838   exit
1839 fi
1840
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1844
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   rm -f conftest.$ac_objext
1852   if { { ac_try="$ac_compile"
1853 case "(($ac_try" in
1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855   *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859   (eval "$ac_compile") 2>conftest.err
1860   ac_status=$?
1861   if test -s conftest.err; then
1862     grep -v '^ *+' conftest.err >conftest.er1
1863     cat conftest.er1 >&5
1864     mv -f conftest.er1 conftest.err
1865   fi
1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867   test $ac_status = 0; } && {
1868          test -z "$ac_c_werror_flag" ||
1869          test ! -s conftest.err
1870        } && test -s conftest.$ac_objext; then :
1871   ac_retval=0
1872 else
1873   $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876         ac_retval=1
1877 fi
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_compile
1882
1883 # ac_fn_cxx_try_compile LINENO
1884 # ----------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_compile ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   rm -f conftest.$ac_objext
1890   if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_compile") 2>conftest.err
1898   ac_status=$?
1899   if test -s conftest.err; then
1900     grep -v '^ *+' conftest.err >conftest.er1
1901     cat conftest.er1 >&5
1902     mv -f conftest.er1 conftest.err
1903   fi
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } && {
1906          test -z "$ac_cxx_werror_flag" ||
1907          test ! -s conftest.err
1908        } && test -s conftest.$ac_objext; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914         ac_retval=1
1915 fi
1916   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917   as_fn_set_status $ac_retval
1918
1919 } # ac_fn_cxx_try_compile
1920
1921 # ac_fn_c_try_cpp LINENO
1922 # ----------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_cpp ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   if { { ac_try="$ac_cpp conftest.$ac_ext"
1928 case "(($ac_try" in
1929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930   *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1935   ac_status=$?
1936   if test -s conftest.err; then
1937     grep -v '^ *+' conftest.err >conftest.er1
1938     cat conftest.er1 >&5
1939     mv -f conftest.er1 conftest.err
1940   fi
1941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942   test $ac_status = 0; } > conftest.i && {
1943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1944          test ! -s conftest.err
1945        }; then :
1946   ac_retval=0
1947 else
1948   $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951     ac_retval=1
1952 fi
1953   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954   as_fn_set_status $ac_retval
1955
1956 } # ac_fn_c_try_cpp
1957
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_link ()
1962 {
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   rm -f conftest.$ac_objext conftest$ac_exeext
1965   if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972   (eval "$ac_link") 2>conftest.err
1973   ac_status=$?
1974   if test -s conftest.err; then
1975     grep -v '^ *+' conftest.err >conftest.er1
1976     cat conftest.er1 >&5
1977     mv -f conftest.er1 conftest.err
1978   fi
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } && {
1981          test -z "$ac_c_werror_flag" ||
1982          test ! -s conftest.err
1983        } && test -s conftest$ac_exeext && {
1984          test "$cross_compiling" = yes ||
1985          test -x conftest$ac_exeext
1986        }; then :
1987   ac_retval=0
1988 else
1989   $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992         ac_retval=1
1993 fi
1994   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996   # interfere with the next link command; also delete a directory that is
1997   # left behind by Apple's compiler.  We do this before executing the actions.
1998   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000   as_fn_set_status $ac_retval
2001
2002 } # ac_fn_c_try_link
2003
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   eval "$3=yes"
2023 else
2024   eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_c_check_header_compile
2034
2035 # ac_fn_c_try_run LINENO
2036 # ----------------------
2037 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2038 # that executables *can* be run.
2039 ac_fn_c_try_run ()
2040 {
2041   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042   if { { ac_try="$ac_link"
2043 case "(($ac_try" in
2044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045   *) ac_try_echo=$ac_try;;
2046 esac
2047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048 $as_echo "$ac_try_echo"; } >&5
2049   (eval "$ac_link") 2>&5
2050   ac_status=$?
2051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2053   { { case "(($ac_try" in
2054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055   *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059   (eval "$ac_try") 2>&5
2060   ac_status=$?
2061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062   test $ac_status = 0; }; }; then :
2063   ac_retval=0
2064 else
2065   $as_echo "$as_me: program exited with status $ac_status" >&5
2066        $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069        ac_retval=$ac_status
2070 fi
2071   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073   as_fn_set_status $ac_retval
2074
2075 } # ac_fn_c_try_run
2076
2077 # ac_fn_c_check_func LINENO FUNC VAR
2078 # ----------------------------------
2079 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2080 ac_fn_c_check_func ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 else
2088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2092 #define $2 innocuous_$2
2093
2094 /* System header to define __stub macros and hopefully few prototypes,
2095     which can conflict with char $2 (); below.
2096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2097     <limits.h> exists even on freestanding compilers.  */
2098
2099 #ifdef __STDC__
2100 # include <limits.h>
2101 #else
2102 # include <assert.h>
2103 #endif
2104
2105 #undef $2
2106
2107 /* Override any GCC internal prototype to avoid an error.
2108    Use char because int might match the return type of a GCC
2109    builtin and then its argument prototype would still apply.  */
2110 #ifdef __cplusplus
2111 extern "C"
2112 #endif
2113 char $2 ();
2114 /* The GNU C library defines this for functions which it implements
2115     to always fail with ENOSYS.  Some functions are actually named
2116     something starting with __ and the normal name is an alias.  */
2117 #if defined __stub_$2 || defined __stub___$2
2118 choke me
2119 #endif
2120
2121 int
2122 main ()
2123 {
2124 return $2 ();
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_link "$LINENO"; then :
2130   eval "$3=yes"
2131 else
2132   eval "$3=no"
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext \
2135     conftest$ac_exeext conftest.$ac_ext
2136 fi
2137 eval ac_res=\$$3
2138                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142 } # ac_fn_c_check_func
2143
2144 # ac_fn_cxx_try_cpp LINENO
2145 # ------------------------
2146 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147 ac_fn_cxx_try_cpp ()
2148 {
2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150   if { { ac_try="$ac_cpp conftest.$ac_ext"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158   ac_status=$?
2159   if test -s conftest.err; then
2160     grep -v '^ *+' conftest.err >conftest.er1
2161     cat conftest.er1 >&5
2162     mv -f conftest.er1 conftest.err
2163   fi
2164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165   test $ac_status = 0; } > conftest.i && {
2166          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2167          test ! -s conftest.err
2168        }; then :
2169   ac_retval=0
2170 else
2171   $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2173
2174     ac_retval=1
2175 fi
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177   as_fn_set_status $ac_retval
2178
2179 } # ac_fn_cxx_try_cpp
2180
2181 # ac_fn_cxx_try_link LINENO
2182 # -------------------------
2183 # Try to link conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_link ()
2185 {
2186   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187   rm -f conftest.$ac_objext conftest$ac_exeext
2188   if { { ac_try="$ac_link"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195   (eval "$ac_link") 2>conftest.err
2196   ac_status=$?
2197   if test -s conftest.err; then
2198     grep -v '^ *+' conftest.err >conftest.er1
2199     cat conftest.er1 >&5
2200     mv -f conftest.er1 conftest.err
2201   fi
2202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203   test $ac_status = 0; } && {
2204          test -z "$ac_cxx_werror_flag" ||
2205          test ! -s conftest.err
2206        } && test -s conftest$ac_exeext && {
2207          test "$cross_compiling" = yes ||
2208          test -x conftest$ac_exeext
2209        }; then :
2210   ac_retval=0
2211 else
2212   $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215         ac_retval=1
2216 fi
2217   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2218   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2219   # interfere with the next link command; also delete a directory that is
2220   # left behind by Apple's compiler.  We do this before executing the actions.
2221   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2222   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223   as_fn_set_status $ac_retval
2224
2225 } # ac_fn_cxx_try_link
2226
2227 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2228 # ---------------------------------------------
2229 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2230 # accordingly.
2231 ac_fn_c_check_decl ()
2232 {
2233   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234   as_decl_name=`echo $2|sed 's/ *(.*//'`
2235   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238 if eval \${$3+:} false; then :
2239   $as_echo_n "(cached) " >&6
2240 else
2241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h.  */
2243 $4
2244 int
2245 main ()
2246 {
2247 #ifndef $as_decl_name
2248 #ifdef __cplusplus
2249   (void) $as_decl_use;
2250 #else
2251   (void) $as_decl_name;
2252 #endif
2253 #endif
2254
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260   eval "$3=yes"
2261 else
2262   eval "$3=no"
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 eval ac_res=\$$3
2267                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270
2271 } # ac_fn_c_check_decl
2272
2273 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2274 # -------------------------------------------
2275 # Tests whether TYPE exists after having included INCLUDES, setting cache
2276 # variable VAR accordingly.
2277 ac_fn_c_check_type ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283   $as_echo_n "(cached) " >&6
2284 else
2285   eval "$3=no"
2286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $4
2289 int
2290 main ()
2291 {
2292 if (sizeof ($2))
2293          return 0;
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h.  */
2301 $4
2302 int
2303 main ()
2304 {
2305 if (sizeof (($2)))
2306             return 0;
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312
2313 else
2314   eval "$3=yes"
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 fi
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 fi
2320 eval ac_res=\$$3
2321                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2322 $as_echo "$ac_res" >&6; }
2323   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324
2325 } # ac_fn_c_check_type
2326
2327 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2328 # -------------------------------------------------------
2329 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2330 # the include files in INCLUDES and setting the cache variable VAR
2331 # accordingly.
2332 ac_fn_c_check_header_mongrel ()
2333 {
2334   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335   if eval \${$3+:} false; then :
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2337 $as_echo_n "checking for $2... " >&6; }
2338 if eval \${$3+:} false; then :
2339   $as_echo_n "(cached) " >&6
2340 fi
2341 eval ac_res=\$$3
2342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 else
2345   # Is the header compilable?
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2347 $as_echo_n "checking $2 usability... " >&6; }
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h.  */
2350 $4
2351 #include <$2>
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354   ac_header_compiler=yes
2355 else
2356   ac_header_compiler=no
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2360 $as_echo "$ac_header_compiler" >&6; }
2361
2362 # Is the header present?
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2364 $as_echo_n "checking $2 presence... " >&6; }
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h.  */
2367 #include <$2>
2368 _ACEOF
2369 if ac_fn_c_try_cpp "$LINENO"; then :
2370   ac_header_preproc=yes
2371 else
2372   ac_header_preproc=no
2373 fi
2374 rm -f conftest.err conftest.i conftest.$ac_ext
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2376 $as_echo "$ac_header_preproc" >&6; }
2377
2378 # So?  What about this header?
2379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2380   yes:no: )
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2382 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2383     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2384 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2385     ;;
2386   no:yes:* )
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2388 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2390 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2392 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2394 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2396 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2397     ;;
2398 esac
2399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2400 $as_echo_n "checking for $2... " >&6; }
2401 if eval \${$3+:} false; then :
2402   $as_echo_n "(cached) " >&6
2403 else
2404   eval "$3=\$ac_header_compiler"
2405 fi
2406 eval ac_res=\$$3
2407                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 fi
2410   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411
2412 } # ac_fn_c_check_header_mongrel
2413
2414 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2415 # --------------------------------------------
2416 # Tries to find the compile-time value of EXPR in a program that includes
2417 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2418 # computed
2419 ac_fn_c_compute_int ()
2420 {
2421   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422   if test "$cross_compiling" = yes; then
2423     # Depending upon the size, compute the lo and hi bounds.
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 $4
2427 int
2428 main ()
2429 {
2430 static int test_array [1 - 2 * !(($2) >= 0)];
2431 test_array [0] = 0;
2432 return test_array [0];
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 if ac_fn_c_try_compile "$LINENO"; then :
2439   ac_lo=0 ac_mid=0
2440   while :; do
2441     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h.  */
2443 $4
2444 int
2445 main ()
2446 {
2447 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2448 test_array [0] = 0;
2449 return test_array [0];
2450
2451   ;
2452   return 0;
2453 }
2454 _ACEOF
2455 if ac_fn_c_try_compile "$LINENO"; then :
2456   ac_hi=$ac_mid; break
2457 else
2458   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2459                         if test $ac_lo -le $ac_mid; then
2460                           ac_lo= ac_hi=
2461                           break
2462                         fi
2463                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2464 fi
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466   done
2467 else
2468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h.  */
2470 $4
2471 int
2472 main ()
2473 {
2474 static int test_array [1 - 2 * !(($2) < 0)];
2475 test_array [0] = 0;
2476 return test_array [0];
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483   ac_hi=-1 ac_mid=-1
2484   while :; do
2485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h.  */
2487 $4
2488 int
2489 main ()
2490 {
2491 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2492 test_array [0] = 0;
2493 return test_array [0];
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500   ac_lo=$ac_mid; break
2501 else
2502   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2503                         if test $ac_mid -le $ac_hi; then
2504                           ac_lo= ac_hi=
2505                           break
2506                         fi
2507                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510   done
2511 else
2512   ac_lo= ac_hi=
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 # Binary search between lo and hi bounds.
2518 while test "x$ac_lo" != "x$ac_hi"; do
2519   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h.  */
2522 $4
2523 int
2524 main ()
2525 {
2526 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2527 test_array [0] = 0;
2528 return test_array [0];
2529
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 if ac_fn_c_try_compile "$LINENO"; then :
2535   ac_hi=$ac_mid
2536 else
2537   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 done
2541 case $ac_lo in #((
2542 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2543 '') ac_retval=1 ;;
2544 esac
2545   else
2546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548 $4
2549 static long int longval () { return $2; }
2550 static unsigned long int ulongval () { return $2; }
2551 #include <stdio.h>
2552 #include <stdlib.h>
2553 int
2554 main ()
2555 {
2556
2557   FILE *f = fopen ("conftest.val", "w");
2558   if (! f)
2559     return 1;
2560   if (($2) < 0)
2561     {
2562       long int i = longval ();
2563       if (i != ($2))
2564         return 1;
2565       fprintf (f, "%ld", i);
2566     }
2567   else
2568     {
2569       unsigned long int i = ulongval ();
2570       if (i != ($2))
2571         return 1;
2572       fprintf (f, "%lu", i);
2573     }
2574   /* Do not output a trailing newline, as this causes \r\n confusion
2575      on some platforms.  */
2576   return ferror (f) || fclose (f) != 0;
2577
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_c_try_run "$LINENO"; then :
2583   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2584 else
2585   ac_retval=1
2586 fi
2587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2588   conftest.$ac_objext conftest.beam conftest.$ac_ext
2589 rm -f conftest.val
2590
2591   fi
2592   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593   as_fn_set_status $ac_retval
2594
2595 } # ac_fn_c_compute_int
2596
2597 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2598 # ----------------------------------------------------
2599 # Tries to find if the field MEMBER exists in type AGGR, after including
2600 # INCLUDES, setting cache variable VAR accordingly.
2601 ac_fn_c_check_member ()
2602 {
2603   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2605 $as_echo_n "checking for $2.$3... " >&6; }
2606 if eval \${$4+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h.  */
2611 $5
2612 int
2613 main ()
2614 {
2615 static $2 ac_aggr;
2616 if (ac_aggr.$3)
2617 return 0;
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623   eval "$4=yes"
2624 else
2625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h.  */
2627 $5
2628 int
2629 main ()
2630 {
2631 static $2 ac_aggr;
2632 if (sizeof ac_aggr.$3)
2633 return 0;
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 if ac_fn_c_try_compile "$LINENO"; then :
2639   eval "$4=yes"
2640 else
2641   eval "$4=no"
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647 eval ac_res=\$$4
2648                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2651
2652 } # ac_fn_c_check_member
2653
2654 # ac_fn_cxx_try_run LINENO
2655 # ------------------------
2656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2657 # that executables *can* be run.
2658 ac_fn_cxx_try_run ()
2659 {
2660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661   if { { ac_try="$ac_link"
2662 case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668   (eval "$ac_link") 2>&5
2669   ac_status=$?
2670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2672   { { case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678   (eval "$ac_try") 2>&5
2679   ac_status=$?
2680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681   test $ac_status = 0; }; }; then :
2682   ac_retval=0
2683 else
2684   $as_echo "$as_me: program exited with status $ac_status" >&5
2685        $as_echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688        ac_retval=$ac_status
2689 fi
2690   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692   as_fn_set_status $ac_retval
2693
2694 } # ac_fn_cxx_try_run
2695
2696 # ac_fn_cxx_check_func LINENO FUNC VAR
2697 # ------------------------------------
2698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2699 ac_fn_cxx_check_func ()
2700 {
2701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2703 $as_echo_n "checking for $2... " >&6; }
2704 if eval \${$3+:} false; then :
2705   $as_echo_n "(cached) " >&6
2706 else
2707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h.  */
2709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2711 #define $2 innocuous_$2
2712
2713 /* System header to define __stub macros and hopefully few prototypes,
2714     which can conflict with char $2 (); below.
2715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2716     <limits.h> exists even on freestanding compilers.  */
2717
2718 #ifdef __STDC__
2719 # include <limits.h>
2720 #else
2721 # include <assert.h>
2722 #endif
2723
2724 #undef $2
2725
2726 /* Override any GCC internal prototype to avoid an error.
2727    Use char because int might match the return type of a GCC
2728    builtin and then its argument prototype would still apply.  */
2729 #ifdef __cplusplus
2730 extern "C"
2731 #endif
2732 char $2 ();
2733 /* The GNU C library defines this for functions which it implements
2734     to always fail with ENOSYS.  Some functions are actually named
2735     something starting with __ and the normal name is an alias.  */
2736 #if defined __stub_$2 || defined __stub___$2
2737 choke me
2738 #endif
2739
2740 int
2741 main ()
2742 {
2743 return $2 ();
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 if ac_fn_cxx_try_link "$LINENO"; then :
2749   eval "$3=yes"
2750 else
2751   eval "$3=no"
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext \
2754     conftest$ac_exeext conftest.$ac_ext
2755 fi
2756 eval ac_res=\$$3
2757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760
2761 } # ac_fn_cxx_check_func
2762 cat >config.log <<_ACEOF
2763 This file contains any messages produced by compilers while
2764 running configure, to aid debugging if configure makes a mistake.
2765
2766 It was created by bacula $as_me 7.2.0, which was
2767 generated by GNU Autoconf 2.69.  Invocation command line was
2768
2769   $ $0 $@
2770
2771 _ACEOF
2772 exec 5>>config.log
2773 {
2774 cat <<_ASUNAME
2775 ## --------- ##
2776 ## Platform. ##
2777 ## --------- ##
2778
2779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2784
2785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2786 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2787
2788 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2789 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2791 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2792 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2793 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2794 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2795
2796 _ASUNAME
2797
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803     $as_echo "PATH: $as_dir"
2804   done
2805 IFS=$as_save_IFS
2806
2807 } >&5
2808
2809 cat >&5 <<_ACEOF
2810
2811
2812 ## ----------- ##
2813 ## Core tests. ##
2814 ## ----------- ##
2815
2816 _ACEOF
2817
2818
2819 # Keep a trace of the command line.
2820 # Strip out --no-create and --no-recursion so they do not pile up.
2821 # Strip out --silent because we don't want to record it for future runs.
2822 # Also quote any args containing shell meta-characters.
2823 # Make two passes to allow for proper duplicate-argument suppression.
2824 ac_configure_args=
2825 ac_configure_args0=
2826 ac_configure_args1=
2827 ac_must_keep_next=false
2828 for ac_pass in 1 2
2829 do
2830   for ac_arg
2831   do
2832     case $ac_arg in
2833     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2834     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2835     | -silent | --silent | --silen | --sile | --sil)
2836       continue ;;
2837     *\'*)
2838       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2839     esac
2840     case $ac_pass in
2841     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2842     2)
2843       as_fn_append ac_configure_args1 " '$ac_arg'"
2844       if test $ac_must_keep_next = true; then
2845         ac_must_keep_next=false # Got value, back to normal.
2846       else
2847         case $ac_arg in
2848           *=* | --config-cache | -C | -disable-* | --disable-* \
2849           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2850           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2851           | -with-* | --with-* | -without-* | --without-* | --x)
2852             case "$ac_configure_args0 " in
2853               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2854             esac
2855             ;;
2856           -* ) ac_must_keep_next=true ;;
2857         esac
2858       fi
2859       as_fn_append ac_configure_args " '$ac_arg'"
2860       ;;
2861     esac
2862   done
2863 done
2864 { ac_configure_args0=; unset ac_configure_args0;}
2865 { ac_configure_args1=; unset ac_configure_args1;}
2866
2867 # When interrupted or exit'd, cleanup temporary files, and complete
2868 # config.log.  We remove comments because anyway the quotes in there
2869 # would cause problems or look ugly.
2870 # WARNING: Use '\'' to represent an apostrophe within the trap.
2871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2872 trap 'exit_status=$?
2873   # Save into config.log some information that might help in debugging.
2874   {
2875     echo
2876
2877     $as_echo "## ---------------- ##
2878 ## Cache variables. ##
2879 ## ---------------- ##"
2880     echo
2881     # The following way of writing the cache mishandles newlines in values,
2882 (
2883   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2884     eval ac_val=\$$ac_var
2885     case $ac_val in #(
2886     *${as_nl}*)
2887       case $ac_var in #(
2888       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2889 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2890       esac
2891       case $ac_var in #(
2892       _ | IFS | as_nl) ;; #(
2893       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2894       *) { eval $ac_var=; unset $ac_var;} ;;
2895       esac ;;
2896     esac
2897   done
2898   (set) 2>&1 |
2899     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2900     *${as_nl}ac_space=\ *)
2901       sed -n \
2902         "s/'\''/'\''\\\\'\'''\''/g;
2903           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2904       ;; #(
2905     *)
2906       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2907       ;;
2908     esac |
2909     sort
2910 )
2911     echo
2912
2913     $as_echo "## ----------------- ##
2914 ## Output variables. ##
2915 ## ----------------- ##"
2916     echo
2917     for ac_var in $ac_subst_vars
2918     do
2919       eval ac_val=\$$ac_var
2920       case $ac_val in
2921       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2922       esac
2923       $as_echo "$ac_var='\''$ac_val'\''"
2924     done | sort
2925     echo
2926
2927     if test -n "$ac_subst_files"; then
2928       $as_echo "## ------------------- ##
2929 ## File substitutions. ##
2930 ## ------------------- ##"
2931       echo
2932       for ac_var in $ac_subst_files
2933       do
2934         eval ac_val=\$$ac_var
2935         case $ac_val in
2936         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2937         esac
2938         $as_echo "$ac_var='\''$ac_val'\''"
2939       done | sort
2940       echo
2941     fi
2942
2943     if test -s confdefs.h; then
2944       $as_echo "## ----------- ##
2945 ## confdefs.h. ##
2946 ## ----------- ##"
2947       echo
2948       cat confdefs.h
2949       echo
2950     fi
2951     test "$ac_signal" != 0 &&
2952       $as_echo "$as_me: caught signal $ac_signal"
2953     $as_echo "$as_me: exit $exit_status"
2954   } >&5
2955   rm -f core *.core core.conftest.* &&
2956     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2957     exit $exit_status
2958 ' 0
2959 for ac_signal in 1 2 13 15; do
2960   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2961 done
2962 ac_signal=0
2963
2964 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2965 rm -f -r conftest* confdefs.h
2966
2967 $as_echo "/* confdefs.h */" > confdefs.h
2968
2969 # Predefined preprocessor variables.
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_NAME "$PACKAGE_NAME"
2973 _ACEOF
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2977 _ACEOF
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2981 _ACEOF
2982
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_STRING "$PACKAGE_STRING"
2985 _ACEOF
2986
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2989 _ACEOF
2990
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE_URL "$PACKAGE_URL"
2993 _ACEOF
2994
2995
2996 # Let the site file select an alternate cache file if it wants to.
2997 # Prefer an explicitly selected file to automatically selected ones.
2998 ac_site_file1=NONE
2999 ac_site_file2=NONE
3000 if test -n "$CONFIG_SITE"; then
3001   # We do not want a PATH search for config.site.
3002   case $CONFIG_SITE in #((
3003     -*)  ac_site_file1=./$CONFIG_SITE;;
3004     */*) ac_site_file1=$CONFIG_SITE;;
3005     *)   ac_site_file1=./$CONFIG_SITE;;
3006   esac
3007 elif test "x$prefix" != xNONE; then
3008   ac_site_file1=$prefix/share/config.site
3009   ac_site_file2=$prefix/etc/config.site
3010 else
3011   ac_site_file1=$ac_default_prefix/share/config.site
3012   ac_site_file2=$ac_default_prefix/etc/config.site
3013 fi
3014 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3015 do
3016   test "x$ac_site_file" = xNONE && continue
3017   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3018     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3019 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3020     sed 's/^/| /' "$ac_site_file" >&5
3021     . "$ac_site_file" \
3022       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $? "failed to load site script $ac_site_file
3025 See \`config.log' for more details" "$LINENO" 5; }
3026   fi
3027 done
3028
3029 if test -r "$cache_file"; then
3030   # Some versions of bash will fail to source /dev/null (special files
3031   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3032   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3033     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3034 $as_echo "$as_me: loading cache $cache_file" >&6;}
3035     case $cache_file in
3036       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3037       *)                      . "./$cache_file";;
3038     esac
3039   fi
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3042 $as_echo "$as_me: creating cache $cache_file" >&6;}
3043   >$cache_file
3044 fi
3045
3046 as_fn_append ac_header_list " stdlib.h"
3047 as_fn_append ac_header_list " unistd.h"
3048 as_fn_append ac_header_list " sys/param.h"
3049 # Check that the precious variables saved in the cache have kept the same
3050 # value.
3051 ac_cache_corrupted=false
3052 for ac_var in $ac_precious_vars; do
3053   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3054   eval ac_new_set=\$ac_env_${ac_var}_set
3055   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3056   eval ac_new_val=\$ac_env_${ac_var}_value
3057   case $ac_old_set,$ac_new_set in
3058     set,)
3059       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3060 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3061       ac_cache_corrupted=: ;;
3062     ,set)
3063       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3064 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3065       ac_cache_corrupted=: ;;
3066     ,);;
3067     *)
3068       if test "x$ac_old_val" != "x$ac_new_val"; then
3069         # differences in whitespace do not lead to failure.
3070         ac_old_val_w=`echo x $ac_old_val`
3071         ac_new_val_w=`echo x $ac_new_val`
3072         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3073           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3074 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3075           ac_cache_corrupted=:
3076         else
3077           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3078 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3079           eval $ac_var=\$ac_old_val
3080         fi
3081         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3082 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3083         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3084 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3085       fi;;
3086   esac
3087   # Pass precious variables to config.status.
3088   if test "$ac_new_set" = set; then
3089     case $ac_new_val in
3090     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3091     *) ac_arg=$ac_var=$ac_new_val ;;
3092     esac
3093     case " $ac_configure_args " in
3094       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3095       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3096     esac
3097   fi
3098 done
3099 if $ac_cache_corrupted; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3103 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3104   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3105 fi
3106 ## -------------------- ##
3107 ## Main body of script. ##
3108 ## -------------------- ##
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115
3116
3117
3118
3119 BUILD_DIR=`pwd`
3120 cd ..
3121 TOP_DIR=`pwd`
3122 cd ${BUILD_DIR}
3123
3124
3125 ac_aux_dir=
3126 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3127   if test -f "$ac_dir/install-sh"; then
3128     ac_aux_dir=$ac_dir
3129     ac_install_sh="$ac_aux_dir/install-sh -c"
3130     break
3131   elif test -f "$ac_dir/install.sh"; then
3132     ac_aux_dir=$ac_dir
3133     ac_install_sh="$ac_aux_dir/install.sh -c"
3134     break
3135   elif test -f "$ac_dir/shtool"; then
3136     ac_aux_dir=$ac_dir
3137     ac_install_sh="$ac_aux_dir/shtool install -c"
3138     break
3139   fi
3140 done
3141 if test -z "$ac_aux_dir"; then
3142   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3143 fi
3144
3145 # These three variables are undocumented and unsupported,
3146 # and are intended to be withdrawn in a future Autoconf release.
3147 # They can cause serious problems if a builder's source tree is in a directory
3148 # whose full name contains unusual characters.
3149 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3150 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3151 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3152
3153
3154 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3155
3156
3157 for ac_prog in true
3158 do
3159   # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_path_TRUEPRG+:} false; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   case $TRUEPRG in
3167   [\\/]* | ?:[\\/]*)
3168   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3169   ;;
3170   *)
3171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176     for ac_exec_ext in '' $ac_executable_extensions; do
3177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183   done
3184 IFS=$as_save_IFS
3185
3186   ;;
3187 esac
3188 fi
3189 TRUEPRG=$ac_cv_path_TRUEPRG
3190 if test -n "$TRUEPRG"; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3192 $as_echo "$TRUEPRG" >&6; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199   test -n "$TRUEPRG" && break
3200 done
3201 test -n "$TRUEPRG" || TRUEPRG=":"
3202
3203 for ac_prog in false
3204 do
3205   # Extract the first word of "$ac_prog", so it can be a program name with args.
3206 set dummy $ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_path_FALSEPRG+:} false; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   case $FALSEPRG in
3213   [\\/]* | ?:[\\/]*)
3214   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3215   ;;
3216   *)
3217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222     for ac_exec_ext in '' $ac_executable_extensions; do
3223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226     break 2
3227   fi
3228 done
3229   done
3230 IFS=$as_save_IFS
3231
3232   ;;
3233 esac
3234 fi
3235 FALSEPRG=$ac_cv_path_FALSEPRG
3236 if test -n "$FALSEPRG"; then
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3238 $as_echo "$FALSEPRG" >&6; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245   test -n "$FALSEPRG" && break
3246 done
3247 test -n "$FALSEPRG" || FALSEPRG=":"
3248
3249
3250
3251 post_host=
3252 if test "x$BACULA" != x; then
3253    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3254 fi
3255 BACULA=${BACULA:-Bacula}
3256 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3259 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3260 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3261 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3262 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264
3265 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3267 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268
3269 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3270 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3271
3272
3273 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3274 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3275
3276 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3277 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3278
3279
3280 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3281
3282 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3283
3284
3285
3286 PFILES="platforms/Makefile"
3287
3288 echo "configuring for ${BACULA} $VERSION ($DATE)"
3289
3290
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 if test -n "$ac_tool_prefix"; then
3298   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_CC+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   if test -n "$CC"; then
3306   ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$ac_cv_prog_CC"; then
3337   ac_ct_CC=$CC
3338   # Extract the first word of "gcc", so it can be a program name with args.
3339 set dummy gcc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$ac_ct_CC"; then
3346   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353     for ac_exec_ext in '' $ac_executable_extensions; do
3354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355     ac_cv_prog_ac_ct_CC="gcc"
3356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360   done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366 if test -n "$ac_ct_CC"; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3368 $as_echo "$ac_ct_CC" >&6; }
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374   if test "x$ac_ct_CC" = x; then
3375     CC=""
3376   else
3377     case $cross_compiling:$ac_tool_warned in
3378 yes:)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3382 esac
3383     CC=$ac_ct_CC
3384   fi
3385 else
3386   CC="$ac_cv_prog_CC"
3387 fi
3388
3389 if test -z "$CC"; then
3390           if test -n "$ac_tool_prefix"; then
3391     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$CC"; then
3399   ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408     ac_cv_prog_CC="${ac_tool_prefix}cc"
3409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413   done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428   fi
3429 fi
3430 if test -z "$CC"; then
3431   # Extract the first word of "cc", so it can be a program name with args.
3432 set dummy cc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$CC"; then
3439   ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441   ac_prog_rejected=no
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447     for ac_exec_ext in '' $ac_executable_extensions; do
3448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3450        ac_prog_rejected=yes
3451        continue
3452      fi
3453     ac_cv_prog_CC="cc"
3454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458   done
3459 IFS=$as_save_IFS
3460
3461 if test $ac_prog_rejected = yes; then
3462   # We found a bogon in the path, so make sure we never use it.
3463   set dummy $ac_cv_prog_CC
3464   shift
3465   if test $# != 0; then
3466     # We chose a different compiler from the bogus one.
3467     # However, it has the same basename, so the bogon will be chosen
3468     # first if we set CC to just the basename; use the full file name.
3469     shift
3470     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3471   fi
3472 fi
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485 fi
3486 if test -z "$CC"; then
3487   if test -n "$ac_tool_prefix"; then
3488   for ac_prog in cl.exe
3489   do
3490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_CC+:} false; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -n "$CC"; then
3498   ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505     for ac_exec_ext in '' $ac_executable_extensions; do
3506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512   done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3521 else
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527     test -n "$CC" && break
3528   done
3529 fi
3530 if test -z "$CC"; then
3531   ac_ct_CC=$CC
3532   for ac_prog in cl.exe
3533 do
3534   # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   if test -n "$ac_ct_CC"; then
3542   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551     ac_cv_prog_ac_ct_CC="$ac_prog"
3552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556   done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570
3571   test -n "$ac_ct_CC" && break
3572 done
3573
3574   if test "x$ac_ct_CC" = x; then
3575     CC=""
3576   else
3577     case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583     CC=$ac_ct_CC
3584   fi
3585 fi
3586
3587 fi
3588
3589
3590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details" "$LINENO" 5; }
3594
3595 # Provide some information about the compiler.
3596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3597 set X $ac_compile
3598 ac_compiler=$2
3599 for ac_option in --version -v -V -qversion; do
3600   { { ac_try="$ac_compiler $ac_option >&5"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3608   ac_status=$?
3609   if test -s conftest.err; then
3610     sed '10a\
3611 ... rest of stderr output deleted ...
3612          10q' conftest.err >conftest.er1
3613     cat conftest.er1 >&5
3614   fi
3615   rm -f conftest.er1 conftest.err
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }
3618 done
3619
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622
3623 int
3624 main ()
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 ac_clean_files_save=$ac_clean_files
3632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3633 # Try to create an executable without -o first, disregard a.out.
3634 # It will help us diagnose broken compilers, and finding out an intuition
3635 # of exeext.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3637 $as_echo_n "checking whether the C compiler works... " >&6; }
3638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3639
3640 # The possible output files:
3641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3642
3643 ac_rmfiles=
3644 for ac_file in $ac_files
3645 do
3646   case $ac_file in
3647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3649   esac
3650 done
3651 rm -f $ac_rmfiles
3652
3653 if { { ac_try="$ac_link_default"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660   (eval "$ac_link_default") 2>&5
3661   ac_status=$?
3662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663   test $ac_status = 0; }; then :
3664   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3666 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3667 # so that the user can short-circuit this test for compilers unknown to
3668 # Autoconf.
3669 for ac_file in $ac_files ''
3670 do
3671   test -f "$ac_file" || continue
3672   case $ac_file in
3673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3674         ;;
3675     [ab].out )
3676         # We found the default executable, but exeext='' is most
3677         # certainly right.
3678         break;;
3679     *.* )
3680         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3681         then :; else
3682            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3683         fi
3684         # We set ac_cv_exeext here because the later test for it is not
3685         # safe: cross compilers may not add the suffix if given an `-o'
3686         # argument, so we may need to know it at that point already.
3687         # Even if this section looks crufty: it has the advantage of
3688         # actually working.
3689         break;;
3690     * )
3691         break;;
3692   esac
3693 done
3694 test "$ac_cv_exeext" = no && ac_cv_exeext=
3695
3696 else
3697   ac_file=''
3698 fi
3699 if test -z "$ac_file"; then :
3700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error 77 "C compiler cannot create executables
3708 See \`config.log' for more details" "$LINENO" 5; }
3709 else
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3711 $as_echo "yes" >&6; }
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3714 $as_echo_n "checking for C compiler default output file name... " >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3716 $as_echo "$ac_file" >&6; }
3717 ac_exeext=$ac_cv_exeext
3718
3719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3720 ac_clean_files=$ac_clean_files_save
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3722 $as_echo_n "checking for suffix of executables... " >&6; }
3723 if { { ac_try="$ac_link"
3724 case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730   (eval "$ac_link") 2>&5
3731   ac_status=$?
3732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733   test $ac_status = 0; }; then :
3734   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3735 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3736 # work properly (i.e., refer to `conftest.exe'), while it won't with
3737 # `rm'.
3738 for ac_file in conftest.exe conftest conftest.*; do
3739   test -f "$ac_file" || continue
3740   case $ac_file in
3741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743           break;;
3744     * ) break;;
3745   esac
3746 done
3747 else
3748   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3751 See \`config.log' for more details" "$LINENO" 5; }
3752 fi
3753 rm -f conftest conftest$ac_cv_exeext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3755 $as_echo "$ac_cv_exeext" >&6; }
3756
3757 rm -f conftest.$ac_ext
3758 EXEEXT=$ac_cv_exeext
3759 ac_exeext=$EXEEXT
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h.  */
3762 #include <stdio.h>
3763 int
3764 main ()
3765 {
3766 FILE *f = fopen ("conftest.out", "w");
3767  return ferror (f) || fclose (f) != 0;
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 ac_clean_files="$ac_clean_files conftest.out"
3774 # Check that the compiler produces executables we can run.  If not, either
3775 # the compiler is broken, or we cross compile.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3777 $as_echo_n "checking whether we are cross compiling... " >&6; }
3778 if test "$cross_compiling" != yes; then
3779   { { ac_try="$ac_link"
3780 case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786   (eval "$ac_link") 2>&5
3787   ac_status=$?
3788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789   test $ac_status = 0; }
3790   if { ac_try='./conftest$ac_cv_exeext'
3791   { { case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797   (eval "$ac_try") 2>&5
3798   ac_status=$?
3799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800   test $ac_status = 0; }; }; then
3801     cross_compiling=no
3802   else
3803     if test "$cross_compiling" = maybe; then
3804         cross_compiling=yes
3805     else
3806         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "cannot run C compiled programs.
3809 If you meant to cross compile, use \`--host'.
3810 See \`config.log' for more details" "$LINENO" 5; }
3811     fi
3812   fi
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3815 $as_echo "$cross_compiling" >&6; }
3816
3817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3820 $as_echo_n "checking for suffix of object files... " >&6; }
3821 if ${ac_cv_objext+:} false; then :
3822   $as_echo_n "(cached) " >&6
3823 else
3824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h.  */
3826
3827 int
3828 main ()
3829 {
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.o conftest.obj
3836 if { { ac_try="$ac_compile"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843   (eval "$ac_compile") 2>&5
3844   ac_status=$?
3845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846   test $ac_status = 0; }; then :
3847   for ac_file in conftest.o conftest.obj conftest.*; do
3848   test -f "$ac_file" || continue;
3849   case $ac_file in
3850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3851     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3852        break;;
3853   esac
3854 done
3855 else
3856   $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "cannot compute suffix of object files: cannot compile
3862 See \`config.log' for more details" "$LINENO" 5; }
3863 fi
3864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3867 $as_echo "$ac_cv_objext" >&6; }
3868 OBJEXT=$ac_cv_objext
3869 ac_objext=$OBJEXT
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3872 if ${ac_cv_c_compiler_gnu+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __GNUC__
3882        choke me
3883 #endif
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890   ac_compiler_gnu=yes
3891 else
3892   ac_compiler_gnu=no
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3900 if test $ac_compiler_gnu = yes; then
3901   GCC=yes
3902 else
3903   GCC=
3904 fi
3905 ac_test_CFLAGS=${CFLAGS+set}
3906 ac_save_CFLAGS=$CFLAGS
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3909 if ${ac_cv_prog_cc_g+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   ac_save_c_werror_flag=$ac_c_werror_flag
3913    ac_c_werror_flag=yes
3914    ac_cv_prog_cc_g=no
3915    CFLAGS="-g"
3916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h.  */
3918
3919 int
3920 main ()
3921 {
3922
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928   ac_cv_prog_cc_g=yes
3929 else
3930   CFLAGS=""
3931       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h.  */
3933
3934 int
3935 main ()
3936 {
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943
3944 else
3945   ac_c_werror_flag=$ac_save_c_werror_flag
3946          CFLAGS="-g"
3947          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h.  */
3949
3950 int
3951 main ()
3952 {
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959   ac_cv_prog_cc_g=yes
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966    ac_c_werror_flag=$ac_save_c_werror_flag
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3969 $as_echo "$ac_cv_prog_cc_g" >&6; }
3970 if test "$ac_test_CFLAGS" = set; then
3971   CFLAGS=$ac_save_CFLAGS
3972 elif test $ac_cv_prog_cc_g = yes; then
3973   if test "$GCC" = yes; then
3974     CFLAGS="-g -O2"
3975   else
3976     CFLAGS="-g"
3977   fi
3978 else
3979   if test "$GCC" = yes; then
3980     CFLAGS="-O2"
3981   else
3982     CFLAGS=
3983   fi
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3987 if ${ac_cv_prog_cc_c89+:} false; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990   ac_cv_prog_cc_c89=no
3991 ac_save_CC=$CC
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994 #include <stdarg.h>
3995 #include <stdio.h>
3996 struct stat;
3997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3998 struct buf { int x; };
3999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000 static char *e (p, i)
4001      char **p;
4002      int i;
4003 {
4004   return p[i];
4005 }
4006 static char *f (char * (*g) (char **, int), char **p, ...)
4007 {
4008   char *s;
4009   va_list v;
4010   va_start (v,p);
4011   s = g (p, va_arg (v,int));
4012   va_end (v);
4013   return s;
4014 }
4015
4016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4017    function prototypes and stuff, but not '\xHH' hex character constants.
4018    These don't provoke an error unfortunately, instead are silently treated
4019    as 'x'.  The following induces an error, until -std is added to get
4020    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4021    array size at least.  It's necessary to write '\x00'==0 to get something
4022    that's true only with -std.  */
4023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024
4025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026    inside strings and character constants.  */
4027 #define FOO(x) 'x'
4028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029
4030 int test (int i, double x);
4031 struct s1 {int (*f) (int a);};
4032 struct s2 {int (*f) (double a);};
4033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4034 int argc;
4035 char **argv;
4036 int
4037 main ()
4038 {
4039 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046 do
4047   CC="$ac_save_CC $ac_arg"
4048   if ac_fn_c_try_compile "$LINENO"; then :
4049   ac_cv_prog_cc_c89=$ac_arg
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext
4052   test "x$ac_cv_prog_cc_c89" != "xno" && break
4053 done
4054 rm -f conftest.$ac_ext
4055 CC=$ac_save_CC
4056
4057 fi
4058 # AC_CACHE_VAL
4059 case "x$ac_cv_prog_cc_c89" in
4060   x)
4061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062 $as_echo "none needed" >&6; } ;;
4063   xno)
4064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065 $as_echo "unsupported" >&6; } ;;
4066   *)
4067     CC="$CC $ac_cv_prog_cc_c89"
4068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070 esac
4071 if test "x$ac_cv_prog_cc_c89" != xno; then :
4072
4073 fi
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081 ac_ext=cpp
4082 ac_cpp='$CXXCPP $CPPFLAGS'
4083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4086 if test -z "$CXX"; then
4087   if test -n "$CCC"; then
4088     CXX=$CCC
4089   else
4090     if test -n "$ac_tool_prefix"; then
4091   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4092   do
4093     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CXX+:} false; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   if test -n "$CXX"; then
4101   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108     for ac_exec_ext in '' $ac_executable_extensions; do
4109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115   done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 CXX=$ac_cv_prog_CXX
4121 if test -n "$CXX"; then
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4123 $as_echo "$CXX" >&6; }
4124 else
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4127 fi
4128
4129
4130     test -n "$CXX" && break
4131   done
4132 fi
4133 if test -z "$CXX"; then
4134   ac_ct_CXX=$CXX
4135   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4136 do
4137   # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -n "$ac_ct_CXX"; then
4145   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_exec_ext in '' $ac_executable_extensions; do
4153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154     ac_cv_prog_ac_ct_CXX="$ac_prog"
4155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159   done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4165 if test -n "$ac_ct_CXX"; then
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4167 $as_echo "$ac_ct_CXX" >&6; }
4168 else
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174   test -n "$ac_ct_CXX" && break
4175 done
4176
4177   if test "x$ac_ct_CXX" = x; then
4178     CXX="g++"
4179   else
4180     case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186     CXX=$ac_ct_CXX
4187   fi
4188 fi
4189
4190   fi
4191 fi
4192 # Provide some information about the compiler.
4193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4194 set X $ac_compile
4195 ac_compiler=$2
4196 for ac_option in --version -v -V -qversion; do
4197   { { ac_try="$ac_compiler $ac_option >&5"
4198 case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4205   ac_status=$?
4206   if test -s conftest.err; then
4207     sed '10a\
4208 ... rest of stderr output deleted ...
4209          10q' conftest.err >conftest.er1
4210     cat conftest.er1 >&5
4211   fi
4212   rm -f conftest.er1 conftest.err
4213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214   test $ac_status = 0; }
4215 done
4216
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4218 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4219 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h.  */
4224
4225 int
4226 main ()
4227 {
4228 #ifndef __GNUC__
4229        choke me
4230 #endif
4231
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_cxx_try_compile "$LINENO"; then :
4237   ac_compiler_gnu=yes
4238 else
4239   ac_compiler_gnu=no
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4243
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4246 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4247 if test $ac_compiler_gnu = yes; then
4248   GXX=yes
4249 else
4250   GXX=
4251 fi
4252 ac_test_CXXFLAGS=${CXXFLAGS+set}
4253 ac_save_CXXFLAGS=$CXXFLAGS
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4255 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4256 if ${ac_cv_prog_cxx_g+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4260    ac_cxx_werror_flag=yes
4261    ac_cv_prog_cxx_g=no
4262    CXXFLAGS="-g"
4263    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h.  */
4265
4266 int
4267 main ()
4268 {
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 if ac_fn_cxx_try_compile "$LINENO"; then :
4275   ac_cv_prog_cxx_g=yes
4276 else
4277   CXXFLAGS=""
4278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_cxx_try_compile "$LINENO"; then :
4290
4291 else
4292   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4293          CXXFLAGS="-g"
4294          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4306   ac_cv_prog_cxx_g=yes
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4316 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4317 if test "$ac_test_CXXFLAGS" = set; then
4318   CXXFLAGS=$ac_save_CXXFLAGS
4319 elif test $ac_cv_prog_cxx_g = yes; then
4320   if test "$GXX" = yes; then
4321     CXXFLAGS="-g -O2"
4322   else
4323     CXXFLAGS="-g"
4324   fi
4325 else
4326   if test "$GXX" = yes; then
4327     CXXFLAGS="-O2"
4328   else
4329     CXXFLAGS=
4330   fi
4331 fi
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338 if test "x$CC" != xcc; then
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4340 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4341 else
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4343 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4344 fi
4345 set dummy $CC; ac_cc=`$as_echo "$2" |
4346                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4347 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 # Make sure it works both with $CC and with simple cc.
4362 # We do the test twice because some compilers refuse to overwrite an
4363 # existing .o file with -o, though they will create one.
4364 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4365 rm -f conftest2.*
4366 if { { case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372   (eval "$ac_try") 2>&5
4373   ac_status=$?
4374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375   test $ac_status = 0; } &&
4376    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382   (eval "$ac_try") 2>&5
4383   ac_status=$?
4384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385   test $ac_status = 0; };
4386 then
4387   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4388   if test "x$CC" != xcc; then
4389     # Test first that cc exists at all.
4390     if { ac_try='cc -c conftest.$ac_ext >&5'
4391   { { case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397   (eval "$ac_try") 2>&5
4398   ac_status=$?
4399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; }; }; then
4401       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4402       rm -f conftest2.*
4403       if { { case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409   (eval "$ac_try") 2>&5
4410   ac_status=$?
4411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412   test $ac_status = 0; } &&
4413          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422   test $ac_status = 0; };
4423       then
4424         # cc works too.
4425         :
4426       else
4427         # cc exists but doesn't like -o.
4428         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4429       fi
4430     fi
4431   fi
4432 else
4433   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4434 fi
4435 rm -f core conftest*
4436
4437 fi
4438 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440 $as_echo "yes" >&6; }
4441 else
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4444
4445 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4446
4447 fi
4448
4449 ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4456 # On Suns, sometimes $CPP names a directory.
4457 if test -n "$CPP" && test -d "$CPP"; then
4458   CPP=
4459 fi
4460 if test -z "$CPP"; then
4461   if ${ac_cv_prog_CPP+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464       # Double quotes because CPP needs to be expanded
4465     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4466     do
4467       ac_preproc_ok=false
4468 for ac_c_preproc_warn_flag in '' yes
4469 do
4470   # Use a header file that comes with gcc, so configuring glibc
4471   # with a fresh cross-compiler works.
4472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473   # <limits.h> exists even on freestanding compilers.
4474   # On the NeXT, cc -E runs the code through the compiler's parser,
4475   # not just through cpp. "Syntax error" is here to catch this case.
4476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478 #ifdef __STDC__
4479 # include <limits.h>
4480 #else
4481 # include <assert.h>
4482 #endif
4483                      Syntax error
4484 _ACEOF
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4486
4487 else
4488   # Broken: fails on valid input.
4489 continue
4490 fi
4491 rm -f conftest.err conftest.i conftest.$ac_ext
4492
4493   # OK, works on sane cases.  Now check whether nonexistent headers
4494   # can be detected and how.
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 #include <ac_nonexistent.h>
4498 _ACEOF
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500   # Broken: success on invalid input.
4501 continue
4502 else
4503   # Passes both tests.
4504 ac_preproc_ok=:
4505 break
4506 fi
4507 rm -f conftest.err conftest.i conftest.$ac_ext
4508
4509 done
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.i conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then :
4513   break
4514 fi
4515
4516     done
4517     ac_cv_prog_CPP=$CPP
4518
4519 fi
4520   CPP=$ac_cv_prog_CPP
4521 else
4522   ac_cv_prog_CPP=$CPP
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4525 $as_echo "$CPP" >&6; }
4526 ac_preproc_ok=false
4527 for ac_c_preproc_warn_flag in '' yes
4528 do
4529   # Use a header file that comes with gcc, so configuring glibc
4530   # with a fresh cross-compiler works.
4531   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532   # <limits.h> exists even on freestanding compilers.
4533   # On the NeXT, cc -E runs the code through the compiler's parser,
4534   # not just through cpp. "Syntax error" is here to catch this case.
4535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h.  */
4537 #ifdef __STDC__
4538 # include <limits.h>
4539 #else
4540 # include <assert.h>
4541 #endif
4542                      Syntax error
4543 _ACEOF
4544 if ac_fn_c_try_cpp "$LINENO"; then :
4545
4546 else
4547   # Broken: fails on valid input.
4548 continue
4549 fi
4550 rm -f conftest.err conftest.i conftest.$ac_ext
4551
4552   # OK, works on sane cases.  Now check whether nonexistent headers
4553   # can be detected and how.
4554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h.  */
4556 #include <ac_nonexistent.h>
4557 _ACEOF
4558 if ac_fn_c_try_cpp "$LINENO"; then :
4559   # Broken: success on invalid input.
4560 continue
4561 else
4562   # Passes both tests.
4563 ac_preproc_ok=:
4564 break
4565 fi
4566 rm -f conftest.err conftest.i conftest.$ac_ext
4567
4568 done
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.i conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then :
4572
4573 else
4574   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4577 See \`config.log' for more details" "$LINENO" 5; }
4578 fi
4579
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if ${ac_cv_path_GREP+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if test -z "$GREP"; then
4593   ac_path_GREP_found=false
4594   # Loop through the user's path and test for each of PROGNAME-LIST
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_prog in grep ggrep; do
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603       as_fn_executable_p "$ac_path_GREP" || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605   # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4607 *GNU*)
4608   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 *)
4610   ac_count=0
4611   $as_echo_n 0123456789 >"conftest.in"
4612   while :
4613   do
4614     cat "conftest.in" "conftest.in" >"conftest.tmp"
4615     mv "conftest.tmp" "conftest.in"
4616     cp "conftest.in" "conftest.nl"
4617     $as_echo 'GREP' >> "conftest.nl"
4618     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620     as_fn_arith $ac_count + 1 && ac_count=$as_val
4621     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622       # Best one so far, save it but keep looking for a better one
4623       ac_cv_path_GREP="$ac_path_GREP"
4624       ac_path_GREP_max=$ac_count
4625     fi
4626     # 10*(2^10) chars as input seems more than enough
4627     test $ac_count -gt 10 && break
4628   done
4629   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 esac
4631
4632       $ac_path_GREP_found && break 3
4633     done
4634   done
4635   done
4636 IFS=$as_save_IFS
4637   if test -z "$ac_cv_path_GREP"; then
4638     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639   fi
4640 else
4641   ac_cv_path_GREP=$GREP
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647  GREP="$ac_cv_path_GREP"
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if ${ac_cv_path_EGREP+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656    then ac_cv_path_EGREP="$GREP -E"
4657    else
4658      if test -z "$EGREP"; then
4659   ac_path_EGREP_found=false
4660   # Loop through the user's path and test for each of PROGNAME-LIST
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666     for ac_prog in egrep; do
4667     for ac_exec_ext in '' $ac_executable_extensions; do
4668       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669       as_fn_executable_p "$ac_path_EGREP" || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671   # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4673 *GNU*)
4674   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 *)
4676   ac_count=0
4677   $as_echo_n 0123456789 >"conftest.in"
4678   while :
4679   do
4680     cat "conftest.in" "conftest.in" >"conftest.tmp"
4681     mv "conftest.tmp" "conftest.in"
4682     cp "conftest.in" "conftest.nl"
4683     $as_echo 'EGREP' >> "conftest.nl"
4684     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686     as_fn_arith $ac_count + 1 && ac_count=$as_val
4687     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688       # Best one so far, save it but keep looking for a better one
4689       ac_cv_path_EGREP="$ac_path_EGREP"
4690       ac_path_EGREP_max=$ac_count
4691     fi
4692     # 10*(2^10) chars as input seems more than enough
4693     test $ac_count -gt 10 && break
4694   done
4695   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4697
4698       $ac_path_EGREP_found && break 3
4699     done
4700   done
4701   done
4702 IFS=$as_save_IFS
4703   if test -z "$ac_cv_path_EGREP"; then
4704     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705   fi
4706 else
4707   ac_cv_path_EGREP=$EGREP
4708 fi
4709
4710    fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714  EGREP="$ac_cv_path_EGREP"
4715
4716
4717 if test $ac_cv_c_compiler_gnu = yes; then
4718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4719 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4720 if ${ac_cv_prog_gcc_traditional+:} false; then :
4721   $as_echo_n "(cached) " >&6
4722 else
4723     ac_pattern="Autoconf.*'x'"
4724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h.  */
4726 #include <sgtty.h>
4727 Autoconf TIOCGETP
4728 _ACEOF
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4731   ac_cv_prog_gcc_traditional=yes
4732 else
4733   ac_cv_prog_gcc_traditional=no
4734 fi
4735 rm -f conftest*
4736
4737
4738   if test $ac_cv_prog_gcc_traditional = no; then
4739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h.  */
4741 #include <termio.h>
4742 Autoconf TCGETA
4743 _ACEOF
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4746   ac_cv_prog_gcc_traditional=yes
4747 fi
4748 rm -f conftest*
4749
4750   fi
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4753 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4754   if test $ac_cv_prog_gcc_traditional = yes; then
4755     CC="$CC -traditional"
4756   fi
4757 fi
4758
4759 BASECC=`basename $CC`
4760 have_gcc=no
4761 if test "x$BASECC" = xgcc; then
4762    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4763
4764    have_gcc=yes
4765 fi
4766 # Extract the first word of "$CXX", so it can be a program name with args.
4767 set dummy $CXX; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if ${ac_cv_path_CXX+:} false; then :
4771   $as_echo_n "(cached) " >&6
4772 else
4773   case $CXX in
4774   [\\/]* | ?:[\\/]*)
4775   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4776   ;;
4777   *)
4778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783     for ac_exec_ext in '' $ac_executable_extensions; do
4784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790   done
4791 IFS=$as_save_IFS
4792
4793   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4794   ;;
4795 esac
4796 fi
4797 CXX=$ac_cv_path_CXX
4798 if test -n "$CXX"; then
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4800 $as_echo "$CXX" >&6; }
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 if test ! -e $CXX; then
4808    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4809 fi
4810
4811 # Find a good install program.  We prefer a C program (faster),
4812 # so one script is as good as another.  But avoid the broken or
4813 # incompatible versions:
4814 # SysV /etc/install, /usr/sbin/install
4815 # SunOS /usr/etc/install
4816 # IRIX /sbin/install
4817 # AIX /bin/install
4818 # AmigaOS /C/install, which installs bootblocks on floppy discs
4819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4822 # OS/2's system install, which has a completely different semantic
4823 # ./install, which can be erroneously created by make from ./install.sh.
4824 # Reject install programs that cannot install multiple files.
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4827 if test -z "$INSTALL"; then
4828 if ${ac_cv_path_install+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836     # Account for people who put trailing slashes in PATH elements.
4837 case $as_dir/ in #((
4838   ./ | .// | /[cC]/* | \
4839   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4840   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4841   /usr/ucb/* ) ;;
4842   *)
4843     # OSF1 and SCO ODT 3.0 have their own names for install.
4844     # Don't use installbsd from OSF since it installs stuff as root
4845     # by default.
4846     for ac_prog in ginstall scoinst install; do
4847       for ac_exec_ext in '' $ac_executable_extensions; do
4848         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4849           if test $ac_prog = install &&
4850             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4851             # AIX install.  It has an incompatible calling convention.
4852             :
4853           elif test $ac_prog = install &&
4854             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855             # program-specific install script used by HP pwplus--don't use.
4856             :
4857           else
4858             rm -rf conftest.one conftest.two conftest.dir
4859             echo one > conftest.one
4860             echo two > conftest.two
4861             mkdir conftest.dir
4862             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4863               test -s conftest.one && test -s conftest.two &&
4864               test -s conftest.dir/conftest.one &&
4865               test -s conftest.dir/conftest.two
4866             then
4867               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4868               break 3
4869             fi
4870           fi
4871         fi
4872       done
4873     done
4874     ;;
4875 esac
4876
4877   done
4878 IFS=$as_save_IFS
4879
4880 rm -rf conftest.one conftest.two conftest.dir
4881
4882 fi
4883   if test "${ac_cv_path_install+set}" = set; then
4884     INSTALL=$ac_cv_path_install
4885   else
4886     # As a last resort, use the slow shell script.  Don't cache a
4887     # value for INSTALL within a source directory, because that will
4888     # break other packages using the cache if that directory is
4889     # removed, or if the value is a relative name.
4890     INSTALL=$ac_install_sh
4891   fi
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4894 $as_echo "$INSTALL" >&6; }
4895
4896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4897 # It thinks the first close brace ends the variable substitution.
4898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4899
4900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4901
4902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4903
4904 # Extract the first word of "mv", so it can be a program name with args.
4905 set dummy mv; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_path_MV+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   case $MV in
4912   [\\/]* | ?:[\\/]*)
4913   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4914   ;;
4915   *)
4916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921     for ac_exec_ext in '' $ac_executable_extensions; do
4922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928   done
4929 IFS=$as_save_IFS
4930
4931   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4932   ;;
4933 esac
4934 fi
4935 MV=$ac_cv_path_MV
4936 if test -n "$MV"; then
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4938 $as_echo "$MV" >&6; }
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943
4944
4945 # Extract the first word of "rm", so it can be a program name with args.
4946 set dummy rm; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_path_REMOVE+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   case $REMOVE in
4953   [\\/]* | ?:[\\/]*)
4954   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4955   ;;
4956   *)
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971
4972   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4973   ;;
4974 esac
4975 fi
4976 REMOVE=$ac_cv_path_REMOVE
4977 if test -n "$REMOVE"; then
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4979 $as_echo "$REMOVE" >&6; }
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984
4985
4986 # Extract the first word of "cp", so it can be a program name with args.
4987 set dummy cp; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_CP+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   case $CP in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_exec_ext in '' $ac_executable_extensions; do
5004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010   done
5011 IFS=$as_save_IFS
5012
5013   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5014   ;;
5015 esac
5016 fi
5017 CP=$ac_cv_path_CP
5018 if test -n "$CP"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5020 $as_echo "$CP" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027 # Extract the first word of "sed", so it can be a program name with args.
5028 set dummy sed; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_SED+:} false; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   case $SED in
5035   [\\/]* | ?:[\\/]*)
5036   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5037   ;;
5038   *)
5039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5055   ;;
5056 esac
5057 fi
5058 SED=$ac_cv_path_SED
5059 if test -n "$SED"; then
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5061 $as_echo "$SED" >&6; }
5062 else
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068 # Extract the first word of "echo", so it can be a program name with args.
5069 set dummy echo; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_path_ECHO+:} false; then :
5073   $as_echo_n "(cached) " >&6
5074 else
5075   case $ECHO in
5076   [\\/]* | ?:[\\/]*)
5077   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5078   ;;
5079   *)
5080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085     for ac_exec_ext in '' $ac_executable_extensions; do
5086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092   done
5093 IFS=$as_save_IFS
5094
5095   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5096   ;;
5097 esac
5098 fi
5099 ECHO=$ac_cv_path_ECHO
5100 if test -n "$ECHO"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5102 $as_echo "$ECHO" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109 # Extract the first word of "cmp", so it can be a program name with args.
5110 set dummy cmp; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_path_CMP+:} false; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   case $CMP in
5117   [\\/]* | ?:[\\/]*)
5118   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5119   ;;
5120   *)
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135
5136   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5137   ;;
5138 esac
5139 fi
5140 CMP=$ac_cv_path_CMP
5141 if test -n "$CMP"; then
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5143 $as_echo "$CMP" >&6; }
5144 else
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150 # Extract the first word of "tbl", so it can be a program name with args.
5151 set dummy tbl; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_path_TBL+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   case $TBL in
5158   [\\/]* | ?:[\\/]*)
5159   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5160   ;;
5161   *)
5162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176
5177   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5178   ;;
5179 esac
5180 fi
5181 TBL=$ac_cv_path_TBL
5182 if test -n "$TBL"; then
5183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5184 $as_echo "$TBL" >&6; }
5185 else
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 # Extract the first word of "ar", so it can be a program name with args.
5192 set dummy ar; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_AR+:} false; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   case $AR in
5199   [\\/]* | ?:[\\/]*)
5200   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5201   ;;
5202   *)
5203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215   done
5216 IFS=$as_save_IFS
5217
5218   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5219   ;;
5220 esac
5221 fi
5222 AR=$ac_cv_path_AR
5223 if test -n "$AR"; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5225 $as_echo "$AR" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231
5232 # Extract the first word of "openssl", so it can be a program name with args.
5233 set dummy openssl; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_path_OPENSSL+:} false; then :
5237   $as_echo_n "(cached) " >&6
5238 else
5239   case $OPENSSL in
5240   [\\/]* | ?:[\\/]*)
5241   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5242   ;;
5243   *)
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249     for ac_exec_ext in '' $ac_executable_extensions; do
5250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256   done
5257 IFS=$as_save_IFS
5258
5259   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5260   ;;
5261 esac
5262 fi
5263 OPENSSL=$ac_cv_path_OPENSSL
5264 if test -n "$OPENSSL"; then
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5266 $as_echo "$OPENSSL" >&6; }
5267 else
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5270 fi
5271
5272
5273 # Extract the first word of "mtx", so it can be a program name with args.
5274 set dummy mtx; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_path_MTX+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   case $MTX in
5281   [\\/]* | ?:[\\/]*)
5282   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5283   ;;
5284   *)
5285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290     for ac_exec_ext in '' $ac_executable_extensions; do
5291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297   done
5298 IFS=$as_save_IFS
5299
5300   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5301   ;;
5302 esac
5303 fi
5304 MTX=$ac_cv_path_MTX
5305 if test -n "$MTX"; then
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5307 $as_echo "$MTX" >&6; }
5308 else
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5311 fi
5312
5313
5314 # Extract the first word of "dd", so it can be a program name with args.
5315 set dummy dd; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_path_DD+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   case $DD in
5322   [\\/]* | ?:[\\/]*)
5323   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5324   ;;
5325   *)
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338   done
5339 IFS=$as_save_IFS
5340
5341   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5342   ;;
5343 esac
5344 fi
5345 DD=$ac_cv_path_DD
5346 if test -n "$DD"; then
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5348 $as_echo "$DD" >&6; }
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353
5354
5355 # Extract the first word of "mkisofs", so it can be a program name with args.
5356 set dummy mkisofs; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_path_MKISOFS+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   case $MKISOFS in
5363   [\\/]* | ?:[\\/]*)
5364   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5365   ;;
5366   *)
5367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370   IFS=$as_save_IFS
5371   test -z "$as_dir" && as_dir=.
5372     for ac_exec_ext in '' $ac_executable_extensions; do
5373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376     break 2
5377   fi
5378 done
5379   done
5380 IFS=$as_save_IFS
5381
5382   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5383   ;;
5384 esac
5385 fi
5386 MKISOFS=$ac_cv_path_MKISOFS
5387 if test -n "$MKISOFS"; then
5388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5389 $as_echo "$MKISOFS" >&6; }
5390 else
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394
5395
5396 # Extract the first word of "python", so it can be a program name with args.
5397 set dummy python; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_path_PYTHON+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   case $PYTHON in
5404   [\\/]* | ?:[\\/]*)
5405   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5406   ;;
5407   *)
5408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411   IFS=$as_save_IFS
5412   test -z "$as_dir" && as_dir=.
5413     for ac_exec_ext in '' $ac_executable_extensions; do
5414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417     break 2
5418   fi
5419 done
5420   done
5421 IFS=$as_save_IFS
5422
5423   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5424   ;;
5425 esac
5426 fi
5427 PYTHON=$ac_cv_path_PYTHON
5428 if test -n "$PYTHON"; then
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5430 $as_echo "$PYTHON" >&6; }
5431 else
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436
5437 # Extract the first word of "growisofs", so it can be a program name with args.
5438 set dummy growisofs; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_path_GROWISOFS+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   case $GROWISOFS in
5445   [\\/]* | ?:[\\/]*)
5446   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5447   ;;
5448   *)
5449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452   IFS=$as_save_IFS
5453   test -z "$as_dir" && as_dir=.
5454     for ac_exec_ext in '' $ac_executable_extensions; do
5455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458     break 2
5459   fi
5460 done
5461   done
5462 IFS=$as_save_IFS
5463
5464   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5465   ;;
5466 esac
5467 fi
5468 GROWISOFS=$ac_cv_path_GROWISOFS
5469 if test -n "$GROWISOFS"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5471 $as_echo "$GROWISOFS" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5479 set dummy dvd+rw-mediainfo; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   case $DVDRWMEDIAINFO in
5486   [\\/]* | ?:[\\/]*)
5487   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5488   ;;
5489   *)
5490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493   IFS=$as_save_IFS
5494   test -z "$as_dir" && as_dir=.
5495     for ac_exec_ext in '' $ac_executable_extensions; do
5496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499     break 2
5500   fi
5501 done
5502   done
5503 IFS=$as_save_IFS
5504
5505   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5506   ;;
5507 esac
5508 fi
5509 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5510 if test -n "$DVDRWMEDIAINFO"; then
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5512 $as_echo "$DVDRWMEDIAINFO" >&6; }
5513 else
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518
5519 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5520 set dummy dvd+rw-format; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   case $DVDRWFORMAT in
5527   [\\/]* | ?:[\\/]*)
5528   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5529   ;;
5530   *)
5531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536     for ac_exec_ext in '' $ac_executable_extensions; do
5537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543   done
5544 IFS=$as_save_IFS
5545
5546   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5547   ;;
5548 esac
5549 fi
5550 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5551 if test -n "$DVDRWFORMAT"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5553 $as_echo "$DVDRWFORMAT" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 # Extract the first word of "pkg-config", so it can be a program name with args.
5561 set dummy pkg-config; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_path_PKGCONFIG+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   case $PKGCONFIG in
5568   [\\/]* | ?:[\\/]*)
5569   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5570   ;;
5571   *)
5572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_exec_ext in '' $ac_executable_extensions; do
5578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584   done
5585 IFS=$as_save_IFS
5586
5587   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5588   ;;
5589 esac
5590 fi
5591 PKGCONFIG=$ac_cv_path_PKGCONFIG
5592 if test -n "$PKGCONFIG"; then
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5594 $as_echo "$PKGCONFIG" >&6; }
5595 else
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 # Extract the first word of "qmake", so it can be a program name with args.
5602 set dummy qmake; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_path_QMAKE+:} false; then :
5606   $as_echo_n "(cached) " >&6
5607 else
5608   case $QMAKE in
5609   [\\/]* | ?:[\\/]*)
5610   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5611   ;;
5612   *)
5613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618     for ac_exec_ext in '' $ac_executable_extensions; do
5619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622     break 2
5623   fi
5624 done
5625   done
5626 IFS=$as_save_IFS
5627
5628   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5629   ;;
5630 esac
5631 fi
5632 QMAKE=$ac_cv_path_QMAKE
5633 if test -n "$QMAKE"; then
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5635 $as_echo "$QMAKE" >&6; }
5636 else
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641
5642 # Extract the first word of "gmake", so it can be a program name with args.
5643 set dummy gmake; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_path_GMAKE+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   case $GMAKE in
5650   [\\/]* | ?:[\\/]*)
5651   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5652   ;;
5653   *)
5654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5670   ;;
5671 esac
5672 fi
5673 GMAKE=$ac_cv_path_GMAKE
5674 if test -n "$GMAKE"; then
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5676 $as_echo "$GMAKE" >&6; }
5677 else
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683 # Extract the first word of "pidof", so it can be a program name with args.
5684 set dummy pidof; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_path_PIDOF+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   case $PIDOF in
5691   [\\/]* | ?:[\\/]*)
5692   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5693   ;;
5694   *)
5695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707   done
5708 IFS=$as_save_IFS
5709
5710   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5711   ;;
5712 esac
5713 fi
5714 PIDOF=$ac_cv_path_PIDOF
5715 if test -n "$PIDOF"; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5717 $as_echo "$PIDOF" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 for ac_prog in gawk mawk nawk awk
5725 do
5726   # Extract the first word of "$ac_prog", so it can be a program name with args.
5727 set dummy $ac_prog; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if ${ac_cv_prog_AWK+:} false; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   if test -n "$AWK"; then
5734   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_exec_ext in '' $ac_executable_extensions; do
5742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_prog_AWK="$ac_prog"
5744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748   done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 AWK=$ac_cv_prog_AWK
5754 if test -n "$AWK"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5756 $as_echo "$AWK" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763   test -n "$AWK" && break
5764 done
5765
5766 # Some AWK programs fail, so test it and warn the user
5767 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5768       { if ((prog == $2) || (("(" prog ")") == $2) ||
5769       (("" prog "") == $2) ||
5770       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5771 else
5772   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5773    The regex engine of $AWK is too broken to be used you
5774    might want to install GNU AWK.
5775    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5776 fi
5777 THE_AWK=$AWK
5778 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5779 set dummy $THE_AWK; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_path_AWK+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   case $AWK in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804
5805   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5806   ;;
5807 esac
5808 fi
5809 AWK=$ac_cv_path_AWK
5810 if test -n "$AWK"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5812 $as_echo "$AWK" >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819
5820
5821 test -n "$ARFLAG" || ARFLAGS="cr"
5822
5823
5824 MAKE_SHELL=/bin/sh
5825
5826
5827
5828
5829
5830
5831
5832 use_libtool=yes
5833 # Check whether --enable-libtool was given.
5834 if test "${enable_libtool+set}" = set; then :
5835   enableval=$enable_libtool;
5836        if test x$enableval = xno; then
5837           use_libtool=no
5838        fi
5839
5840
5841 fi
5842
5843 case `pwd` in
5844   *\ * | *\     *)
5845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5846 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5847 esac
5848
5849
5850
5851 macro_version='2.4.2'
5852 macro_revision='1.3337'
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866 ltmain="$ac_aux_dir/ltmain.sh"
5867
5868 # Make sure we can run config.sub.
5869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5870   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5873 $as_echo_n "checking build system type... " >&6; }
5874 if ${ac_cv_build+:} false; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   ac_build_alias=$build_alias
5878 test "x$ac_build_alias" = x &&
5879   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5880 test "x$ac_build_alias" = x &&
5881   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5882 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5883   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5887 $as_echo "$ac_cv_build" >&6; }
5888 case $ac_cv_build in
5889 *-*-*) ;;
5890 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5891 esac
5892 build=$ac_cv_build
5893 ac_save_IFS=$IFS; IFS='-'
5894 set x $ac_cv_build
5895 shift
5896 build_cpu=$1
5897 build_vendor=$2
5898 shift; shift
5899 # Remember, the first character of IFS is used to create $*,
5900 # except with old shells:
5901 build_os=$*
5902 IFS=$ac_save_IFS
5903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5904
5905
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5907 $as_echo_n "checking host system type... " >&6; }
5908 if ${ac_cv_host+:} false; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911   if test "x$host_alias" = x; then
5912   ac_cv_host=$ac_cv_build
5913 else
5914   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5915     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5916 fi
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5920 $as_echo "$ac_cv_host" >&6; }
5921 case $ac_cv_host in
5922 *-*-*) ;;
5923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5924 esac
5925 host=$ac_cv_host
5926 ac_save_IFS=$IFS; IFS='-'
5927 set x $ac_cv_host
5928 shift
5929 host_cpu=$1
5930 host_vendor=$2
5931 shift; shift
5932 # Remember, the first character of IFS is used to create $*,
5933 # except with old shells:
5934 host_os=$*
5935 IFS=$ac_save_IFS
5936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5937
5938
5939 # Backslashify metacharacters that are still active within
5940 # double-quoted strings.
5941 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5942
5943 # Same as above, but do not quote variable references.
5944 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5945
5946 # Sed substitution to delay expansion of an escaped shell variable in a
5947 # double_quote_subst'ed string.
5948 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5949
5950 # Sed substitution to delay expansion of an escaped single quote.
5951 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5952
5953 # Sed substitution to avoid accidental globbing in evaled expressions
5954 no_glob_subst='s/\*/\\\*/g'
5955
5956 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5961 $as_echo_n "checking how to print strings... " >&6; }
5962 # Test print first, because it will be a builtin if present.
5963 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5964    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5965   ECHO='print -r --'
5966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5967   ECHO='printf %s\n'
5968 else
5969   # Use this function as a fallback that always works.
5970   func_fallback_echo ()
5971   {
5972     eval 'cat <<_LTECHO_EOF
5973 $1
5974 _LTECHO_EOF'
5975   }
5976   ECHO='func_fallback_echo'
5977 fi
5978
5979 # func_echo_all arg...
5980 # Invoke $ECHO with all args, space-separated.
5981 func_echo_all ()
5982 {
5983     $ECHO ""
5984 }
5985
5986 case "$ECHO" in
5987   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5988 $as_echo "printf" >&6; } ;;
5989   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5990 $as_echo "print -r" >&6; } ;;
5991   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5992 $as_echo "cat" >&6; } ;;
5993 esac
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6009 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6010 if ${ac_cv_path_SED+:} false; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6014      for ac_i in 1 2 3 4 5 6 7; do
6015        ac_script="$ac_script$as_nl$ac_script"
6016      done
6017      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6018      { ac_script=; unset ac_script;}
6019      if test -z "$SED"; then
6020   ac_path_SED_found=false
6021   # Loop through the user's path and test for each of PROGNAME-LIST
6022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027     for ac_prog in sed gsed; do
6028     for ac_exec_ext in '' $ac_executable_extensions; do
6029       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6030       as_fn_executable_p "$ac_path_SED" || continue
6031 # Check for GNU ac_path_SED and select it if it is found.
6032   # Check for GNU $ac_path_SED
6033 case `"$ac_path_SED" --version 2>&1` in
6034 *GNU*)
6035   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6036 *)
6037   ac_count=0
6038   $as_echo_n 0123456789 >"conftest.in"
6039   while :
6040   do
6041     cat "conftest.in" "conftest.in" >"conftest.tmp"
6042     mv "conftest.tmp" "conftest.in"
6043     cp "conftest.in" "conftest.nl"
6044     $as_echo '' >> "conftest.nl"
6045     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6047     as_fn_arith $ac_count + 1 && ac_count=$as_val
6048     if test $ac_count -gt ${ac_path_SED_max-0}; then
6049       # Best one so far, save it but keep looking for a better one
6050       ac_cv_path_SED="$ac_path_SED"
6051       ac_path_SED_max=$ac_count
6052     fi
6053     # 10*(2^10) chars as input seems more than enough
6054     test $ac_count -gt 10 && break
6055   done
6056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6057 esac
6058
6059       $ac_path_SED_found && break 3
6060     done
6061   done
6062   done
6063 IFS=$as_save_IFS
6064   if test -z "$ac_cv_path_SED"; then
6065     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6066   fi
6067 else
6068   ac_cv_path_SED=$SED
6069 fi
6070
6071 fi
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6073 $as_echo "$ac_cv_path_SED" >&6; }
6074  SED="$ac_cv_path_SED"
6075   rm -f conftest.sed
6076
6077 test -z "$SED" && SED=sed
6078 Xsed="$SED -e 1s/^X//"
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6091 $as_echo_n "checking for fgrep... " >&6; }
6092 if ${ac_cv_path_FGREP+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6096    then ac_cv_path_FGREP="$GREP -F"
6097    else
6098      if test -z "$FGREP"; then
6099   ac_path_FGREP_found=false
6100   # Loop through the user's path and test for each of PROGNAME-LIST
6101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6103 do
6104   IFS=$as_save_IFS
6105   test -z "$as_dir" && as_dir=.
6106     for ac_prog in fgrep; do
6107     for ac_exec_ext in '' $ac_executable_extensions; do
6108       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6109       as_fn_executable_p "$ac_path_FGREP" || continue
6110 # Check for GNU ac_path_FGREP and select it if it is found.
6111   # Check for GNU $ac_path_FGREP
6112 case `"$ac_path_FGREP" --version 2>&1` in
6113 *GNU*)
6114   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6115 *)
6116   ac_count=0
6117   $as_echo_n 0123456789 >"conftest.in"
6118   while :
6119   do
6120     cat "conftest.in" "conftest.in" >"conftest.tmp"
6121     mv "conftest.tmp" "conftest.in"
6122     cp "conftest.in" "conftest.nl"
6123     $as_echo 'FGREP' >> "conftest.nl"
6124     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6125     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6126     as_fn_arith $ac_count + 1 && ac_count=$as_val
6127     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6128       # Best one so far, save it but keep looking for a better one
6129       ac_cv_path_FGREP="$ac_path_FGREP"
6130       ac_path_FGREP_max=$ac_count
6131     fi
6132     # 10*(2^10) chars as input seems more than enough
6133     test $ac_count -gt 10 && break
6134   done
6135   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6136 esac
6137
6138       $ac_path_FGREP_found && break 3
6139     done
6140   done
6141   done
6142 IFS=$as_save_IFS
6143   if test -z "$ac_cv_path_FGREP"; then
6144     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6145   fi
6146 else
6147   ac_cv_path_FGREP=$FGREP
6148 fi
6149
6150    fi
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6153 $as_echo "$ac_cv_path_FGREP" >&6; }
6154  FGREP="$ac_cv_path_FGREP"
6155
6156
6157 test -z "$GREP" && GREP=grep
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 # Check whether --with-gnu-ld was given.
6178 if test "${with_gnu_ld+set}" = set; then :
6179   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6180 else
6181   with_gnu_ld=no
6182 fi
6183
6184 ac_prog=ld
6185 if test "$GCC" = yes; then
6186   # Check if gcc -print-prog-name=ld gives a path.
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6188 $as_echo_n "checking for ld used by $CC... " >&6; }
6189   case $host in
6190   *-*-mingw*)
6191     # gcc leaves a trailing carriage return which upsets mingw
6192     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6193   *)
6194     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6195   esac
6196   case $ac_prog in
6197     # Accept absolute paths.
6198     [\\/]* | ?:[\\/]*)
6199       re_direlt='/[^/][^/]*/\.\./'
6200       # Canonicalize the pathname of ld
6201       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6202       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6203         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6204       done
6205       test -z "$LD" && LD="$ac_prog"
6206       ;;
6207   "")
6208     # If it fails, then pretend we aren't using GCC.
6209     ac_prog=ld
6210     ;;
6211   *)
6212     # If it is relative, then search for the first ld in PATH.
6213     with_gnu_ld=unknown
6214     ;;
6215   esac
6216 elif test "$with_gnu_ld" = yes; then
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6218 $as_echo_n "checking for GNU ld... " >&6; }
6219 else
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6221 $as_echo_n "checking for non-GNU ld... " >&6; }
6222 fi
6223 if ${lt_cv_path_LD+:} false; then :
6224   $as_echo_n "(cached) " >&6
6225 else
6226   if test -z "$LD"; then
6227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6228   for ac_dir in $PATH; do
6229     IFS="$lt_save_ifs"
6230     test -z "$ac_dir" && ac_dir=.
6231     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6232       lt_cv_path_LD="$ac_dir/$ac_prog"
6233       # Check to see if the program is GNU ld.  I'd rather use --version,
6234       # but apparently some variants of GNU ld only accept -v.
6235       # Break only if it was the GNU/non-GNU ld that we prefer.
6236       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6237       *GNU* | *'with BFD'*)
6238         test "$with_gnu_ld" != no && break
6239         ;;
6240       *)
6241         test "$with_gnu_ld" != yes && break
6242         ;;
6243       esac
6244     fi
6245   done
6246   IFS="$lt_save_ifs"
6247 else
6248   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6249 fi
6250 fi
6251
6252 LD="$lt_cv_path_LD"
6253 if test -n "$LD"; then
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6255 $as_echo "$LD" >&6; }
6256 else
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6263 if ${lt_cv_prog_gnu_ld+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6267 case `$LD -v 2>&1 </dev/null` in
6268 *GNU* | *'with BFD'*)
6269   lt_cv_prog_gnu_ld=yes
6270   ;;
6271 *)
6272   lt_cv_prog_gnu_ld=no
6273   ;;
6274 esac
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6278 with_gnu_ld=$lt_cv_prog_gnu_ld
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6290 if ${lt_cv_path_NM+:} false; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   if test -n "$NM"; then
6294   # Let the user override the test.
6295   lt_cv_path_NM="$NM"
6296 else
6297   lt_nm_to_check="${ac_tool_prefix}nm"
6298   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6299     lt_nm_to_check="$lt_nm_to_check nm"
6300   fi
6301   for lt_tmp_nm in $lt_nm_to_check; do
6302     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6304       IFS="$lt_save_ifs"
6305       test -z "$ac_dir" && ac_dir=.
6306       tmp_nm="$ac_dir/$lt_tmp_nm"
6307       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6308         # Check to see if the nm accepts a BSD-compat flag.
6309         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6310         #   nm: unknown option "B" ignored
6311         # Tru64's nm complains that /dev/null is an invalid object file
6312         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6313         */dev/null* | *'Invalid file or object type'*)
6314           lt_cv_path_NM="$tmp_nm -B"
6315           break
6316           ;;
6317         *)
6318           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6319           */dev/null*)
6320             lt_cv_path_NM="$tmp_nm -p"
6321             break
6322             ;;
6323           *)
6324             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6325             continue # so that we can try to find one that supports BSD flags
6326             ;;
6327           esac
6328           ;;
6329         esac
6330       fi
6331     done
6332     IFS="$lt_save_ifs"
6333   done
6334   : ${lt_cv_path_NM=no}
6335 fi
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6338 $as_echo "$lt_cv_path_NM" >&6; }
6339 if test "$lt_cv_path_NM" != "no"; then
6340   NM="$lt_cv_path_NM"
6341 else
6342   # Didn't find any BSD compatible name lister, look for dumpbin.
6343   if test -n "$DUMPBIN"; then :
6344     # Let the user override the test.
6345   else
6346     if test -n "$ac_tool_prefix"; then
6347   for ac_prog in dumpbin "link -dump"
6348   do
6349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_DUMPBIN+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   if test -n "$DUMPBIN"; then
6357   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371   done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 DUMPBIN=$ac_cv_prog_DUMPBIN
6377 if test -n "$DUMPBIN"; then
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6379 $as_echo "$DUMPBIN" >&6; }
6380 else
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385
6386     test -n "$DUMPBIN" && break
6387   done
6388 fi
6389 if test -z "$DUMPBIN"; then
6390   ac_ct_DUMPBIN=$DUMPBIN
6391   for ac_prog in dumpbin "link -dump"
6392 do
6393   # Extract the first word of "$ac_prog", so it can be a program name with args.
6394 set dummy $ac_prog; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -n "$ac_ct_DUMPBIN"; then
6401   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_exec_ext in '' $ac_executable_extensions; do
6409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415   done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6421 if test -n "$ac_ct_DUMPBIN"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6423 $as_echo "$ac_ct_DUMPBIN" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430   test -n "$ac_ct_DUMPBIN" && break
6431 done
6432
6433   if test "x$ac_ct_DUMPBIN" = x; then
6434     DUMPBIN=":"
6435   else
6436     case $cross_compiling:$ac_tool_warned in
6437 yes:)
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442     DUMPBIN=$ac_ct_DUMPBIN
6443   fi
6444 fi
6445
6446     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6447     *COFF*)
6448       DUMPBIN="$DUMPBIN -symbols"
6449       ;;
6450     *)
6451       DUMPBIN=:
6452       ;;
6453     esac
6454   fi
6455
6456   if test "$DUMPBIN" != ":"; then
6457     NM="$DUMPBIN"
6458   fi
6459 fi
6460 test -z "$NM" && NM=nm
6461
6462
6463
6464
6465
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6469 if ${lt_cv_nm_interface+:} false; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   lt_cv_nm_interface="BSD nm"
6473   echo "int some_variable = 0;" > conftest.$ac_ext
6474   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6475   (eval "$ac_compile" 2>conftest.err)
6476   cat conftest.err >&5
6477   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6478   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6479   cat conftest.err >&5
6480   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6481   cat conftest.out >&5
6482   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6483     lt_cv_nm_interface="MS dumpbin"
6484   fi
6485   rm -f conftest*
6486 fi
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6488 $as_echo "$lt_cv_nm_interface" >&6; }
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6491 $as_echo_n "checking whether ln -s works... " >&6; }
6492 LN_S=$as_ln_s
6493 if test "$LN_S" = "ln -s"; then
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6495 $as_echo "yes" >&6; }
6496 else
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6498 $as_echo "no, using $LN_S" >&6; }
6499 fi
6500
6501 # find the maximum length of command line arguments
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6504 if ${lt_cv_sys_max_cmd_len+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507     i=0
6508   teststring="ABCD"
6509
6510   case $build_os in
6511   msdosdjgpp*)
6512     # On DJGPP, this test can blow up pretty badly due to problems in libc
6513     # (any single argument exceeding 2000 bytes causes a buffer overrun
6514     # during glob expansion).  Even if it were fixed, the result of this
6515     # check would be larger than it should be.
6516     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6517     ;;
6518
6519   gnu*)
6520     # Under GNU Hurd, this test is not required because there is
6521     # no limit to the length of command line arguments.
6522     # Libtool will interpret -1 as no limit whatsoever
6523     lt_cv_sys_max_cmd_len=-1;
6524     ;;
6525
6526   cygwin* | mingw* | cegcc*)
6527     # On Win9x/ME, this test blows up -- it succeeds, but takes
6528     # about 5 minutes as the teststring grows exponentially.
6529     # Worse, since 9x/ME are not pre-emptively multitasking,
6530     # you end up with a "frozen" computer, even though with patience
6531     # the test eventually succeeds (with a max line length of 256k).
6532     # Instead, let's just punt: use the minimum linelength reported by
6533     # all of the supported platforms: 8192 (on NT/2K/XP).
6534     lt_cv_sys_max_cmd_len=8192;
6535     ;;
6536
6537   mint*)
6538     # On MiNT this can take a long time and run out of memory.
6539     lt_cv_sys_max_cmd_len=8192;
6540     ;;
6541
6542   amigaos*)
6543     # On AmigaOS with pdksh, this test takes hours, literally.
6544     # So we just punt and use a minimum line length of 8192.
6545     lt_cv_sys_max_cmd_len=8192;
6546     ;;
6547
6548   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6549     # This has been around since 386BSD, at least.  Likely further.
6550     if test -x /sbin/sysctl; then
6551       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6552     elif test -x /usr/sbin/sysctl; then
6553       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6554     else
6555       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6556     fi
6557     # And add a safety zone
6558     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6559     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6560     ;;
6561
6562   interix*)
6563     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6564     lt_cv_sys_max_cmd_len=196608
6565     ;;
6566
6567   os2*)
6568     # The test takes a long time on OS/2.
6569     lt_cv_sys_max_cmd_len=8192
6570     ;;
6571
6572   osf*)
6573     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6574     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6575     # nice to cause kernel panics so lets avoid the loop below.
6576     # First set a reasonable default.
6577     lt_cv_sys_max_cmd_len=16384
6578     #
6579     if test -x /sbin/sysconfig; then
6580       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6581         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6582       esac
6583     fi
6584     ;;
6585   sco3.2v5*)
6586     lt_cv_sys_max_cmd_len=102400
6587     ;;
6588   sysv5* | sco5v6* | sysv4.2uw2*)
6589     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6590     if test -n "$kargmax"; then
6591       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6592     else
6593       lt_cv_sys_max_cmd_len=32768
6594     fi
6595     ;;
6596   *)
6597     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6598     if test -n "$lt_cv_sys_max_cmd_len" && \
6599         test undefined != "$lt_cv_sys_max_cmd_len"; then
6600       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6601       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6602     else
6603       # Make teststring a little bigger before we do anything with it.
6604       # a 1K string should be a reasonable start.
6605       for i in 1 2 3 4 5 6 7 8 ; do
6606         teststring=$teststring$teststring
6607       done
6608       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6609       # If test is not a shell built-in, we'll probably end up computing a
6610       # maximum length that is only half of the actual maximum length, but
6611       # we can't tell.
6612       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6613                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6614               test $i != 17 # 1/2 MB should be enough
6615       do
6616         i=`expr $i + 1`
6617         teststring=$teststring$teststring
6618       done
6619       # Only check the string length outside the loop.
6620       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6621       teststring=
6622       # Add a significant safety factor because C++ compilers can tack on
6623       # massive amounts of additional arguments before passing them to the
6624       # linker.  It appears as though 1/2 is a usable value.
6625       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6626     fi
6627     ;;
6628   esac
6629
6630 fi
6631
6632 if test -n $lt_cv_sys_max_cmd_len ; then
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6634 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6635 else
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6637 $as_echo "none" >&6; }
6638 fi
6639 max_cmd_len=$lt_cv_sys_max_cmd_len
6640
6641
6642
6643
6644
6645
6646 : ${CP="cp -f"}
6647 : ${MV="mv -f"}
6648 : ${RM="rm -f"}
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6651 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6652 # Try some XSI features
6653 xsi_shell=no
6654 ( _lt_dummy="a/b/c"
6655   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6656       = c,a/b,b/c, \
6657     && eval 'test $(( 1 + 1 )) -eq 2 \
6658     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6659   && xsi_shell=yes
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6661 $as_echo "$xsi_shell" >&6; }
6662
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6665 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6666 lt_shell_append=no
6667 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6668     >/dev/null 2>&1 \
6669   && lt_shell_append=yes
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6671 $as_echo "$lt_shell_append" >&6; }
6672
6673
6674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6675   lt_unset=unset
6676 else
6677   lt_unset=false
6678 fi
6679
6680
6681
6682
6683
6684 # test EBCDIC or ASCII
6685 case `echo X|tr X '\101'` in
6686  A) # ASCII based system
6687     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6688   lt_SP2NL='tr \040 \012'
6689   lt_NL2SP='tr \015\012 \040\040'
6690   ;;
6691  *) # EBCDIC based system
6692   lt_SP2NL='tr \100 \n'
6693   lt_NL2SP='tr \r\n \100\100'
6694   ;;
6695 esac
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6706 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6707 if ${lt_cv_to_host_file_cmd+:} false; then :
6708   $as_echo_n "(cached) " >&6
6709 else
6710   case $host in
6711   *-*-mingw* )
6712     case $build in
6713       *-*-mingw* ) # actually msys
6714         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6715         ;;
6716       *-*-cygwin* )
6717         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6718         ;;
6719       * ) # otherwise, assume *nix
6720         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6721         ;;
6722     esac
6723     ;;
6724   *-*-cygwin* )
6725     case $build in
6726       *-*-mingw* ) # actually msys
6727         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6728         ;;
6729       *-*-cygwin* )
6730         lt_cv_to_host_file_cmd=func_convert_file_noop
6731         ;;
6732       * ) # otherwise, assume *nix
6733         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6734         ;;
6735     esac
6736     ;;
6737   * ) # unhandled hosts (and "normal" native builds)
6738     lt_cv_to_host_file_cmd=func_convert_file_noop
6739     ;;
6740 esac
6741
6742 fi
6743
6744 to_host_file_cmd=$lt_cv_to_host_file_cmd
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6746 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6747
6748
6749
6750
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6753 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6754 if ${lt_cv_to_tool_file_cmd+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   #assume ordinary cross tools, or native build.
6758 lt_cv_to_tool_file_cmd=func_convert_file_noop
6759 case $host in
6760   *-*-mingw* )
6761     case $build in
6762       *-*-mingw* ) # actually msys
6763         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6764         ;;
6765     esac
6766     ;;
6767 esac
6768
6769 fi
6770
6771 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6773 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6774
6775
6776
6777
6778
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6780 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6781 if ${lt_cv_ld_reload_flag+:} false; then :
6782   $as_echo_n "(cached) " >&6
6783 else
6784   lt_cv_ld_reload_flag='-r'
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6787 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6788 reload_flag=$lt_cv_ld_reload_flag
6789 case $reload_flag in
6790 "" | " "*) ;;
6791 *) reload_flag=" $reload_flag" ;;
6792 esac
6793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6794 case $host_os in
6795   cygwin* | mingw* | pw32* | cegcc*)
6796     if test "$GCC" != yes; then
6797       reload_cmds=false
6798     fi
6799     ;;
6800   darwin*)
6801     if test "$GCC" = yes; then
6802       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6803     else
6804       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6805     fi
6806     ;;
6807 esac
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817 if test -n "$ac_tool_prefix"; then
6818   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if ${ac_cv_prog_OBJDUMP+:} false; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   if test -n "$OBJDUMP"; then
6826   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831   IFS=$as_save_IFS
6832   test -z "$as_dir" && as_dir=.
6833     for ac_exec_ext in '' $ac_executable_extensions; do
6834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837     break 2
6838   fi
6839 done
6840   done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 OBJDUMP=$ac_cv_prog_OBJDUMP
6846 if test -n "$OBJDUMP"; then
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6848 $as_echo "$OBJDUMP" >&6; }
6849 else
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6852 fi
6853
6854
6855 fi
6856 if test -z "$ac_cv_prog_OBJDUMP"; then
6857   ac_ct_OBJDUMP=$OBJDUMP
6858   # Extract the first word of "objdump", so it can be a program name with args.
6859 set dummy objdump; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6863   $as_echo_n "(cached) " >&6
6864 else
6865   if test -n "$ac_ct_OBJDUMP"; then
6866   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873     for ac_exec_ext in '' $ac_executable_extensions; do
6874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877     break 2
6878   fi
6879 done
6880   done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6886 if test -n "$ac_ct_OBJDUMP"; then
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6888 $as_echo "$ac_ct_OBJDUMP" >&6; }
6889 else
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894   if test "x$ac_ct_OBJDUMP" = x; then
6895     OBJDUMP="false"
6896   else
6897     case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903     OBJDUMP=$ac_ct_OBJDUMP
6904   fi
6905 else
6906   OBJDUMP="$ac_cv_prog_OBJDUMP"
6907 fi
6908
6909 test -z "$OBJDUMP" && OBJDUMP=objdump
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6920 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6921 if ${lt_cv_deplibs_check_method+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   lt_cv_file_magic_cmd='$MAGIC_CMD'
6925 lt_cv_file_magic_test_file=
6926 lt_cv_deplibs_check_method='unknown'
6927 # Need to set the preceding variable on all platforms that support
6928 # interlibrary dependencies.
6929 # 'none' -- dependencies not supported.
6930 # `unknown' -- same as none, but documents that we really don't know.
6931 # 'pass_all' -- all dependencies passed with no checks.
6932 # 'test_compile' -- check by making test program.
6933 # 'file_magic [[regex]]' -- check by looking for files in library path
6934 # which responds to the $file_magic_cmd with a given extended regex.
6935 # If you have `file' or equivalent on your system and you're not sure
6936 # whether `pass_all' will *always* work, you probably want this one.
6937
6938 case $host_os in
6939 aix[4-9]*)
6940   lt_cv_deplibs_check_method=pass_all
6941   ;;
6942
6943 beos*)
6944   lt_cv_deplibs_check_method=pass_all
6945   ;;
6946
6947 bsdi[45]*)
6948   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6949   lt_cv_file_magic_cmd='/usr/bin/file -L'
6950   lt_cv_file_magic_test_file=/shlib/libc.so
6951   ;;
6952
6953 cygwin*)
6954   # func_win32_libid is a shell function defined in ltmain.sh
6955   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6956   lt_cv_file_magic_cmd='func_win32_libid'
6957   ;;
6958
6959 mingw* | pw32*)
6960   # Base MSYS/MinGW do not provide the 'file' command needed by
6961   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6962   # unless we find 'file', for example because we are cross-compiling.
6963   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6964   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6965     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6966     lt_cv_file_magic_cmd='func_win32_libid'
6967   else
6968     # Keep this pattern in sync with the one in func_win32_libid.
6969     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6970     lt_cv_file_magic_cmd='$OBJDUMP -f'
6971   fi
6972   ;;
6973
6974 cegcc*)
6975   # use the weaker test based on 'objdump'. See mingw*.
6976   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6977   lt_cv_file_magic_cmd='$OBJDUMP -f'
6978   ;;
6979
6980 darwin* | rhapsody*)
6981   lt_cv_deplibs_check_method=pass_all
6982   ;;
6983
6984 freebsd* | dragonfly*)
6985   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6986     case $host_cpu in
6987     i*86 )
6988       # Not sure whether the presence of OpenBSD here was a mistake.
6989       # Let's accept both of them until this is cleared up.
6990       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6991       lt_cv_file_magic_cmd=/usr/bin/file
6992       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6993       ;;
6994     esac
6995   else
6996     lt_cv_deplibs_check_method=pass_all
6997   fi
6998   ;;
6999
7000 haiku*)
7001   lt_cv_deplibs_check_method=pass_all
7002   ;;
7003
7004 hpux10.20* | hpux11*)
7005   lt_cv_file_magic_cmd=/usr/bin/file
7006   case $host_cpu in
7007   ia64*)
7008     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7009     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7010     ;;
7011   hppa*64*)
7012     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]'
7013     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7014     ;;
7015   *)
7016     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7017     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7018     ;;
7019   esac
7020   ;;
7021
7022 interix[3-9]*)
7023   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7024   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7025   ;;
7026
7027 irix5* | irix6* | nonstopux*)
7028   case $LD in
7029   *-32|*"-32 ") libmagic=32-bit;;
7030   *-n32|*"-n32 ") libmagic=N32;;
7031   *-64|*"-64 ") libmagic=64-bit;;
7032   *) libmagic=never-match;;
7033   esac
7034   lt_cv_deplibs_check_method=pass_all
7035   ;;
7036
7037 # This must be glibc/ELF.
7038 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7039   lt_cv_deplibs_check_method=pass_all
7040   ;;
7041
7042 netbsd* | netbsdelf*-gnu)
7043   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7044     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7045   else
7046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7047   fi
7048   ;;
7049
7050 newos6*)
7051   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7052   lt_cv_file_magic_cmd=/usr/bin/file
7053   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7054   ;;
7055
7056 *nto* | *qnx*)
7057   lt_cv_deplibs_check_method=pass_all
7058   ;;
7059
7060 openbsd*)
7061   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7062     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7063   else
7064     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7065   fi
7066   ;;
7067
7068 osf3* | osf4* | osf5*)
7069   lt_cv_deplibs_check_method=pass_all
7070   ;;
7071
7072 rdos*)
7073   lt_cv_deplibs_check_method=pass_all
7074   ;;
7075
7076 solaris*)
7077   lt_cv_deplibs_check_method=pass_all
7078   ;;
7079
7080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7081   lt_cv_deplibs_check_method=pass_all
7082   ;;
7083
7084 sysv4 | sysv4.3*)
7085   case $host_vendor in
7086   motorola)
7087     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]'
7088     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7089     ;;
7090   ncr)
7091     lt_cv_deplibs_check_method=pass_all
7092     ;;
7093   sequent)
7094     lt_cv_file_magic_cmd='/bin/file'
7095     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7096     ;;
7097   sni)
7098     lt_cv_file_magic_cmd='/bin/file'
7099     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7100     lt_cv_file_magic_test_file=/lib/libc.so
7101     ;;
7102   siemens)
7103     lt_cv_deplibs_check_method=pass_all
7104     ;;
7105   pc)
7106     lt_cv_deplibs_check_method=pass_all
7107     ;;
7108   esac
7109   ;;
7110
7111 tpf*)
7112   lt_cv_deplibs_check_method=pass_all
7113   ;;
7114 esac
7115
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7118 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7119
7120 file_magic_glob=
7121 want_nocaseglob=no
7122 if test "$build" = "$host"; then
7123   case $host_os in
7124   mingw* | pw32*)
7125     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7126       want_nocaseglob=yes
7127     else
7128       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7129     fi
7130     ;;
7131   esac
7132 fi
7133
7134 file_magic_cmd=$lt_cv_file_magic_cmd
7135 deplibs_check_method=$lt_cv_deplibs_check_method
7136 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 if test -n "$ac_tool_prefix"; then
7160   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_DLLTOOL+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   if test -n "$DLLTOOL"; then
7168   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     for ac_exec_ext in '' $ac_executable_extensions; do
7176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182   done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 DLLTOOL=$ac_cv_prog_DLLTOOL
7188 if test -n "$DLLTOOL"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7190 $as_echo "$DLLTOOL" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196
7197 fi
7198 if test -z "$ac_cv_prog_DLLTOOL"; then
7199   ac_ct_DLLTOOL=$DLLTOOL
7200   # Extract the first word of "dlltool", so it can be a program name with args.
7201 set dummy dlltool; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207   if test -n "$ac_ct_DLLTOOL"; then
7208   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215     for ac_exec_ext in '' $ac_executable_extensions; do
7216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222   done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7228 if test -n "$ac_ct_DLLTOOL"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7230 $as_echo "$ac_ct_DLLTOOL" >&6; }
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236   if test "x$ac_ct_DLLTOOL" = x; then
7237     DLLTOOL="false"
7238   else
7239     case $cross_compiling:$ac_tool_warned in
7240 yes:)
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243 ac_tool_warned=yes ;;
7244 esac
7245     DLLTOOL=$ac_ct_DLLTOOL
7246   fi
7247 else
7248   DLLTOOL="$ac_cv_prog_DLLTOOL"
7249 fi
7250
7251 test -z "$DLLTOOL" && DLLTOOL=dlltool
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7263 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7264 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   lt_cv_sharedlib_from_linklib_cmd='unknown'
7268
7269 case $host_os in
7270 cygwin* | mingw* | pw32* | cegcc*)
7271   # two different shell functions defined in ltmain.sh
7272   # decide which to use based on capabilities of $DLLTOOL
7273   case `$DLLTOOL --help 2>&1` in
7274   *--identify-strict*)
7275     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7276     ;;
7277   *)
7278     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7279     ;;
7280   esac
7281   ;;
7282 *)
7283   # fallback: assume linklib IS sharedlib
7284   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7285   ;;
7286 esac
7287
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7290 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7291 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7292 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7293
7294
7295
7296
7297
7298
7299
7300 if test -n "$ac_tool_prefix"; then
7301   for ac_prog in ar
7302   do
7303     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_AR+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   if test -n "$AR"; then
7311   ac_cv_prog_AR="$AR" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318     for ac_exec_ext in '' $ac_executable_extensions; do
7319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325   done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 AR=$ac_cv_prog_AR
7331 if test -n "$AR"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7333 $as_echo "$AR" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339
7340     test -n "$AR" && break
7341   done
7342 fi
7343 if test -z "$AR"; then
7344   ac_ct_AR=$AR
7345   for ac_prog in ar
7346 do
7347   # Extract the first word of "$ac_prog", so it can be a program name with args.
7348 set dummy $ac_prog; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$ac_ct_AR"; then
7355   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_ac_ct_AR="$ac_prog"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7375 if test -n "$ac_ct_AR"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7377 $as_echo "$ac_ct_AR" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384   test -n "$ac_ct_AR" && break
7385 done
7386
7387   if test "x$ac_ct_AR" = x; then
7388     AR="false"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396     AR=$ac_ct_AR
7397   fi
7398 fi
7399
7400 : ${AR=ar}
7401 : ${AR_FLAGS=cru}
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7414 $as_echo_n "checking for archiver @FILE support... " >&6; }
7415 if ${lt_cv_ar_at_file+:} false; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418   lt_cv_ar_at_file=no
7419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h.  */
7421
7422 int
7423 main ()
7424 {
7425
7426   ;
7427   return 0;
7428 }
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431   echo conftest.$ac_objext > conftest.lst
7432       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7433       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7434   (eval $lt_ar_try) 2>&5
7435   ac_status=$?
7436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437   test $ac_status = 0; }
7438       if test "$ac_status" -eq 0; then
7439         # Ensure the archiver fails upon bogus file names.
7440         rm -f conftest.$ac_objext libconftest.a
7441         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7442   (eval $lt_ar_try) 2>&5
7443   ac_status=$?
7444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445   test $ac_status = 0; }
7446         if test "$ac_status" -ne 0; then
7447           lt_cv_ar_at_file=@
7448         fi
7449       fi
7450       rm -f conftest.* libconftest.a
7451
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7457 $as_echo "$lt_cv_ar_at_file" >&6; }
7458
7459 if test "x$lt_cv_ar_at_file" = xno; then
7460   archiver_list_spec=
7461 else
7462   archiver_list_spec=$lt_cv_ar_at_file
7463 fi
7464
7465
7466
7467
7468
7469
7470
7471 if test -n "$ac_tool_prefix"; then
7472   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}strip; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_STRIP+:} false; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   if test -n "$STRIP"; then
7480   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497 fi
7498 fi
7499 STRIP=$ac_cv_prog_STRIP
7500 if test -n "$STRIP"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7502 $as_echo "$STRIP" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508
7509 fi
7510 if test -z "$ac_cv_prog_STRIP"; then
7511   ac_ct_STRIP=$STRIP
7512   # Extract the first word of "strip", so it can be a program name with args.
7513 set dummy strip; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   if test -n "$ac_ct_STRIP"; then
7520   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527     for ac_exec_ext in '' $ac_executable_extensions; do
7528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529     ac_cv_prog_ac_ct_STRIP="strip"
7530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534   done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7540 if test -n "$ac_ct_STRIP"; then
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7542 $as_echo "$ac_ct_STRIP" >&6; }
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548   if test "x$ac_ct_STRIP" = x; then
7549     STRIP=":"
7550   else
7551     case $cross_compiling:$ac_tool_warned in
7552 yes:)
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7556 esac
7557     STRIP=$ac_ct_STRIP
7558   fi
7559 else
7560   STRIP="$ac_cv_prog_STRIP"
7561 fi
7562
7563 test -z "$STRIP" && STRIP=:
7564
7565
7566
7567
7568
7569
7570 if test -n "$ac_tool_prefix"; then
7571   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_RANLIB+:} false; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   if test -n "$RANLIB"; then
7579   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586     for ac_exec_ext in '' $ac_executable_extensions; do
7587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593   done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 RANLIB=$ac_cv_prog_RANLIB
7599 if test -n "$RANLIB"; then
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7601 $as_echo "$RANLIB" >&6; }
7602 else
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607
7608 fi
7609 if test -z "$ac_cv_prog_RANLIB"; then
7610   ac_ct_RANLIB=$RANLIB
7611   # Extract the first word of "ranlib", so it can be a program name with args.
7612 set dummy ranlib; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   if test -n "$ac_ct_RANLIB"; then
7619   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626     for ac_exec_ext in '' $ac_executable_extensions; do
7627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628     ac_cv_prog_ac_ct_RANLIB="ranlib"
7629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633   done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7639 if test -n "$ac_ct_RANLIB"; then
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7641 $as_echo "$ac_ct_RANLIB" >&6; }
7642 else
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645 fi
7646
7647   if test "x$ac_ct_RANLIB" = x; then
7648     RANLIB=":"
7649   else
7650     case $cross_compiling:$ac_tool_warned in
7651 yes:)
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7655 esac
7656     RANLIB=$ac_ct_RANLIB
7657   fi
7658 else
7659   RANLIB="$ac_cv_prog_RANLIB"
7660 fi
7661
7662 test -z "$RANLIB" && RANLIB=:
7663
7664
7665
7666
7667
7668
7669 # Determine commands to create old-style static archives.
7670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7671 old_postinstall_cmds='chmod 644 $oldlib'
7672 old_postuninstall_cmds=
7673
7674 if test -n "$RANLIB"; then
7675   case $host_os in
7676   openbsd*)
7677     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7678     ;;
7679   *)
7680     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7681     ;;
7682   esac
7683   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7684 fi
7685
7686 case $host_os in
7687   darwin*)
7688     lock_old_archive_extraction=yes ;;
7689   *)
7690     lock_old_archive_extraction=no ;;
7691 esac
7692
7693
7694
7695
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 # If no C compiler was specified, use CC.
7732 LTCC=${LTCC-"$CC"}
7733
7734 # If no C compiler flags were specified, use CFLAGS.
7735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7736
7737 # Allow CC to be a program name with arguments.
7738 compiler=$CC
7739
7740
7741 # Check for command to grab the raw symbol name followed by C symbol from nm.
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7743 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7744 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7745   $as_echo_n "(cached) " >&6
7746 else
7747
7748 # These are sane defaults that work on at least a few old systems.
7749 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7750
7751 # Character class describing NM global symbol codes.
7752 symcode='[BCDEGRST]'
7753
7754 # Regexp to match symbols that can be accessed directly from C.
7755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7756
7757 # Define system-specific variables.
7758 case $host_os in
7759 aix*)
7760   symcode='[BCDT]'
7761   ;;
7762 cygwin* | mingw* | pw32* | cegcc*)
7763   symcode='[ABCDGISTW]'
7764   ;;
7765 hpux*)
7766   if test "$host_cpu" = ia64; then
7767     symcode='[ABCDEGRST]'
7768   fi
7769   ;;
7770 irix* | nonstopux*)
7771   symcode='[BCDEGRST]'
7772   ;;
7773 osf*)
7774   symcode='[BCDEGQRST]'
7775   ;;
7776 solaris*)
7777   symcode='[BDRT]'
7778   ;;
7779 sco3.2v5*)
7780   symcode='[DT]'
7781   ;;
7782 sysv4.2uw2*)
7783   symcode='[DT]'
7784   ;;
7785 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7786   symcode='[ABDT]'
7787   ;;
7788 sysv4)
7789   symcode='[DFNSTU]'
7790   ;;
7791 esac
7792
7793 # If we're using GNU nm, then use its standard symbol codes.
7794 case `$NM -V 2>&1` in
7795 *GNU* | *'with BFD'*)
7796   symcode='[ABCDGIRSTW]' ;;
7797 esac
7798
7799 # Transform an extracted symbol line into a proper C declaration.
7800 # Some systems (esp. on ia64) link data and code symbols differently,
7801 # so use this general approach.
7802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7803
7804 # Transform an extracted symbol line into symbol name and symbol address
7805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7806 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'"
7807
7808 # Handle CRLF in mingw tool chain
7809 opt_cr=
7810 case $build_os in
7811 mingw*)
7812   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7813   ;;
7814 esac
7815
7816 # Try without a prefix underscore, then with it.
7817 for ac_symprfx in "" "_"; do
7818
7819   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7820   symxfrm="\\1 $ac_symprfx\\2 \\2"
7821
7822   # Write the raw and C identifiers.
7823   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7824     # Fake it for dumpbin and say T for any non-static function
7825     # and D for any global variable.
7826     # Also find C++ and __fastcall symbols from MSVC++,
7827     # which start with @ or ?.
7828     lt_cv_sys_global_symbol_pipe="$AWK '"\
7829 "     {last_section=section; section=\$ 3};"\
7830 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7831 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7832 "     \$ 0!~/External *\|/{next};"\
7833 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7834 "     {if(hide[section]) next};"\
7835 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7836 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7837 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7838 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7839 "     ' prfx=^$ac_symprfx"
7840   else
7841     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7842   fi
7843   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7844
7845   # Check to see that the pipe works correctly.
7846   pipe_works=no
7847
7848   rm -f conftest*
7849   cat > conftest.$ac_ext <<_LT_EOF
7850 #ifdef __cplusplus
7851 extern "C" {
7852 #endif
7853 char nm_test_var;
7854 void nm_test_func(void);
7855 void nm_test_func(void){}
7856 #ifdef __cplusplus
7857 }
7858 #endif
7859 int main(){nm_test_var='a';nm_test_func();return(0);}
7860 _LT_EOF
7861
7862   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7863   (eval $ac_compile) 2>&5
7864   ac_status=$?
7865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866   test $ac_status = 0; }; then
7867     # Now try to grab the symbols.
7868     nlist=conftest.nm
7869     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7870   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7871   ac_status=$?
7872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873   test $ac_status = 0; } && test -s "$nlist"; then
7874       # Try sorting and uniquifying the output.
7875       if sort "$nlist" | uniq > "$nlist"T; then
7876         mv -f "$nlist"T "$nlist"
7877       else
7878         rm -f "$nlist"T
7879       fi
7880
7881       # Make sure that we snagged all the symbols we need.
7882       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7883         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7884           cat <<_LT_EOF > conftest.$ac_ext
7885 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7886 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7887 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7888    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7889 # define LT_DLSYM_CONST
7890 #elif defined(__osf__)
7891 /* This system does not cope well with relocations in const data.  */
7892 # define LT_DLSYM_CONST
7893 #else
7894 # define LT_DLSYM_CONST const
7895 #endif
7896
7897 #ifdef __cplusplus
7898 extern "C" {
7899 #endif
7900
7901 _LT_EOF
7902           # Now generate the symbol file.
7903           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7904
7905           cat <<_LT_EOF >> conftest.$ac_ext
7906
7907 /* The mapping between symbol names and symbols.  */
7908 LT_DLSYM_CONST struct {
7909   const char *name;
7910   void       *address;
7911 }
7912 lt__PROGRAM__LTX_preloaded_symbols[] =
7913 {
7914   { "@PROGRAM@", (void *) 0 },
7915 _LT_EOF
7916           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7917           cat <<\_LT_EOF >> conftest.$ac_ext
7918   {0, (void *) 0}
7919 };
7920
7921 /* This works around a problem in FreeBSD linker */
7922 #ifdef FREEBSD_WORKAROUND
7923 static const void *lt_preloaded_setup() {
7924   return lt__PROGRAM__LTX_preloaded_symbols;
7925 }
7926 #endif
7927
7928 #ifdef __cplusplus
7929 }
7930 #endif
7931 _LT_EOF
7932           # Now try linking the two files.
7933           mv conftest.$ac_objext conftstm.$ac_objext
7934           lt_globsym_save_LIBS=$LIBS
7935           lt_globsym_save_CFLAGS=$CFLAGS
7936           LIBS="conftstm.$ac_objext"
7937           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7938           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7939   (eval $ac_link) 2>&5
7940   ac_status=$?
7941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7943             pipe_works=yes
7944           fi
7945           LIBS=$lt_globsym_save_LIBS
7946           CFLAGS=$lt_globsym_save_CFLAGS
7947         else
7948           echo "cannot find nm_test_func in $nlist" >&5
7949         fi
7950       else
7951         echo "cannot find nm_test_var in $nlist" >&5
7952       fi
7953     else
7954       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7955     fi
7956   else
7957     echo "$progname: failed program was:" >&5
7958     cat conftest.$ac_ext >&5
7959   fi
7960   rm -rf conftest* conftst*
7961
7962   # Do not use the global_symbol_pipe unless it works.
7963   if test "$pipe_works" = yes; then
7964     break
7965   else
7966     lt_cv_sys_global_symbol_pipe=
7967   fi
7968 done
7969
7970 fi
7971
7972 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7973   lt_cv_sys_global_symbol_to_cdecl=
7974 fi
7975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7977 $as_echo "failed" >&6; }
7978 else
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7980 $as_echo "ok" >&6; }
7981 fi
7982
7983 # Response file support.
7984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7985   nm_file_list_spec='@'
7986 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7987   nm_file_list_spec='@'
7988 fi
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8017 $as_echo_n "checking for sysroot... " >&6; }
8018
8019 # Check whether --with-sysroot was given.
8020 if test "${with_sysroot+set}" = set; then :
8021   withval=$with_sysroot;
8022 else
8023   with_sysroot=no
8024 fi
8025
8026
8027 lt_sysroot=
8028 case ${with_sysroot} in #(
8029  yes)
8030    if test "$GCC" = yes; then
8031      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8032    fi
8033    ;; #(
8034  /*)
8035    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8036    ;; #(
8037  no|'')
8038    ;; #(
8039  *)
8040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8041 $as_echo "${with_sysroot}" >&6; }
8042    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8043    ;;
8044 esac
8045
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8047 $as_echo "${lt_sysroot:-no}" >&6; }
8048
8049
8050
8051
8052
8053 # Check whether --enable-libtool-lock was given.
8054 if test "${enable_libtool_lock+set}" = set; then :
8055   enableval=$enable_libtool_lock;
8056 fi
8057
8058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8059
8060 # Some flags need to be propagated to the compiler or linker for good
8061 # libtool support.
8062 case $host in
8063 ia64-*-hpux*)
8064   # Find out which ABI we are using.
8065   echo 'int i;' > conftest.$ac_ext
8066   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8067   (eval $ac_compile) 2>&5
8068   ac_status=$?
8069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070   test $ac_status = 0; }; then
8071     case `/usr/bin/file conftest.$ac_objext` in
8072       *ELF-32*)
8073         HPUX_IA64_MODE="32"
8074         ;;
8075       *ELF-64*)
8076         HPUX_IA64_MODE="64"
8077         ;;
8078     esac
8079   fi
8080   rm -rf conftest*
8081   ;;
8082 *-*-irix6*)
8083   # Find out which ABI we are using.
8084   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8085   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8086   (eval $ac_compile) 2>&5
8087   ac_status=$?
8088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8089   test $ac_status = 0; }; then
8090     if test "$lt_cv_prog_gnu_ld" = yes; then
8091       case `/usr/bin/file conftest.$ac_objext` in
8092         *32-bit*)
8093           LD="${LD-ld} -melf32bsmip"
8094           ;;
8095         *N32*)
8096           LD="${LD-ld} -melf32bmipn32"
8097           ;;
8098         *64-bit*)
8099           LD="${LD-ld} -melf64bmip"
8100         ;;
8101       esac
8102     else
8103       case `/usr/bin/file conftest.$ac_objext` in
8104         *32-bit*)
8105           LD="${LD-ld} -32"
8106           ;;
8107         *N32*)
8108           LD="${LD-ld} -n32"
8109           ;;
8110         *64-bit*)
8111           LD="${LD-ld} -64"
8112           ;;
8113       esac
8114     fi
8115   fi
8116   rm -rf conftest*
8117   ;;
8118
8119 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8120 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8121   # Find out which ABI we are using.
8122   echo 'int i;' > conftest.$ac_ext
8123   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8124   (eval $ac_compile) 2>&5
8125   ac_status=$?
8126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8127   test $ac_status = 0; }; then
8128     case `/usr/bin/file conftest.o` in
8129       *32-bit*)
8130         case $host in
8131           x86_64-*kfreebsd*-gnu)
8132             LD="${LD-ld} -m elf_i386_fbsd"
8133             ;;
8134           x86_64-*linux*)
8135             case `/usr/bin/file conftest.o` in
8136               *x86-64*)
8137                 LD="${LD-ld} -m elf32_x86_64"
8138                 ;;
8139               *)
8140                 LD="${LD-ld} -m elf_i386"
8141                 ;;
8142             esac
8143             ;;
8144           powerpc64le-*)
8145             LD="${LD-ld} -m elf32lppclinux"
8146             ;;
8147           powerpc64-*)
8148             LD="${LD-ld} -m elf32ppclinux"
8149             ;;
8150           s390x-*linux*)
8151             LD="${LD-ld} -m elf_s390"
8152             ;;
8153           sparc64-*linux*)
8154             LD="${LD-ld} -m elf32_sparc"
8155             ;;
8156         esac
8157         ;;
8158       *64-bit*)
8159         case $host in
8160           x86_64-*kfreebsd*-gnu)
8161             LD="${LD-ld} -m elf_x86_64_fbsd"
8162             ;;
8163           x86_64-*linux*)
8164             LD="${LD-ld} -m elf_x86_64"
8165             ;;
8166           powerpcle-*)
8167             LD="${LD-ld} -m elf64lppc"
8168             ;;
8169           powerpc-*)
8170             LD="${LD-ld} -m elf64ppc"
8171             ;;
8172           s390*-*linux*|s390*-*tpf*)
8173             LD="${LD-ld} -m elf64_s390"
8174             ;;
8175           sparc*-*linux*)
8176             LD="${LD-ld} -m elf64_sparc"
8177             ;;
8178         esac
8179         ;;
8180     esac
8181   fi
8182   rm -rf conftest*
8183   ;;
8184
8185 *-*-sco3.2v5*)
8186   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8187   SAVE_CFLAGS="$CFLAGS"
8188   CFLAGS="$CFLAGS -belf"
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8191 if ${lt_cv_cc_needs_belf+:} false; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   ac_ext=c
8195 ac_cpp='$CPP $CPPFLAGS'
8196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8199
8200      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h.  */
8202
8203 int
8204 main ()
8205 {
8206
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_link "$LINENO"; then :
8212   lt_cv_cc_needs_belf=yes
8213 else
8214   lt_cv_cc_needs_belf=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext \
8217     conftest$ac_exeext conftest.$ac_ext
8218      ac_ext=c
8219 ac_cpp='$CPP $CPPFLAGS'
8220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8223
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8227   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8228     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8229     CFLAGS="$SAVE_CFLAGS"
8230   fi
8231   ;;
8232 *-*solaris*)
8233   # Find out which ABI we are using.
8234   echo 'int i;' > conftest.$ac_ext
8235   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236   (eval $ac_compile) 2>&5
8237   ac_status=$?
8238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239   test $ac_status = 0; }; then
8240     case `/usr/bin/file conftest.o` in
8241     *64-bit*)
8242       case $lt_cv_prog_gnu_ld in
8243       yes*)
8244         case $host in
8245         i?86-*-solaris*)
8246           LD="${LD-ld} -m elf_x86_64"
8247           ;;
8248         sparc*-*-solaris*)
8249           LD="${LD-ld} -m elf64_sparc"
8250           ;;
8251         esac
8252         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8253         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8254           LD="${LD-ld}_sol2"
8255         fi
8256         ;;
8257       *)
8258         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8259           LD="${LD-ld} -64"
8260         fi
8261         ;;
8262       esac
8263       ;;
8264     esac
8265   fi
8266   rm -rf conftest*
8267   ;;
8268 esac
8269
8270 need_locks="$enable_libtool_lock"
8271
8272 if test -n "$ac_tool_prefix"; then
8273   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8274 set dummy ${ac_tool_prefix}mt; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8278   $as_echo_n "(cached) " >&6
8279 else
8280   if test -n "$MANIFEST_TOOL"; then
8281   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8285 do
8286   IFS=$as_save_IFS
8287   test -z "$as_dir" && as_dir=.
8288     for ac_exec_ext in '' $ac_executable_extensions; do
8289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292     break 2
8293   fi
8294 done
8295   done
8296 IFS=$as_save_IFS
8297
8298 fi
8299 fi
8300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8301 if test -n "$MANIFEST_TOOL"; then
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8303 $as_echo "$MANIFEST_TOOL" >&6; }
8304 else
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8307 fi
8308
8309
8310 fi
8311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8312   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8313   # Extract the first word of "mt", so it can be a program name with args.
8314 set dummy mt; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   if test -n "$ac_ct_MANIFEST_TOOL"; then
8321   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326   IFS=$as_save_IFS
8327   test -z "$as_dir" && as_dir=.
8328     for ac_exec_ext in '' $ac_executable_extensions; do
8329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332     break 2
8333   fi
8334 done
8335   done
8336 IFS=$as_save_IFS
8337
8338 fi
8339 fi
8340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8341 if test -n "$ac_ct_MANIFEST_TOOL"; then
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8344 else
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8347 fi
8348
8349   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8350     MANIFEST_TOOL=":"
8351   else
8352     case $cross_compiling:$ac_tool_warned in
8353 yes:)
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8356 ac_tool_warned=yes ;;
8357 esac
8358     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8359   fi
8360 else
8361   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8362 fi
8363
8364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8367 if ${lt_cv_path_mainfest_tool+:} false; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   lt_cv_path_mainfest_tool=no
8371   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8372   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8373   cat conftest.err >&5
8374   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8375     lt_cv_path_mainfest_tool=yes
8376   fi
8377   rm -f conftest*
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8381 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8382   MANIFEST_TOOL=:
8383 fi
8384
8385
8386
8387
8388
8389
8390   case $host_os in
8391     rhapsody* | darwin*)
8392     if test -n "$ac_tool_prefix"; then
8393   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   if test -n "$DSYMUTIL"; then
8401   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   test -z "$as_dir" && as_dir=.
8408     for ac_exec_ext in '' $ac_executable_extensions; do
8409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8410     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412     break 2
8413   fi
8414 done
8415   done
8416 IFS=$as_save_IFS
8417
8418 fi
8419 fi
8420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8421 if test -n "$DSYMUTIL"; then
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8423 $as_echo "$DSYMUTIL" >&6; }
8424 else
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430 fi
8431 if test -z "$ac_cv_prog_DSYMUTIL"; then
8432   ac_ct_DSYMUTIL=$DSYMUTIL
8433   # Extract the first word of "dsymutil", so it can be a program name with args.
8434 set dummy dsymutil; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8438   $as_echo_n "(cached) " >&6
8439 else
8440   if test -n "$ac_ct_DSYMUTIL"; then
8441   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446   IFS=$as_save_IFS
8447   test -z "$as_dir" && as_dir=.
8448     for ac_exec_ext in '' $ac_executable_extensions; do
8449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452     break 2
8453   fi
8454 done
8455   done
8456 IFS=$as_save_IFS
8457
8458 fi
8459 fi
8460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8461 if test -n "$ac_ct_DSYMUTIL"; then
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8464 else
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8467 fi
8468
8469   if test "x$ac_ct_DSYMUTIL" = x; then
8470     DSYMUTIL=":"
8471   else
8472     case $cross_compiling:$ac_tool_warned in
8473 yes:)
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8476 ac_tool_warned=yes ;;
8477 esac
8478     DSYMUTIL=$ac_ct_DSYMUTIL
8479   fi
8480 else
8481   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8482 fi
8483
8484     if test -n "$ac_tool_prefix"; then
8485   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_NMEDIT+:} false; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   if test -n "$NMEDIT"; then
8493   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498   IFS=$as_save_IFS
8499   test -z "$as_dir" && as_dir=.
8500     for ac_exec_ext in '' $ac_executable_extensions; do
8501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504     break 2
8505   fi
8506 done
8507   done
8508 IFS=$as_save_IFS
8509
8510 fi
8511 fi
8512 NMEDIT=$ac_cv_prog_NMEDIT
8513 if test -n "$NMEDIT"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8515 $as_echo "$NMEDIT" >&6; }
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521
8522 fi
8523 if test -z "$ac_cv_prog_NMEDIT"; then
8524   ac_ct_NMEDIT=$NMEDIT
8525   # Extract the first word of "nmedit", so it can be a program name with args.
8526 set dummy nmedit; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8530   $as_echo_n "(cached) " >&6
8531 else
8532   if test -n "$ac_ct_NMEDIT"; then
8533   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8534 else
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538   IFS=$as_save_IFS
8539   test -z "$as_dir" && as_dir=.
8540     for ac_exec_ext in '' $ac_executable_extensions; do
8541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544     break 2
8545   fi
8546 done
8547   done
8548 IFS=$as_save_IFS
8549
8550 fi
8551 fi
8552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8553 if test -n "$ac_ct_NMEDIT"; then
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8555 $as_echo "$ac_ct_NMEDIT" >&6; }
8556 else
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560
8561   if test "x$ac_ct_NMEDIT" = x; then
8562     NMEDIT=":"
8563   else
8564     case $cross_compiling:$ac_tool_warned in
8565 yes:)
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8568 ac_tool_warned=yes ;;
8569 esac
8570     NMEDIT=$ac_ct_NMEDIT
8571   fi
8572 else
8573   NMEDIT="$ac_cv_prog_NMEDIT"
8574 fi
8575
8576     if test -n "$ac_tool_prefix"; then
8577   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_LIPO+:} false; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   if test -n "$LIPO"; then
8585   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590   IFS=$as_save_IFS
8591   test -z "$as_dir" && as_dir=.
8592     for ac_exec_ext in '' $ac_executable_extensions; do
8593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596     break 2
8597   fi
8598 done
8599   done
8600 IFS=$as_save_IFS
8601
8602 fi
8603 fi
8604 LIPO=$ac_cv_prog_LIPO
8605 if test -n "$LIPO"; then
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8607 $as_echo "$LIPO" >&6; }
8608 else
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613
8614 fi
8615 if test -z "$ac_cv_prog_LIPO"; then
8616   ac_ct_LIPO=$LIPO
8617   # Extract the first word of "lipo", so it can be a program name with args.
8618 set dummy lipo; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8622   $as_echo_n "(cached) " >&6
8623 else
8624   if test -n "$ac_ct_LIPO"; then
8625   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630   IFS=$as_save_IFS
8631   test -z "$as_dir" && as_dir=.
8632     for ac_exec_ext in '' $ac_executable_extensions; do
8633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634     ac_cv_prog_ac_ct_LIPO="lipo"
8635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636     break 2
8637   fi
8638 done
8639   done
8640 IFS=$as_save_IFS
8641
8642 fi
8643 fi
8644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8645 if test -n "$ac_ct_LIPO"; then
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8647 $as_echo "$ac_ct_LIPO" >&6; }
8648 else
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8651 fi
8652
8653   if test "x$ac_ct_LIPO" = x; then
8654     LIPO=":"
8655   else
8656     case $cross_compiling:$ac_tool_warned in
8657 yes:)
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8660 ac_tool_warned=yes ;;
8661 esac
8662     LIPO=$ac_ct_LIPO
8663   fi
8664 else
8665   LIPO="$ac_cv_prog_LIPO"
8666 fi
8667
8668     if test -n "$ac_tool_prefix"; then
8669   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8670 set dummy ${ac_tool_prefix}otool; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_prog_OTOOL+:} false; then :
8674   $as_echo_n "(cached) " >&6
8675 else
8676   if test -n "$OTOOL"; then
8677   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682   IFS=$as_save_IFS
8683   test -z "$as_dir" && as_dir=.
8684     for ac_exec_ext in '' $ac_executable_extensions; do
8685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688     break 2
8689   fi
8690 done
8691   done
8692 IFS=$as_save_IFS
8693
8694 fi
8695 fi
8696 OTOOL=$ac_cv_prog_OTOOL
8697 if test -n "$OTOOL"; then
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8699 $as_echo "$OTOOL" >&6; }
8700 else
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 fi
8704
8705
8706 fi
8707 if test -z "$ac_cv_prog_OTOOL"; then
8708   ac_ct_OTOOL=$OTOOL
8709   # Extract the first word of "otool", so it can be a program name with args.
8710 set dummy otool; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   if test -n "$ac_ct_OTOOL"; then
8717   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8721 do
8722   IFS=$as_save_IFS
8723   test -z "$as_dir" && as_dir=.
8724     for ac_exec_ext in '' $ac_executable_extensions; do
8725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8726     ac_cv_prog_ac_ct_OTOOL="otool"
8727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728     break 2
8729   fi
8730 done
8731   done
8732 IFS=$as_save_IFS
8733
8734 fi
8735 fi
8736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8737 if test -n "$ac_ct_OTOOL"; then
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8739 $as_echo "$ac_ct_OTOOL" >&6; }
8740 else
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 fi
8744
8745   if test "x$ac_ct_OTOOL" = x; then
8746     OTOOL=":"
8747   else
8748     case $cross_compiling:$ac_tool_warned in
8749 yes:)
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8752 ac_tool_warned=yes ;;
8753 esac
8754     OTOOL=$ac_ct_OTOOL
8755   fi
8756 else
8757   OTOOL="$ac_cv_prog_OTOOL"
8758 fi
8759
8760     if test -n "$ac_tool_prefix"; then
8761   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if ${ac_cv_prog_OTOOL64+:} false; then :
8766   $as_echo_n "(cached) " >&6
8767 else
8768   if test -n "$OTOOL64"; then
8769   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785
8786 fi
8787 fi
8788 OTOOL64=$ac_cv_prog_OTOOL64
8789 if test -n "$OTOOL64"; then
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8791 $as_echo "$OTOOL64" >&6; }
8792 else
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796
8797
8798 fi
8799 if test -z "$ac_cv_prog_OTOOL64"; then
8800   ac_ct_OTOOL64=$OTOOL64
8801   # Extract the first word of "otool64", so it can be a program name with args.
8802 set dummy otool64; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8806   $as_echo_n "(cached) " >&6
8807 else
8808   if test -n "$ac_ct_OTOOL64"; then
8809   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8810 else
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814   IFS=$as_save_IFS
8815   test -z "$as_dir" && as_dir=.
8816     for ac_exec_ext in '' $ac_executable_extensions; do
8817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818     ac_cv_prog_ac_ct_OTOOL64="otool64"
8819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820     break 2
8821   fi
8822 done
8823   done
8824 IFS=$as_save_IFS
8825
8826 fi
8827 fi
8828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8829 if test -n "$ac_ct_OTOOL64"; then
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8831 $as_echo "$ac_ct_OTOOL64" >&6; }
8832 else
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836
8837   if test "x$ac_ct_OTOOL64" = x; then
8838     OTOOL64=":"
8839   else
8840     case $cross_compiling:$ac_tool_warned in
8841 yes:)
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8844 ac_tool_warned=yes ;;
8845 esac
8846     OTOOL64=$ac_ct_OTOOL64
8847   fi
8848 else
8849   OTOOL64="$ac_cv_prog_OTOOL64"
8850 fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8879 $as_echo_n "checking for -single_module linker flag... " >&6; }
8880 if ${lt_cv_apple_cc_single_mod+:} false; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   lt_cv_apple_cc_single_mod=no
8884       if test -z "${LT_MULTI_MODULE}"; then
8885         # By default we will add the -single_module flag. You can override
8886         # by either setting the environment variable LT_MULTI_MODULE
8887         # non-empty at configure time, or by adding -multi_module to the
8888         # link flags.
8889         rm -rf libconftest.dylib*
8890         echo "int foo(void){return 1;}" > conftest.c
8891         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8892 -dynamiclib -Wl,-single_module conftest.c" >&5
8893         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8894           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8895         _lt_result=$?
8896         # If there is a non-empty error log, and "single_module"
8897         # appears in it, assume the flag caused a linker warning
8898         if test -s conftest.err && $GREP single_module conftest.err; then
8899           cat conftest.err >&5
8900         # Otherwise, if the output was created with a 0 exit code from
8901         # the compiler, it worked.
8902         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8903           lt_cv_apple_cc_single_mod=yes
8904         else
8905           cat conftest.err >&5
8906         fi
8907         rm -rf libconftest.dylib*
8908         rm -f conftest.*
8909       fi
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8913
8914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8915 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8916 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8917   $as_echo_n "(cached) " >&6
8918 else
8919   lt_cv_ld_exported_symbols_list=no
8920       save_LDFLAGS=$LDFLAGS
8921       echo "_main" > conftest.sym
8922       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h.  */
8925
8926 int
8927 main ()
8928 {
8929
8930   ;
8931   return 0;
8932 }
8933 _ACEOF
8934 if ac_fn_c_try_link "$LINENO"; then :
8935   lt_cv_ld_exported_symbols_list=yes
8936 else
8937   lt_cv_ld_exported_symbols_list=no
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940     conftest$ac_exeext conftest.$ac_ext
8941         LDFLAGS="$save_LDFLAGS"
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8946
8947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8948 $as_echo_n "checking for -force_load linker flag... " >&6; }
8949 if ${lt_cv_ld_force_load+:} false; then :
8950   $as_echo_n "(cached) " >&6
8951 else
8952   lt_cv_ld_force_load=no
8953       cat > conftest.c << _LT_EOF
8954 int forced_loaded() { return 2;}
8955 _LT_EOF
8956       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8957       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8958       echo "$AR cru libconftest.a conftest.o" >&5
8959       $AR cru libconftest.a conftest.o 2>&5
8960       echo "$RANLIB libconftest.a" >&5
8961       $RANLIB libconftest.a 2>&5
8962       cat > conftest.c << _LT_EOF
8963 int main() { return 0;}
8964 _LT_EOF
8965       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8966       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8967       _lt_result=$?
8968       if test -s conftest.err && $GREP force_load conftest.err; then
8969         cat conftest.err >&5
8970       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8971         lt_cv_ld_force_load=yes
8972       else
8973         cat conftest.err >&5
8974       fi
8975         rm -f conftest.err libconftest.a conftest conftest.c
8976         rm -rf conftest.dSYM
8977
8978 fi
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8980 $as_echo "$lt_cv_ld_force_load" >&6; }
8981     case $host_os in
8982     rhapsody* | darwin1.[012])
8983       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8984     darwin1.*)
8985       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8986     darwin*) # darwin 5.x on
8987       # if running on 10.5 or later, the deployment target defaults
8988       # to the OS version, if on x86, and 10.4, the deployment
8989       # target defaults to 10.4. Don't you love it?
8990       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8991         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8992           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8993         10.[012]*)
8994           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8995         10.*)
8996           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8997       esac
8998     ;;
8999   esac
9000     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9001       _lt_dar_single_mod='$single_module'
9002     fi
9003     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9004       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9005     else
9006       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9007     fi
9008     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9009       _lt_dsymutil='~$DSYMUTIL $lib || :'
9010     else
9011       _lt_dsymutil=
9012     fi
9013     ;;
9014   esac
9015
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9017 $as_echo_n "checking for ANSI C header files... " >&6; }
9018 if ${ac_cv_header_stdc+:} false; then :
9019   $as_echo_n "(cached) " >&6
9020 else
9021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h.  */
9023 #include <stdlib.h>
9024 #include <stdarg.h>
9025 #include <string.h>
9026 #include <float.h>
9027
9028 int
9029 main ()
9030 {
9031
9032   ;
9033   return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_compile "$LINENO"; then :
9037   ac_cv_header_stdc=yes
9038 else
9039   ac_cv_header_stdc=no
9040 fi
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042
9043 if test $ac_cv_header_stdc = yes; then
9044   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h.  */
9047 #include <string.h>
9048
9049 _ACEOF
9050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9051   $EGREP "memchr" >/dev/null 2>&1; then :
9052
9053 else
9054   ac_cv_header_stdc=no
9055 fi
9056 rm -f conftest*
9057
9058 fi
9059
9060 if test $ac_cv_header_stdc = yes; then
9061   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h.  */
9064 #include <stdlib.h>
9065
9066 _ACEOF
9067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9068   $EGREP "free" >/dev/null 2>&1; then :
9069
9070 else
9071   ac_cv_header_stdc=no
9072 fi
9073 rm -f conftest*
9074
9075 fi
9076
9077 if test $ac_cv_header_stdc = yes; then
9078   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9079   if test "$cross_compiling" = yes; then :
9080   :
9081 else
9082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h.  */
9084 #include <ctype.h>
9085 #include <stdlib.h>
9086 #if ((' ' & 0x0FF) == 0x020)
9087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9089 #else
9090 # define ISLOWER(c) \
9091                    (('a' <= (c) && (c) <= 'i') \
9092                      || ('j' <= (c) && (c) <= 'r') \
9093                      || ('s' <= (c) && (c) <= 'z'))
9094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9095 #endif
9096
9097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9098 int
9099 main ()
9100 {
9101   int i;
9102   for (i = 0; i < 256; i++)
9103     if (XOR (islower (i), ISLOWER (i))
9104         || toupper (i) != TOUPPER (i))
9105       return 2;
9106   return 0;
9107 }
9108 _ACEOF
9109 if ac_fn_c_try_run "$LINENO"; then :
9110
9111 else
9112   ac_cv_header_stdc=no
9113 fi
9114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9115   conftest.$ac_objext conftest.beam conftest.$ac_ext
9116 fi
9117
9118 fi
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9121 $as_echo "$ac_cv_header_stdc" >&6; }
9122 if test $ac_cv_header_stdc = yes; then
9123
9124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9125
9126 fi
9127
9128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9130                   inttypes.h stdint.h unistd.h
9131 do :
9132   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9133 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9134 "
9135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9136   cat >>confdefs.h <<_ACEOF
9137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9138 _ACEOF
9139
9140 fi
9141
9142 done
9143
9144
9145 for ac_header in dlfcn.h
9146 do :
9147   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9148 "
9149 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9150   cat >>confdefs.h <<_ACEOF
9151 #define HAVE_DLFCN_H 1
9152 _ACEOF
9153
9154 fi
9155
9156 done
9157
9158
9159
9160
9161 func_stripname_cnf ()
9162 {
9163   case ${2} in
9164   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9165   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9166   esac
9167 } # func_stripname_cnf
9168
9169
9170
9171
9172
9173 # Set options
9174 # Check whether --enable-shared was given.
9175 if test "${enable_shared+set}" = set; then :
9176   enableval=$enable_shared; p=${PACKAGE-default}
9177     case $enableval in
9178     yes) enable_shared=yes ;;
9179     no) enable_shared=no ;;
9180     *)
9181       enable_shared=no
9182       # Look at the argument we got.  We use all the common list separators.
9183       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9184       for pkg in $enableval; do
9185         IFS="$lt_save_ifs"
9186         if test "X$pkg" = "X$p"; then
9187           enable_shared=yes
9188         fi
9189       done
9190       IFS="$lt_save_ifs"
9191       ;;
9192     esac
9193 else
9194   enable_shared=yes
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203 # Check whether --enable-static was given.
9204 if test "${enable_static+set}" = set; then :
9205   enableval=$enable_static; p=${PACKAGE-default}
9206     case $enableval in
9207     yes) enable_static=yes ;;
9208     no) enable_static=no ;;
9209     *)
9210      enable_static=no
9211       # Look at the argument we got.  We use all the common list separators.
9212       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9213       for pkg in $enableval; do
9214         IFS="$lt_save_ifs"
9215         if test "X$pkg" = "X$p"; then
9216           enable_static=yes
9217         fi
9218       done
9219       IFS="$lt_save_ifs"
9220       ;;
9221     esac
9222 else
9223   enable_static=no
9224 fi
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235         enable_dlopen=no
9236
9237
9238   enable_win32_dll=no
9239
9240
9241
9242
9243
9244 # Check whether --with-pic was given.
9245 if test "${with_pic+set}" = set; then :
9246   withval=$with_pic; lt_p=${PACKAGE-default}
9247     case $withval in
9248     yes|no) pic_mode=$withval ;;
9249     *)
9250       pic_mode=default
9251       # Look at the argument we got.  We use all the common list separators.
9252       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9253       for lt_pkg in $withval; do
9254         IFS="$lt_save_ifs"
9255         if test "X$lt_pkg" = "X$lt_p"; then
9256           pic_mode=yes
9257         fi
9258       done
9259       IFS="$lt_save_ifs"
9260       ;;
9261     esac
9262 else
9263   pic_mode=default
9264 fi
9265
9266
9267 test -z "$pic_mode" && pic_mode=default
9268
9269
9270
9271
9272
9273
9274
9275   # Check whether --enable-fast-install was given.
9276 if test "${enable_fast_install+set}" = set; then :
9277   enableval=$enable_fast_install; p=${PACKAGE-default}
9278     case $enableval in
9279     yes) enable_fast_install=yes ;;
9280     no) enable_fast_install=no ;;
9281     *)
9282       enable_fast_install=no
9283       # Look at the argument we got.  We use all the common list separators.
9284       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9285       for pkg in $enableval; do
9286         IFS="$lt_save_ifs"
9287         if test "X$pkg" = "X$p"; then
9288           enable_fast_install=yes
9289         fi
9290       done
9291       IFS="$lt_save_ifs"
9292       ;;
9293     esac
9294 else
9295   enable_fast_install=yes
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 # This can be used to rebuild libtool when needed
9309 LIBTOOL_DEPS="$ltmain"
9310
9311 # Always use our own libtool.
9312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9313
9314
9315
9316
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 test -z "$LN_S" && LN_S="ln -s"
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358 if test -n "${ZSH_VERSION+set}" ; then
9359    setopt NO_GLOB_SUBST
9360 fi
9361
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9363 $as_echo_n "checking for objdir... " >&6; }
9364 if ${lt_cv_objdir+:} false; then :
9365   $as_echo_n "(cached) " >&6
9366 else
9367   rm -f .libs 2>/dev/null
9368 mkdir .libs 2>/dev/null
9369 if test -d .libs; then
9370   lt_cv_objdir=.libs
9371 else
9372   # MS-DOS does not allow filenames that begin with a dot.
9373   lt_cv_objdir=_libs
9374 fi
9375 rmdir .libs 2>/dev/null
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9378 $as_echo "$lt_cv_objdir" >&6; }
9379 objdir=$lt_cv_objdir
9380
9381
9382
9383
9384
9385 cat >>confdefs.h <<_ACEOF
9386 #define LT_OBJDIR "$lt_cv_objdir/"
9387 _ACEOF
9388
9389
9390
9391
9392 case $host_os in
9393 aix3*)
9394   # AIX sometimes has problems with the GCC collect2 program.  For some
9395   # reason, if we set the COLLECT_NAMES environment variable, the problems
9396   # vanish in a puff of smoke.
9397   if test "X${COLLECT_NAMES+set}" != Xset; then
9398     COLLECT_NAMES=
9399     export COLLECT_NAMES
9400   fi
9401   ;;
9402 esac
9403
9404 # Global variables:
9405 ofile=libtool
9406 can_build_shared=yes
9407
9408 # All known linkers require a `.a' archive for static linking (except MSVC,
9409 # which needs '.lib').
9410 libext=a
9411
9412 with_gnu_ld="$lt_cv_prog_gnu_ld"
9413
9414 old_CC="$CC"
9415 old_CFLAGS="$CFLAGS"
9416
9417 # Set sane defaults for various variables
9418 test -z "$CC" && CC=cc
9419 test -z "$LTCC" && LTCC=$CC
9420 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9421 test -z "$LD" && LD=ld
9422 test -z "$ac_objext" && ac_objext=o
9423
9424 for cc_temp in $compiler""; do
9425   case $cc_temp in
9426     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9427     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9428     \-*) ;;
9429     *) break;;
9430   esac
9431 done
9432 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9433
9434
9435 # Only perform the check for file, if the check method requires it
9436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9437 case $deplibs_check_method in
9438 file_magic*)
9439   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9441 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9442 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9443   $as_echo_n "(cached) " >&6
9444 else
9445   case $MAGIC_CMD in
9446 [\\/*] |  ?:[\\/]*)
9447   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9448   ;;
9449 *)
9450   lt_save_MAGIC_CMD="$MAGIC_CMD"
9451   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9452   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9453   for ac_dir in $ac_dummy; do
9454     IFS="$lt_save_ifs"
9455     test -z "$ac_dir" && ac_dir=.
9456     if test -f $ac_dir/${ac_tool_prefix}file; then
9457       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9458       if test -n "$file_magic_test_file"; then
9459         case $deplibs_check_method in
9460         "file_magic "*)
9461           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9462           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9463           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9464             $EGREP "$file_magic_regex" > /dev/null; then
9465             :
9466           else
9467             cat <<_LT_EOF 1>&2
9468
9469 *** Warning: the command libtool uses to detect shared libraries,
9470 *** $file_magic_cmd, produces output that libtool cannot recognize.
9471 *** The result is that libtool may fail to recognize shared libraries
9472 *** as such.  This will affect the creation of libtool libraries that
9473 *** depend on shared libraries, but programs linked with such libtool
9474 *** libraries will work regardless of this problem.  Nevertheless, you
9475 *** may want to report the problem to your system manager and/or to
9476 *** bug-libtool@gnu.org
9477
9478 _LT_EOF
9479           fi ;;
9480         esac
9481       fi
9482       break
9483     fi
9484   done
9485   IFS="$lt_save_ifs"
9486   MAGIC_CMD="$lt_save_MAGIC_CMD"
9487   ;;
9488 esac
9489 fi
9490
9491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9492 if test -n "$MAGIC_CMD"; then
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9494 $as_echo "$MAGIC_CMD" >&6; }
9495 else
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9498 fi
9499
9500
9501
9502
9503
9504 if test -z "$lt_cv_path_MAGIC_CMD"; then
9505   if test -n "$ac_tool_prefix"; then
9506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9507 $as_echo_n "checking for file... " >&6; }
9508 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9509   $as_echo_n "(cached) " >&6
9510 else
9511   case $MAGIC_CMD in
9512 [\\/*] |  ?:[\\/]*)
9513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9514   ;;
9515 *)
9516   lt_save_MAGIC_CMD="$MAGIC_CMD"
9517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9518   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9519   for ac_dir in $ac_dummy; do
9520     IFS="$lt_save_ifs"
9521     test -z "$ac_dir" && ac_dir=.
9522     if test -f $ac_dir/file; then
9523       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9524       if test -n "$file_magic_test_file"; then
9525         case $deplibs_check_method in
9526         "file_magic "*)
9527           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9528           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9529           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9530             $EGREP "$file_magic_regex" > /dev/null; then
9531             :
9532           else
9533             cat <<_LT_EOF 1>&2
9534
9535 *** Warning: the command libtool uses to detect shared libraries,
9536 *** $file_magic_cmd, produces output that libtool cannot recognize.
9537 *** The result is that libtool may fail to recognize shared libraries
9538 *** as such.  This will affect the creation of libtool libraries that
9539 *** depend on shared libraries, but programs linked with such libtool
9540 *** libraries will work regardless of this problem.  Nevertheless, you
9541 *** may want to report the problem to your system manager and/or to
9542 *** bug-libtool@gnu.org
9543
9544 _LT_EOF
9545           fi ;;
9546         esac
9547       fi
9548       break
9549     fi
9550   done
9551   IFS="$lt_save_ifs"
9552   MAGIC_CMD="$lt_save_MAGIC_CMD"
9553   ;;
9554 esac
9555 fi
9556
9557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9558 if test -n "$MAGIC_CMD"; then
9559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9560 $as_echo "$MAGIC_CMD" >&6; }
9561 else
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565
9566
9567   else
9568     MAGIC_CMD=:
9569   fi
9570 fi
9571
9572   fi
9573   ;;
9574 esac
9575
9576 # Use C for the default configuration in the libtool script
9577
9578 lt_save_CC="$CC"
9579 ac_ext=c
9580 ac_cpp='$CPP $CPPFLAGS'
9581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9584
9585
9586 # Source file extension for C test sources.
9587 ac_ext=c
9588
9589 # Object file extension for compiled C test sources.
9590 objext=o
9591 objext=$objext
9592
9593 # Code to be used in simple compile tests
9594 lt_simple_compile_test_code="int some_variable = 0;"
9595
9596 # Code to be used in simple link tests
9597 lt_simple_link_test_code='int main(){return(0);}'
9598
9599
9600
9601
9602
9603
9604
9605 # If no C compiler was specified, use CC.
9606 LTCC=${LTCC-"$CC"}
9607
9608 # If no C compiler flags were specified, use CFLAGS.
9609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9610
9611 # Allow CC to be a program name with arguments.
9612 compiler=$CC
9613
9614 # Save the default compiler, since it gets overwritten when the other
9615 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9616 compiler_DEFAULT=$CC
9617
9618 # save warnings/boilerplate of simple test code
9619 ac_outfile=conftest.$ac_objext
9620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9622 _lt_compiler_boilerplate=`cat conftest.err`
9623 $RM conftest*
9624
9625 ac_outfile=conftest.$ac_objext
9626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9628 _lt_linker_boilerplate=`cat conftest.err`
9629 $RM -r conftest*
9630
9631
9632 ## CAVEAT EMPTOR:
9633 ## There is no encapsulation within the following macros, do not change
9634 ## the running order or otherwise move them around unless you know exactly
9635 ## what you are doing...
9636 if test -n "$compiler"; then
9637
9638 lt_prog_compiler_no_builtin_flag=
9639
9640 if test "$GCC" = yes; then
9641   case $cc_basename in
9642   nvcc*)
9643     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9644   *)
9645     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9646   esac
9647
9648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9649 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9650 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653   lt_cv_prog_compiler_rtti_exceptions=no
9654    ac_outfile=conftest.$ac_objext
9655    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656    lt_compiler_flag="-fno-rtti -fno-exceptions"
9657    # Insert the option either (1) after the last *FLAGS variable, or
9658    # (2) before a word containing "conftest.", or (3) at the end.
9659    # Note that $ac_compile itself does not contain backslashes and begins
9660    # with a dollar sign (not a hyphen), so the echo should work correctly.
9661    # The option is referenced via a variable to avoid confusing sed.
9662    lt_compile=`echo "$ac_compile" | $SED \
9663    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9665    -e 's:$: $lt_compiler_flag:'`
9666    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9667    (eval "$lt_compile" 2>conftest.err)
9668    ac_status=$?
9669    cat conftest.err >&5
9670    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671    if (exit $ac_status) && test -s "$ac_outfile"; then
9672      # The compiler can only warn and ignore the option if not recognized
9673      # So say no if there are warnings other than the usual output.
9674      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9675      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9676      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9677        lt_cv_prog_compiler_rtti_exceptions=yes
9678      fi
9679    fi
9680    $RM conftest*
9681
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9684 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9685
9686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9687     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9688 else
9689     :
9690 fi
9691
9692 fi
9693
9694
9695
9696
9697
9698
9699   lt_prog_compiler_wl=
9700 lt_prog_compiler_pic=
9701 lt_prog_compiler_static=
9702
9703
9704   if test "$GCC" = yes; then
9705     lt_prog_compiler_wl='-Wl,'
9706     lt_prog_compiler_static='-static'
9707
9708     case $host_os in
9709       aix*)
9710       # All AIX code is PIC.
9711       if test "$host_cpu" = ia64; then
9712         # AIX 5 now supports IA64 processor
9713         lt_prog_compiler_static='-Bstatic'
9714       fi
9715       ;;
9716
9717     amigaos*)
9718       case $host_cpu in
9719       powerpc)
9720             # see comment about AmigaOS4 .so support
9721             lt_prog_compiler_pic='-fPIC'
9722         ;;
9723       m68k)
9724             # FIXME: we need at least 68020 code to build shared libraries, but
9725             # adding the `-m68020' flag to GCC prevents building anything better,
9726             # like `-m68040'.
9727             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9728         ;;
9729       esac
9730       ;;
9731
9732     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9733       # PIC is the default for these OSes.
9734       ;;
9735
9736     mingw* | cygwin* | pw32* | os2* | cegcc*)
9737       # This hack is so that the source file can tell whether it is being
9738       # built for inclusion in a dll (and should export symbols for example).
9739       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9740       # (--disable-auto-import) libraries
9741       lt_prog_compiler_pic='-DDLL_EXPORT'
9742       ;;
9743
9744     darwin* | rhapsody*)
9745       # PIC is the default on this platform
9746       # Common symbols not allowed in MH_DYLIB files
9747       lt_prog_compiler_pic='-fno-common'
9748       ;;
9749
9750     haiku*)
9751       # PIC is the default for Haiku.
9752       # The "-static" flag exists, but is broken.
9753       lt_prog_compiler_static=
9754       ;;
9755
9756     hpux*)
9757       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9758       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9759       # sets the default TLS model and affects inlining.
9760       case $host_cpu in
9761       hppa*64*)
9762         # +Z the default
9763         ;;
9764       *)
9765         lt_prog_compiler_pic='-fPIC'
9766         ;;
9767       esac
9768       ;;
9769
9770     interix[3-9]*)
9771       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9772       # Instead, we relocate shared libraries at runtime.
9773       ;;
9774
9775     msdosdjgpp*)
9776       # Just because we use GCC doesn't mean we suddenly get shared libraries
9777       # on systems that don't support them.
9778       lt_prog_compiler_can_build_shared=no
9779       enable_shared=no
9780       ;;
9781
9782     *nto* | *qnx*)
9783       # QNX uses GNU C++, but need to define -shared option too, otherwise
9784       # it will coredump.
9785       lt_prog_compiler_pic='-fPIC -shared'
9786       ;;
9787
9788     sysv4*MP*)
9789       if test -d /usr/nec; then
9790         lt_prog_compiler_pic=-Kconform_pic
9791       fi
9792       ;;
9793
9794     *)
9795       lt_prog_compiler_pic='-fPIC'
9796       ;;
9797     esac
9798
9799     case $cc_basename in
9800     nvcc*) # Cuda Compiler Driver 2.2
9801       lt_prog_compiler_wl='-Xlinker '
9802       if test -n "$lt_prog_compiler_pic"; then
9803         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9804       fi
9805       ;;
9806     esac
9807   else
9808     # PORTME Check for flag to pass linker flags through the system compiler.
9809     case $host_os in
9810     aix*)
9811       lt_prog_compiler_wl='-Wl,'
9812       if test "$host_cpu" = ia64; then
9813         # AIX 5 now supports IA64 processor
9814         lt_prog_compiler_static='-Bstatic'
9815       else
9816         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9817       fi
9818       ;;
9819
9820     mingw* | cygwin* | pw32* | os2* | cegcc*)
9821       # This hack is so that the source file can tell whether it is being
9822       # built for inclusion in a dll (and should export symbols for example).
9823       lt_prog_compiler_pic='-DDLL_EXPORT'
9824       ;;
9825
9826     hpux9* | hpux10* | hpux11*)
9827       lt_prog_compiler_wl='-Wl,'
9828       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9829       # not for PA HP-UX.
9830       case $host_cpu in
9831       hppa*64*|ia64*)
9832         # +Z the default
9833         ;;
9834       *)
9835         lt_prog_compiler_pic='+Z'
9836         ;;
9837       esac
9838       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9839       lt_prog_compiler_static='${wl}-a ${wl}archive'
9840       ;;
9841
9842     irix5* | irix6* | nonstopux*)
9843       lt_prog_compiler_wl='-Wl,'
9844       # PIC (with -KPIC) is the default.
9845       lt_prog_compiler_static='-non_shared'
9846       ;;
9847
9848     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9849       case $cc_basename in
9850       # old Intel for x86_64 which still supported -KPIC.
9851       ecc*)
9852         lt_prog_compiler_wl='-Wl,'
9853         lt_prog_compiler_pic='-KPIC'
9854         lt_prog_compiler_static='-static'
9855         ;;
9856       # icc used to be incompatible with GCC.
9857       # ICC 10 doesn't accept -KPIC any more.
9858       icc* | ifort*)
9859         lt_prog_compiler_wl='-Wl,'
9860         lt_prog_compiler_pic='-fPIC'
9861         lt_prog_compiler_static='-static'
9862         ;;
9863       # Lahey Fortran 8.1.
9864       lf95*)
9865         lt_prog_compiler_wl='-Wl,'
9866         lt_prog_compiler_pic='--shared'
9867         lt_prog_compiler_static='--static'
9868         ;;
9869       nagfor*)
9870         # NAG Fortran compiler
9871         lt_prog_compiler_wl='-Wl,-Wl,,'
9872         lt_prog_compiler_pic='-PIC'
9873         lt_prog_compiler_static='-Bstatic'
9874         ;;
9875       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9876         # Portland Group compilers (*not* the Pentium gcc compiler,
9877         # which looks to be a dead project)
9878         lt_prog_compiler_wl='-Wl,'
9879         lt_prog_compiler_pic='-fpic'
9880         lt_prog_compiler_static='-Bstatic'
9881         ;;
9882       ccc*)
9883         lt_prog_compiler_wl='-Wl,'
9884         # All Alpha code is PIC.
9885         lt_prog_compiler_static='-non_shared'
9886         ;;
9887       xl* | bgxl* | bgf* | mpixl*)
9888         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9889         lt_prog_compiler_wl='-Wl,'
9890         lt_prog_compiler_pic='-qpic'
9891         lt_prog_compiler_static='-qstaticlink'
9892         ;;
9893       *)
9894         case `$CC -V 2>&1 | sed 5q` in
9895         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9896           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9897           lt_prog_compiler_pic='-KPIC'
9898           lt_prog_compiler_static='-Bstatic'
9899           lt_prog_compiler_wl=''
9900           ;;
9901         *Sun\ F* | *Sun*Fortran*)
9902           lt_prog_compiler_pic='-KPIC'
9903           lt_prog_compiler_static='-Bstatic'
9904           lt_prog_compiler_wl='-Qoption ld '
9905           ;;
9906         *Sun\ C*)
9907           # Sun C 5.9
9908           lt_prog_compiler_pic='-KPIC'
9909           lt_prog_compiler_static='-Bstatic'
9910           lt_prog_compiler_wl='-Wl,'
9911           ;;
9912         *Intel*\ [CF]*Compiler*)
9913           lt_prog_compiler_wl='-Wl,'
9914           lt_prog_compiler_pic='-fPIC'
9915           lt_prog_compiler_static='-static'
9916           ;;
9917         *Portland\ Group*)
9918           lt_prog_compiler_wl='-Wl,'
9919           lt_prog_compiler_pic='-fpic'
9920           lt_prog_compiler_static='-Bstatic'
9921           ;;
9922         esac
9923         ;;
9924       esac
9925       ;;
9926
9927     newsos6)
9928       lt_prog_compiler_pic='-KPIC'
9929       lt_prog_compiler_static='-Bstatic'
9930       ;;
9931
9932     *nto* | *qnx*)
9933       # QNX uses GNU C++, but need to define -shared option too, otherwise
9934       # it will coredump.
9935       lt_prog_compiler_pic='-fPIC -shared'
9936       ;;
9937
9938     osf3* | osf4* | osf5*)
9939       lt_prog_compiler_wl='-Wl,'
9940       # All OSF/1 code is PIC.
9941       lt_prog_compiler_static='-non_shared'
9942       ;;
9943
9944     rdos*)
9945       lt_prog_compiler_static='-non_shared'
9946       ;;
9947
9948     solaris*)
9949       lt_prog_compiler_pic='-KPIC'
9950       lt_prog_compiler_static='-Bstatic'
9951       case $cc_basename in
9952       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9953         lt_prog_compiler_wl='-Qoption ld ';;
9954       *)
9955         lt_prog_compiler_wl='-Wl,';;
9956       esac
9957       ;;
9958
9959     sunos4*)
9960       lt_prog_compiler_wl='-Qoption ld '
9961       lt_prog_compiler_pic='-PIC'
9962       lt_prog_compiler_static='-Bstatic'
9963       ;;
9964
9965     sysv4 | sysv4.2uw2* | sysv4.3*)
9966       lt_prog_compiler_wl='-Wl,'
9967       lt_prog_compiler_pic='-KPIC'
9968       lt_prog_compiler_static='-Bstatic'
9969       ;;
9970
9971     sysv4*MP*)
9972       if test -d /usr/nec ;then
9973         lt_prog_compiler_pic='-Kconform_pic'
9974         lt_prog_compiler_static='-Bstatic'
9975       fi
9976       ;;
9977
9978     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9979       lt_prog_compiler_wl='-Wl,'
9980       lt_prog_compiler_pic='-KPIC'
9981       lt_prog_compiler_static='-Bstatic'
9982       ;;
9983
9984     unicos*)
9985       lt_prog_compiler_wl='-Wl,'
9986       lt_prog_compiler_can_build_shared=no
9987       ;;
9988
9989     uts4*)
9990       lt_prog_compiler_pic='-pic'
9991       lt_prog_compiler_static='-Bstatic'
9992       ;;
9993
9994     *)
9995       lt_prog_compiler_can_build_shared=no
9996       ;;
9997     esac
9998   fi
9999
10000 case $host_os in
10001   # For platforms which do not support PIC, -DPIC is meaningless:
10002   *djgpp*)
10003     lt_prog_compiler_pic=
10004     ;;
10005   *)
10006     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10007     ;;
10008 esac
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10012 if ${lt_cv_prog_compiler_pic+:} false; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10018 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10019 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10020
10021 #
10022 # Check to make sure the PIC flag actually works.
10023 #
10024 if test -n "$lt_prog_compiler_pic"; then
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10026 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10027 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   lt_cv_prog_compiler_pic_works=no
10031    ac_outfile=conftest.$ac_objext
10032    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10033    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10034    # Insert the option either (1) after the last *FLAGS variable, or
10035    # (2) before a word containing "conftest.", or (3) at the end.
10036    # Note that $ac_compile itself does not contain backslashes and begins
10037    # with a dollar sign (not a hyphen), so the echo should work correctly.
10038    # The option is referenced via a variable to avoid confusing sed.
10039    lt_compile=`echo "$ac_compile" | $SED \
10040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10042    -e 's:$: $lt_compiler_flag:'`
10043    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10044    (eval "$lt_compile" 2>conftest.err)
10045    ac_status=$?
10046    cat conftest.err >&5
10047    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048    if (exit $ac_status) && test -s "$ac_outfile"; then
10049      # The compiler can only warn and ignore the option if not recognized
10050      # So say no if there are warnings other than the usual output.
10051      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10052      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10054        lt_cv_prog_compiler_pic_works=yes
10055      fi
10056    fi
10057    $RM conftest*
10058
10059 fi
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10061 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10062
10063 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10064     case $lt_prog_compiler_pic in
10065      "" | " "*) ;;
10066      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10067      esac
10068 else
10069     lt_prog_compiler_pic=
10070      lt_prog_compiler_can_build_shared=no
10071 fi
10072
10073 fi
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 #
10086 # Check to make sure the static flag actually works.
10087 #
10088 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10090 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10091 if ${lt_cv_prog_compiler_static_works+:} false; then :
10092   $as_echo_n "(cached) " >&6
10093 else
10094   lt_cv_prog_compiler_static_works=no
10095    save_LDFLAGS="$LDFLAGS"
10096    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10097    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099      # The linker can only warn and ignore the option if not recognized
10100      # So say no if there are warnings
10101      if test -s conftest.err; then
10102        # Append any errors to the config.log.
10103        cat conftest.err 1>&5
10104        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106        if diff conftest.exp conftest.er2 >/dev/null; then
10107          lt_cv_prog_compiler_static_works=yes
10108        fi
10109      else
10110        lt_cv_prog_compiler_static_works=yes
10111      fi
10112    fi
10113    $RM -r conftest*
10114    LDFLAGS="$save_LDFLAGS"
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10118 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10119
10120 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10121     :
10122 else
10123     lt_prog_compiler_static=
10124 fi
10125
10126
10127
10128
10129
10130
10131
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10134 if ${lt_cv_prog_compiler_c_o+:} false; then :
10135   $as_echo_n "(cached) " >&6
10136 else
10137   lt_cv_prog_compiler_c_o=no
10138    $RM -r conftest 2>/dev/null
10139    mkdir conftest
10140    cd conftest
10141    mkdir out
10142    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143
10144    lt_compiler_flag="-o out/conftest2.$ac_objext"
10145    # Insert the option either (1) after the last *FLAGS variable, or
10146    # (2) before a word containing "conftest.", or (3) at the end.
10147    # Note that $ac_compile itself does not contain backslashes and begins
10148    # with a dollar sign (not a hyphen), so the echo should work correctly.
10149    lt_compile=`echo "$ac_compile" | $SED \
10150    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10151    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10152    -e 's:$: $lt_compiler_flag:'`
10153    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10154    (eval "$lt_compile" 2>out/conftest.err)
10155    ac_status=$?
10156    cat out/conftest.err >&5
10157    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10159    then
10160      # The compiler can only warn and ignore the option if not recognized
10161      # So say no if there are warnings
10162      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10163      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10164      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10165        lt_cv_prog_compiler_c_o=yes
10166      fi
10167    fi
10168    chmod u+w . 2>&5
10169    $RM conftest*
10170    # SGI C++ compiler will create directory out/ii_files/ for
10171    # template instantiation
10172    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10173    $RM out/* && rmdir out
10174    cd ..
10175    $RM -r conftest
10176    $RM conftest*
10177
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10181
10182
10183
10184
10185
10186
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190   $as_echo_n "(cached) " >&6
10191 else
10192   lt_cv_prog_compiler_c_o=no
10193    $RM -r conftest 2>/dev/null
10194    mkdir conftest
10195    cd conftest
10196    mkdir out
10197    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198
10199    lt_compiler_flag="-o out/conftest2.$ac_objext"
10200    # Insert the option either (1) after the last *FLAGS variable, or
10201    # (2) before a word containing "conftest.", or (3) at the end.
10202    # Note that $ac_compile itself does not contain backslashes and begins
10203    # with a dollar sign (not a hyphen), so the echo should work correctly.
10204    lt_compile=`echo "$ac_compile" | $SED \
10205    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207    -e 's:$: $lt_compiler_flag:'`
10208    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209    (eval "$lt_compile" 2>out/conftest.err)
10210    ac_status=$?
10211    cat out/conftest.err >&5
10212    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10214    then
10215      # The compiler can only warn and ignore the option if not recognized
10216      # So say no if there are warnings
10217      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220        lt_cv_prog_compiler_c_o=yes
10221      fi
10222    fi
10223    chmod u+w . 2>&5
10224    $RM conftest*
10225    # SGI C++ compiler will create directory out/ii_files/ for
10226    # template instantiation
10227    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228    $RM out/* && rmdir out
10229    cd ..
10230    $RM -r conftest
10231    $RM conftest*
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10236
10237
10238
10239
10240 hard_links="nottested"
10241 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10242   # do not overwrite the value of need_locks provided by the user
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10244 $as_echo_n "checking if we can lock with hard links... " >&6; }
10245   hard_links=yes
10246   $RM conftest*
10247   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10248   touch conftest.a
10249   ln conftest.a conftest.b 2>&5 || hard_links=no
10250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10252 $as_echo "$hard_links" >&6; }
10253   if test "$hard_links" = no; then
10254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10255 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10256     need_locks=warn
10257   fi
10258 else
10259   need_locks=no
10260 fi
10261
10262
10263
10264
10265
10266
10267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10269
10270   runpath_var=
10271   allow_undefined_flag=
10272   always_export_symbols=no
10273   archive_cmds=
10274   archive_expsym_cmds=
10275   compiler_needs_object=no
10276   enable_shared_with_static_runtimes=no
10277   export_dynamic_flag_spec=
10278   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10279   hardcode_automatic=no
10280   hardcode_direct=no
10281   hardcode_direct_absolute=no
10282   hardcode_libdir_flag_spec=
10283   hardcode_libdir_separator=
10284   hardcode_minus_L=no
10285   hardcode_shlibpath_var=unsupported
10286   inherit_rpath=no
10287   link_all_deplibs=unknown
10288   module_cmds=
10289   module_expsym_cmds=
10290   old_archive_from_new_cmds=
10291   old_archive_from_expsyms_cmds=
10292   thread_safe_flag_spec=
10293   whole_archive_flag_spec=
10294   # include_expsyms should be a list of space-separated symbols to be *always*
10295   # included in the symbol list
10296   include_expsyms=
10297   # exclude_expsyms can be an extended regexp of symbols to exclude
10298   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10299   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10300   # as well as any symbol that contains `d'.
10301   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10302   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10303   # platforms (ab)use it in PIC code, but their linkers get confused if
10304   # the symbol is explicitly referenced.  Since portable code cannot
10305   # rely on this symbol name, it's probably fine to never include it in
10306   # preloaded symbol tables.
10307   # Exclude shared library initialization/finalization symbols.
10308   extract_expsyms_cmds=
10309
10310   case $host_os in
10311   cygwin* | mingw* | pw32* | cegcc*)
10312     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10313     # When not using gcc, we currently assume that we are using
10314     # Microsoft Visual C++.
10315     if test "$GCC" != yes; then
10316       with_gnu_ld=no
10317     fi
10318     ;;
10319   interix*)
10320     # we just hope/assume this is gcc and not c89 (= MSVC++)
10321     with_gnu_ld=yes
10322     ;;
10323   openbsd*)
10324     with_gnu_ld=no
10325     ;;
10326   linux* | k*bsd*-gnu | gnu*)
10327     link_all_deplibs=no
10328     ;;
10329   esac
10330
10331   ld_shlibs=yes
10332
10333   # On some targets, GNU ld is compatible enough with the native linker
10334   # that we're better off using the native interface for both.
10335   lt_use_gnu_ld_interface=no
10336   if test "$with_gnu_ld" = yes; then
10337     case $host_os in
10338       aix*)
10339         # The AIX port of GNU ld has always aspired to compatibility
10340         # with the native linker.  However, as the warning in the GNU ld
10341         # block says, versions before 2.19.5* couldn't really create working
10342         # shared libraries, regardless of the interface used.
10343         case `$LD -v 2>&1` in
10344           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10345           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10346           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10347           *)
10348             lt_use_gnu_ld_interface=yes
10349             ;;
10350         esac
10351         ;;
10352       *)
10353         lt_use_gnu_ld_interface=yes
10354         ;;
10355     esac
10356   fi
10357
10358   if test "$lt_use_gnu_ld_interface" = yes; then
10359     # If archive_cmds runs LD, not CC, wlarc should be empty
10360     wlarc='${wl}'
10361
10362     # Set some defaults for GNU ld with shared library support. These
10363     # are reset later if shared libraries are not supported. Putting them
10364     # here allows them to be overridden if necessary.
10365     runpath_var=LD_RUN_PATH
10366     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10367     export_dynamic_flag_spec='${wl}--export-dynamic'
10368     # ancient GNU ld didn't support --whole-archive et. al.
10369     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10370       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10371     else
10372       whole_archive_flag_spec=
10373     fi
10374     supports_anon_versioning=no
10375     case `$LD -v 2>&1` in
10376       *GNU\ gold*) supports_anon_versioning=yes ;;
10377       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10378       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10379       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10380       *\ 2.11.*) ;; # other 2.11 versions
10381       *) supports_anon_versioning=yes ;;
10382     esac
10383
10384     # See if GNU ld supports shared libraries.
10385     case $host_os in
10386     aix[3-9]*)
10387       # On AIX/PPC, the GNU linker is very broken
10388       if test "$host_cpu" != ia64; then
10389         ld_shlibs=no
10390         cat <<_LT_EOF 1>&2
10391
10392 *** Warning: the GNU linker, at least up to release 2.19, is reported
10393 *** to be unable to reliably create shared libraries on AIX.
10394 *** Therefore, libtool is disabling shared libraries support.  If you
10395 *** really care for shared libraries, you may want to install binutils
10396 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10397 *** You will then need to restart the configuration process.
10398
10399 _LT_EOF
10400       fi
10401       ;;
10402
10403     amigaos*)
10404       case $host_cpu in
10405       powerpc)
10406             # see comment about AmigaOS4 .so support
10407             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408             archive_expsym_cmds=''
10409         ;;
10410       m68k)
10411             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)'
10412             hardcode_libdir_flag_spec='-L$libdir'
10413             hardcode_minus_L=yes
10414         ;;
10415       esac
10416       ;;
10417
10418     beos*)
10419       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10420         allow_undefined_flag=unsupported
10421         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10422         # support --undefined.  This deserves some investigation.  FIXME
10423         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10424       else
10425         ld_shlibs=no
10426       fi
10427       ;;
10428
10429     cygwin* | mingw* | pw32* | cegcc*)
10430       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10431       # as there is no search path for DLLs.
10432       hardcode_libdir_flag_spec='-L$libdir'
10433       export_dynamic_flag_spec='${wl}--export-all-symbols'
10434       allow_undefined_flag=unsupported
10435       always_export_symbols=no
10436       enable_shared_with_static_runtimes=yes
10437       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'
10438       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10439
10440       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10441         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10442         # If the export-symbols file already is a .def file (1st line
10443         # is EXPORTS), use it as is; otherwise, prepend...
10444         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10445           cp $export_symbols $output_objdir/$soname.def;
10446         else
10447           echo EXPORTS > $output_objdir/$soname.def;
10448           cat $export_symbols >> $output_objdir/$soname.def;
10449         fi~
10450         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10451       else
10452         ld_shlibs=no
10453       fi
10454       ;;
10455
10456     haiku*)
10457       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10458       link_all_deplibs=yes
10459       ;;
10460
10461     interix[3-9]*)
10462       hardcode_direct=no
10463       hardcode_shlibpath_var=no
10464       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10465       export_dynamic_flag_spec='${wl}-E'
10466       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10467       # Instead, shared libraries are loaded at an image base (0x10000000 by
10468       # default) and relocated if they conflict, which is a slow very memory
10469       # consuming and fragmenting process.  To avoid this, we pick a random,
10470       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10471       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10472       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10473       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'
10474       ;;
10475
10476     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10477       tmp_diet=no
10478       if test "$host_os" = linux-dietlibc; then
10479         case $cc_basename in
10480           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10481         esac
10482       fi
10483       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10484          && test "$tmp_diet" = no
10485       then
10486         tmp_addflag=' $pic_flag'
10487         tmp_sharedflag='-shared'
10488         case $cc_basename,$host_cpu in
10489         pgcc*)                          # Portland Group C compiler
10490           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'
10491           tmp_addflag=' $pic_flag'
10492           ;;
10493         pgf77* | pgf90* | pgf95* | pgfortran*)
10494                                         # Portland Group f77 and f90 compilers
10495           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'
10496           tmp_addflag=' $pic_flag -Mnomain' ;;
10497         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10498           tmp_addflag=' -i_dynamic' ;;
10499         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10500           tmp_addflag=' -i_dynamic -nofor_main' ;;
10501         ifc* | ifort*)                  # Intel Fortran compiler
10502           tmp_addflag=' -nofor_main' ;;
10503         lf95*)                          # Lahey Fortran 8.1
10504           whole_archive_flag_spec=
10505           tmp_sharedflag='--shared' ;;
10506         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10507           tmp_sharedflag='-qmkshrobj'
10508           tmp_addflag= ;;
10509         nvcc*)  # Cuda Compiler Driver 2.2
10510           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'
10511           compiler_needs_object=yes
10512           ;;
10513         esac
10514         case `$CC -V 2>&1 | sed 5q` in
10515         *Sun\ C*)                       # Sun C 5.9
10516           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'
10517           compiler_needs_object=yes
10518           tmp_sharedflag='-G' ;;
10519         *Sun\ F*)                       # Sun Fortran 8.3
10520           tmp_sharedflag='-G' ;;
10521         esac
10522         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523
10524         if test "x$supports_anon_versioning" = xyes; then
10525           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10526             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10527             echo "local: *; };" >> $output_objdir/$libname.ver~
10528             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10529         fi
10530
10531         case $cc_basename in
10532         xlf* | bgf* | bgxlf* | mpixlf*)
10533           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10534           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10535           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10536           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10537           if test "x$supports_anon_versioning" = xyes; then
10538             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10539               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10540               echo "local: *; };" >> $output_objdir/$libname.ver~
10541               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10542           fi
10543           ;;
10544         esac
10545       else
10546         ld_shlibs=no
10547       fi
10548       ;;
10549
10550     netbsd* | netbsdelf*-gnu)
10551       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10552         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10553         wlarc=
10554       else
10555         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10557       fi
10558       ;;
10559
10560     solaris*)
10561       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10562         ld_shlibs=no
10563         cat <<_LT_EOF 1>&2
10564
10565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10566 *** create shared libraries on Solaris systems.  Therefore, libtool
10567 *** is disabling shared libraries support.  We urge you to upgrade GNU
10568 *** binutils to release 2.9.1 or newer.  Another option is to modify
10569 *** your PATH or compiler configuration so that the native linker is
10570 *** used, and then restart.
10571
10572 _LT_EOF
10573       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10574         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10575         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10576       else
10577         ld_shlibs=no
10578       fi
10579       ;;
10580
10581     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10582       case `$LD -v 2>&1` in
10583         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10584         ld_shlibs=no
10585         cat <<_LT_EOF 1>&2
10586
10587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10588 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10589 *** is disabling shared libraries support.  We urge you to upgrade GNU
10590 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10591 *** your PATH or compiler configuration so that the native linker is
10592 *** used, and then restart.
10593
10594 _LT_EOF
10595         ;;
10596         *)
10597           # For security reasons, it is highly recommended that you always
10598           # use absolute paths for naming shared libraries, and exclude the
10599           # DT_RUNPATH tag from executables and libraries.  But doing so
10600           # requires that you compile everything twice, which is a pain.
10601           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10603             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10604             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10605           else
10606             ld_shlibs=no
10607           fi
10608         ;;
10609       esac
10610       ;;
10611
10612     sunos4*)
10613       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10614       wlarc=
10615       hardcode_direct=yes
10616       hardcode_shlibpath_var=no
10617       ;;
10618
10619     *)
10620       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10621         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10622         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10623       else
10624         ld_shlibs=no
10625       fi
10626       ;;
10627     esac
10628
10629     if test "$ld_shlibs" = no; then
10630       runpath_var=
10631       hardcode_libdir_flag_spec=
10632       export_dynamic_flag_spec=
10633       whole_archive_flag_spec=
10634     fi
10635   else
10636     # PORTME fill in a description of your system's linker (not GNU ld)
10637     case $host_os in
10638     aix3*)
10639       allow_undefined_flag=unsupported
10640       always_export_symbols=yes
10641       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'
10642       # Note: this linker hardcodes the directories in LIBPATH if there
10643       # are no directories specified by -L.
10644       hardcode_minus_L=yes
10645       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10646         # Neither direct hardcoding nor static linking is supported with a
10647         # broken collect2.
10648         hardcode_direct=unsupported
10649       fi
10650       ;;
10651
10652     aix[4-9]*)
10653       if test "$host_cpu" = ia64; then
10654         # On IA64, the linker does run time linking by default, so we don't
10655         # have to do anything special.
10656         aix_use_runtimelinking=no
10657         exp_sym_flag='-Bexport'
10658         no_entry_flag=""
10659       else
10660         # If we're using GNU nm, then we don't want the "-C" option.
10661         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10662         # Also, AIX nm treats weak defined symbols like other global
10663         # defined symbols, whereas GNU nm marks them as "W".
10664         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10665           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'
10666         else
10667           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'
10668         fi
10669         aix_use_runtimelinking=no
10670
10671         # Test if we are trying to use run time linking or normal
10672         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10673         # need to do runtime linking.
10674         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10675           for ld_flag in $LDFLAGS; do
10676           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10677             aix_use_runtimelinking=yes
10678             break
10679           fi
10680           done
10681           ;;
10682         esac
10683
10684         exp_sym_flag='-bexport'
10685         no_entry_flag='-bnoentry'
10686       fi
10687
10688       # When large executables or shared objects are built, AIX ld can
10689       # have problems creating the table of contents.  If linking a library
10690       # or program results in "error TOC overflow" add -mminimal-toc to
10691       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10692       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10693
10694       archive_cmds=''
10695       hardcode_direct=yes
10696       hardcode_direct_absolute=yes
10697       hardcode_libdir_separator=':'
10698       link_all_deplibs=yes
10699       file_list_spec='${wl}-f,'
10700
10701       if test "$GCC" = yes; then
10702         case $host_os in aix4.[012]|aix4.[012].*)
10703         # We only want to do this on AIX 4.2 and lower, the check
10704         # below for broken collect2 doesn't work under 4.3+
10705           collect2name=`${CC} -print-prog-name=collect2`
10706           if test -f "$collect2name" &&
10707            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10708           then
10709           # We have reworked collect2
10710           :
10711           else
10712           # We have old collect2
10713           hardcode_direct=unsupported
10714           # It fails to find uninstalled libraries when the uninstalled
10715           # path is not listed in the libpath.  Setting hardcode_minus_L
10716           # to unsupported forces relinking
10717           hardcode_minus_L=yes
10718           hardcode_libdir_flag_spec='-L$libdir'
10719           hardcode_libdir_separator=
10720           fi
10721           ;;
10722         esac
10723         shared_flag='-shared'
10724         if test "$aix_use_runtimelinking" = yes; then
10725           shared_flag="$shared_flag "'${wl}-G'
10726         fi
10727         link_all_deplibs=no
10728       else
10729         # not using gcc
10730         if test "$host_cpu" = ia64; then
10731         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10732         # chokes on -Wl,-G. The following line is correct:
10733           shared_flag='-G'
10734         else
10735           if test "$aix_use_runtimelinking" = yes; then
10736             shared_flag='${wl}-G'
10737           else
10738             shared_flag='${wl}-bM:SRE'
10739           fi
10740         fi
10741       fi
10742
10743       export_dynamic_flag_spec='${wl}-bexpall'
10744       # It seems that -bexpall does not export symbols beginning with
10745       # underscore (_), so it is better to generate a list of symbols to export.
10746       always_export_symbols=yes
10747       if test "$aix_use_runtimelinking" = yes; then
10748         # Warning - without using the other runtime loading flags (-brtl),
10749         # -berok will link without error, but may produce a broken library.
10750         allow_undefined_flag='-berok'
10751         # Determine the default libpath from the value encoded in an
10752         # empty executable.
10753         if test "${lt_cv_aix_libpath+set}" = set; then
10754   aix_libpath=$lt_cv_aix_libpath
10755 else
10756   if ${lt_cv_aix_libpath_+:} false; then :
10757   $as_echo_n "(cached) " >&6
10758 else
10759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h.  */
10761
10762 int
10763 main ()
10764 {
10765
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771
10772   lt_aix_libpath_sed='
10773       /Import File Strings/,/^$/ {
10774           /^0/ {
10775               s/^0  *\([^ ]*\) *$/\1/
10776               p
10777           }
10778       }'
10779   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10780   # Check for a 64-bit object if we didn't find anything.
10781   if test -z "$lt_cv_aix_libpath_"; then
10782     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10783   fi
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786     conftest$ac_exeext conftest.$ac_ext
10787   if test -z "$lt_cv_aix_libpath_"; then
10788     lt_cv_aix_libpath_="/usr/lib:/lib"
10789   fi
10790
10791 fi
10792
10793   aix_libpath=$lt_cv_aix_libpath_
10794 fi
10795
10796         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10797         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"
10798       else
10799         if test "$host_cpu" = ia64; then
10800           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10801           allow_undefined_flag="-z nodefs"
10802           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"
10803         else
10804          # Determine the default libpath from the value encoded in an
10805          # empty executable.
10806          if test "${lt_cv_aix_libpath+set}" = set; then
10807   aix_libpath=$lt_cv_aix_libpath
10808 else
10809   if ${lt_cv_aix_libpath_+:} false; then :
10810   $as_echo_n "(cached) " >&6
10811 else
10812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h.  */
10814
10815 int
10816 main ()
10817 {
10818
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824
10825   lt_aix_libpath_sed='
10826       /Import File Strings/,/^$/ {
10827           /^0/ {
10828               s/^0  *\([^ ]*\) *$/\1/
10829               p
10830           }
10831       }'
10832   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10833   # Check for a 64-bit object if we didn't find anything.
10834   if test -z "$lt_cv_aix_libpath_"; then
10835     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836   fi
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext \
10839     conftest$ac_exeext conftest.$ac_ext
10840   if test -z "$lt_cv_aix_libpath_"; then
10841     lt_cv_aix_libpath_="/usr/lib:/lib"
10842   fi
10843
10844 fi
10845
10846   aix_libpath=$lt_cv_aix_libpath_
10847 fi
10848
10849          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10850           # Warning - without using the other run time loading flags,
10851           # -berok will link without error, but may produce a broken library.
10852           no_undefined_flag=' ${wl}-bernotok'
10853           allow_undefined_flag=' ${wl}-berok'
10854           if test "$with_gnu_ld" = yes; then
10855             # We only use this code for GNU lds that support --whole-archive.
10856             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10857           else
10858             # Exported symbols can be pulled into shared objects from archives
10859             whole_archive_flag_spec='$convenience'
10860           fi
10861           archive_cmds_need_lc=yes
10862           # This is similar to how AIX traditionally builds its shared libraries.
10863           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'
10864         fi
10865       fi
10866       ;;
10867
10868     amigaos*)
10869       case $host_cpu in
10870       powerpc)
10871             # see comment about AmigaOS4 .so support
10872             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10873             archive_expsym_cmds=''
10874         ;;
10875       m68k)
10876             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)'
10877             hardcode_libdir_flag_spec='-L$libdir'
10878             hardcode_minus_L=yes
10879         ;;
10880       esac
10881       ;;
10882
10883     bsdi[45]*)
10884       export_dynamic_flag_spec=-rdynamic
10885       ;;
10886
10887     cygwin* | mingw* | pw32* | cegcc*)
10888       # When not using gcc, we currently assume that we are using
10889       # Microsoft Visual C++.
10890       # hardcode_libdir_flag_spec is actually meaningless, as there is
10891       # no search path for DLLs.
10892       case $cc_basename in
10893       cl*)
10894         # Native MSVC
10895         hardcode_libdir_flag_spec=' '
10896         allow_undefined_flag=unsupported
10897         always_export_symbols=yes
10898         file_list_spec='@'
10899         # Tell ltmain to make .lib files, not .a files.
10900         libext=lib
10901         # Tell ltmain to make .dll files, not .so files.
10902         shrext_cmds=".dll"
10903         # FIXME: Setting linknames here is a bad hack.
10904         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10905         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10906             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10907           else
10908             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10909           fi~
10910           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10911           linknames='
10912         # The linker will not automatically build a static lib if we build a DLL.
10913         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10914         enable_shared_with_static_runtimes=yes
10915         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10916         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10917         # Don't use ranlib
10918         old_postinstall_cmds='chmod 644 $oldlib'
10919         postlink_cmds='lt_outputfile="@OUTPUT@"~
10920           lt_tool_outputfile="@TOOL_OUTPUT@"~
10921           case $lt_outputfile in
10922             *.exe|*.EXE) ;;
10923             *)
10924               lt_outputfile="$lt_outputfile.exe"
10925               lt_tool_outputfile="$lt_tool_outputfile.exe"
10926               ;;
10927           esac~
10928           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10929             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10930             $RM "$lt_outputfile.manifest";
10931           fi'
10932         ;;
10933       *)
10934         # Assume MSVC wrapper
10935         hardcode_libdir_flag_spec=' '
10936         allow_undefined_flag=unsupported
10937         # Tell ltmain to make .lib files, not .a files.
10938         libext=lib
10939         # Tell ltmain to make .dll files, not .so files.
10940         shrext_cmds=".dll"
10941         # FIXME: Setting linknames here is a bad hack.
10942         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10943         # The linker will automatically build a .lib file if we build a DLL.
10944         old_archive_from_new_cmds='true'
10945         # FIXME: Should let the user specify the lib program.
10946         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10947         enable_shared_with_static_runtimes=yes
10948         ;;
10949       esac
10950       ;;
10951
10952     darwin* | rhapsody*)
10953
10954
10955   archive_cmds_need_lc=no
10956   hardcode_direct=no
10957   hardcode_automatic=yes
10958   hardcode_shlibpath_var=unsupported
10959   if test "$lt_cv_ld_force_load" = "yes"; then
10960     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\"`'
10961
10962   else
10963     whole_archive_flag_spec=''
10964   fi
10965   link_all_deplibs=yes
10966   allow_undefined_flag="$_lt_dar_allow_undefined"
10967   case $cc_basename in
10968      ifort*) _lt_dar_can_shared=yes ;;
10969      *) _lt_dar_can_shared=$GCC ;;
10970   esac
10971   if test "$_lt_dar_can_shared" = "yes"; then
10972     output_verbose_link_cmd=func_echo_all
10973     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10974     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10975     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}"
10976     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}"
10977
10978   else
10979   ld_shlibs=no
10980   fi
10981
10982       ;;
10983
10984     dgux*)
10985       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986       hardcode_libdir_flag_spec='-L$libdir'
10987       hardcode_shlibpath_var=no
10988       ;;
10989
10990     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10991     # support.  Future versions do this automatically, but an explicit c++rt0.o
10992     # does not break anything, and helps significantly (at the cost of a little
10993     # extra space).
10994     freebsd2.2*)
10995       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10996       hardcode_libdir_flag_spec='-R$libdir'
10997       hardcode_direct=yes
10998       hardcode_shlibpath_var=no
10999       ;;
11000
11001     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11002     freebsd2.*)
11003       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11004       hardcode_direct=yes
11005       hardcode_minus_L=yes
11006       hardcode_shlibpath_var=no
11007       ;;
11008
11009     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11010     freebsd* | dragonfly*)
11011       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11012       hardcode_libdir_flag_spec='-R$libdir'
11013       hardcode_direct=yes
11014       hardcode_shlibpath_var=no
11015       ;;
11016
11017     hpux9*)
11018       if test "$GCC" = yes; then
11019         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11020       else
11021         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11022       fi
11023       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11024       hardcode_libdir_separator=:
11025       hardcode_direct=yes
11026
11027       # hardcode_minus_L: Not really in the search PATH,
11028       # but as the default location of the library.
11029       hardcode_minus_L=yes
11030       export_dynamic_flag_spec='${wl}-E'
11031       ;;
11032
11033     hpux10*)
11034       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11035         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11036       else
11037         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11038       fi
11039       if test "$with_gnu_ld" = no; then
11040         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11041         hardcode_libdir_separator=:
11042         hardcode_direct=yes
11043         hardcode_direct_absolute=yes
11044         export_dynamic_flag_spec='${wl}-E'
11045         # hardcode_minus_L: Not really in the search PATH,
11046         # but as the default location of the library.
11047         hardcode_minus_L=yes
11048       fi
11049       ;;
11050
11051     hpux11*)
11052       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11053         case $host_cpu in
11054         hppa*64*)
11055           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11056           ;;
11057         ia64*)
11058           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11059           ;;
11060         *)
11061           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11062           ;;
11063         esac
11064       else
11065         case $host_cpu in
11066         hppa*64*)
11067           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11068           ;;
11069         ia64*)
11070           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11071           ;;
11072         *)
11073
11074           # Older versions of the 11.00 compiler do not understand -b yet
11075           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11076           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11077 $as_echo_n "checking if $CC understands -b... " >&6; }
11078 if ${lt_cv_prog_compiler__b+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   lt_cv_prog_compiler__b=no
11082    save_LDFLAGS="$LDFLAGS"
11083    LDFLAGS="$LDFLAGS -b"
11084    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11085    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11086      # The linker can only warn and ignore the option if not recognized
11087      # So say no if there are warnings
11088      if test -s conftest.err; then
11089        # Append any errors to the config.log.
11090        cat conftest.err 1>&5
11091        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11092        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11093        if diff conftest.exp conftest.er2 >/dev/null; then
11094          lt_cv_prog_compiler__b=yes
11095        fi
11096      else
11097        lt_cv_prog_compiler__b=yes
11098      fi
11099    fi
11100    $RM -r conftest*
11101    LDFLAGS="$save_LDFLAGS"
11102
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11105 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11106
11107 if test x"$lt_cv_prog_compiler__b" = xyes; then
11108     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11109 else
11110     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11111 fi
11112
11113           ;;
11114         esac
11115       fi
11116       if test "$with_gnu_ld" = no; then
11117         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11118         hardcode_libdir_separator=:
11119
11120         case $host_cpu in
11121         hppa*64*|ia64*)
11122           hardcode_direct=no
11123           hardcode_shlibpath_var=no
11124           ;;
11125         *)
11126           hardcode_direct=yes
11127           hardcode_direct_absolute=yes
11128           export_dynamic_flag_spec='${wl}-E'
11129
11130           # hardcode_minus_L: Not really in the search PATH,
11131           # but as the default location of the library.
11132           hardcode_minus_L=yes
11133           ;;
11134         esac
11135       fi
11136       ;;
11137
11138     irix5* | irix6* | nonstopux*)
11139       if test "$GCC" = yes; then
11140         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'
11141         # Try to use the -exported_symbol ld option, if it does not
11142         # work, assume that -exports_file does not work either and
11143         # implicitly export all symbols.
11144         # This should be the same for all languages, so no per-tag cache variable.
11145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11146 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11147 if ${lt_cv_irix_exported_symbol+:} false; then :
11148   $as_echo_n "(cached) " >&6
11149 else
11150   save_LDFLAGS="$LDFLAGS"
11151            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11152            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h.  */
11154 int foo (void) { return 0; }
11155 _ACEOF
11156 if ac_fn_c_try_link "$LINENO"; then :
11157   lt_cv_irix_exported_symbol=yes
11158 else
11159   lt_cv_irix_exported_symbol=no
11160 fi
11161 rm -f core conftest.err conftest.$ac_objext \
11162     conftest$ac_exeext conftest.$ac_ext
11163            LDFLAGS="$save_LDFLAGS"
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11166 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11167         if test "$lt_cv_irix_exported_symbol" = yes; then
11168           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'
11169         fi
11170       else
11171         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'
11172         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'
11173       fi
11174       archive_cmds_need_lc='no'
11175       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176       hardcode_libdir_separator=:
11177       inherit_rpath=yes
11178       link_all_deplibs=yes
11179       ;;
11180
11181     netbsd* | netbsdelf*-gnu)
11182       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11183         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11184       else
11185         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11186       fi
11187       hardcode_libdir_flag_spec='-R$libdir'
11188       hardcode_direct=yes
11189       hardcode_shlibpath_var=no
11190       ;;
11191
11192     newsos6)
11193       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194       hardcode_direct=yes
11195       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11196       hardcode_libdir_separator=:
11197       hardcode_shlibpath_var=no
11198       ;;
11199
11200     *nto* | *qnx*)
11201       ;;
11202
11203     openbsd*)
11204       if test -f /usr/libexec/ld.so; then
11205         hardcode_direct=yes
11206         hardcode_shlibpath_var=no
11207         hardcode_direct_absolute=yes
11208         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11209           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11211           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11212           export_dynamic_flag_spec='${wl}-E'
11213         else
11214           case $host_os in
11215            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11216              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11217              hardcode_libdir_flag_spec='-R$libdir'
11218              ;;
11219            *)
11220              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11221              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11222              ;;
11223           esac
11224         fi
11225       else
11226         ld_shlibs=no
11227       fi
11228       ;;
11229
11230     os2*)
11231       hardcode_libdir_flag_spec='-L$libdir'
11232       hardcode_minus_L=yes
11233       allow_undefined_flag=unsupported
11234       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'
11235       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11236       ;;
11237
11238     osf3*)
11239       if test "$GCC" = yes; then
11240         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11241         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'
11242       else
11243         allow_undefined_flag=' -expect_unresolved \*'
11244         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'
11245       fi
11246       archive_cmds_need_lc='no'
11247       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11248       hardcode_libdir_separator=:
11249       ;;
11250
11251     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11252       if test "$GCC" = yes; then
11253         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11254         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'
11255         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11256       else
11257         allow_undefined_flag=' -expect_unresolved \*'
11258         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'
11259         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~
11260         $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'
11261
11262         # Both c and cxx compiler support -rpath directly
11263         hardcode_libdir_flag_spec='-rpath $libdir'
11264       fi
11265       archive_cmds_need_lc='no'
11266       hardcode_libdir_separator=:
11267       ;;
11268
11269     solaris*)
11270       no_undefined_flag=' -z defs'
11271       if test "$GCC" = yes; then
11272         wlarc='${wl}'
11273         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11274         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11275           $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'
11276       else
11277         case `$CC -V 2>&1` in
11278         *"Compilers 5.0"*)
11279           wlarc=''
11280           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11283           ;;
11284         *)
11285           wlarc='${wl}'
11286           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11287           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11288           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11289           ;;
11290         esac
11291       fi
11292       hardcode_libdir_flag_spec='-R$libdir'
11293       hardcode_shlibpath_var=no
11294       case $host_os in
11295       solaris2.[0-5] | solaris2.[0-5].*) ;;
11296       *)
11297         # The compiler driver will combine and reorder linker options,
11298         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11299         # but is careful enough not to reorder.
11300         # Supported since Solaris 2.6 (maybe 2.5.1?)
11301         if test "$GCC" = yes; then
11302           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11303         else
11304           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11305         fi
11306         ;;
11307       esac
11308       link_all_deplibs=yes
11309       ;;
11310
11311     sunos4*)
11312       if test "x$host_vendor" = xsequent; then
11313         # Use $CC to link under sequent, because it throws in some extra .o
11314         # files that make .init and .fini sections work.
11315         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11316       else
11317         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11318       fi
11319       hardcode_libdir_flag_spec='-L$libdir'
11320       hardcode_direct=yes
11321       hardcode_minus_L=yes
11322       hardcode_shlibpath_var=no
11323       ;;
11324
11325     sysv4)
11326       case $host_vendor in
11327         sni)
11328           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11329           hardcode_direct=yes # is this really true???
11330         ;;
11331         siemens)
11332           ## LD is ld it makes a PLAMLIB
11333           ## CC just makes a GrossModule.
11334           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11335           reload_cmds='$CC -r -o $output$reload_objs'
11336           hardcode_direct=no
11337         ;;
11338         motorola)
11339           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11340           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11341         ;;
11342       esac
11343       runpath_var='LD_RUN_PATH'
11344       hardcode_shlibpath_var=no
11345       ;;
11346
11347     sysv4.3*)
11348       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349       hardcode_shlibpath_var=no
11350       export_dynamic_flag_spec='-Bexport'
11351       ;;
11352
11353     sysv4*MP*)
11354       if test -d /usr/nec; then
11355         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356         hardcode_shlibpath_var=no
11357         runpath_var=LD_RUN_PATH
11358         hardcode_runpath_var=yes
11359         ld_shlibs=yes
11360       fi
11361       ;;
11362
11363     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11364       no_undefined_flag='${wl}-z,text'
11365       archive_cmds_need_lc=no
11366       hardcode_shlibpath_var=no
11367       runpath_var='LD_RUN_PATH'
11368
11369       if test "$GCC" = yes; then
11370         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372       else
11373         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375       fi
11376       ;;
11377
11378     sysv5* | sco3.2v5* | sco5v6*)
11379       # Note: We can NOT use -z defs as we might desire, because we do not
11380       # link with -lc, and that would cause any symbols used from libc to
11381       # always be unresolved, which means just about no library would
11382       # ever link correctly.  If we're not using GNU ld we use -z text
11383       # though, which does catch some bad symbols but isn't as heavy-handed
11384       # as -z defs.
11385       no_undefined_flag='${wl}-z,text'
11386       allow_undefined_flag='${wl}-z,nodefs'
11387       archive_cmds_need_lc=no
11388       hardcode_shlibpath_var=no
11389       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11390       hardcode_libdir_separator=':'
11391       link_all_deplibs=yes
11392       export_dynamic_flag_spec='${wl}-Bexport'
11393       runpath_var='LD_RUN_PATH'
11394
11395       if test "$GCC" = yes; then
11396         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398       else
11399         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401       fi
11402       ;;
11403
11404     uts4*)
11405       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11406       hardcode_libdir_flag_spec='-L$libdir'
11407       hardcode_shlibpath_var=no
11408       ;;
11409
11410     *)
11411       ld_shlibs=no
11412       ;;
11413     esac
11414
11415     if test x$host_vendor = xsni; then
11416       case $host in
11417       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11418         export_dynamic_flag_spec='${wl}-Blargedynsym'
11419         ;;
11420       esac
11421     fi
11422   fi
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11425 $as_echo "$ld_shlibs" >&6; }
11426 test "$ld_shlibs" = no && can_build_shared=no
11427
11428 with_gnu_ld=$with_gnu_ld
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444 #
11445 # Do we need to explicitly link libc?
11446 #
11447 case "x$archive_cmds_need_lc" in
11448 x|xyes)
11449   # Assume -lc should be added
11450   archive_cmds_need_lc=yes
11451
11452   if test "$enable_shared" = yes && test "$GCC" = yes; then
11453     case $archive_cmds in
11454     *'~'*)
11455       # FIXME: we may have to deal with multi-command sequences.
11456       ;;
11457     '$CC '*)
11458       # Test whether the compiler implicitly links with -lc since on some
11459       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11460       # to ld, don't add -lc before -lgcc.
11461       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11462 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11463 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11464   $as_echo_n "(cached) " >&6
11465 else
11466   $RM conftest*
11467         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11468
11469         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11470   (eval $ac_compile) 2>&5
11471   ac_status=$?
11472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11473   test $ac_status = 0; } 2>conftest.err; then
11474           soname=conftest
11475           lib=conftest
11476           libobjs=conftest.$ac_objext
11477           deplibs=
11478           wl=$lt_prog_compiler_wl
11479           pic_flag=$lt_prog_compiler_pic
11480           compiler_flags=-v
11481           linker_flags=-v
11482           verstring=
11483           output_objdir=.
11484           libname=conftest
11485           lt_save_allow_undefined_flag=$allow_undefined_flag
11486           allow_undefined_flag=
11487           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11488   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11489   ac_status=$?
11490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11491   test $ac_status = 0; }
11492           then
11493             lt_cv_archive_cmds_need_lc=no
11494           else
11495             lt_cv_archive_cmds_need_lc=yes
11496           fi
11497           allow_undefined_flag=$lt_save_allow_undefined_flag
11498         else
11499           cat conftest.err 1>&5
11500         fi
11501         $RM conftest*
11502
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11505 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11506       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11507       ;;
11508     esac
11509   fi
11510   ;;
11511 esac
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11665 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11666
11667 if test "$GCC" = yes; then
11668   case $host_os in
11669     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11670     *) lt_awk_arg="/^libraries:/" ;;
11671   esac
11672   case $host_os in
11673     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11674     *) lt_sed_strip_eq="s,=/,/,g" ;;
11675   esac
11676   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11677   case $lt_search_path_spec in
11678   *\;*)
11679     # if the path contains ";" then we assume it to be the separator
11680     # otherwise default to the standard path separator (i.e. ":") - it is
11681     # assumed that no part of a normal pathname contains ";" but that should
11682     # okay in the real world where ";" in dirpaths is itself problematic.
11683     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11684     ;;
11685   *)
11686     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11687     ;;
11688   esac
11689   # Ok, now we have the path, separated by spaces, we can step through it
11690   # and add multilib dir if necessary.
11691   lt_tmp_lt_search_path_spec=
11692   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11693   for lt_sys_path in $lt_search_path_spec; do
11694     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11695       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11696     else
11697       test -d "$lt_sys_path" && \
11698         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11699     fi
11700   done
11701   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11702 BEGIN {RS=" "; FS="/|\n";} {
11703   lt_foo="";
11704   lt_count=0;
11705   for (lt_i = NF; lt_i > 0; lt_i--) {
11706     if ($lt_i != "" && $lt_i != ".") {
11707       if ($lt_i == "..") {
11708         lt_count++;
11709       } else {
11710         if (lt_count == 0) {
11711           lt_foo="/" $lt_i lt_foo;
11712         } else {
11713           lt_count--;
11714         }
11715       }
11716     }
11717   }
11718   if (lt_foo != "") { lt_freq[lt_foo]++; }
11719   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11720 }'`
11721   # AWK program above erroneously prepends '/' to C:/dos/paths
11722   # for these hosts.
11723   case $host_os in
11724     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11725       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11726   esac
11727   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11728 else
11729   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11730 fi
11731 library_names_spec=
11732 libname_spec='lib$name'
11733 soname_spec=
11734 shrext_cmds=".so"
11735 postinstall_cmds=
11736 postuninstall_cmds=
11737 finish_cmds=
11738 finish_eval=
11739 shlibpath_var=
11740 shlibpath_overrides_runpath=unknown
11741 version_type=none
11742 dynamic_linker="$host_os ld.so"
11743 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11744 need_lib_prefix=unknown
11745 hardcode_into_libs=no
11746
11747 # when you set need_version to no, make sure it does not cause -set_version
11748 # flags to be left without arguments
11749 need_version=unknown
11750
11751 case $host_os in
11752 aix3*)
11753   version_type=linux # correct to gnu/linux during the next big refactor
11754   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11755   shlibpath_var=LIBPATH
11756
11757   # AIX 3 has no versioning support, so we append a major version to the name.
11758   soname_spec='${libname}${release}${shared_ext}$major'
11759   ;;
11760
11761 aix[4-9]*)
11762   version_type=linux # correct to gnu/linux during the next big refactor
11763   need_lib_prefix=no
11764   need_version=no
11765   hardcode_into_libs=yes
11766   if test "$host_cpu" = ia64; then
11767     # AIX 5 supports IA64
11768     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11769     shlibpath_var=LD_LIBRARY_PATH
11770   else
11771     # With GCC up to 2.95.x, collect2 would create an import file
11772     # for dependence libraries.  The import file would start with
11773     # the line `#! .'.  This would cause the generated library to
11774     # depend on `.', always an invalid library.  This was fixed in
11775     # development snapshots of GCC prior to 3.0.
11776     case $host_os in
11777       aix4 | aix4.[01] | aix4.[01].*)
11778       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11779            echo ' yes '
11780            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11781         :
11782       else
11783         can_build_shared=no
11784       fi
11785       ;;
11786     esac
11787     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11788     # soname into executable. Probably we can add versioning support to
11789     # collect2, so additional links can be useful in future.
11790     if test "$aix_use_runtimelinking" = yes; then
11791       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11792       # instead of lib<name>.a to let people know that these are not
11793       # typical AIX shared libraries.
11794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795     else
11796       # We preserve .a as extension for shared libraries through AIX4.2
11797       # and later when we are not doing run time linking.
11798       library_names_spec='${libname}${release}.a $libname.a'
11799       soname_spec='${libname}${release}${shared_ext}$major'
11800     fi
11801     shlibpath_var=LIBPATH
11802   fi
11803   ;;
11804
11805 amigaos*)
11806   case $host_cpu in
11807   powerpc)
11808     # Since July 2007 AmigaOS4 officially supports .so libraries.
11809     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811     ;;
11812   m68k)
11813     library_names_spec='$libname.ixlibrary $libname.a'
11814     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11815     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'
11816     ;;
11817   esac
11818   ;;
11819
11820 beos*)
11821   library_names_spec='${libname}${shared_ext}'
11822   dynamic_linker="$host_os ld.so"
11823   shlibpath_var=LIBRARY_PATH
11824   ;;
11825
11826 bsdi[45]*)
11827   version_type=linux # correct to gnu/linux during the next big refactor
11828   need_version=no
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830   soname_spec='${libname}${release}${shared_ext}$major'
11831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11832   shlibpath_var=LD_LIBRARY_PATH
11833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11835   # the default ld.so.conf also contains /usr/contrib/lib and
11836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11837   # libtool to hard-code these into programs
11838   ;;
11839
11840 cygwin* | mingw* | pw32* | cegcc*)
11841   version_type=windows
11842   shrext_cmds=".dll"
11843   need_version=no
11844   need_lib_prefix=no
11845
11846   case $GCC,$cc_basename in
11847   yes,*)
11848     # gcc
11849     library_names_spec='$libname.dll.a'
11850     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11851     postinstall_cmds='base_file=`basename \${file}`~
11852       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11853       dldir=$destdir/`dirname \$dlpath`~
11854       test -d \$dldir || mkdir -p \$dldir~
11855       $install_prog $dir/$dlname \$dldir/$dlname~
11856       chmod a+x \$dldir/$dlname~
11857       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11858         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11859       fi'
11860     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11861       dlpath=$dir/\$dldll~
11862        $RM \$dlpath'
11863     shlibpath_overrides_runpath=yes
11864
11865     case $host_os in
11866     cygwin*)
11867       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11868       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11869
11870       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11871       ;;
11872     mingw* | cegcc*)
11873       # MinGW DLLs use traditional 'lib' prefix
11874       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11875       ;;
11876     pw32*)
11877       # pw32 DLLs use 'pw' prefix rather than 'lib'
11878       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11879       ;;
11880     esac
11881     dynamic_linker='Win32 ld.exe'
11882     ;;
11883
11884   *,cl*)
11885     # Native MSVC
11886     libname_spec='$name'
11887     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888     library_names_spec='${libname}.dll.lib'
11889
11890     case $build_os in
11891     mingw*)
11892       sys_lib_search_path_spec=
11893       lt_save_ifs=$IFS
11894       IFS=';'
11895       for lt_path in $LIB
11896       do
11897         IFS=$lt_save_ifs
11898         # Let DOS variable expansion print the short 8.3 style file name.
11899         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11900         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11901       done
11902       IFS=$lt_save_ifs
11903       # Convert to MSYS style.
11904       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11905       ;;
11906     cygwin*)
11907       # Convert to unix form, then to dos form, then back to unix form
11908       # but this time dos style (no spaces!) so that the unix form looks
11909       # like /cygdrive/c/PROGRA~1:/cygdr...
11910       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11911       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11912       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11913       ;;
11914     *)
11915       sys_lib_search_path_spec="$LIB"
11916       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11917         # It is most probably a Windows format PATH.
11918         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11919       else
11920         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11921       fi
11922       # FIXME: find the short name or the path components, as spaces are
11923       # common. (e.g. "Program Files" -> "PROGRA~1")
11924       ;;
11925     esac
11926
11927     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11928     postinstall_cmds='base_file=`basename \${file}`~
11929       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11930       dldir=$destdir/`dirname \$dlpath`~
11931       test -d \$dldir || mkdir -p \$dldir~
11932       $install_prog $dir/$dlname \$dldir/$dlname'
11933     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11934       dlpath=$dir/\$dldll~
11935        $RM \$dlpath'
11936     shlibpath_overrides_runpath=yes
11937     dynamic_linker='Win32 link.exe'
11938     ;;
11939
11940   *)
11941     # Assume MSVC wrapper
11942     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11943     dynamic_linker='Win32 ld.exe'
11944     ;;
11945   esac
11946   # FIXME: first we should search . and the directory the executable is in
11947   shlibpath_var=PATH
11948   ;;
11949
11950 darwin* | rhapsody*)
11951   dynamic_linker="$host_os dyld"
11952   version_type=darwin
11953   need_lib_prefix=no
11954   need_version=no
11955   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11956   soname_spec='${libname}${release}${major}$shared_ext'
11957   shlibpath_overrides_runpath=yes
11958   shlibpath_var=DYLD_LIBRARY_PATH
11959   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11960
11961   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11963   ;;
11964
11965 dgux*)
11966   version_type=linux # correct to gnu/linux during the next big refactor
11967   need_lib_prefix=no
11968   need_version=no
11969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11970   soname_spec='${libname}${release}${shared_ext}$major'
11971   shlibpath_var=LD_LIBRARY_PATH
11972   ;;
11973
11974 freebsd* | dragonfly*)
11975   # DragonFly does not have aout.  When/if they implement a new
11976   # versioning mechanism, adjust this.
11977   if test -x /usr/bin/objformat; then
11978     objformat=`/usr/bin/objformat`
11979   else
11980     case $host_os in
11981     freebsd[23].*) objformat=aout ;;
11982     *) objformat=elf ;;
11983     esac
11984   fi
11985   version_type=freebsd-$objformat
11986   case $version_type in
11987     freebsd-elf*)
11988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11989       need_version=no
11990       need_lib_prefix=no
11991       ;;
11992     freebsd-*)
11993       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11994       need_version=yes
11995       ;;
11996   esac
11997   shlibpath_var=LD_LIBRARY_PATH
11998   case $host_os in
11999   freebsd2.*)
12000     shlibpath_overrides_runpath=yes
12001     ;;
12002   freebsd3.[01]* | freebsdelf3.[01]*)
12003     shlibpath_overrides_runpath=yes
12004     hardcode_into_libs=yes
12005     ;;
12006   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12007   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008     shlibpath_overrides_runpath=no
12009     hardcode_into_libs=yes
12010     ;;
12011   *) # from 4.6 on, and DragonFly
12012     shlibpath_overrides_runpath=yes
12013     hardcode_into_libs=yes
12014     ;;
12015   esac
12016   ;;
12017
12018 haiku*)
12019   version_type=linux # correct to gnu/linux during the next big refactor
12020   need_lib_prefix=no
12021   need_version=no
12022   dynamic_linker="$host_os runtime_loader"
12023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12024   soname_spec='${libname}${release}${shared_ext}$major'
12025   shlibpath_var=LIBRARY_PATH
12026   shlibpath_overrides_runpath=yes
12027   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12028   hardcode_into_libs=yes
12029   ;;
12030
12031 hpux9* | hpux10* | hpux11*)
12032   # Give a soname corresponding to the major version so that dld.sl refuses to
12033   # link against other versions.
12034   version_type=sunos
12035   need_lib_prefix=no
12036   need_version=no
12037   case $host_cpu in
12038   ia64*)
12039     shrext_cmds='.so'
12040     hardcode_into_libs=yes
12041     dynamic_linker="$host_os dld.so"
12042     shlibpath_var=LD_LIBRARY_PATH
12043     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12044     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045     soname_spec='${libname}${release}${shared_ext}$major'
12046     if test "X$HPUX_IA64_MODE" = X32; then
12047       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12048     else
12049       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12050     fi
12051     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12052     ;;
12053   hppa*64*)
12054     shrext_cmds='.sl'
12055     hardcode_into_libs=yes
12056     dynamic_linker="$host_os dld.sl"
12057     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12058     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060     soname_spec='${libname}${release}${shared_ext}$major'
12061     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12063     ;;
12064   *)
12065     shrext_cmds='.sl'
12066     dynamic_linker="$host_os dld.sl"
12067     shlibpath_var=SHLIB_PATH
12068     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070     soname_spec='${libname}${release}${shared_ext}$major'
12071     ;;
12072   esac
12073   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12074   postinstall_cmds='chmod 555 $lib'
12075   # or fails outright, so override atomically:
12076   install_override_mode=555
12077   ;;
12078
12079 interix[3-9]*)
12080   version_type=linux # correct to gnu/linux during the next big refactor
12081   need_lib_prefix=no
12082   need_version=no
12083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084   soname_spec='${libname}${release}${shared_ext}$major'
12085   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12086   shlibpath_var=LD_LIBRARY_PATH
12087   shlibpath_overrides_runpath=no
12088   hardcode_into_libs=yes
12089   ;;
12090
12091 irix5* | irix6* | nonstopux*)
12092   case $host_os in
12093     nonstopux*) version_type=nonstopux ;;
12094     *)
12095         if test "$lt_cv_prog_gnu_ld" = yes; then
12096                 version_type=linux # correct to gnu/linux during the next big refactor
12097         else
12098                 version_type=irix
12099         fi ;;
12100   esac
12101   need_lib_prefix=no
12102   need_version=no
12103   soname_spec='${libname}${release}${shared_ext}$major'
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12105   case $host_os in
12106   irix5* | nonstopux*)
12107     libsuff= shlibsuff=
12108     ;;
12109   *)
12110     case $LD in # libtool.m4 will add one of these switches to LD
12111     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12112       libsuff= shlibsuff= libmagic=32-bit;;
12113     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12114       libsuff=32 shlibsuff=N32 libmagic=N32;;
12115     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12116       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12117     *) libsuff= shlibsuff= libmagic=never-match;;
12118     esac
12119     ;;
12120   esac
12121   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12122   shlibpath_overrides_runpath=no
12123   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12124   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12125   hardcode_into_libs=yes
12126   ;;
12127
12128 # No shared lib support for Linux oldld, aout, or coff.
12129 linux*oldld* | linux*aout* | linux*coff*)
12130   dynamic_linker=no
12131   ;;
12132
12133 # This must be glibc/ELF.
12134 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12135   version_type=linux # correct to gnu/linux during the next big refactor
12136   need_lib_prefix=no
12137   need_version=no
12138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139   soname_spec='${libname}${release}${shared_ext}$major'
12140   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12141   shlibpath_var=LD_LIBRARY_PATH
12142   shlibpath_overrides_runpath=no
12143
12144   # Some binutils ld are patched to set DT_RUNPATH
12145   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12146   $as_echo_n "(cached) " >&6
12147 else
12148   lt_cv_shlibpath_overrides_runpath=no
12149     save_LDFLAGS=$LDFLAGS
12150     save_libdir=$libdir
12151     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12152          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h.  */
12155
12156 int
12157 main ()
12158 {
12159
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"; then :
12165   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12166   lt_cv_shlibpath_overrides_runpath=yes
12167 fi
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext \
12170     conftest$ac_exeext conftest.$ac_ext
12171     LDFLAGS=$save_LDFLAGS
12172     libdir=$save_libdir
12173
12174 fi
12175
12176   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12177
12178   # This implies no fast_install, which is unacceptable.
12179   # Some rework will be needed to allow for fast_install
12180   # before this can be enabled.
12181   hardcode_into_libs=yes
12182
12183   # Append ld.so.conf contents to the search path
12184   if test -f /etc/ld.so.conf; then
12185     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' ' '`
12186     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12187   fi
12188
12189   # We used to test for /lib/ld.so.1 and disable shared libraries on
12190   # powerpc, because MkLinux only supported shared libraries with the
12191   # GNU dynamic linker.  Since this was broken with cross compilers,
12192   # most powerpc-linux boxes support dynamic linking these days and
12193   # people can always --disable-shared, the test was removed, and we
12194   # assume the GNU/Linux dynamic linker is in use.
12195   dynamic_linker='GNU/Linux ld.so'
12196   ;;
12197
12198 netbsdelf*-gnu)
12199   version_type=linux
12200   need_lib_prefix=no
12201   need_version=no
12202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12203   soname_spec='${libname}${release}${shared_ext}$major'
12204   shlibpath_var=LD_LIBRARY_PATH
12205   shlibpath_overrides_runpath=no
12206   hardcode_into_libs=yes
12207   dynamic_linker='NetBSD ld.elf_so'
12208   ;;
12209
12210 netbsd*)
12211   version_type=sunos
12212   need_lib_prefix=no
12213   need_version=no
12214   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12216     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12217     dynamic_linker='NetBSD (a.out) ld.so'
12218   else
12219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12220     soname_spec='${libname}${release}${shared_ext}$major'
12221     dynamic_linker='NetBSD ld.elf_so'
12222   fi
12223   shlibpath_var=LD_LIBRARY_PATH
12224   shlibpath_overrides_runpath=yes
12225   hardcode_into_libs=yes
12226   ;;
12227
12228 newsos6)
12229   version_type=linux # correct to gnu/linux during the next big refactor
12230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12231   shlibpath_var=LD_LIBRARY_PATH
12232   shlibpath_overrides_runpath=yes
12233   ;;
12234
12235 *nto* | *qnx*)
12236   version_type=qnx
12237   need_lib_prefix=no
12238   need_version=no
12239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12240   soname_spec='${libname}${release}${shared_ext}$major'
12241   shlibpath_var=LD_LIBRARY_PATH
12242   shlibpath_overrides_runpath=no
12243   hardcode_into_libs=yes
12244   dynamic_linker='ldqnx.so'
12245   ;;
12246
12247 openbsd*)
12248   version_type=sunos
12249   sys_lib_dlsearch_path_spec="/usr/lib"
12250   need_lib_prefix=no
12251   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12252   case $host_os in
12253     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12254     *)                          need_version=no  ;;
12255   esac
12256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12257   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12258   shlibpath_var=LD_LIBRARY_PATH
12259   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12260     case $host_os in
12261       openbsd2.[89] | openbsd2.[89].*)
12262         shlibpath_overrides_runpath=no
12263         ;;
12264       *)
12265         shlibpath_overrides_runpath=yes
12266         ;;
12267       esac
12268   else
12269     shlibpath_overrides_runpath=yes
12270   fi
12271   ;;
12272
12273 os2*)
12274   libname_spec='$name'
12275   shrext_cmds=".dll"
12276   need_lib_prefix=no
12277   library_names_spec='$libname${shared_ext} $libname.a'
12278   dynamic_linker='OS/2 ld.exe'
12279   shlibpath_var=LIBPATH
12280   ;;
12281
12282 osf3* | osf4* | osf5*)
12283   version_type=osf
12284   need_lib_prefix=no
12285   need_version=no
12286   soname_spec='${libname}${release}${shared_ext}$major'
12287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288   shlibpath_var=LD_LIBRARY_PATH
12289   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12290   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12291   ;;
12292
12293 rdos*)
12294   dynamic_linker=no
12295   ;;
12296
12297 solaris*)
12298   version_type=linux # correct to gnu/linux during the next big refactor
12299   need_lib_prefix=no
12300   need_version=no
12301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302   soname_spec='${libname}${release}${shared_ext}$major'
12303   shlibpath_var=LD_LIBRARY_PATH
12304   shlibpath_overrides_runpath=yes
12305   hardcode_into_libs=yes
12306   # ldd complains unless libraries are executable
12307   postinstall_cmds='chmod +x $lib'
12308   ;;
12309
12310 sunos4*)
12311   version_type=sunos
12312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12313   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12314   shlibpath_var=LD_LIBRARY_PATH
12315   shlibpath_overrides_runpath=yes
12316   if test "$with_gnu_ld" = yes; then
12317     need_lib_prefix=no
12318   fi
12319   need_version=yes
12320   ;;
12321
12322 sysv4 | sysv4.3*)
12323   version_type=linux # correct to gnu/linux during the next big refactor
12324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325   soname_spec='${libname}${release}${shared_ext}$major'
12326   shlibpath_var=LD_LIBRARY_PATH
12327   case $host_vendor in
12328     sni)
12329       shlibpath_overrides_runpath=no
12330       need_lib_prefix=no
12331       runpath_var=LD_RUN_PATH
12332       ;;
12333     siemens)
12334       need_lib_prefix=no
12335       ;;
12336     motorola)
12337       need_lib_prefix=no
12338       need_version=no
12339       shlibpath_overrides_runpath=no
12340       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12341       ;;
12342   esac
12343   ;;
12344
12345 sysv4*MP*)
12346   if test -d /usr/nec ;then
12347     version_type=linux # correct to gnu/linux during the next big refactor
12348     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12349     soname_spec='$libname${shared_ext}.$major'
12350     shlibpath_var=LD_LIBRARY_PATH
12351   fi
12352   ;;
12353
12354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12355   version_type=freebsd-elf
12356   need_lib_prefix=no
12357   need_version=no
12358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12359   soname_spec='${libname}${release}${shared_ext}$major'
12360   shlibpath_var=LD_LIBRARY_PATH
12361   shlibpath_overrides_runpath=yes
12362   hardcode_into_libs=yes
12363   if test "$with_gnu_ld" = yes; then
12364     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12365   else
12366     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12367     case $host_os in
12368       sco3.2v5*)
12369         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12370         ;;
12371     esac
12372   fi
12373   sys_lib_dlsearch_path_spec='/usr/lib'
12374   ;;
12375
12376 tpf*)
12377   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12378   version_type=linux # correct to gnu/linux during the next big refactor
12379   need_lib_prefix=no
12380   need_version=no
12381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382   shlibpath_var=LD_LIBRARY_PATH
12383   shlibpath_overrides_runpath=no
12384   hardcode_into_libs=yes
12385   ;;
12386
12387 uts4*)
12388   version_type=linux # correct to gnu/linux during the next big refactor
12389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390   soname_spec='${libname}${release}${shared_ext}$major'
12391   shlibpath_var=LD_LIBRARY_PATH
12392   ;;
12393
12394 *)
12395   dynamic_linker=no
12396   ;;
12397 esac
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12399 $as_echo "$dynamic_linker" >&6; }
12400 test "$dynamic_linker" = no && can_build_shared=no
12401
12402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12403 if test "$GCC" = yes; then
12404   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12405 fi
12406
12407 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12408   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12409 fi
12410 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12411   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12412 fi
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12506 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12507 hardcode_action=
12508 if test -n "$hardcode_libdir_flag_spec" ||
12509    test -n "$runpath_var" ||
12510    test "X$hardcode_automatic" = "Xyes" ; then
12511
12512   # We can hardcode non-existent directories.
12513   if test "$hardcode_direct" != no &&
12514      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12515      # have to relink, otherwise we might link with an installed library
12516      # when we should be linking with a yet-to-be-installed one
12517      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12518      test "$hardcode_minus_L" != no; then
12519     # Linking always hardcodes the temporary library directory.
12520     hardcode_action=relink
12521   else
12522     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12523     hardcode_action=immediate
12524   fi
12525 else
12526   # We cannot hardcode anything, or else we can only hardcode existing
12527   # directories.
12528   hardcode_action=unsupported
12529 fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12531 $as_echo "$hardcode_action" >&6; }
12532
12533 if test "$hardcode_action" = relink ||
12534    test "$inherit_rpath" = yes; then
12535   # Fast installation is not supported
12536   enable_fast_install=no
12537 elif test "$shlibpath_overrides_runpath" = yes ||
12538      test "$enable_shared" = no; then
12539   # Fast installation is not necessary
12540   enable_fast_install=needless
12541 fi
12542
12543
12544
12545
12546
12547
12548   if test "x$enable_dlopen" != xyes; then
12549   enable_dlopen=unknown
12550   enable_dlopen_self=unknown
12551   enable_dlopen_self_static=unknown
12552 else
12553   lt_cv_dlopen=no
12554   lt_cv_dlopen_libs=
12555
12556   case $host_os in
12557   beos*)
12558     lt_cv_dlopen="load_add_on"
12559     lt_cv_dlopen_libs=
12560     lt_cv_dlopen_self=yes
12561     ;;
12562
12563   mingw* | pw32* | cegcc*)
12564     lt_cv_dlopen="LoadLibrary"
12565     lt_cv_dlopen_libs=
12566     ;;
12567
12568   cygwin*)
12569     lt_cv_dlopen="dlopen"
12570     lt_cv_dlopen_libs=
12571     ;;
12572
12573   darwin*)
12574   # if libdl is installed we need to link against it
12575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12576 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12577 if ${ac_cv_lib_dl_dlopen+:} false; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-ldl  $LIBS"
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h.  */
12584
12585 /* Override any GCC internal prototype to avoid an error.
12586    Use char because int might match the return type of a GCC
12587    builtin and then its argument prototype would still apply.  */
12588 #ifdef __cplusplus
12589 extern "C"
12590 #endif
12591 char dlopen ();
12592 int
12593 main ()
12594 {
12595 return dlopen ();
12596   ;
12597   return 0;
12598 }
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"; then :
12601   ac_cv_lib_dl_dlopen=yes
12602 else
12603   ac_cv_lib_dl_dlopen=no
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext \
12606     conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12610 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12611 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12612   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12613 else
12614
12615     lt_cv_dlopen="dyld"
12616     lt_cv_dlopen_libs=
12617     lt_cv_dlopen_self=yes
12618
12619 fi
12620
12621     ;;
12622
12623   *)
12624     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12625 if test "x$ac_cv_func_shl_load" = xyes; then :
12626   lt_cv_dlopen="shl_load"
12627 else
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12629 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12630 if ${ac_cv_lib_dld_shl_load+:} false; then :
12631   $as_echo_n "(cached) " >&6
12632 else
12633   ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-ldld  $LIBS"
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h.  */
12637
12638 /* Override any GCC internal prototype to avoid an error.
12639    Use char because int might match the return type of a GCC
12640    builtin and then its argument prototype would still apply.  */
12641 #ifdef __cplusplus
12642 extern "C"
12643 #endif
12644 char shl_load ();
12645 int
12646 main ()
12647 {
12648 return shl_load ();
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_c_try_link "$LINENO"; then :
12654   ac_cv_lib_dld_shl_load=yes
12655 else
12656   ac_cv_lib_dld_shl_load=no
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext \
12659     conftest$ac_exeext conftest.$ac_ext
12660 LIBS=$ac_check_lib_save_LIBS
12661 fi
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12663 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12664 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12665   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12666 else
12667   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12668 if test "x$ac_cv_func_dlopen" = xyes; then :
12669   lt_cv_dlopen="dlopen"
12670 else
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12672 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12673 if ${ac_cv_lib_dl_dlopen+:} false; then :
12674   $as_echo_n "(cached) " >&6
12675 else
12676   ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-ldl  $LIBS"
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h.  */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682    Use char because int might match the return type of a GCC
12683    builtin and then its argument prototype would still apply.  */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char dlopen ();
12688 int
12689 main ()
12690 {
12691 return dlopen ();
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 if ac_fn_c_try_link "$LINENO"; then :
12697   ac_cv_lib_dl_dlopen=yes
12698 else
12699   ac_cv_lib_dl_dlopen=no
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702     conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_lib_save_LIBS
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12706 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12707 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12708   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12709 else
12710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12711 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12712 if ${ac_cv_lib_svld_dlopen+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715   ac_check_lib_save_LIBS=$LIBS
12716 LIBS="-lsvld  $LIBS"
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h.  */
12719
12720 /* Override any GCC internal prototype to avoid an error.
12721    Use char because int might match the return type of a GCC
12722    builtin and then its argument prototype would still apply.  */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 char dlopen ();
12727 int
12728 main ()
12729 {
12730 return dlopen ();
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 if ac_fn_c_try_link "$LINENO"; then :
12736   ac_cv_lib_svld_dlopen=yes
12737 else
12738   ac_cv_lib_svld_dlopen=no
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext \
12741     conftest$ac_exeext conftest.$ac_ext
12742 LIBS=$ac_check_lib_save_LIBS
12743 fi
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12745 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12746 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12747   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12748 else
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12750 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12751 if ${ac_cv_lib_dld_dld_link+:} false; then :
12752   $as_echo_n "(cached) " >&6
12753 else
12754   ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-ldld  $LIBS"
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h.  */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760    Use char because int might match the return type of a GCC
12761    builtin and then its argument prototype would still apply.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char dld_link ();
12766 int
12767 main ()
12768 {
12769 return dld_link ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775   ac_cv_lib_dld_dld_link=yes
12776 else
12777   ac_cv_lib_dld_dld_link=no
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780     conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12784 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12785 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12786   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12787 fi
12788
12789
12790 fi
12791
12792
12793 fi
12794
12795
12796 fi
12797
12798
12799 fi
12800
12801
12802 fi
12803
12804     ;;
12805   esac
12806
12807   if test "x$lt_cv_dlopen" != xno; then
12808     enable_dlopen=yes
12809   else
12810     enable_dlopen=no
12811   fi
12812
12813   case $lt_cv_dlopen in
12814   dlopen)
12815     save_CPPFLAGS="$CPPFLAGS"
12816     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12817
12818     save_LDFLAGS="$LDFLAGS"
12819     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12820
12821     save_LIBS="$LIBS"
12822     LIBS="$lt_cv_dlopen_libs $LIBS"
12823
12824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12825 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12826 if ${lt_cv_dlopen_self+:} false; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829           if test "$cross_compiling" = yes; then :
12830   lt_cv_dlopen_self=cross
12831 else
12832   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12833   lt_status=$lt_dlunknown
12834   cat > conftest.$ac_ext <<_LT_EOF
12835 #line $LINENO "configure"
12836 #include "confdefs.h"
12837
12838 #if HAVE_DLFCN_H
12839 #include <dlfcn.h>
12840 #endif
12841
12842 #include <stdio.h>
12843
12844 #ifdef RTLD_GLOBAL
12845 #  define LT_DLGLOBAL           RTLD_GLOBAL
12846 #else
12847 #  ifdef DL_GLOBAL
12848 #    define LT_DLGLOBAL         DL_GLOBAL
12849 #  else
12850 #    define LT_DLGLOBAL         0
12851 #  endif
12852 #endif
12853
12854 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12855    find out it does not work in some platform. */
12856 #ifndef LT_DLLAZY_OR_NOW
12857 #  ifdef RTLD_LAZY
12858 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12859 #  else
12860 #    ifdef DL_LAZY
12861 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12862 #    else
12863 #      ifdef RTLD_NOW
12864 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12865 #      else
12866 #        ifdef DL_NOW
12867 #          define LT_DLLAZY_OR_NOW      DL_NOW
12868 #        else
12869 #          define LT_DLLAZY_OR_NOW      0
12870 #        endif
12871 #      endif
12872 #    endif
12873 #  endif
12874 #endif
12875
12876 /* When -fvisbility=hidden is used, assume the code has been annotated
12877    correspondingly for the symbols needed.  */
12878 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12879 int fnord () __attribute__((visibility("default")));
12880 #endif
12881
12882 int fnord () { return 42; }
12883 int main ()
12884 {
12885   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12886   int status = $lt_dlunknown;
12887
12888   if (self)
12889     {
12890       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12891       else
12892         {
12893           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12894           else puts (dlerror ());
12895         }
12896       /* dlclose (self); */
12897     }
12898   else
12899     puts (dlerror ());
12900
12901   return status;
12902 }
12903 _LT_EOF
12904   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12905   (eval $ac_link) 2>&5
12906   ac_status=$?
12907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12908   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12909     (./conftest; exit; ) >&5 2>/dev/null
12910     lt_status=$?
12911     case x$lt_status in
12912       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12913       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12914       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12915     esac
12916   else :
12917     # compilation failed
12918     lt_cv_dlopen_self=no
12919   fi
12920 fi
12921 rm -fr conftest*
12922
12923
12924 fi
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12926 $as_echo "$lt_cv_dlopen_self" >&6; }
12927
12928     if test "x$lt_cv_dlopen_self" = xyes; then
12929       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12931 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12932 if ${lt_cv_dlopen_self_static+:} false; then :
12933   $as_echo_n "(cached) " >&6
12934 else
12935           if test "$cross_compiling" = yes; then :
12936   lt_cv_dlopen_self_static=cross
12937 else
12938   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12939   lt_status=$lt_dlunknown
12940   cat > conftest.$ac_ext <<_LT_EOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943
12944 #if HAVE_DLFCN_H
12945 #include <dlfcn.h>
12946 #endif
12947
12948 #include <stdio.h>
12949
12950 #ifdef RTLD_GLOBAL
12951 #  define LT_DLGLOBAL           RTLD_GLOBAL
12952 #else
12953 #  ifdef DL_GLOBAL
12954 #    define LT_DLGLOBAL         DL_GLOBAL
12955 #  else
12956 #    define LT_DLGLOBAL         0
12957 #  endif
12958 #endif
12959
12960 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12961    find out it does not work in some platform. */
12962 #ifndef LT_DLLAZY_OR_NOW
12963 #  ifdef RTLD_LAZY
12964 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12965 #  else
12966 #    ifdef DL_LAZY
12967 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12968 #    else
12969 #      ifdef RTLD_NOW
12970 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12971 #      else
12972 #        ifdef DL_NOW
12973 #          define LT_DLLAZY_OR_NOW      DL_NOW
12974 #        else
12975 #          define LT_DLLAZY_OR_NOW      0
12976 #        endif
12977 #      endif
12978 #    endif
12979 #  endif
12980 #endif
12981
12982 /* When -fvisbility=hidden is used, assume the code has been annotated
12983    correspondingly for the symbols needed.  */
12984 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12985 int fnord () __attribute__((visibility("default")));
12986 #endif
12987
12988 int fnord () { return 42; }
12989 int main ()
12990 {
12991   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12992   int status = $lt_dlunknown;
12993
12994   if (self)
12995     {
12996       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12997       else
12998         {
12999           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13000           else puts (dlerror ());
13001         }
13002       /* dlclose (self); */
13003     }
13004   else
13005     puts (dlerror ());
13006
13007   return status;
13008 }
13009 _LT_EOF
13010   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13011   (eval $ac_link) 2>&5
13012   ac_status=$?
13013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13015     (./conftest; exit; ) >&5 2>/dev/null
13016     lt_status=$?
13017     case x$lt_status in
13018       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13019       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13020       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13021     esac
13022   else :
13023     # compilation failed
13024     lt_cv_dlopen_self_static=no
13025   fi
13026 fi
13027 rm -fr conftest*
13028
13029
13030 fi
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13032 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13033     fi
13034
13035     CPPFLAGS="$save_CPPFLAGS"
13036     LDFLAGS="$save_LDFLAGS"
13037     LIBS="$save_LIBS"
13038     ;;
13039   esac
13040
13041   case $lt_cv_dlopen_self in
13042   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13043   *) enable_dlopen_self=unknown ;;
13044   esac
13045
13046   case $lt_cv_dlopen_self_static in
13047   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13048   *) enable_dlopen_self_static=unknown ;;
13049   esac
13050 fi
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068 striplib=
13069 old_striplib=
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13071 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13072 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13073   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13074   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13076 $as_echo "yes" >&6; }
13077 else
13078 # FIXME - insert some real tests, host_os isn't really good enough
13079   case $host_os in
13080   darwin*)
13081     if test -n "$STRIP" ; then
13082       striplib="$STRIP -x"
13083       old_striplib="$STRIP -S"
13084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13085 $as_echo "yes" >&6; }
13086     else
13087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13089     fi
13090     ;;
13091   *)
13092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094     ;;
13095   esac
13096 fi
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109   # Report which library types will actually be built
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13111 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13113 $as_echo "$can_build_shared" >&6; }
13114
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13116 $as_echo_n "checking whether to build shared libraries... " >&6; }
13117   test "$can_build_shared" = "no" && enable_shared=no
13118
13119   # On AIX, shared libraries and static libraries use the same namespace, and
13120   # are all built from PIC.
13121   case $host_os in
13122   aix3*)
13123     test "$enable_shared" = yes && enable_static=no
13124     if test -n "$RANLIB"; then
13125       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13126       postinstall_cmds='$RANLIB $lib'
13127     fi
13128     ;;
13129
13130   aix[4-9]*)
13131     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13132       test "$enable_shared" = yes && enable_static=no
13133     fi
13134     ;;
13135   esac
13136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13137 $as_echo "$enable_shared" >&6; }
13138
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13140 $as_echo_n "checking whether to build static libraries... " >&6; }
13141   # Make sure either enable_shared or enable_static is yes.
13142   test "$enable_shared" = yes || enable_static=yes
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13144 $as_echo "$enable_static" >&6; }
13145
13146
13147
13148
13149 fi
13150 ac_ext=c
13151 ac_cpp='$CPP $CPPFLAGS'
13152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13155
13156 CC="$lt_save_CC"
13157
13158       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13159     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13160     (test "X$CXX" != "Xg++"))) ; then
13161   ac_ext=cpp
13162 ac_cpp='$CXXCPP $CPPFLAGS'
13163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13167 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13168 if test -z "$CXXCPP"; then
13169   if ${ac_cv_prog_CXXCPP+:} false; then :
13170   $as_echo_n "(cached) " >&6
13171 else
13172       # Double quotes because CXXCPP needs to be expanded
13173     for CXXCPP in "$CXX -E" "/lib/cpp"
13174     do
13175       ac_preproc_ok=false
13176 for ac_cxx_preproc_warn_flag in '' yes
13177 do
13178   # Use a header file that comes with gcc, so configuring glibc
13179   # with a fresh cross-compiler works.
13180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13181   # <limits.h> exists even on freestanding compilers.
13182   # On the NeXT, cc -E runs the code through the compiler's parser,
13183   # not just through cpp. "Syntax error" is here to catch this case.
13184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h.  */
13186 #ifdef __STDC__
13187 # include <limits.h>
13188 #else
13189 # include <assert.h>
13190 #endif
13191                      Syntax error
13192 _ACEOF
13193 if ac_fn_cxx_try_cpp "$LINENO"; then :
13194
13195 else
13196   # Broken: fails on valid input.
13197 continue
13198 fi
13199 rm -f conftest.err conftest.i conftest.$ac_ext
13200
13201   # OK, works on sane cases.  Now check whether nonexistent headers
13202   # can be detected and how.
13203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h.  */
13205 #include <ac_nonexistent.h>
13206 _ACEOF
13207 if ac_fn_cxx_try_cpp "$LINENO"; then :
13208   # Broken: success on invalid input.
13209 continue
13210 else
13211   # Passes both tests.
13212 ac_preproc_ok=:
13213 break
13214 fi
13215 rm -f conftest.err conftest.i conftest.$ac_ext
13216
13217 done
13218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13219 rm -f conftest.i conftest.err conftest.$ac_ext
13220 if $ac_preproc_ok; then :
13221   break
13222 fi
13223
13224     done
13225     ac_cv_prog_CXXCPP=$CXXCPP
13226
13227 fi
13228   CXXCPP=$ac_cv_prog_CXXCPP
13229 else
13230   ac_cv_prog_CXXCPP=$CXXCPP
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13233 $as_echo "$CXXCPP" >&6; }
13234 ac_preproc_ok=false
13235 for ac_cxx_preproc_warn_flag in '' yes
13236 do
13237   # Use a header file that comes with gcc, so configuring glibc
13238   # with a fresh cross-compiler works.
13239   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13240   # <limits.h> exists even on freestanding compilers.
13241   # On the NeXT, cc -E runs the code through the compiler's parser,
13242   # not just through cpp. "Syntax error" is here to catch this case.
13243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245 #ifdef __STDC__
13246 # include <limits.h>
13247 #else
13248 # include <assert.h>
13249 #endif
13250                      Syntax error
13251 _ACEOF
13252 if ac_fn_cxx_try_cpp "$LINENO"; then :
13253
13254 else
13255   # Broken: fails on valid input.
13256 continue
13257 fi
13258 rm -f conftest.err conftest.i conftest.$ac_ext
13259
13260   # OK, works on sane cases.  Now check whether nonexistent headers
13261   # can be detected and how.
13262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h.  */
13264 #include <ac_nonexistent.h>
13265 _ACEOF
13266 if ac_fn_cxx_try_cpp "$LINENO"; then :
13267   # Broken: success on invalid input.
13268 continue
13269 else
13270   # Passes both tests.
13271 ac_preproc_ok=:
13272 break
13273 fi
13274 rm -f conftest.err conftest.i conftest.$ac_ext
13275
13276 done
13277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13278 rm -f conftest.i conftest.err conftest.$ac_ext
13279 if $ac_preproc_ok; then :
13280
13281 else
13282   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13284 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13285 See \`config.log' for more details" "$LINENO" 5; }
13286 fi
13287
13288 ac_ext=c
13289 ac_cpp='$CPP $CPPFLAGS'
13290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13293
13294 else
13295   _lt_caught_CXX_error=yes
13296 fi
13297
13298 ac_ext=cpp
13299 ac_cpp='$CXXCPP $CPPFLAGS'
13300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13303
13304 archive_cmds_need_lc_CXX=no
13305 allow_undefined_flag_CXX=
13306 always_export_symbols_CXX=no
13307 archive_expsym_cmds_CXX=
13308 compiler_needs_object_CXX=no
13309 export_dynamic_flag_spec_CXX=
13310 hardcode_direct_CXX=no
13311 hardcode_direct_absolute_CXX=no
13312 hardcode_libdir_flag_spec_CXX=
13313 hardcode_libdir_separator_CXX=
13314 hardcode_minus_L_CXX=no
13315 hardcode_shlibpath_var_CXX=unsupported
13316 hardcode_automatic_CXX=no
13317 inherit_rpath_CXX=no
13318 module_cmds_CXX=
13319 module_expsym_cmds_CXX=
13320 link_all_deplibs_CXX=unknown
13321 old_archive_cmds_CXX=$old_archive_cmds
13322 reload_flag_CXX=$reload_flag
13323 reload_cmds_CXX=$reload_cmds
13324 no_undefined_flag_CXX=
13325 whole_archive_flag_spec_CXX=
13326 enable_shared_with_static_runtimes_CXX=no
13327
13328 # Source file extension for C++ test sources.
13329 ac_ext=cpp
13330
13331 # Object file extension for compiled C++ test sources.
13332 objext=o
13333 objext_CXX=$objext
13334
13335 # No sense in running all these tests if we already determined that
13336 # the CXX compiler isn't working.  Some variables (like enable_shared)
13337 # are currently assumed to apply to all compilers on this platform,
13338 # and will be corrupted by setting them based on a non-working compiler.
13339 if test "$_lt_caught_CXX_error" != yes; then
13340   # Code to be used in simple compile tests
13341   lt_simple_compile_test_code="int some_variable = 0;"
13342
13343   # Code to be used in simple link tests
13344   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13345
13346   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13347
13348
13349
13350
13351
13352
13353 # If no C compiler was specified, use CC.
13354 LTCC=${LTCC-"$CC"}
13355
13356 # If no C compiler flags were specified, use CFLAGS.
13357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13358
13359 # Allow CC to be a program name with arguments.
13360 compiler=$CC
13361
13362
13363   # save warnings/boilerplate of simple test code
13364   ac_outfile=conftest.$ac_objext
13365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13367 _lt_compiler_boilerplate=`cat conftest.err`
13368 $RM conftest*
13369
13370   ac_outfile=conftest.$ac_objext
13371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13373 _lt_linker_boilerplate=`cat conftest.err`
13374 $RM -r conftest*
13375
13376
13377   # Allow CC to be a program name with arguments.
13378   lt_save_CC=$CC
13379   lt_save_CFLAGS=$CFLAGS
13380   lt_save_LD=$LD
13381   lt_save_GCC=$GCC
13382   GCC=$GXX
13383   lt_save_with_gnu_ld=$with_gnu_ld
13384   lt_save_path_LD=$lt_cv_path_LD
13385   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13386     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13387   else
13388     $as_unset lt_cv_prog_gnu_ld
13389   fi
13390   if test -n "${lt_cv_path_LDCXX+set}"; then
13391     lt_cv_path_LD=$lt_cv_path_LDCXX
13392   else
13393     $as_unset lt_cv_path_LD
13394   fi
13395   test -z "${LDCXX+set}" || LD=$LDCXX
13396   CC=${CXX-"c++"}
13397   CFLAGS=$CXXFLAGS
13398   compiler=$CC
13399   compiler_CXX=$CC
13400   for cc_temp in $compiler""; do
13401   case $cc_temp in
13402     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13403     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13404     \-*) ;;
13405     *) break;;
13406   esac
13407 done
13408 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13409
13410
13411   if test -n "$compiler"; then
13412     # We don't want -fno-exception when compiling C++ code, so set the
13413     # no_builtin_flag separately
13414     if test "$GXX" = yes; then
13415       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13416     else
13417       lt_prog_compiler_no_builtin_flag_CXX=
13418     fi
13419
13420     if test "$GXX" = yes; then
13421       # Set up default GNU C++ configuration
13422
13423
13424
13425 # Check whether --with-gnu-ld was given.
13426 if test "${with_gnu_ld+set}" = set; then :
13427   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13428 else
13429   with_gnu_ld=no
13430 fi
13431
13432 ac_prog=ld
13433 if test "$GCC" = yes; then
13434   # Check if gcc -print-prog-name=ld gives a path.
13435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13436 $as_echo_n "checking for ld used by $CC... " >&6; }
13437   case $host in
13438   *-*-mingw*)
13439     # gcc leaves a trailing carriage return which upsets mingw
13440     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13441   *)
13442     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13443   esac
13444   case $ac_prog in
13445     # Accept absolute paths.
13446     [\\/]* | ?:[\\/]*)
13447       re_direlt='/[^/][^/]*/\.\./'
13448       # Canonicalize the pathname of ld
13449       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13450       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13451         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13452       done
13453       test -z "$LD" && LD="$ac_prog"
13454       ;;
13455   "")
13456     # If it fails, then pretend we aren't using GCC.
13457     ac_prog=ld
13458     ;;
13459   *)
13460     # If it is relative, then search for the first ld in PATH.
13461     with_gnu_ld=unknown
13462     ;;
13463   esac
13464 elif test "$with_gnu_ld" = yes; then
13465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13466 $as_echo_n "checking for GNU ld... " >&6; }
13467 else
13468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13469 $as_echo_n "checking for non-GNU ld... " >&6; }
13470 fi
13471 if ${lt_cv_path_LD+:} false; then :
13472   $as_echo_n "(cached) " >&6
13473 else
13474   if test -z "$LD"; then
13475   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13476   for ac_dir in $PATH; do
13477     IFS="$lt_save_ifs"
13478     test -z "$ac_dir" && ac_dir=.
13479     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13480       lt_cv_path_LD="$ac_dir/$ac_prog"
13481       # Check to see if the program is GNU ld.  I'd rather use --version,
13482       # but apparently some variants of GNU ld only accept -v.
13483       # Break only if it was the GNU/non-GNU ld that we prefer.
13484       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13485       *GNU* | *'with BFD'*)
13486         test "$with_gnu_ld" != no && break
13487         ;;
13488       *)
13489         test "$with_gnu_ld" != yes && break
13490         ;;
13491       esac
13492     fi
13493   done
13494   IFS="$lt_save_ifs"
13495 else
13496   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13497 fi
13498 fi
13499
13500 LD="$lt_cv_path_LD"
13501 if test -n "$LD"; then
13502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13503 $as_echo "$LD" >&6; }
13504 else
13505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 fi
13508 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13510 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13511 if ${lt_cv_prog_gnu_ld+:} false; then :
13512   $as_echo_n "(cached) " >&6
13513 else
13514   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13515 case `$LD -v 2>&1 </dev/null` in
13516 *GNU* | *'with BFD'*)
13517   lt_cv_prog_gnu_ld=yes
13518   ;;
13519 *)
13520   lt_cv_prog_gnu_ld=no
13521   ;;
13522 esac
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13525 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13526 with_gnu_ld=$lt_cv_prog_gnu_ld
13527
13528
13529
13530
13531
13532
13533
13534       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13535       # archiving commands below assume that GNU ld is being used.
13536       if test "$with_gnu_ld" = yes; then
13537         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13538         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'
13539
13540         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13541         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13542
13543         # If archive_cmds runs LD, not CC, wlarc should be empty
13544         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13545         #     investigate it a little bit more. (MM)
13546         wlarc='${wl}'
13547
13548         # ancient GNU ld didn't support --whole-archive et. al.
13549         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13550           $GREP 'no-whole-archive' > /dev/null; then
13551           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13552         else
13553           whole_archive_flag_spec_CXX=
13554         fi
13555       else
13556         with_gnu_ld=no
13557         wlarc=
13558
13559         # A generic and very simple default shared library creation
13560         # command for GNU C++ for the case where it uses the native
13561         # linker, instead of GNU ld.  If possible, this setting should
13562         # overridden to take advantage of the native linker features on
13563         # the platform it is being used on.
13564         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13565       fi
13566
13567       # Commands to make compiler produce verbose output that lists
13568       # what "hidden" libraries, object files and flags are used when
13569       # linking a shared library.
13570       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13571
13572     else
13573       GXX=no
13574       with_gnu_ld=no
13575       wlarc=
13576     fi
13577
13578     # PORTME: fill in a description of your system's C++ link characteristics
13579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13580 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13581     ld_shlibs_CXX=yes
13582     case $host_os in
13583       aix3*)
13584         # FIXME: insert proper C++ library support
13585         ld_shlibs_CXX=no
13586         ;;
13587       aix[4-9]*)
13588         if test "$host_cpu" = ia64; then
13589           # On IA64, the linker does run time linking by default, so we don't
13590           # have to do anything special.
13591           aix_use_runtimelinking=no
13592           exp_sym_flag='-Bexport'
13593           no_entry_flag=""
13594         else
13595           aix_use_runtimelinking=no
13596
13597           # Test if we are trying to use run time linking or normal
13598           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13599           # need to do runtime linking.
13600           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13601             for ld_flag in $LDFLAGS; do
13602               case $ld_flag in
13603               *-brtl*)
13604                 aix_use_runtimelinking=yes
13605                 break
13606                 ;;
13607               esac
13608             done
13609             ;;
13610           esac
13611
13612           exp_sym_flag='-bexport'
13613           no_entry_flag='-bnoentry'
13614         fi
13615
13616         # When large executables or shared objects are built, AIX ld can
13617         # have problems creating the table of contents.  If linking a library
13618         # or program results in "error TOC overflow" add -mminimal-toc to
13619         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13620         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13621
13622         archive_cmds_CXX=''
13623         hardcode_direct_CXX=yes
13624         hardcode_direct_absolute_CXX=yes
13625         hardcode_libdir_separator_CXX=':'
13626         link_all_deplibs_CXX=yes
13627         file_list_spec_CXX='${wl}-f,'
13628
13629         if test "$GXX" = yes; then
13630           case $host_os in aix4.[012]|aix4.[012].*)
13631           # We only want to do this on AIX 4.2 and lower, the check
13632           # below for broken collect2 doesn't work under 4.3+
13633           collect2name=`${CC} -print-prog-name=collect2`
13634           if test -f "$collect2name" &&
13635              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13636           then
13637             # We have reworked collect2
13638             :
13639           else
13640             # We have old collect2
13641             hardcode_direct_CXX=unsupported
13642             # It fails to find uninstalled libraries when the uninstalled
13643             # path is not listed in the libpath.  Setting hardcode_minus_L
13644             # to unsupported forces relinking
13645             hardcode_minus_L_CXX=yes
13646             hardcode_libdir_flag_spec_CXX='-L$libdir'
13647             hardcode_libdir_separator_CXX=
13648           fi
13649           esac
13650           shared_flag='-shared'
13651           if test "$aix_use_runtimelinking" = yes; then
13652             shared_flag="$shared_flag "'${wl}-G'
13653           fi
13654         else
13655           # not using gcc
13656           if test "$host_cpu" = ia64; then
13657           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13658           # chokes on -Wl,-G. The following line is correct:
13659           shared_flag='-G'
13660           else
13661             if test "$aix_use_runtimelinking" = yes; then
13662               shared_flag='${wl}-G'
13663             else
13664               shared_flag='${wl}-bM:SRE'
13665             fi
13666           fi
13667         fi
13668
13669         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13670         # It seems that -bexpall does not export symbols beginning with
13671         # underscore (_), so it is better to generate a list of symbols to
13672         # export.
13673         always_export_symbols_CXX=yes
13674         if test "$aix_use_runtimelinking" = yes; then
13675           # Warning - without using the other runtime loading flags (-brtl),
13676           # -berok will link without error, but may produce a broken library.
13677           allow_undefined_flag_CXX='-berok'
13678           # Determine the default libpath from the value encoded in an empty
13679           # executable.
13680           if test "${lt_cv_aix_libpath+set}" = set; then
13681   aix_libpath=$lt_cv_aix_libpath
13682 else
13683   if ${lt_cv_aix_libpath__CXX+:} false; then :
13684   $as_echo_n "(cached) " >&6
13685 else
13686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h.  */
13688
13689 int
13690 main ()
13691 {
13692
13693   ;
13694   return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_cxx_try_link "$LINENO"; then :
13698
13699   lt_aix_libpath_sed='
13700       /Import File Strings/,/^$/ {
13701           /^0/ {
13702               s/^0  *\([^ ]*\) *$/\1/
13703               p
13704           }
13705       }'
13706   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13707   # Check for a 64-bit object if we didn't find anything.
13708   if test -z "$lt_cv_aix_libpath__CXX"; then
13709     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13710   fi
13711 fi
13712 rm -f core conftest.err conftest.$ac_objext \
13713     conftest$ac_exeext conftest.$ac_ext
13714   if test -z "$lt_cv_aix_libpath__CXX"; then
13715     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13716   fi
13717
13718 fi
13719
13720   aix_libpath=$lt_cv_aix_libpath__CXX
13721 fi
13722
13723           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13724
13725           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"
13726         else
13727           if test "$host_cpu" = ia64; then
13728             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13729             allow_undefined_flag_CXX="-z nodefs"
13730             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"
13731           else
13732             # Determine the default libpath from the value encoded in an
13733             # empty executable.
13734             if test "${lt_cv_aix_libpath+set}" = set; then
13735   aix_libpath=$lt_cv_aix_libpath
13736 else
13737   if ${lt_cv_aix_libpath__CXX+:} false; then :
13738   $as_echo_n "(cached) " >&6
13739 else
13740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h.  */
13742
13743 int
13744 main ()
13745 {
13746
13747   ;
13748   return 0;
13749 }
13750 _ACEOF
13751 if ac_fn_cxx_try_link "$LINENO"; then :
13752
13753   lt_aix_libpath_sed='
13754       /Import File Strings/,/^$/ {
13755           /^0/ {
13756               s/^0  *\([^ ]*\) *$/\1/
13757               p
13758           }
13759       }'
13760   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13761   # Check for a 64-bit object if we didn't find anything.
13762   if test -z "$lt_cv_aix_libpath__CXX"; then
13763     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13764   fi
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext \
13767     conftest$ac_exeext conftest.$ac_ext
13768   if test -z "$lt_cv_aix_libpath__CXX"; then
13769     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13770   fi
13771
13772 fi
13773
13774   aix_libpath=$lt_cv_aix_libpath__CXX
13775 fi
13776
13777             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13778             # Warning - without using the other run time loading flags,
13779             # -berok will link without error, but may produce a broken library.
13780             no_undefined_flag_CXX=' ${wl}-bernotok'
13781             allow_undefined_flag_CXX=' ${wl}-berok'
13782             if test "$with_gnu_ld" = yes; then
13783               # We only use this code for GNU lds that support --whole-archive.
13784               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13785             else
13786               # Exported symbols can be pulled into shared objects from archives
13787               whole_archive_flag_spec_CXX='$convenience'
13788             fi
13789             archive_cmds_need_lc_CXX=yes
13790             # This is similar to how AIX traditionally builds its shared
13791             # libraries.
13792             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'
13793           fi
13794         fi
13795         ;;
13796
13797       beos*)
13798         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13799           allow_undefined_flag_CXX=unsupported
13800           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13801           # support --undefined.  This deserves some investigation.  FIXME
13802           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13803         else
13804           ld_shlibs_CXX=no
13805         fi
13806         ;;
13807
13808       chorus*)
13809         case $cc_basename in
13810           *)
13811           # FIXME: insert proper C++ library support
13812           ld_shlibs_CXX=no
13813           ;;
13814         esac
13815         ;;
13816
13817       cygwin* | mingw* | pw32* | cegcc*)
13818         case $GXX,$cc_basename in
13819         ,cl* | no,cl*)
13820           # Native MSVC
13821           # hardcode_libdir_flag_spec is actually meaningless, as there is
13822           # no search path for DLLs.
13823           hardcode_libdir_flag_spec_CXX=' '
13824           allow_undefined_flag_CXX=unsupported
13825           always_export_symbols_CXX=yes
13826           file_list_spec_CXX='@'
13827           # Tell ltmain to make .lib files, not .a files.
13828           libext=lib
13829           # Tell ltmain to make .dll files, not .so files.
13830           shrext_cmds=".dll"
13831           # FIXME: Setting linknames here is a bad hack.
13832           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13833           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13834               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13835             else
13836               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13837             fi~
13838             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13839             linknames='
13840           # The linker will not automatically build a static lib if we build a DLL.
13841           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13842           enable_shared_with_static_runtimes_CXX=yes
13843           # Don't use ranlib
13844           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13845           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13846             lt_tool_outputfile="@TOOL_OUTPUT@"~
13847             case $lt_outputfile in
13848               *.exe|*.EXE) ;;
13849               *)
13850                 lt_outputfile="$lt_outputfile.exe"
13851                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13852                 ;;
13853             esac~
13854             func_to_tool_file "$lt_outputfile"~
13855             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13856               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13857               $RM "$lt_outputfile.manifest";
13858             fi'
13859           ;;
13860         *)
13861           # g++
13862           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13863           # as there is no search path for DLLs.
13864           hardcode_libdir_flag_spec_CXX='-L$libdir'
13865           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13866           allow_undefined_flag_CXX=unsupported
13867           always_export_symbols_CXX=no
13868           enable_shared_with_static_runtimes_CXX=yes
13869
13870           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13871             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'
13872             # If the export-symbols file already is a .def file (1st line
13873             # is EXPORTS), use it as is; otherwise, prepend...
13874             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13875               cp $export_symbols $output_objdir/$soname.def;
13876             else
13877               echo EXPORTS > $output_objdir/$soname.def;
13878               cat $export_symbols >> $output_objdir/$soname.def;
13879             fi~
13880             $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'
13881           else
13882             ld_shlibs_CXX=no
13883           fi
13884           ;;
13885         esac
13886         ;;
13887       darwin* | rhapsody*)
13888
13889
13890   archive_cmds_need_lc_CXX=no
13891   hardcode_direct_CXX=no
13892   hardcode_automatic_CXX=yes
13893   hardcode_shlibpath_var_CXX=unsupported
13894   if test "$lt_cv_ld_force_load" = "yes"; then
13895     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\"`'
13896
13897   else
13898     whole_archive_flag_spec_CXX=''
13899   fi
13900   link_all_deplibs_CXX=yes
13901   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13902   case $cc_basename in
13903      ifort*) _lt_dar_can_shared=yes ;;
13904      *) _lt_dar_can_shared=$GCC ;;
13905   esac
13906   if test "$_lt_dar_can_shared" = "yes"; then
13907     output_verbose_link_cmd=func_echo_all
13908     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}"
13909     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13910     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}"
13911     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}"
13912        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13913       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}"
13914       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}"
13915     fi
13916
13917   else
13918   ld_shlibs_CXX=no
13919   fi
13920
13921         ;;
13922
13923       dgux*)
13924         case $cc_basename in
13925           ec++*)
13926             # FIXME: insert proper C++ library support
13927             ld_shlibs_CXX=no
13928             ;;
13929           ghcx*)
13930             # Green Hills C++ Compiler
13931             # FIXME: insert proper C++ library support
13932             ld_shlibs_CXX=no
13933             ;;
13934           *)
13935             # FIXME: insert proper C++ library support
13936             ld_shlibs_CXX=no
13937             ;;
13938         esac
13939         ;;
13940
13941       freebsd2.*)
13942         # C++ shared libraries reported to be fairly broken before
13943         # switch to ELF
13944         ld_shlibs_CXX=no
13945         ;;
13946
13947       freebsd-elf*)
13948         archive_cmds_need_lc_CXX=no
13949         ;;
13950
13951       freebsd* | dragonfly*)
13952         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13953         # conventions
13954         ld_shlibs_CXX=yes
13955         ;;
13956
13957       haiku*)
13958         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959         link_all_deplibs_CXX=yes
13960         ;;
13961
13962       hpux9*)
13963         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13964         hardcode_libdir_separator_CXX=:
13965         export_dynamic_flag_spec_CXX='${wl}-E'
13966         hardcode_direct_CXX=yes
13967         hardcode_minus_L_CXX=yes # Not in the search PATH,
13968                                              # but as the default
13969                                              # location of the library.
13970
13971         case $cc_basename in
13972           CC*)
13973             # FIXME: insert proper C++ library support
13974             ld_shlibs_CXX=no
13975             ;;
13976           aCC*)
13977             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'
13978             # Commands to make compiler produce verbose output that lists
13979             # what "hidden" libraries, object files and flags are used when
13980             # linking a shared library.
13981             #
13982             # There doesn't appear to be a way to prevent this compiler from
13983             # explicitly linking system object files so we need to strip them
13984             # from the output so that they don't get included in the library
13985             # dependencies.
13986             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"'
13987             ;;
13988           *)
13989             if test "$GXX" = yes; then
13990               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'
13991             else
13992               # FIXME: insert proper C++ library support
13993               ld_shlibs_CXX=no
13994             fi
13995             ;;
13996         esac
13997         ;;
13998
13999       hpux10*|hpux11*)
14000         if test $with_gnu_ld = no; then
14001           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14002           hardcode_libdir_separator_CXX=:
14003
14004           case $host_cpu in
14005             hppa*64*|ia64*)
14006               ;;
14007             *)
14008               export_dynamic_flag_spec_CXX='${wl}-E'
14009               ;;
14010           esac
14011         fi
14012         case $host_cpu in
14013           hppa*64*|ia64*)
14014             hardcode_direct_CXX=no
14015             hardcode_shlibpath_var_CXX=no
14016             ;;
14017           *)
14018             hardcode_direct_CXX=yes
14019             hardcode_direct_absolute_CXX=yes
14020             hardcode_minus_L_CXX=yes # Not in the search PATH,
14021                                                  # but as the default
14022                                                  # location of the library.
14023             ;;
14024         esac
14025
14026         case $cc_basename in
14027           CC*)
14028             # FIXME: insert proper C++ library support
14029             ld_shlibs_CXX=no
14030             ;;
14031           aCC*)
14032             case $host_cpu in
14033               hppa*64*)
14034                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14035                 ;;
14036               ia64*)
14037                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14038                 ;;
14039               *)
14040                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041                 ;;
14042             esac
14043             # Commands to make compiler produce verbose output that lists
14044             # what "hidden" libraries, object files and flags are used when
14045             # linking a shared library.
14046             #
14047             # There doesn't appear to be a way to prevent this compiler from
14048             # explicitly linking system object files so we need to strip them
14049             # from the output so that they don't get included in the library
14050             # dependencies.
14051             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"'
14052             ;;
14053           *)
14054             if test "$GXX" = yes; then
14055               if test $with_gnu_ld = no; then
14056                 case $host_cpu in
14057                   hppa*64*)
14058                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14059                     ;;
14060                   ia64*)
14061                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062                     ;;
14063                   *)
14064                     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'
14065                     ;;
14066                 esac
14067               fi
14068             else
14069               # FIXME: insert proper C++ library support
14070               ld_shlibs_CXX=no
14071             fi
14072             ;;
14073         esac
14074         ;;
14075
14076       interix[3-9]*)
14077         hardcode_direct_CXX=no
14078         hardcode_shlibpath_var_CXX=no
14079         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14080         export_dynamic_flag_spec_CXX='${wl}-E'
14081         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14082         # Instead, shared libraries are loaded at an image base (0x10000000 by
14083         # default) and relocated if they conflict, which is a slow very memory
14084         # consuming and fragmenting process.  To avoid this, we pick a random,
14085         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14086         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14087         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'
14088         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'
14089         ;;
14090       irix5* | irix6*)
14091         case $cc_basename in
14092           CC*)
14093             # SGI C++
14094             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'
14095
14096             # Archives containing C++ object files must be created using
14097             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14098             # necessary to make sure instantiated templates are included
14099             # in the archive.
14100             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14101             ;;
14102           *)
14103             if test "$GXX" = yes; then
14104               if test "$with_gnu_ld" = no; then
14105                 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'
14106               else
14107                 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'
14108               fi
14109             fi
14110             link_all_deplibs_CXX=yes
14111             ;;
14112         esac
14113         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14114         hardcode_libdir_separator_CXX=:
14115         inherit_rpath_CXX=yes
14116         ;;
14117
14118       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14119         case $cc_basename in
14120           KCC*)
14121             # Kuck and Associates, Inc. (KAI) C++ Compiler
14122
14123             # KCC will only create a shared library if the output file
14124             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14125             # to its proper name (with version) after linking.
14126             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'
14127             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'
14128             # Commands to make compiler produce verbose output that lists
14129             # what "hidden" libraries, object files and flags are used when
14130             # linking a shared library.
14131             #
14132             # There doesn't appear to be a way to prevent this compiler from
14133             # explicitly linking system object files so we need to strip them
14134             # from the output so that they don't get included in the library
14135             # dependencies.
14136             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"'
14137
14138             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14139             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14140
14141             # Archives containing C++ object files must be created using
14142             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14143             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14144             ;;
14145           icpc* | ecpc* )
14146             # Intel C++
14147             with_gnu_ld=yes
14148             # version 8.0 and above of icpc choke on multiply defined symbols
14149             # if we add $predep_objects and $postdep_objects, however 7.1 and
14150             # earlier do not add the objects themselves.
14151             case `$CC -V 2>&1` in
14152               *"Version 7."*)
14153                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14155                 ;;
14156               *)  # Version 8.0 or newer
14157                 tmp_idyn=
14158                 case $host_cpu in
14159                   ia64*) tmp_idyn=' -i_dynamic';;
14160                 esac
14161                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14162                 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'
14163                 ;;
14164             esac
14165             archive_cmds_need_lc_CXX=no
14166             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14167             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14168             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14169             ;;
14170           pgCC* | pgcpp*)
14171             # Portland Group C++ compiler
14172             case `$CC -V` in
14173             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14174               prelink_cmds_CXX='tpldir=Template.dir~
14175                 rm -rf $tpldir~
14176                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14177                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14178               old_archive_cmds_CXX='tpldir=Template.dir~
14179                 rm -rf $tpldir~
14180                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14181                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14182                 $RANLIB $oldlib'
14183               archive_cmds_CXX='tpldir=Template.dir~
14184                 rm -rf $tpldir~
14185                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14186                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14187               archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14191               ;;
14192             *) # Version 6 and above use weak symbols
14193               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14194               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'
14195               ;;
14196             esac
14197
14198             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14199             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14200             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'
14201             ;;
14202           cxx*)
14203             # Compaq C++
14204             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14205             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'
14206
14207             runpath_var=LD_RUN_PATH
14208             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14209             hardcode_libdir_separator_CXX=:
14210
14211             # Commands to make compiler produce verbose output that lists
14212             # what "hidden" libraries, object files and flags are used when
14213             # linking a shared library.
14214             #
14215             # There doesn't appear to be a way to prevent this compiler from
14216             # explicitly linking system object files so we need to strip them
14217             # from the output so that they don't get included in the library
14218             # dependencies.
14219             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'
14220             ;;
14221           xl* | mpixl* | bgxl*)
14222             # IBM XL 8.0 on PPC, with GNU ld
14223             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14224             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14225             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226             if test "x$supports_anon_versioning" = xyes; then
14227               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14228                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14229                 echo "local: *; };" >> $output_objdir/$libname.ver~
14230                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14231             fi
14232             ;;
14233           *)
14234             case `$CC -V 2>&1 | sed 5q` in
14235             *Sun\ C*)
14236               # Sun C++ 5.9
14237               no_undefined_flag_CXX=' -zdefs'
14238               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14239               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'
14240               hardcode_libdir_flag_spec_CXX='-R$libdir'
14241               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'
14242               compiler_needs_object_CXX=yes
14243
14244               # Not sure whether something based on
14245               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14246               # would be better.
14247               output_verbose_link_cmd='func_echo_all'
14248
14249               # Archives containing C++ object files must be created using
14250               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14251               # necessary to make sure instantiated templates are included
14252               # in the archive.
14253               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14254               ;;
14255             esac
14256             ;;
14257         esac
14258         ;;
14259
14260       lynxos*)
14261         # FIXME: insert proper C++ library support
14262         ld_shlibs_CXX=no
14263         ;;
14264
14265       m88k*)
14266         # FIXME: insert proper C++ library support
14267         ld_shlibs_CXX=no
14268         ;;
14269
14270       mvs*)
14271         case $cc_basename in
14272           cxx*)
14273             # FIXME: insert proper C++ library support
14274             ld_shlibs_CXX=no
14275             ;;
14276           *)
14277             # FIXME: insert proper C++ library support
14278             ld_shlibs_CXX=no
14279             ;;
14280         esac
14281         ;;
14282
14283       netbsd*)
14284         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14285           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14286           wlarc=
14287           hardcode_libdir_flag_spec_CXX='-R$libdir'
14288           hardcode_direct_CXX=yes
14289           hardcode_shlibpath_var_CXX=no
14290         fi
14291         # Workaround some broken pre-1.5 toolchains
14292         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14293         ;;
14294
14295       *nto* | *qnx*)
14296         ld_shlibs_CXX=yes
14297         ;;
14298
14299       openbsd2*)
14300         # C++ shared libraries are fairly broken
14301         ld_shlibs_CXX=no
14302         ;;
14303
14304       openbsd*)
14305         if test -f /usr/libexec/ld.so; then
14306           hardcode_direct_CXX=yes
14307           hardcode_shlibpath_var_CXX=no
14308           hardcode_direct_absolute_CXX=yes
14309           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14310           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14311           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14312             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14313             export_dynamic_flag_spec_CXX='${wl}-E'
14314             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14315           fi
14316           output_verbose_link_cmd=func_echo_all
14317         else
14318           ld_shlibs_CXX=no
14319         fi
14320         ;;
14321
14322       osf3* | osf4* | osf5*)
14323         case $cc_basename in
14324           KCC*)
14325             # Kuck and Associates, Inc. (KAI) C++ Compiler
14326
14327             # KCC will only create a shared library if the output file
14328             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14329             # to its proper name (with version) after linking.
14330             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'
14331
14332             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14333             hardcode_libdir_separator_CXX=:
14334
14335             # Archives containing C++ object files must be created using
14336             # the KAI C++ compiler.
14337             case $host in
14338               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14339               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14340             esac
14341             ;;
14342           RCC*)
14343             # Rational C++ 2.4.1
14344             # FIXME: insert proper C++ library support
14345             ld_shlibs_CXX=no
14346             ;;
14347           cxx*)
14348             case $host in
14349               osf3*)
14350                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14351                 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'
14352                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14353                 ;;
14354               *)
14355                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14356                 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'
14357                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14358                   echo "-hidden">> $lib.exp~
14359                   $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~
14360                   $RM $lib.exp'
14361                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14362                 ;;
14363             esac
14364
14365             hardcode_libdir_separator_CXX=:
14366
14367             # Commands to make compiler produce verbose output that lists
14368             # what "hidden" libraries, object files and flags are used when
14369             # linking a shared library.
14370             #
14371             # There doesn't appear to be a way to prevent this compiler from
14372             # explicitly linking system object files so we need to strip them
14373             # from the output so that they don't get included in the library
14374             # dependencies.
14375             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"'
14376             ;;
14377           *)
14378             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14379               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14380               case $host in
14381                 osf3*)
14382                   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'
14383                   ;;
14384                 *)
14385                   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'
14386                   ;;
14387               esac
14388
14389               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14390               hardcode_libdir_separator_CXX=:
14391
14392               # Commands to make compiler produce verbose output that lists
14393               # what "hidden" libraries, object files and flags are used when
14394               # linking a shared library.
14395               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14396
14397             else
14398               # FIXME: insert proper C++ library support
14399               ld_shlibs_CXX=no
14400             fi
14401             ;;
14402         esac
14403         ;;
14404
14405       psos*)
14406         # FIXME: insert proper C++ library support
14407         ld_shlibs_CXX=no
14408         ;;
14409
14410       sunos4*)
14411         case $cc_basename in
14412           CC*)
14413             # Sun C++ 4.x
14414             # FIXME: insert proper C++ library support
14415             ld_shlibs_CXX=no
14416             ;;
14417           lcc*)
14418             # Lucid
14419             # FIXME: insert proper C++ library support
14420             ld_shlibs_CXX=no
14421             ;;
14422           *)
14423             # FIXME: insert proper C++ library support
14424             ld_shlibs_CXX=no
14425             ;;
14426         esac
14427         ;;
14428
14429       solaris*)
14430         case $cc_basename in
14431           CC* | sunCC*)
14432             # Sun C++ 4.2, 5.x and Centerline C++
14433             archive_cmds_need_lc_CXX=yes
14434             no_undefined_flag_CXX=' -zdefs'
14435             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14436             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14437               $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'
14438
14439             hardcode_libdir_flag_spec_CXX='-R$libdir'
14440             hardcode_shlibpath_var_CXX=no
14441             case $host_os in
14442               solaris2.[0-5] | solaris2.[0-5].*) ;;
14443               *)
14444                 # The compiler driver will combine and reorder linker options,
14445                 # but understands `-z linker_flag'.
14446                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14447                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14448                 ;;
14449             esac
14450             link_all_deplibs_CXX=yes
14451
14452             output_verbose_link_cmd='func_echo_all'
14453
14454             # Archives containing C++ object files must be created using
14455             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14456             # necessary to make sure instantiated templates are included
14457             # in the archive.
14458             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14459             ;;
14460           gcx*)
14461             # Green Hills C++ Compiler
14462             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14463
14464             # The C++ compiler must be used to create the archive.
14465             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14466             ;;
14467           *)
14468             # GNU C++ compiler with Solaris linker
14469             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14470               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14471               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14472                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14473                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14474                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14475
14476                 # Commands to make compiler produce verbose output that lists
14477                 # what "hidden" libraries, object files and flags are used when
14478                 # linking a shared library.
14479                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14480               else
14481                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14482                 # platform.
14483                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14484                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14485                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14486
14487                 # Commands to make compiler produce verbose output that lists
14488                 # what "hidden" libraries, object files and flags are used when
14489                 # linking a shared library.
14490                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14491               fi
14492
14493               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14494               case $host_os in
14495                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14496                 *)
14497                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14498                   ;;
14499               esac
14500             fi
14501             ;;
14502         esac
14503         ;;
14504
14505     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14506       no_undefined_flag_CXX='${wl}-z,text'
14507       archive_cmds_need_lc_CXX=no
14508       hardcode_shlibpath_var_CXX=no
14509       runpath_var='LD_RUN_PATH'
14510
14511       case $cc_basename in
14512         CC*)
14513           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515           ;;
14516         *)
14517           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14519           ;;
14520       esac
14521       ;;
14522
14523       sysv5* | sco3.2v5* | sco5v6*)
14524         # Note: We can NOT use -z defs as we might desire, because we do not
14525         # link with -lc, and that would cause any symbols used from libc to
14526         # always be unresolved, which means just about no library would
14527         # ever link correctly.  If we're not using GNU ld we use -z text
14528         # though, which does catch some bad symbols but isn't as heavy-handed
14529         # as -z defs.
14530         no_undefined_flag_CXX='${wl}-z,text'
14531         allow_undefined_flag_CXX='${wl}-z,nodefs'
14532         archive_cmds_need_lc_CXX=no
14533         hardcode_shlibpath_var_CXX=no
14534         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14535         hardcode_libdir_separator_CXX=':'
14536         link_all_deplibs_CXX=yes
14537         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14538         runpath_var='LD_RUN_PATH'
14539
14540         case $cc_basename in
14541           CC*)
14542             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14544             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14545               '"$old_archive_cmds_CXX"
14546             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14547               '"$reload_cmds_CXX"
14548             ;;
14549           *)
14550             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14552             ;;
14553         esac
14554       ;;
14555
14556       tandem*)
14557         case $cc_basename in
14558           NCC*)
14559             # NonStop-UX NCC 3.20
14560             # FIXME: insert proper C++ library support
14561             ld_shlibs_CXX=no
14562             ;;
14563           *)
14564             # FIXME: insert proper C++ library support
14565             ld_shlibs_CXX=no
14566             ;;
14567         esac
14568         ;;
14569
14570       vxworks*)
14571         # FIXME: insert proper C++ library support
14572         ld_shlibs_CXX=no
14573         ;;
14574
14575       *)
14576         # FIXME: insert proper C++ library support
14577         ld_shlibs_CXX=no
14578         ;;
14579     esac
14580
14581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14582 $as_echo "$ld_shlibs_CXX" >&6; }
14583     test "$ld_shlibs_CXX" = no && can_build_shared=no
14584
14585     GCC_CXX="$GXX"
14586     LD_CXX="$LD"
14587
14588     ## CAVEAT EMPTOR:
14589     ## There is no encapsulation within the following macros, do not change
14590     ## the running order or otherwise move them around unless you know exactly
14591     ## what you are doing...
14592     # Dependencies to place before and after the object being linked:
14593 predep_objects_CXX=
14594 postdep_objects_CXX=
14595 predeps_CXX=
14596 postdeps_CXX=
14597 compiler_lib_search_path_CXX=
14598
14599 cat > conftest.$ac_ext <<_LT_EOF
14600 class Foo
14601 {
14602 public:
14603   Foo (void) { a = 0; }
14604 private:
14605   int a;
14606 };
14607 _LT_EOF
14608
14609
14610 _lt_libdeps_save_CFLAGS=$CFLAGS
14611 case "$CC $CFLAGS " in #(
14612 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14613 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14614 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14615 esac
14616
14617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14618   (eval $ac_compile) 2>&5
14619   ac_status=$?
14620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621   test $ac_status = 0; }; then
14622   # Parse the compiler output and extract the necessary
14623   # objects, libraries and library flags.
14624
14625   # Sentinel used to keep track of whether or not we are before
14626   # the conftest object file.
14627   pre_test_object_deps_done=no
14628
14629   for p in `eval "$output_verbose_link_cmd"`; do
14630     case ${prev}${p} in
14631
14632     -L* | -R* | -l*)
14633        # Some compilers place space between "-{L,R}" and the path.
14634        # Remove the space.
14635        if test $p = "-L" ||
14636           test $p = "-R"; then
14637          prev=$p
14638          continue
14639        fi
14640
14641        # Expand the sysroot to ease extracting the directories later.
14642        if test -z "$prev"; then
14643          case $p in
14644          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14645          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14646          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14647          esac
14648        fi
14649        case $p in
14650        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14651        esac
14652        if test "$pre_test_object_deps_done" = no; then
14653          case ${prev} in
14654          -L | -R)
14655            # Internal compiler library paths should come after those
14656            # provided the user.  The postdeps already come after the
14657            # user supplied libs so there is no need to process them.
14658            if test -z "$compiler_lib_search_path_CXX"; then
14659              compiler_lib_search_path_CXX="${prev}${p}"
14660            else
14661              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14662            fi
14663            ;;
14664          # The "-l" case would never come before the object being
14665          # linked, so don't bother handling this case.
14666          esac
14667        else
14668          if test -z "$postdeps_CXX"; then
14669            postdeps_CXX="${prev}${p}"
14670          else
14671            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14672          fi
14673        fi
14674        prev=
14675        ;;
14676
14677     *.lto.$objext) ;; # Ignore GCC LTO objects
14678     *.$objext)
14679        # This assumes that the test object file only shows up
14680        # once in the compiler output.
14681        if test "$p" = "conftest.$objext"; then
14682          pre_test_object_deps_done=yes
14683          continue
14684        fi
14685
14686        if test "$pre_test_object_deps_done" = no; then
14687          if test -z "$predep_objects_CXX"; then
14688            predep_objects_CXX="$p"
14689          else
14690            predep_objects_CXX="$predep_objects_CXX $p"
14691          fi
14692        else
14693          if test -z "$postdep_objects_CXX"; then
14694            postdep_objects_CXX="$p"
14695          else
14696            postdep_objects_CXX="$postdep_objects_CXX $p"
14697          fi
14698        fi
14699        ;;
14700
14701     *) ;; # Ignore the rest.
14702
14703     esac
14704   done
14705
14706   # Clean up.
14707   rm -f a.out a.exe
14708 else
14709   echo "libtool.m4: error: problem compiling CXX test program"
14710 fi
14711
14712 $RM -f confest.$objext
14713 CFLAGS=$_lt_libdeps_save_CFLAGS
14714
14715 # PORTME: override above test on systems where it is broken
14716 case $host_os in
14717 interix[3-9]*)
14718   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14719   # hack all around it, let's just trust "g++" to DTRT.
14720   predep_objects_CXX=
14721   postdep_objects_CXX=
14722   postdeps_CXX=
14723   ;;
14724
14725 linux*)
14726   case `$CC -V 2>&1 | sed 5q` in
14727   *Sun\ C*)
14728     # Sun C++ 5.9
14729
14730     # The more standards-conforming stlport4 library is
14731     # incompatible with the Cstd library. Avoid specifying
14732     # it if it's in CXXFLAGS. Ignore libCrun as
14733     # -library=stlport4 depends on it.
14734     case " $CXX $CXXFLAGS " in
14735     *" -library=stlport4 "*)
14736       solaris_use_stlport4=yes
14737       ;;
14738     esac
14739
14740     if test "$solaris_use_stlport4" != yes; then
14741       postdeps_CXX='-library=Cstd -library=Crun'
14742     fi
14743     ;;
14744   esac
14745   ;;
14746
14747 solaris*)
14748   case $cc_basename in
14749   CC* | sunCC*)
14750     # The more standards-conforming stlport4 library is
14751     # incompatible with the Cstd library. Avoid specifying
14752     # it if it's in CXXFLAGS. Ignore libCrun as
14753     # -library=stlport4 depends on it.
14754     case " $CXX $CXXFLAGS " in
14755     *" -library=stlport4 "*)
14756       solaris_use_stlport4=yes
14757       ;;
14758     esac
14759
14760     # Adding this requires a known-good setup of shared libraries for
14761     # Sun compiler versions before 5.6, else PIC objects from an old
14762     # archive will be linked into the output, leading to subtle bugs.
14763     if test "$solaris_use_stlport4" != yes; then
14764       postdeps_CXX='-library=Cstd -library=Crun'
14765     fi
14766     ;;
14767   esac
14768   ;;
14769 esac
14770
14771
14772 case " $postdeps_CXX " in
14773 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14774 esac
14775  compiler_lib_search_dirs_CXX=
14776 if test -n "${compiler_lib_search_path_CXX}"; then
14777  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14778 fi
14779
14780
14781
14782
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     lt_prog_compiler_wl_CXX=
14811 lt_prog_compiler_pic_CXX=
14812 lt_prog_compiler_static_CXX=
14813
14814
14815   # C++ specific cases for pic, static, wl, etc.
14816   if test "$GXX" = yes; then
14817     lt_prog_compiler_wl_CXX='-Wl,'
14818     lt_prog_compiler_static_CXX='-static'
14819
14820     case $host_os in
14821     aix*)
14822       # All AIX code is PIC.
14823       if test "$host_cpu" = ia64; then
14824         # AIX 5 now supports IA64 processor
14825         lt_prog_compiler_static_CXX='-Bstatic'
14826       fi
14827       ;;
14828
14829     amigaos*)
14830       case $host_cpu in
14831       powerpc)
14832             # see comment about AmigaOS4 .so support
14833             lt_prog_compiler_pic_CXX='-fPIC'
14834         ;;
14835       m68k)
14836             # FIXME: we need at least 68020 code to build shared libraries, but
14837             # adding the `-m68020' flag to GCC prevents building anything better,
14838             # like `-m68040'.
14839             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14840         ;;
14841       esac
14842       ;;
14843
14844     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14845       # PIC is the default for these OSes.
14846       ;;
14847     mingw* | cygwin* | os2* | pw32* | cegcc*)
14848       # This hack is so that the source file can tell whether it is being
14849       # built for inclusion in a dll (and should export symbols for example).
14850       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14851       # (--disable-auto-import) libraries
14852       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14853       ;;
14854     darwin* | rhapsody*)
14855       # PIC is the default on this platform
14856       # Common symbols not allowed in MH_DYLIB files
14857       lt_prog_compiler_pic_CXX='-fno-common'
14858       ;;
14859     *djgpp*)
14860       # DJGPP does not support shared libraries at all
14861       lt_prog_compiler_pic_CXX=
14862       ;;
14863     haiku*)
14864       # PIC is the default for Haiku.
14865       # The "-static" flag exists, but is broken.
14866       lt_prog_compiler_static_CXX=
14867       ;;
14868     interix[3-9]*)
14869       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14870       # Instead, we relocate shared libraries at runtime.
14871       ;;
14872     sysv4*MP*)
14873       if test -d /usr/nec; then
14874         lt_prog_compiler_pic_CXX=-Kconform_pic
14875       fi
14876       ;;
14877     hpux*)
14878       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14879       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14880       # sets the default TLS model and affects inlining.
14881       case $host_cpu in
14882       hppa*64*)
14883         ;;
14884       *)
14885         lt_prog_compiler_pic_CXX='-fPIC'
14886         ;;
14887       esac
14888       ;;
14889     *qnx* | *nto*)
14890       # QNX uses GNU C++, but need to define -shared option too, otherwise
14891       # it will coredump.
14892       lt_prog_compiler_pic_CXX='-fPIC -shared'
14893       ;;
14894     *)
14895       lt_prog_compiler_pic_CXX='-fPIC'
14896       ;;
14897     esac
14898   else
14899     case $host_os in
14900       aix[4-9]*)
14901         # All AIX code is PIC.
14902         if test "$host_cpu" = ia64; then
14903           # AIX 5 now supports IA64 processor
14904           lt_prog_compiler_static_CXX='-Bstatic'
14905         else
14906           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14907         fi
14908         ;;
14909       chorus*)
14910         case $cc_basename in
14911         cxch68*)
14912           # Green Hills C++ Compiler
14913           # _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"
14914           ;;
14915         esac
14916         ;;
14917       mingw* | cygwin* | os2* | pw32* | cegcc*)
14918         # This hack is so that the source file can tell whether it is being
14919         # built for inclusion in a dll (and should export symbols for example).
14920         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14921         ;;
14922       dgux*)
14923         case $cc_basename in
14924           ec++*)
14925             lt_prog_compiler_pic_CXX='-KPIC'
14926             ;;
14927           ghcx*)
14928             # Green Hills C++ Compiler
14929             lt_prog_compiler_pic_CXX='-pic'
14930             ;;
14931           *)
14932             ;;
14933         esac
14934         ;;
14935       freebsd* | dragonfly*)
14936         # FreeBSD uses GNU C++
14937         ;;
14938       hpux9* | hpux10* | hpux11*)
14939         case $cc_basename in
14940           CC*)
14941             lt_prog_compiler_wl_CXX='-Wl,'
14942             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14943             if test "$host_cpu" != ia64; then
14944               lt_prog_compiler_pic_CXX='+Z'
14945             fi
14946             ;;
14947           aCC*)
14948             lt_prog_compiler_wl_CXX='-Wl,'
14949             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14950             case $host_cpu in
14951             hppa*64*|ia64*)
14952               # +Z the default
14953               ;;
14954             *)
14955               lt_prog_compiler_pic_CXX='+Z'
14956               ;;
14957             esac
14958             ;;
14959           *)
14960             ;;
14961         esac
14962         ;;
14963       interix*)
14964         # This is c89, which is MS Visual C++ (no shared libs)
14965         # Anyone wants to do a port?
14966         ;;
14967       irix5* | irix6* | nonstopux*)
14968         case $cc_basename in
14969           CC*)
14970             lt_prog_compiler_wl_CXX='-Wl,'
14971             lt_prog_compiler_static_CXX='-non_shared'
14972             # CC pic flag -KPIC is the default.
14973             ;;
14974           *)
14975             ;;
14976         esac
14977         ;;
14978       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14979         case $cc_basename in
14980           KCC*)
14981             # KAI C++ Compiler
14982             lt_prog_compiler_wl_CXX='--backend -Wl,'
14983             lt_prog_compiler_pic_CXX='-fPIC'
14984             ;;
14985           ecpc* )
14986             # old Intel C++ for x86_64 which still supported -KPIC.
14987             lt_prog_compiler_wl_CXX='-Wl,'
14988             lt_prog_compiler_pic_CXX='-KPIC'
14989             lt_prog_compiler_static_CXX='-static'
14990             ;;
14991           icpc* )
14992             # Intel C++, used to be incompatible with GCC.
14993             # ICC 10 doesn't accept -KPIC any more.
14994             lt_prog_compiler_wl_CXX='-Wl,'
14995             lt_prog_compiler_pic_CXX='-fPIC'
14996             lt_prog_compiler_static_CXX='-static'
14997             ;;
14998           pgCC* | pgcpp*)
14999             # Portland Group C++ compiler
15000             lt_prog_compiler_wl_CXX='-Wl,'
15001             lt_prog_compiler_pic_CXX='-fpic'
15002             lt_prog_compiler_static_CXX='-Bstatic'
15003             ;;
15004           cxx*)
15005             # Compaq C++
15006             # Make sure the PIC flag is empty.  It appears that all Alpha
15007             # Linux and Compaq Tru64 Unix objects are PIC.
15008             lt_prog_compiler_pic_CXX=
15009             lt_prog_compiler_static_CXX='-non_shared'
15010             ;;
15011           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15012             # IBM XL 8.0, 9.0 on PPC and BlueGene
15013             lt_prog_compiler_wl_CXX='-Wl,'
15014             lt_prog_compiler_pic_CXX='-qpic'
15015             lt_prog_compiler_static_CXX='-qstaticlink'
15016             ;;
15017           *)
15018             case `$CC -V 2>&1 | sed 5q` in
15019             *Sun\ C*)
15020               # Sun C++ 5.9
15021               lt_prog_compiler_pic_CXX='-KPIC'
15022               lt_prog_compiler_static_CXX='-Bstatic'
15023               lt_prog_compiler_wl_CXX='-Qoption ld '
15024               ;;
15025             esac
15026             ;;
15027         esac
15028         ;;
15029       lynxos*)
15030         ;;
15031       m88k*)
15032         ;;
15033       mvs*)
15034         case $cc_basename in
15035           cxx*)
15036             lt_prog_compiler_pic_CXX='-W c,exportall'
15037             ;;
15038           *)
15039             ;;
15040         esac
15041         ;;
15042       netbsd* | netbsdelf*-gnu)
15043         ;;
15044       *qnx* | *nto*)
15045         # QNX uses GNU C++, but need to define -shared option too, otherwise
15046         # it will coredump.
15047         lt_prog_compiler_pic_CXX='-fPIC -shared'
15048         ;;
15049       osf3* | osf4* | osf5*)
15050         case $cc_basename in
15051           KCC*)
15052             lt_prog_compiler_wl_CXX='--backend -Wl,'
15053             ;;
15054           RCC*)
15055             # Rational C++ 2.4.1
15056             lt_prog_compiler_pic_CXX='-pic'
15057             ;;
15058           cxx*)
15059             # Digital/Compaq C++
15060             lt_prog_compiler_wl_CXX='-Wl,'
15061             # Make sure the PIC flag is empty.  It appears that all Alpha
15062             # Linux and Compaq Tru64 Unix objects are PIC.
15063             lt_prog_compiler_pic_CXX=
15064             lt_prog_compiler_static_CXX='-non_shared'
15065             ;;
15066           *)
15067             ;;
15068         esac
15069         ;;
15070       psos*)
15071         ;;
15072       solaris*)
15073         case $cc_basename in
15074           CC* | sunCC*)
15075             # Sun C++ 4.2, 5.x and Centerline C++
15076             lt_prog_compiler_pic_CXX='-KPIC'
15077             lt_prog_compiler_static_CXX='-Bstatic'
15078             lt_prog_compiler_wl_CXX='-Qoption ld '
15079             ;;
15080           gcx*)
15081             # Green Hills C++ Compiler
15082             lt_prog_compiler_pic_CXX='-PIC'
15083             ;;
15084           *)
15085             ;;
15086         esac
15087         ;;
15088       sunos4*)
15089         case $cc_basename in
15090           CC*)
15091             # Sun C++ 4.x
15092             lt_prog_compiler_pic_CXX='-pic'
15093             lt_prog_compiler_static_CXX='-Bstatic'
15094             ;;
15095           lcc*)
15096             # Lucid
15097             lt_prog_compiler_pic_CXX='-pic'
15098             ;;
15099           *)
15100             ;;
15101         esac
15102         ;;
15103       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15104         case $cc_basename in
15105           CC*)
15106             lt_prog_compiler_wl_CXX='-Wl,'
15107             lt_prog_compiler_pic_CXX='-KPIC'
15108             lt_prog_compiler_static_CXX='-Bstatic'
15109             ;;
15110         esac
15111         ;;
15112       tandem*)
15113         case $cc_basename in
15114           NCC*)
15115             # NonStop-UX NCC 3.20
15116             lt_prog_compiler_pic_CXX='-KPIC'
15117             ;;
15118           *)
15119             ;;
15120         esac
15121         ;;
15122       vxworks*)
15123         ;;
15124       *)
15125         lt_prog_compiler_can_build_shared_CXX=no
15126         ;;
15127     esac
15128   fi
15129
15130 case $host_os in
15131   # For platforms which do not support PIC, -DPIC is meaningless:
15132   *djgpp*)
15133     lt_prog_compiler_pic_CXX=
15134     ;;
15135   *)
15136     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15137     ;;
15138 esac
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15141 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15142 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15143   $as_echo_n "(cached) " >&6
15144 else
15145   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15146 fi
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15148 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15149 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15150
15151 #
15152 # Check to make sure the PIC flag actually works.
15153 #
15154 if test -n "$lt_prog_compiler_pic_CXX"; then
15155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15156 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15157 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15158   $as_echo_n "(cached) " >&6
15159 else
15160   lt_cv_prog_compiler_pic_works_CXX=no
15161    ac_outfile=conftest.$ac_objext
15162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15163    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15164    # Insert the option either (1) after the last *FLAGS variable, or
15165    # (2) before a word containing "conftest.", or (3) at the end.
15166    # Note that $ac_compile itself does not contain backslashes and begins
15167    # with a dollar sign (not a hyphen), so the echo should work correctly.
15168    # The option is referenced via a variable to avoid confusing sed.
15169    lt_compile=`echo "$ac_compile" | $SED \
15170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15172    -e 's:$: $lt_compiler_flag:'`
15173    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15174    (eval "$lt_compile" 2>conftest.err)
15175    ac_status=$?
15176    cat conftest.err >&5
15177    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178    if (exit $ac_status) && test -s "$ac_outfile"; then
15179      # The compiler can only warn and ignore the option if not recognized
15180      # So say no if there are warnings other than the usual output.
15181      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15182      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15183      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15184        lt_cv_prog_compiler_pic_works_CXX=yes
15185      fi
15186    fi
15187    $RM conftest*
15188
15189 fi
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15191 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15192
15193 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15194     case $lt_prog_compiler_pic_CXX in
15195      "" | " "*) ;;
15196      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15197      esac
15198 else
15199     lt_prog_compiler_pic_CXX=
15200      lt_prog_compiler_can_build_shared_CXX=no
15201 fi
15202
15203 fi
15204
15205
15206
15207
15208
15209 #
15210 # Check to make sure the static flag actually works.
15211 #
15212 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15214 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15215 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15216   $as_echo_n "(cached) " >&6
15217 else
15218   lt_cv_prog_compiler_static_works_CXX=no
15219    save_LDFLAGS="$LDFLAGS"
15220    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15221    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15222    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15223      # The linker can only warn and ignore the option if not recognized
15224      # So say no if there are warnings
15225      if test -s conftest.err; then
15226        # Append any errors to the config.log.
15227        cat conftest.err 1>&5
15228        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15229        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15230        if diff conftest.exp conftest.er2 >/dev/null; then
15231          lt_cv_prog_compiler_static_works_CXX=yes
15232        fi
15233      else
15234        lt_cv_prog_compiler_static_works_CXX=yes
15235      fi
15236    fi
15237    $RM -r conftest*
15238    LDFLAGS="$save_LDFLAGS"
15239
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15242 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15243
15244 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15245     :
15246 else
15247     lt_prog_compiler_static_CXX=
15248 fi
15249
15250
15251
15252
15253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15255 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15256   $as_echo_n "(cached) " >&6
15257 else
15258   lt_cv_prog_compiler_c_o_CXX=no
15259    $RM -r conftest 2>/dev/null
15260    mkdir conftest
15261    cd conftest
15262    mkdir out
15263    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15264
15265    lt_compiler_flag="-o out/conftest2.$ac_objext"
15266    # Insert the option either (1) after the last *FLAGS variable, or
15267    # (2) before a word containing "conftest.", or (3) at the end.
15268    # Note that $ac_compile itself does not contain backslashes and begins
15269    # with a dollar sign (not a hyphen), so the echo should work correctly.
15270    lt_compile=`echo "$ac_compile" | $SED \
15271    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15272    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15273    -e 's:$: $lt_compiler_flag:'`
15274    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15275    (eval "$lt_compile" 2>out/conftest.err)
15276    ac_status=$?
15277    cat out/conftest.err >&5
15278    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15280    then
15281      # The compiler can only warn and ignore the option if not recognized
15282      # So say no if there are warnings
15283      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15284      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15285      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15286        lt_cv_prog_compiler_c_o_CXX=yes
15287      fi
15288    fi
15289    chmod u+w . 2>&5
15290    $RM conftest*
15291    # SGI C++ compiler will create directory out/ii_files/ for
15292    # template instantiation
15293    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15294    $RM out/* && rmdir out
15295    cd ..
15296    $RM -r conftest
15297    $RM conftest*
15298
15299 fi
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15301 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15302
15303
15304
15305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15307 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15308   $as_echo_n "(cached) " >&6
15309 else
15310   lt_cv_prog_compiler_c_o_CXX=no
15311    $RM -r conftest 2>/dev/null
15312    mkdir conftest
15313    cd conftest
15314    mkdir out
15315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15316
15317    lt_compiler_flag="-o out/conftest2.$ac_objext"
15318    # Insert the option either (1) after the last *FLAGS variable, or
15319    # (2) before a word containing "conftest.", or (3) at the end.
15320    # Note that $ac_compile itself does not contain backslashes and begins
15321    # with a dollar sign (not a hyphen), so the echo should work correctly.
15322    lt_compile=`echo "$ac_compile" | $SED \
15323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15325    -e 's:$: $lt_compiler_flag:'`
15326    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15327    (eval "$lt_compile" 2>out/conftest.err)
15328    ac_status=$?
15329    cat out/conftest.err >&5
15330    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15332    then
15333      # The compiler can only warn and ignore the option if not recognized
15334      # So say no if there are warnings
15335      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15336      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15337      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15338        lt_cv_prog_compiler_c_o_CXX=yes
15339      fi
15340    fi
15341    chmod u+w . 2>&5
15342    $RM conftest*
15343    # SGI C++ compiler will create directory out/ii_files/ for
15344    # template instantiation
15345    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15346    $RM out/* && rmdir out
15347    cd ..
15348    $RM -r conftest
15349    $RM conftest*
15350
15351 fi
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15353 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15354
15355
15356
15357
15358 hard_links="nottested"
15359 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15360   # do not overwrite the value of need_locks provided by the user
15361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15362 $as_echo_n "checking if we can lock with hard links... " >&6; }
15363   hard_links=yes
15364   $RM conftest*
15365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15366   touch conftest.a
15367   ln conftest.a conftest.b 2>&5 || hard_links=no
15368   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15370 $as_echo "$hard_links" >&6; }
15371   if test "$hard_links" = no; then
15372     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15374     need_locks=warn
15375   fi
15376 else
15377   need_locks=no
15378 fi
15379
15380
15381
15382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15384
15385   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15386   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15387   case $host_os in
15388   aix[4-9]*)
15389     # If we're using GNU nm, then we don't want the "-C" option.
15390     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15391     # Also, AIX nm treats weak defined symbols like other global defined
15392     # symbols, whereas GNU nm marks them as "W".
15393     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15394       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'
15395     else
15396       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'
15397     fi
15398     ;;
15399   pw32*)
15400     export_symbols_cmds_CXX="$ltdll_cmds"
15401     ;;
15402   cygwin* | mingw* | cegcc*)
15403     case $cc_basename in
15404     cl*)
15405       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15406       ;;
15407     *)
15408       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'
15409       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15410       ;;
15411     esac
15412     ;;
15413   linux* | k*bsd*-gnu | gnu*)
15414     link_all_deplibs_CXX=no
15415     ;;
15416   *)
15417     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15418     ;;
15419   esac
15420
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15422 $as_echo "$ld_shlibs_CXX" >&6; }
15423 test "$ld_shlibs_CXX" = no && can_build_shared=no
15424
15425 with_gnu_ld_CXX=$with_gnu_ld
15426
15427
15428
15429
15430
15431
15432 #
15433 # Do we need to explicitly link libc?
15434 #
15435 case "x$archive_cmds_need_lc_CXX" in
15436 x|xyes)
15437   # Assume -lc should be added
15438   archive_cmds_need_lc_CXX=yes
15439
15440   if test "$enable_shared" = yes && test "$GCC" = yes; then
15441     case $archive_cmds_CXX in
15442     *'~'*)
15443       # FIXME: we may have to deal with multi-command sequences.
15444       ;;
15445     '$CC '*)
15446       # Test whether the compiler implicitly links with -lc since on some
15447       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15448       # to ld, don't add -lc before -lgcc.
15449       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15450 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15451 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15452   $as_echo_n "(cached) " >&6
15453 else
15454   $RM conftest*
15455         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15456
15457         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15458   (eval $ac_compile) 2>&5
15459   ac_status=$?
15460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15461   test $ac_status = 0; } 2>conftest.err; then
15462           soname=conftest
15463           lib=conftest
15464           libobjs=conftest.$ac_objext
15465           deplibs=
15466           wl=$lt_prog_compiler_wl_CXX
15467           pic_flag=$lt_prog_compiler_pic_CXX
15468           compiler_flags=-v
15469           linker_flags=-v
15470           verstring=
15471           output_objdir=.
15472           libname=conftest
15473           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15474           allow_undefined_flag_CXX=
15475           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15476   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15477   ac_status=$?
15478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15479   test $ac_status = 0; }
15480           then
15481             lt_cv_archive_cmds_need_lc_CXX=no
15482           else
15483             lt_cv_archive_cmds_need_lc_CXX=yes
15484           fi
15485           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15486         else
15487           cat conftest.err 1>&5
15488         fi
15489         $RM conftest*
15490
15491 fi
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15493 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15494       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15495       ;;
15496     esac
15497   fi
15498   ;;
15499 esac
15500
15501
15502
15503
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15564
15565 library_names_spec=
15566 libname_spec='lib$name'
15567 soname_spec=
15568 shrext_cmds=".so"
15569 postinstall_cmds=
15570 postuninstall_cmds=
15571 finish_cmds=
15572 finish_eval=
15573 shlibpath_var=
15574 shlibpath_overrides_runpath=unknown
15575 version_type=none
15576 dynamic_linker="$host_os ld.so"
15577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15578 need_lib_prefix=unknown
15579 hardcode_into_libs=no
15580
15581 # when you set need_version to no, make sure it does not cause -set_version
15582 # flags to be left without arguments
15583 need_version=unknown
15584
15585 case $host_os in
15586 aix3*)
15587   version_type=linux # correct to gnu/linux during the next big refactor
15588   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15589   shlibpath_var=LIBPATH
15590
15591   # AIX 3 has no versioning support, so we append a major version to the name.
15592   soname_spec='${libname}${release}${shared_ext}$major'
15593   ;;
15594
15595 aix[4-9]*)
15596   version_type=linux # correct to gnu/linux during the next big refactor
15597   need_lib_prefix=no
15598   need_version=no
15599   hardcode_into_libs=yes
15600   if test "$host_cpu" = ia64; then
15601     # AIX 5 supports IA64
15602     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15603     shlibpath_var=LD_LIBRARY_PATH
15604   else
15605     # With GCC up to 2.95.x, collect2 would create an import file
15606     # for dependence libraries.  The import file would start with
15607     # the line `#! .'.  This would cause the generated library to
15608     # depend on `.', always an invalid library.  This was fixed in
15609     # development snapshots of GCC prior to 3.0.
15610     case $host_os in
15611       aix4 | aix4.[01] | aix4.[01].*)
15612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15613            echo ' yes '
15614            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15615         :
15616       else
15617         can_build_shared=no
15618       fi
15619       ;;
15620     esac
15621     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15622     # soname into executable. Probably we can add versioning support to
15623     # collect2, so additional links can be useful in future.
15624     if test "$aix_use_runtimelinking" = yes; then
15625       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15626       # instead of lib<name>.a to let people know that these are not
15627       # typical AIX shared libraries.
15628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629     else
15630       # We preserve .a as extension for shared libraries through AIX4.2
15631       # and later when we are not doing run time linking.
15632       library_names_spec='${libname}${release}.a $libname.a'
15633       soname_spec='${libname}${release}${shared_ext}$major'
15634     fi
15635     shlibpath_var=LIBPATH
15636   fi
15637   ;;
15638
15639 amigaos*)
15640   case $host_cpu in
15641   powerpc)
15642     # Since July 2007 AmigaOS4 officially supports .so libraries.
15643     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645     ;;
15646   m68k)
15647     library_names_spec='$libname.ixlibrary $libname.a'
15648     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15649     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'
15650     ;;
15651   esac
15652   ;;
15653
15654 beos*)
15655   library_names_spec='${libname}${shared_ext}'
15656   dynamic_linker="$host_os ld.so"
15657   shlibpath_var=LIBRARY_PATH
15658   ;;
15659
15660 bsdi[45]*)
15661   version_type=linux # correct to gnu/linux during the next big refactor
15662   need_version=no
15663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664   soname_spec='${libname}${release}${shared_ext}$major'
15665   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15666   shlibpath_var=LD_LIBRARY_PATH
15667   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15668   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15669   # the default ld.so.conf also contains /usr/contrib/lib and
15670   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15671   # libtool to hard-code these into programs
15672   ;;
15673
15674 cygwin* | mingw* | pw32* | cegcc*)
15675   version_type=windows
15676   shrext_cmds=".dll"
15677   need_version=no
15678   need_lib_prefix=no
15679
15680   case $GCC,$cc_basename in
15681   yes,*)
15682     # gcc
15683     library_names_spec='$libname.dll.a'
15684     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15685     postinstall_cmds='base_file=`basename \${file}`~
15686       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15687       dldir=$destdir/`dirname \$dlpath`~
15688       test -d \$dldir || mkdir -p \$dldir~
15689       $install_prog $dir/$dlname \$dldir/$dlname~
15690       chmod a+x \$dldir/$dlname~
15691       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15692         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15693       fi'
15694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15695       dlpath=$dir/\$dldll~
15696        $RM \$dlpath'
15697     shlibpath_overrides_runpath=yes
15698
15699     case $host_os in
15700     cygwin*)
15701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703
15704       ;;
15705     mingw* | cegcc*)
15706       # MinGW DLLs use traditional 'lib' prefix
15707       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708       ;;
15709     pw32*)
15710       # pw32 DLLs use 'pw' prefix rather than 'lib'
15711       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712       ;;
15713     esac
15714     dynamic_linker='Win32 ld.exe'
15715     ;;
15716
15717   *,cl*)
15718     # Native MSVC
15719     libname_spec='$name'
15720     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721     library_names_spec='${libname}.dll.lib'
15722
15723     case $build_os in
15724     mingw*)
15725       sys_lib_search_path_spec=
15726       lt_save_ifs=$IFS
15727       IFS=';'
15728       for lt_path in $LIB
15729       do
15730         IFS=$lt_save_ifs
15731         # Let DOS variable expansion print the short 8.3 style file name.
15732         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15733         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15734       done
15735       IFS=$lt_save_ifs
15736       # Convert to MSYS style.
15737       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15738       ;;
15739     cygwin*)
15740       # Convert to unix form, then to dos form, then back to unix form
15741       # but this time dos style (no spaces!) so that the unix form looks
15742       # like /cygdrive/c/PROGRA~1:/cygdr...
15743       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15744       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15745       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15746       ;;
15747     *)
15748       sys_lib_search_path_spec="$LIB"
15749       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15750         # It is most probably a Windows format PATH.
15751         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15752       else
15753         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15754       fi
15755       # FIXME: find the short name or the path components, as spaces are
15756       # common. (e.g. "Program Files" -> "PROGRA~1")
15757       ;;
15758     esac
15759
15760     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15761     postinstall_cmds='base_file=`basename \${file}`~
15762       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15763       dldir=$destdir/`dirname \$dlpath`~
15764       test -d \$dldir || mkdir -p \$dldir~
15765       $install_prog $dir/$dlname \$dldir/$dlname'
15766     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15767       dlpath=$dir/\$dldll~
15768        $RM \$dlpath'
15769     shlibpath_overrides_runpath=yes
15770     dynamic_linker='Win32 link.exe'
15771     ;;
15772
15773   *)
15774     # Assume MSVC wrapper
15775     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15776     dynamic_linker='Win32 ld.exe'
15777     ;;
15778   esac
15779   # FIXME: first we should search . and the directory the executable is in
15780   shlibpath_var=PATH
15781   ;;
15782
15783 darwin* | rhapsody*)
15784   dynamic_linker="$host_os dyld"
15785   version_type=darwin
15786   need_lib_prefix=no
15787   need_version=no
15788   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15789   soname_spec='${libname}${release}${major}$shared_ext'
15790   shlibpath_overrides_runpath=yes
15791   shlibpath_var=DYLD_LIBRARY_PATH
15792   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15793
15794   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15795   ;;
15796
15797 dgux*)
15798   version_type=linux # correct to gnu/linux during the next big refactor
15799   need_lib_prefix=no
15800   need_version=no
15801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15802   soname_spec='${libname}${release}${shared_ext}$major'
15803   shlibpath_var=LD_LIBRARY_PATH
15804   ;;
15805
15806 freebsd* | dragonfly*)
15807   # DragonFly does not have aout.  When/if they implement a new
15808   # versioning mechanism, adjust this.
15809   if test -x /usr/bin/objformat; then
15810     objformat=`/usr/bin/objformat`
15811   else
15812     case $host_os in
15813     freebsd[23].*) objformat=aout ;;
15814     *) objformat=elf ;;
15815     esac
15816   fi
15817   version_type=freebsd-$objformat
15818   case $version_type in
15819     freebsd-elf*)
15820       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15821       need_version=no
15822       need_lib_prefix=no
15823       ;;
15824     freebsd-*)
15825       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15826       need_version=yes
15827       ;;
15828   esac
15829   shlibpath_var=LD_LIBRARY_PATH
15830   case $host_os in
15831   freebsd2.*)
15832     shlibpath_overrides_runpath=yes
15833     ;;
15834   freebsd3.[01]* | freebsdelf3.[01]*)
15835     shlibpath_overrides_runpath=yes
15836     hardcode_into_libs=yes
15837     ;;
15838   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15839   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15840     shlibpath_overrides_runpath=no
15841     hardcode_into_libs=yes
15842     ;;
15843   *) # from 4.6 on, and DragonFly
15844     shlibpath_overrides_runpath=yes
15845     hardcode_into_libs=yes
15846     ;;
15847   esac
15848   ;;
15849
15850 haiku*)
15851   version_type=linux # correct to gnu/linux during the next big refactor
15852   need_lib_prefix=no
15853   need_version=no
15854   dynamic_linker="$host_os runtime_loader"
15855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15856   soname_spec='${libname}${release}${shared_ext}$major'
15857   shlibpath_var=LIBRARY_PATH
15858   shlibpath_overrides_runpath=yes
15859   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15860   hardcode_into_libs=yes
15861   ;;
15862
15863 hpux9* | hpux10* | hpux11*)
15864   # Give a soname corresponding to the major version so that dld.sl refuses to
15865   # link against other versions.
15866   version_type=sunos
15867   need_lib_prefix=no
15868   need_version=no
15869   case $host_cpu in
15870   ia64*)
15871     shrext_cmds='.so'
15872     hardcode_into_libs=yes
15873     dynamic_linker="$host_os dld.so"
15874     shlibpath_var=LD_LIBRARY_PATH
15875     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877     soname_spec='${libname}${release}${shared_ext}$major'
15878     if test "X$HPUX_IA64_MODE" = X32; then
15879       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15880     else
15881       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15882     fi
15883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15884     ;;
15885   hppa*64*)
15886     shrext_cmds='.sl'
15887     hardcode_into_libs=yes
15888     dynamic_linker="$host_os dld.sl"
15889     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15890     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892     soname_spec='${libname}${release}${shared_ext}$major'
15893     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15894     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15895     ;;
15896   *)
15897     shrext_cmds='.sl'
15898     dynamic_linker="$host_os dld.sl"
15899     shlibpath_var=SHLIB_PATH
15900     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902     soname_spec='${libname}${release}${shared_ext}$major'
15903     ;;
15904   esac
15905   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15906   postinstall_cmds='chmod 555 $lib'
15907   # or fails outright, so override atomically:
15908   install_override_mode=555
15909   ;;
15910
15911 interix[3-9]*)
15912   version_type=linux # correct to gnu/linux during the next big refactor
15913   need_lib_prefix=no
15914   need_version=no
15915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15916   soname_spec='${libname}${release}${shared_ext}$major'
15917   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15918   shlibpath_var=LD_LIBRARY_PATH
15919   shlibpath_overrides_runpath=no
15920   hardcode_into_libs=yes
15921   ;;
15922
15923 irix5* | irix6* | nonstopux*)
15924   case $host_os in
15925     nonstopux*) version_type=nonstopux ;;
15926     *)
15927         if test "$lt_cv_prog_gnu_ld" = yes; then
15928                 version_type=linux # correct to gnu/linux during the next big refactor
15929         else
15930                 version_type=irix
15931         fi ;;
15932   esac
15933   need_lib_prefix=no
15934   need_version=no
15935   soname_spec='${libname}${release}${shared_ext}$major'
15936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15937   case $host_os in
15938   irix5* | nonstopux*)
15939     libsuff= shlibsuff=
15940     ;;
15941   *)
15942     case $LD in # libtool.m4 will add one of these switches to LD
15943     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15944       libsuff= shlibsuff= libmagic=32-bit;;
15945     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15946       libsuff=32 shlibsuff=N32 libmagic=N32;;
15947     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15948       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15949     *) libsuff= shlibsuff= libmagic=never-match;;
15950     esac
15951     ;;
15952   esac
15953   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15954   shlibpath_overrides_runpath=no
15955   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15956   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15957   hardcode_into_libs=yes
15958   ;;
15959
15960 # No shared lib support for Linux oldld, aout, or coff.
15961 linux*oldld* | linux*aout* | linux*coff*)
15962   dynamic_linker=no
15963   ;;
15964
15965 # This must be glibc/ELF.
15966 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15967   version_type=linux # correct to gnu/linux during the next big refactor
15968   need_lib_prefix=no
15969   need_version=no
15970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971   soname_spec='${libname}${release}${shared_ext}$major'
15972   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15973   shlibpath_var=LD_LIBRARY_PATH
15974   shlibpath_overrides_runpath=no
15975
15976   # Some binutils ld are patched to set DT_RUNPATH
15977   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15978   $as_echo_n "(cached) " >&6
15979 else
15980   lt_cv_shlibpath_overrides_runpath=no
15981     save_LDFLAGS=$LDFLAGS
15982     save_libdir=$libdir
15983     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15984          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h.  */
15987
15988 int
15989 main ()
15990 {
15991
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 if ac_fn_cxx_try_link "$LINENO"; then :
15997   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15998   lt_cv_shlibpath_overrides_runpath=yes
15999 fi
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext \
16002     conftest$ac_exeext conftest.$ac_ext
16003     LDFLAGS=$save_LDFLAGS
16004     libdir=$save_libdir
16005
16006 fi
16007
16008   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16009
16010   # This implies no fast_install, which is unacceptable.
16011   # Some rework will be needed to allow for fast_install
16012   # before this can be enabled.
16013   hardcode_into_libs=yes
16014
16015   # Append ld.so.conf contents to the search path
16016   if test -f /etc/ld.so.conf; then
16017     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' ' '`
16018     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16019   fi
16020
16021   # We used to test for /lib/ld.so.1 and disable shared libraries on
16022   # powerpc, because MkLinux only supported shared libraries with the
16023   # GNU dynamic linker.  Since this was broken with cross compilers,
16024   # most powerpc-linux boxes support dynamic linking these days and
16025   # people can always --disable-shared, the test was removed, and we
16026   # assume the GNU/Linux dynamic linker is in use.
16027   dynamic_linker='GNU/Linux ld.so'
16028   ;;
16029
16030 netbsdelf*-gnu)
16031   version_type=linux
16032   need_lib_prefix=no
16033   need_version=no
16034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035   soname_spec='${libname}${release}${shared_ext}$major'
16036   shlibpath_var=LD_LIBRARY_PATH
16037   shlibpath_overrides_runpath=no
16038   hardcode_into_libs=yes
16039   dynamic_linker='NetBSD ld.elf_so'
16040   ;;
16041
16042 netbsd*)
16043   version_type=sunos
16044   need_lib_prefix=no
16045   need_version=no
16046   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16048     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16049     dynamic_linker='NetBSD (a.out) ld.so'
16050   else
16051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16052     soname_spec='${libname}${release}${shared_ext}$major'
16053     dynamic_linker='NetBSD ld.elf_so'
16054   fi
16055   shlibpath_var=LD_LIBRARY_PATH
16056   shlibpath_overrides_runpath=yes
16057   hardcode_into_libs=yes
16058   ;;
16059
16060 newsos6)
16061   version_type=linux # correct to gnu/linux during the next big refactor
16062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063   shlibpath_var=LD_LIBRARY_PATH
16064   shlibpath_overrides_runpath=yes
16065   ;;
16066
16067 *nto* | *qnx*)
16068   version_type=qnx
16069   need_lib_prefix=no
16070   need_version=no
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072   soname_spec='${libname}${release}${shared_ext}$major'
16073   shlibpath_var=LD_LIBRARY_PATH
16074   shlibpath_overrides_runpath=no
16075   hardcode_into_libs=yes
16076   dynamic_linker='ldqnx.so'
16077   ;;
16078
16079 openbsd*)
16080   version_type=sunos
16081   sys_lib_dlsearch_path_spec="/usr/lib"
16082   need_lib_prefix=no
16083   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16084   case $host_os in
16085     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16086     *)                          need_version=no  ;;
16087   esac
16088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16089   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16090   shlibpath_var=LD_LIBRARY_PATH
16091   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16092     case $host_os in
16093       openbsd2.[89] | openbsd2.[89].*)
16094         shlibpath_overrides_runpath=no
16095         ;;
16096       *)
16097         shlibpath_overrides_runpath=yes
16098         ;;
16099       esac
16100   else
16101     shlibpath_overrides_runpath=yes
16102   fi
16103   ;;
16104
16105 os2*)
16106   libname_spec='$name'
16107   shrext_cmds=".dll"
16108   need_lib_prefix=no
16109   library_names_spec='$libname${shared_ext} $libname.a'
16110   dynamic_linker='OS/2 ld.exe'
16111   shlibpath_var=LIBPATH
16112   ;;
16113
16114 osf3* | osf4* | osf5*)
16115   version_type=osf
16116   need_lib_prefix=no
16117   need_version=no
16118   soname_spec='${libname}${release}${shared_ext}$major'
16119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120   shlibpath_var=LD_LIBRARY_PATH
16121   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16122   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16123   ;;
16124
16125 rdos*)
16126   dynamic_linker=no
16127   ;;
16128
16129 solaris*)
16130   version_type=linux # correct to gnu/linux during the next big refactor
16131   need_lib_prefix=no
16132   need_version=no
16133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134   soname_spec='${libname}${release}${shared_ext}$major'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   shlibpath_overrides_runpath=yes
16137   hardcode_into_libs=yes
16138   # ldd complains unless libraries are executable
16139   postinstall_cmds='chmod +x $lib'
16140   ;;
16141
16142 sunos4*)
16143   version_type=sunos
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   shlibpath_overrides_runpath=yes
16148   if test "$with_gnu_ld" = yes; then
16149     need_lib_prefix=no
16150   fi
16151   need_version=yes
16152   ;;
16153
16154 sysv4 | sysv4.3*)
16155   version_type=linux # correct to gnu/linux during the next big refactor
16156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157   soname_spec='${libname}${release}${shared_ext}$major'
16158   shlibpath_var=LD_LIBRARY_PATH
16159   case $host_vendor in
16160     sni)
16161       shlibpath_overrides_runpath=no
16162       need_lib_prefix=no
16163       runpath_var=LD_RUN_PATH
16164       ;;
16165     siemens)
16166       need_lib_prefix=no
16167       ;;
16168     motorola)
16169       need_lib_prefix=no
16170       need_version=no
16171       shlibpath_overrides_runpath=no
16172       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16173       ;;
16174   esac
16175   ;;
16176
16177 sysv4*MP*)
16178   if test -d /usr/nec ;then
16179     version_type=linux # correct to gnu/linux during the next big refactor
16180     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16181     soname_spec='$libname${shared_ext}.$major'
16182     shlibpath_var=LD_LIBRARY_PATH
16183   fi
16184   ;;
16185
16186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16187   version_type=freebsd-elf
16188   need_lib_prefix=no
16189   need_version=no
16190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16191   soname_spec='${libname}${release}${shared_ext}$major'
16192   shlibpath_var=LD_LIBRARY_PATH
16193   shlibpath_overrides_runpath=yes
16194   hardcode_into_libs=yes
16195   if test "$with_gnu_ld" = yes; then
16196     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16197   else
16198     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16199     case $host_os in
16200       sco3.2v5*)
16201         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16202         ;;
16203     esac
16204   fi
16205   sys_lib_dlsearch_path_spec='/usr/lib'
16206   ;;
16207
16208 tpf*)
16209   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16210   version_type=linux # correct to gnu/linux during the next big refactor
16211   need_lib_prefix=no
16212   need_version=no
16213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214   shlibpath_var=LD_LIBRARY_PATH
16215   shlibpath_overrides_runpath=no
16216   hardcode_into_libs=yes
16217   ;;
16218
16219 uts4*)
16220   version_type=linux # correct to gnu/linux during the next big refactor
16221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222   soname_spec='${libname}${release}${shared_ext}$major'
16223   shlibpath_var=LD_LIBRARY_PATH
16224   ;;
16225
16226 *)
16227   dynamic_linker=no
16228   ;;
16229 esac
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16231 $as_echo "$dynamic_linker" >&6; }
16232 test "$dynamic_linker" = no && can_build_shared=no
16233
16234 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16235 if test "$GCC" = yes; then
16236   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16237 fi
16238
16239 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16240   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16241 fi
16242 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16243   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16244 fi
16245
16246
16247
16248
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16284 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16285 hardcode_action_CXX=
16286 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16287    test -n "$runpath_var_CXX" ||
16288    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16289
16290   # We can hardcode non-existent directories.
16291   if test "$hardcode_direct_CXX" != no &&
16292      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16293      # have to relink, otherwise we might link with an installed library
16294      # when we should be linking with a yet-to-be-installed one
16295      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16296      test "$hardcode_minus_L_CXX" != no; then
16297     # Linking always hardcodes the temporary library directory.
16298     hardcode_action_CXX=relink
16299   else
16300     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16301     hardcode_action_CXX=immediate
16302   fi
16303 else
16304   # We cannot hardcode anything, or else we can only hardcode existing
16305   # directories.
16306   hardcode_action_CXX=unsupported
16307 fi
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16309 $as_echo "$hardcode_action_CXX" >&6; }
16310
16311 if test "$hardcode_action_CXX" = relink ||
16312    test "$inherit_rpath_CXX" = yes; then
16313   # Fast installation is not supported
16314   enable_fast_install=no
16315 elif test "$shlibpath_overrides_runpath" = yes ||
16316      test "$enable_shared" = no; then
16317   # Fast installation is not necessary
16318   enable_fast_install=needless
16319 fi
16320
16321
16322
16323
16324
16325
16326
16327   fi # test -n "$compiler"
16328
16329   CC=$lt_save_CC
16330   CFLAGS=$lt_save_CFLAGS
16331   LDCXX=$LD
16332   LD=$lt_save_LD
16333   GCC=$lt_save_GCC
16334   with_gnu_ld=$lt_save_with_gnu_ld
16335   lt_cv_path_LDCXX=$lt_cv_path_LD
16336   lt_cv_path_LD=$lt_save_path_LD
16337   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16338   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16339 fi # test "$_lt_caught_CXX_error" != yes
16340
16341 ac_ext=c
16342 ac_cpp='$CPP $CPPFLAGS'
16343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361         ac_config_commands="$ac_config_commands libtool"
16362
16363
16364
16365
16366 # Only expand once:
16367
16368
16369
16370 LT_DLLOADERS=
16371
16372
16373 ac_ext=c
16374 ac_cpp='$CPP $CPPFLAGS'
16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16378
16379
16380 LIBADD_DLOPEN=
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16382 $as_echo_n "checking for library containing dlopen... " >&6; }
16383 if ${ac_cv_search_dlopen+:} false; then :
16384   $as_echo_n "(cached) " >&6
16385 else
16386   ac_func_search_save_LIBS=$LIBS
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h.  */
16389
16390 /* Override any GCC internal prototype to avoid an error.
16391    Use char because int might match the return type of a GCC
16392    builtin and then its argument prototype would still apply.  */
16393 #ifdef __cplusplus
16394 extern "C"
16395 #endif
16396 char dlopen ();
16397 int
16398 main ()
16399 {
16400 return dlopen ();
16401   ;
16402   return 0;
16403 }
16404 _ACEOF
16405 for ac_lib in '' dl; do
16406   if test -z "$ac_lib"; then
16407     ac_res="none required"
16408   else
16409     ac_res=-l$ac_lib
16410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16411   fi
16412   if ac_fn_c_try_link "$LINENO"; then :
16413   ac_cv_search_dlopen=$ac_res
16414 fi
16415 rm -f core conftest.err conftest.$ac_objext \
16416     conftest$ac_exeext
16417   if ${ac_cv_search_dlopen+:} false; then :
16418   break
16419 fi
16420 done
16421 if ${ac_cv_search_dlopen+:} false; then :
16422
16423 else
16424   ac_cv_search_dlopen=no
16425 fi
16426 rm conftest.$ac_ext
16427 LIBS=$ac_func_search_save_LIBS
16428 fi
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16430 $as_echo "$ac_cv_search_dlopen" >&6; }
16431 ac_res=$ac_cv_search_dlopen
16432 if test "$ac_res" != no; then :
16433   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16434
16435 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16436
16437         if test "$ac_cv_search_dlopen" != "none required" ; then
16438           LIBADD_DLOPEN="-ldl"
16439         fi
16440         libltdl_cv_lib_dl_dlopen="yes"
16441         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16442 else
16443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h.  */
16445 #if HAVE_DLFCN_H
16446 #  include <dlfcn.h>
16447 #endif
16448
16449 int
16450 main ()
16451 {
16452 dlopen(0, 0);
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 if ac_fn_c_try_link "$LINENO"; then :
16458
16459 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16460
16461             libltdl_cv_func_dlopen="yes"
16462             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16463 else
16464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16465 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16466 if ${ac_cv_lib_svld_dlopen+:} false; then :
16467   $as_echo_n "(cached) " >&6
16468 else
16469   ac_check_lib_save_LIBS=$LIBS
16470 LIBS="-lsvld  $LIBS"
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h.  */
16473
16474 /* Override any GCC internal prototype to avoid an error.
16475    Use char because int might match the return type of a GCC
16476    builtin and then its argument prototype would still apply.  */
16477 #ifdef __cplusplus
16478 extern "C"
16479 #endif
16480 char dlopen ();
16481 int
16482 main ()
16483 {
16484 return dlopen ();
16485   ;
16486   return 0;
16487 }
16488 _ACEOF
16489 if ac_fn_c_try_link "$LINENO"; then :
16490   ac_cv_lib_svld_dlopen=yes
16491 else
16492   ac_cv_lib_svld_dlopen=no
16493 fi
16494 rm -f core conftest.err conftest.$ac_objext \
16495     conftest$ac_exeext conftest.$ac_ext
16496 LIBS=$ac_check_lib_save_LIBS
16497 fi
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16499 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16500 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16501
16502 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16503
16504                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16505                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16506 fi
16507
16508 fi
16509 rm -f core conftest.err conftest.$ac_objext \
16510     conftest$ac_exeext conftest.$ac_ext
16511 fi
16512
16513 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16514 then
16515   lt_save_LIBS="$LIBS"
16516   LIBS="$LIBS $LIBADD_DLOPEN"
16517   for ac_func in dlerror
16518 do :
16519   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16520 if test "x$ac_cv_func_dlerror" = xyes; then :
16521   cat >>confdefs.h <<_ACEOF
16522 #define HAVE_DLERROR 1
16523 _ACEOF
16524
16525 fi
16526 done
16527
16528   LIBS="$lt_save_LIBS"
16529 fi
16530
16531
16532 LIBADD_SHL_LOAD=
16533 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16534 if test "x$ac_cv_func_shl_load" = xyes; then :
16535
16536 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16537
16538         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16539 else
16540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16541 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16542 if ${ac_cv_lib_dld_shl_load+:} false; then :
16543   $as_echo_n "(cached) " >&6
16544 else
16545   ac_check_lib_save_LIBS=$LIBS
16546 LIBS="-ldld  $LIBS"
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h.  */
16549
16550 /* Override any GCC internal prototype to avoid an error.
16551    Use char because int might match the return type of a GCC
16552    builtin and then its argument prototype would still apply.  */
16553 #ifdef __cplusplus
16554 extern "C"
16555 #endif
16556 char shl_load ();
16557 int
16558 main ()
16559 {
16560 return shl_load ();
16561   ;
16562   return 0;
16563 }
16564 _ACEOF
16565 if ac_fn_c_try_link "$LINENO"; then :
16566   ac_cv_lib_dld_shl_load=yes
16567 else
16568   ac_cv_lib_dld_shl_load=no
16569 fi
16570 rm -f core conftest.err conftest.$ac_objext \
16571     conftest$ac_exeext conftest.$ac_ext
16572 LIBS=$ac_check_lib_save_LIBS
16573 fi
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16575 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16576 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16577
16578 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16579
16580             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16581             LIBADD_SHL_LOAD="-ldld"
16582 fi
16583
16584 fi
16585
16586
16587
16588 case $host_os in
16589 darwin[1567].*)
16590 # We only want this for pre-Mac OS X 10.4.
16591   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16592 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16593
16594 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16595
16596         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16597 fi
16598
16599   ;;
16600 beos*)
16601   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16602   ;;
16603 cygwin* | mingw* | os2* | pw32*)
16604   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16605 "
16606 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16607   ac_have_decl=1
16608 else
16609   ac_have_decl=0
16610 fi
16611
16612 cat >>confdefs.h <<_ACEOF
16613 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16614 _ACEOF
16615
16616   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16617   ;;
16618 esac
16619
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16621 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16622 if ${ac_cv_lib_dld_dld_link+:} false; then :
16623   $as_echo_n "(cached) " >&6
16624 else
16625   ac_check_lib_save_LIBS=$LIBS
16626 LIBS="-ldld  $LIBS"
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h.  */
16629
16630 /* Override any GCC internal prototype to avoid an error.
16631    Use char because int might match the return type of a GCC
16632    builtin and then its argument prototype would still apply.  */
16633 #ifdef __cplusplus
16634 extern "C"
16635 #endif
16636 char dld_link ();
16637 int
16638 main ()
16639 {
16640 return dld_link ();
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 if ac_fn_c_try_link "$LINENO"; then :
16646   ac_cv_lib_dld_dld_link=yes
16647 else
16648   ac_cv_lib_dld_dld_link=no
16649 fi
16650 rm -f core conftest.err conftest.$ac_objext \
16651     conftest$ac_exeext conftest.$ac_ext
16652 LIBS=$ac_check_lib_save_LIBS
16653 fi
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16655 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16656 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16657
16658 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16659
16660                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16661 fi
16662
16663
16664
16665
16666 LT_DLPREOPEN=
16667 if test -n "$LT_DLLOADERS"
16668 then
16669   for lt_loader in $LT_DLLOADERS; do
16670     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16671   done
16672
16673 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16674
16675 fi
16676
16677
16678 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16679
16680
16681 ac_ext=c
16682 ac_cpp='$CPP $CPPFLAGS'
16683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16686
16687
16688
16689
16690 if test x$use_libtool != xno; then
16691    DEFAULT_OBJECT_TYPE=".lo"
16692    DEFAULT_ARCHIVE_TYPE=".la"
16693    DEFAULT_SHARED_OBJECT_TYPE=".la"
16694    LIBTOOL="\$(LIBTOOL)"
16695    LIBTOOL_INSTALL_TARGET="libtool-install"
16696    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16697    LIBTOOL_CLEAN_TARGET="libtool-clean"
16698    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16699    FD_PLUGIN_DIR="src/plugins/fd"
16700    have_plugins=yes
16701 else
16702    DEFAULT_OBJECT_TYPE=".o"
16703    DEFAULT_ARCHIVE_TYPE=".a"
16704    DEFAULT_SHARED_OBJECT_TYPE=".so"
16705    LIBTOOL="# \$(LIBTOOL)"
16706    LIBTOOL_INSTALL_TARGET=""
16707    LIBTOOL_UNINSTALL_TARGET=""
16708    LIBTOOL_CLEAN_TARGET=""
16709    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16710    FD_PLUGIN_DIR=""
16711    have_plugins=no
16712 fi
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724 # Check whether --enable-includes was given.
16725 if test "${enable_includes+set}" = set; then :
16726   enableval=$enable_includes;
16727        if test x$enableval = xyes; then
16728           install_includes=yes
16729        fi
16730
16731
16732 fi
16733
16734
16735
16736 if test x$use_libtool != xno -a x$install_includes = xyes; then
16737    INCLUDE_INSTALL_TARGET="install-includes"
16738    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16739 else
16740    INCLUDE_INSTALL_TARGET=""
16741    INCLUDE_UNINSTALL_TARGET=""
16742 fi
16743
16744
16745
16746
16747
16748 case $host_os in
16749   *cygwin* ) CYGWIN=yes;;
16750          * ) CYGWIN=no;;
16751 esac
16752
16753 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16754 then
16755
16756
16757 if $TRUEPRG; then
16758   HAVE_SUN_OS_TRUE=
16759   HAVE_SUN_OS_FALSE='#'
16760 else
16761   HAVE_SUN_OS_TRUE='#'
16762   HAVE_SUN_OS_FALSE=
16763 fi
16764         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16765
16766 else
16767
16768
16769 if $FALSEPRG; then
16770   HAVE_SUN_OS_TRUE=
16771   HAVE_SUN_OS_FALSE='#'
16772 else
16773   HAVE_SUN_OS_TRUE='#'
16774   HAVE_SUN_OS_FALSE=
16775 fi
16776 fi
16777
16778 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16779 then
16780
16781
16782 if $TRUEPRG; then
16783   HAVE_HURD_OS_TRUE=
16784   HAVE_HURD_OS_FALSE='#'
16785 else
16786   HAVE_HURD_OS_TRUE='#'
16787   HAVE_HURD_OS_FALSE=
16788 fi
16789         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16790
16791 else
16792
16793
16794 if $FALSEPRG; then
16795   HAVE_HURD_OS_TRUE=
16796   HAVE_HURD_OS_FALSE='#'
16797 else
16798   HAVE_HURD_OS_TRUE='#'
16799   HAVE_HURD_OS_FALSE=
16800 fi
16801 fi
16802
16803 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16804 then
16805
16806
16807 if $TRUEPRG; then
16808   HAVE_OSF1_OS_TRUE=
16809   HAVE_OSF1_OS_FALSE='#'
16810 else
16811   HAVE_OSF1_OS_TRUE='#'
16812   HAVE_OSF1_OS_FALSE=
16813 fi
16814         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16815
16816 else
16817
16818
16819 if $FALSEPRG; then
16820   HAVE_OSF1_OS_TRUE=
16821   HAVE_OSF1_OS_FALSE='#'
16822 else
16823   HAVE_OSF1_OS_TRUE='#'
16824   HAVE_OSF1_OS_FALSE=
16825 fi
16826 fi
16827
16828 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16829 then
16830
16831
16832 if $TRUEPRG; then
16833   HAVE_AIX_OS_TRUE=
16834   HAVE_AIX_OS_FALSE='#'
16835 else
16836   HAVE_AIX_OS_TRUE='#'
16837   HAVE_AIX_OS_FALSE=
16838 fi
16839         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16840
16841 else
16842
16843
16844 if $FALSEPRG; then
16845   HAVE_AIX_OS_TRUE=
16846   HAVE_AIX_OS_FALSE='#'
16847 else
16848   HAVE_AIX_OS_TRUE='#'
16849   HAVE_AIX_OS_FALSE=
16850 fi
16851 fi
16852
16853 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16854 then
16855
16856
16857 if $TRUEPRG; then
16858   HAVE_HPUX_OS_TRUE=
16859   HAVE_HPUX_OS_FALSE='#'
16860 else
16861   HAVE_HPUX_OS_TRUE='#'
16862   HAVE_HPUX_OS_FALSE=
16863 fi
16864         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16865
16866 else
16867
16868
16869 if $FALSEPRG; then
16870   HAVE_HPUX_OS_TRUE=
16871   HAVE_HPUX_OS_FALSE='#'
16872 else
16873   HAVE_HPUX_OS_TRUE='#'
16874   HAVE_HPUX_OS_FALSE=
16875 fi
16876 fi
16877
16878 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16879 then
16880
16881
16882 if $TRUEPRG; then
16883   HAVE_LINUX_OS_TRUE=
16884   HAVE_LINUX_OS_FALSE='#'
16885 else
16886   HAVE_LINUX_OS_TRUE='#'
16887   HAVE_LINUX_OS_FALSE=
16888 fi
16889         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16890
16891 else
16892
16893
16894 if $FALSEPRG; then
16895   HAVE_LINUX_OS_TRUE=
16896   HAVE_LINUX_OS_FALSE='#'
16897 else
16898   HAVE_LINUX_OS_TRUE='#'
16899   HAVE_LINUX_OS_FALSE=
16900 fi
16901 fi
16902
16903 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16904 then
16905
16906
16907 if $TRUEPRG; then
16908   HAVE_FREEBSD_OS_TRUE=
16909   HAVE_FREEBSD_OS_FALSE='#'
16910 else
16911   HAVE_FREEBSD_OS_TRUE='#'
16912   HAVE_FREEBSD_OS_FALSE=
16913 fi
16914         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16915
16916 else
16917
16918
16919 if $FALSEPRG; then
16920   HAVE_FREEBSD_OS_TRUE=
16921   HAVE_FREEBSD_OS_FALSE='#'
16922 else
16923   HAVE_FREEBSD_OS_TRUE='#'
16924   HAVE_FREEBSD_OS_FALSE=
16925 fi
16926 fi
16927
16928 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16929 then
16930
16931
16932 if $TRUEPRG; then
16933   HAVE_NETBSD_OS_TRUE=
16934   HAVE_NETBSD_OS_FALSE='#'
16935 else
16936   HAVE_NETBSD_OS_TRUE='#'
16937   HAVE_NETBSD_OS_FALSE=
16938 fi
16939         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16940
16941 else
16942
16943
16944 if $FALSEPRG; then
16945   HAVE_NETBSD_OS_TRUE=
16946   HAVE_NETBSD_OS_FALSE='#'
16947 else
16948   HAVE_NETBSD_OS_TRUE='#'
16949   HAVE_NETBSD_OS_FALSE=
16950 fi
16951 fi
16952
16953 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16954 then
16955
16956
16957 if $TRUEPRG; then
16958   HAVE_OPENBSD_OS_TRUE=
16959   HAVE_OPENBSD_OS_FALSE='#'
16960 else
16961   HAVE_OPENBSD_OS_TRUE='#'
16962   HAVE_OPENBSD_OS_FALSE=
16963 fi
16964         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16965
16966 else
16967
16968
16969 if $FALSEPRG; then
16970   HAVE_OPENBSD_OS_TRUE=
16971   HAVE_OPENBSD_OS_FALSE='#'
16972 else
16973   HAVE_OPENBSD_OS_TRUE='#'
16974   HAVE_OPENBSD_OS_FALSE=
16975 fi
16976 fi
16977
16978 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16979 then
16980
16981
16982 if $TRUEPRG; then
16983   HAVE_BSDI_OS_TRUE=
16984   HAVE_BSDI_OS_FALSE='#'
16985 else
16986   HAVE_BSDI_OS_TRUE='#'
16987   HAVE_BSDI_OS_FALSE=
16988 fi
16989         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16990
16991 else
16992
16993
16994 if $FALSEPRG; then
16995   HAVE_BSDI_OS_TRUE=
16996   HAVE_BSDI_OS_FALSE='#'
16997 else
16998   HAVE_BSDI_OS_TRUE='#'
16999   HAVE_BSDI_OS_FALSE=
17000 fi
17001 fi
17002
17003 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17004 then
17005
17006
17007 if $TRUEPRG; then
17008   HAVE_SGI_OS_TRUE=
17009   HAVE_SGI_OS_FALSE='#'
17010 else
17011   HAVE_SGI_OS_TRUE='#'
17012   HAVE_SGI_OS_FALSE=
17013 fi
17014         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17015
17016 else
17017
17018
17019 if $FALSEPRG; then
17020   HAVE_SGI_OS_TRUE=
17021   HAVE_SGI_OS_FALSE='#'
17022 else
17023   HAVE_SGI_OS_TRUE='#'
17024   HAVE_SGI_OS_FALSE=
17025 fi
17026 fi
17027
17028 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17029 then
17030
17031
17032 if $TRUEPRG; then
17033   HAVE_IRIX_OS_TRUE=
17034   HAVE_IRIX_OS_FALSE='#'
17035 else
17036   HAVE_IRIX_OS_TRUE='#'
17037   HAVE_IRIX_OS_FALSE=
17038 fi
17039         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17040
17041 else
17042
17043
17044 if $FALSEPRG; then
17045   HAVE_IRIX_OS_TRUE=
17046   HAVE_IRIX_OS_FALSE='#'
17047 else
17048   HAVE_IRIX_OS_TRUE='#'
17049   HAVE_IRIX_OS_FALSE=
17050 fi
17051 fi
17052
17053 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17054 then
17055
17056
17057 if $TRUEPRG; then
17058   HAVE_DARWIN_OS_TRUE=
17059   HAVE_DARWIN_OS_FALSE='#'
17060 else
17061   HAVE_DARWIN_OS_TRUE='#'
17062   HAVE_DARWIN_OS_FALSE=
17063 fi
17064     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17065
17066 else
17067
17068
17069 if $FALSEPRG; then
17070   HAVE_DARWIN_OS_TRUE=
17071   HAVE_DARWIN_OS_FALSE='#'
17072 else
17073   HAVE_DARWIN_OS_TRUE='#'
17074   HAVE_DARWIN_OS_FALSE=
17075 fi
17076 fi
17077
17078
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17080 $as_echo_n "checking for Operating System Distribution... " >&6; }
17081 if test "x$DISTNAME" != "x"
17082 then
17083         echo "distname set to $DISTNAME"
17084 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17085 then
17086         DISTNAME=alpha
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17088 then
17089         DISTNAME=aix
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17091 then
17092         DISTNAME=hpux
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17094 then
17095         DISTNAME=solaris
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17097 then
17098         DISTNAME=hurd
17099 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17100 then
17101         DISTNAME=freebsd
17102 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17103 then
17104         DISTNAME=netbsd
17105 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17106 then
17107         DISTNAME=openbsd
17108 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17109 then
17110         DISTNAME=irix
17111 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17112 then
17113         DISTNAME=bsdi
17114 elif test -f /etc/SuSE-release
17115 then
17116         DISTNAME=suse
17117 elif test -d /etc/SuSEconfig
17118 then
17119         DISTNAME=suse5
17120 elif test -f /etc/mandrake-release
17121 then
17122         DISTNAME=mandrake
17123 elif test -f /etc/whitebox-release
17124 then
17125        DISTNAME=redhat
17126 elif test -f /etc/redhat-release
17127 then
17128         DISTNAME=redhat
17129 elif test -f /etc/gentoo-release
17130 then
17131         DISTNAME=gentoo
17132 elif test -f /etc/debian_version
17133 then
17134         DISTNAME=debian
17135 elif test -f /etc/slackware-version
17136 then
17137         DISTNAME=slackware
17138 elif test x$host_vendor = xapple
17139 then
17140     DISTNAME=osx
17141 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17142 then
17143     DISTNAME=darwin
17144 elif test -f /etc/engarde-version
17145 then
17146         DISTNAME=engarde
17147 elif test -f /etc/arch-release
17148 then
17149         DISTNAME=archlinux
17150 elif test "$CYGWIN" = yes
17151 then
17152         DISTNAME=cygwin
17153         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17154
17155 else
17156         DISTNAME=unknown
17157 fi
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17159 $as_echo "done" >&6; }
17160
17161
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17163 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17164 set x ${MAKE-make}
17165 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17166 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17167   $as_echo_n "(cached) " >&6
17168 else
17169   cat >conftest.make <<\_ACEOF
17170 SHELL = /bin/sh
17171 all:
17172         @echo '@@@%%%=$(MAKE)=@@@%%%'
17173 _ACEOF
17174 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17175 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17176   *@@@%%%=?*=@@@%%%*)
17177     eval ac_cv_prog_make_${ac_make}_set=yes;;
17178   *)
17179     eval ac_cv_prog_make_${ac_make}_set=no;;
17180 esac
17181 rm -f conftest.make
17182 fi
17183 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17185 $as_echo "yes" >&6; }
17186   SET_MAKE=
17187 else
17188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17190   SET_MAKE="MAKE=${MAKE-make}"
17191 fi
17192
17193
17194
17195         MKINSTALLDIRS=
17196   if test -n "$ac_aux_dir"; then
17197     case "$ac_aux_dir" in
17198       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17199       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17200     esac
17201   fi
17202   if test -z "$MKINSTALLDIRS"; then
17203     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17204   fi
17205
17206
17207
17208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17209 $as_echo_n "checking whether NLS is requested... " >&6; }
17210     # Check whether --enable-nls was given.
17211 if test "${enable_nls+set}" = set; then :
17212   enableval=$enable_nls; USE_NLS=$enableval
17213 else
17214   USE_NLS=yes
17215 fi
17216
17217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17218 $as_echo "$USE_NLS" >&6; }
17219
17220
17221
17222
17223
17224
17225 # Prepare PATH_SEPARATOR.
17226 # The user is always right.
17227 if test "${PATH_SEPARATOR+set}" != set; then
17228   echo "#! /bin/sh" >conf$$.sh
17229   echo  "exit 0"   >>conf$$.sh
17230   chmod +x conf$$.sh
17231   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17232     PATH_SEPARATOR=';'
17233   else
17234     PATH_SEPARATOR=:
17235   fi
17236   rm -f conf$$.sh
17237 fi
17238
17239 # Find out how to test for executable files. Don't use a zero-byte file,
17240 # as systems may use methods other than mode bits to determine executability.
17241 cat >conf$$.file <<_ASEOF
17242 #! /bin/sh
17243 exit 0
17244 _ASEOF
17245 chmod +x conf$$.file
17246 if test -x conf$$.file >/dev/null 2>&1; then
17247   ac_executable_p="test -x"
17248 else
17249   ac_executable_p="test -f"
17250 fi
17251 rm -f conf$$.file
17252
17253 # Extract the first word of "msgfmt", so it can be a program name with args.
17254 set dummy msgfmt; ac_word=$2
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17256 $as_echo_n "checking for $ac_word... " >&6; }
17257 if ${ac_cv_path_MSGFMT+:} false; then :
17258   $as_echo_n "(cached) " >&6
17259 else
17260   case "$MSGFMT" in
17261   [\\/]* | ?:[\\/]*)
17262     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17263     ;;
17264   *)
17265     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17266     for ac_dir in $PATH; do
17267       IFS="$ac_save_IFS"
17268       test -z "$ac_dir" && ac_dir=.
17269       for ac_exec_ext in '' $ac_executable_extensions; do
17270         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17271           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17272           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17273      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17274             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17275             break 2
17276           fi
17277         fi
17278       done
17279     done
17280     IFS="$ac_save_IFS"
17281   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17282     ;;
17283 esac
17284 fi
17285 MSGFMT="$ac_cv_path_MSGFMT"
17286 if test "$MSGFMT" != ":"; then
17287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17288 $as_echo "$MSGFMT" >&6; }
17289 else
17290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17291 $as_echo "no" >&6; }
17292 fi
17293
17294   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17295 set dummy gmsgfmt; ac_word=$2
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17297 $as_echo_n "checking for $ac_word... " >&6; }
17298 if ${ac_cv_path_GMSGFMT+:} false; then :
17299   $as_echo_n "(cached) " >&6
17300 else
17301   case $GMSGFMT in
17302   [\\/]* | ?:[\\/]*)
17303   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17304   ;;
17305   *)
17306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17307 for as_dir in $PATH
17308 do
17309   IFS=$as_save_IFS
17310   test -z "$as_dir" && as_dir=.
17311     for ac_exec_ext in '' $ac_executable_extensions; do
17312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17313     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17315     break 2
17316   fi
17317 done
17318   done
17319 IFS=$as_save_IFS
17320
17321   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17322   ;;
17323 esac
17324 fi
17325 GMSGFMT=$ac_cv_path_GMSGFMT
17326 if test -n "$GMSGFMT"; then
17327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17328 $as_echo "$GMSGFMT" >&6; }
17329 else
17330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17331 $as_echo "no" >&6; }
17332 fi
17333
17334
17335
17336
17337 # Prepare PATH_SEPARATOR.
17338 # The user is always right.
17339 if test "${PATH_SEPARATOR+set}" != set; then
17340   echo "#! /bin/sh" >conf$$.sh
17341   echo  "exit 0"   >>conf$$.sh
17342   chmod +x conf$$.sh
17343   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17344     PATH_SEPARATOR=';'
17345   else
17346     PATH_SEPARATOR=:
17347   fi
17348   rm -f conf$$.sh
17349 fi
17350
17351 # Find out how to test for executable files. Don't use a zero-byte file,
17352 # as systems may use methods other than mode bits to determine executability.
17353 cat >conf$$.file <<_ASEOF
17354 #! /bin/sh
17355 exit 0
17356 _ASEOF
17357 chmod +x conf$$.file
17358 if test -x conf$$.file >/dev/null 2>&1; then
17359   ac_executable_p="test -x"
17360 else
17361   ac_executable_p="test -f"
17362 fi
17363 rm -f conf$$.file
17364
17365 # Extract the first word of "xgettext", so it can be a program name with args.
17366 set dummy xgettext; ac_word=$2
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17368 $as_echo_n "checking for $ac_word... " >&6; }
17369 if ${ac_cv_path_XGETTEXT+:} false; then :
17370   $as_echo_n "(cached) " >&6
17371 else
17372   case "$XGETTEXT" in
17373   [\\/]* | ?:[\\/]*)
17374     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17375     ;;
17376   *)
17377     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17378     for ac_dir in $PATH; do
17379       IFS="$ac_save_IFS"
17380       test -z "$ac_dir" && ac_dir=.
17381       for ac_exec_ext in '' $ac_executable_extensions; do
17382         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17383           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17384           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17385      (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
17386             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17387             break 2
17388           fi
17389         fi
17390       done
17391     done
17392     IFS="$ac_save_IFS"
17393   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17394     ;;
17395 esac
17396 fi
17397 XGETTEXT="$ac_cv_path_XGETTEXT"
17398 if test "$XGETTEXT" != ":"; then
17399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17400 $as_echo "$XGETTEXT" >&6; }
17401 else
17402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17404 fi
17405
17406     rm -f messages.po
17407
17408
17409 # Prepare PATH_SEPARATOR.
17410 # The user is always right.
17411 if test "${PATH_SEPARATOR+set}" != set; then
17412   echo "#! /bin/sh" >conf$$.sh
17413   echo  "exit 0"   >>conf$$.sh
17414   chmod +x conf$$.sh
17415   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17416     PATH_SEPARATOR=';'
17417   else
17418     PATH_SEPARATOR=:
17419   fi
17420   rm -f conf$$.sh
17421 fi
17422
17423 # Find out how to test for executable files. Don't use a zero-byte file,
17424 # as systems may use methods other than mode bits to determine executability.
17425 cat >conf$$.file <<_ASEOF
17426 #! /bin/sh
17427 exit 0
17428 _ASEOF
17429 chmod +x conf$$.file
17430 if test -x conf$$.file >/dev/null 2>&1; then
17431   ac_executable_p="test -x"
17432 else
17433   ac_executable_p="test -f"
17434 fi
17435 rm -f conf$$.file
17436
17437 # Extract the first word of "msgmerge", so it can be a program name with args.
17438 set dummy msgmerge; ac_word=$2
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17440 $as_echo_n "checking for $ac_word... " >&6; }
17441 if ${ac_cv_path_MSGMERGE+:} false; then :
17442   $as_echo_n "(cached) " >&6
17443 else
17444   case "$MSGMERGE" in
17445   [\\/]* | ?:[\\/]*)
17446     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17447     ;;
17448   *)
17449     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17450     for ac_dir in $PATH; do
17451       IFS="$ac_save_IFS"
17452       test -z "$ac_dir" && ac_dir=.
17453       for ac_exec_ext in '' $ac_executable_extensions; do
17454         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17455           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17456           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17457             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17458             break 2
17459           fi
17460         fi
17461       done
17462     done
17463     IFS="$ac_save_IFS"
17464   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17465     ;;
17466 esac
17467 fi
17468 MSGMERGE="$ac_cv_path_MSGMERGE"
17469 if test "$MSGMERGE" != ":"; then
17470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17471 $as_echo "$MSGMERGE" >&6; }
17472 else
17473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 $as_echo "no" >&6; }
17475 fi
17476
17477
17478       if test "$GMSGFMT" != ":"; then
17479             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17480        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17481       : ;
17482     else
17483       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17484       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17485 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17486       GMSGFMT=":"
17487     fi
17488   fi
17489
17490       if test "$XGETTEXT" != ":"; then
17491             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17492        (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
17493       : ;
17494     else
17495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17496 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17497       XGETTEXT=":"
17498     fi
17499         rm -f messages.po
17500   fi
17501
17502   ac_config_commands="$ac_config_commands default-1"
17503
17504
17505
17506       if test "X$prefix" = "XNONE"; then
17507     acl_final_prefix="$ac_default_prefix"
17508   else
17509     acl_final_prefix="$prefix"
17510   fi
17511   if test "X$exec_prefix" = "XNONE"; then
17512     acl_final_exec_prefix='${prefix}'
17513   else
17514     acl_final_exec_prefix="$exec_prefix"
17515   fi
17516   acl_save_prefix="$prefix"
17517   prefix="$acl_final_prefix"
17518   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17519   prefix="$acl_save_prefix"
17520
17521
17522 # Check whether --with-gnu-ld was given.
17523 if test "${with_gnu_ld+set}" = set; then :
17524   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17525 else
17526   with_gnu_ld=no
17527 fi
17528
17529 # Prepare PATH_SEPARATOR.
17530 # The user is always right.
17531 if test "${PATH_SEPARATOR+set}" != set; then
17532   echo "#! /bin/sh" >conf$$.sh
17533   echo  "exit 0"   >>conf$$.sh
17534   chmod +x conf$$.sh
17535   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17536     PATH_SEPARATOR=';'
17537   else
17538     PATH_SEPARATOR=:
17539   fi
17540   rm -f conf$$.sh
17541 fi
17542 ac_prog=ld
17543 if test "$GCC" = yes; then
17544   # Check if gcc -print-prog-name=ld gives a path.
17545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17546 $as_echo_n "checking for ld used by GCC... " >&6; }
17547   case $host in
17548   *-*-mingw*)
17549     # gcc leaves a trailing carriage return which upsets mingw
17550     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17551   *)
17552     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17553   esac
17554   case $ac_prog in
17555     # Accept absolute paths.
17556     [\\/]* | [A-Za-z]:[\\/]*)
17557       re_direlt='/[^/][^/]*/\.\./'
17558       # Canonicalize the path of ld
17559       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17560       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17561         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17562       done
17563       test -z "$LD" && LD="$ac_prog"
17564       ;;
17565   "")
17566     # If it fails, then pretend we aren't using GCC.
17567     ac_prog=ld
17568     ;;
17569   *)
17570     # If it is relative, then search for the first ld in PATH.
17571     with_gnu_ld=unknown
17572     ;;
17573   esac
17574 elif test "$with_gnu_ld" = yes; then
17575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17576 $as_echo_n "checking for GNU ld... " >&6; }
17577 else
17578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17579 $as_echo_n "checking for non-GNU ld... " >&6; }
17580 fi
17581 if ${acl_cv_path_LD+:} false; then :
17582   $as_echo_n "(cached) " >&6
17583 else
17584   if test -z "$LD"; then
17585   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17586   for ac_dir in $PATH; do
17587     test -z "$ac_dir" && ac_dir=.
17588     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17589       acl_cv_path_LD="$ac_dir/$ac_prog"
17590       # Check to see if the program is GNU ld.  I'd rather use --version,
17591       # but apparently some GNU ld's only accept -v.
17592       # Break only if it was the GNU/non-GNU ld that we prefer.
17593       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17594       *GNU* | *'with BFD'*)
17595         test "$with_gnu_ld" != no && break ;;
17596       *)
17597         test "$with_gnu_ld" != yes && break ;;
17598       esac
17599     fi
17600   done
17601   IFS="$ac_save_ifs"
17602 else
17603   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17604 fi
17605 fi
17606
17607 LD="$acl_cv_path_LD"
17608 if test -n "$LD"; then
17609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17610 $as_echo "$LD" >&6; }
17611 else
17612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17613 $as_echo "no" >&6; }
17614 fi
17615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17617 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17618 if ${acl_cv_prog_gnu_ld+:} false; then :
17619   $as_echo_n "(cached) " >&6
17620 else
17621   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17622 case `$LD -v 2>&1 </dev/null` in
17623 *GNU* | *'with BFD'*)
17624   acl_cv_prog_gnu_ld=yes ;;
17625 *)
17626   acl_cv_prog_gnu_ld=no ;;
17627 esac
17628 fi
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17630 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17631 with_gnu_ld=$acl_cv_prog_gnu_ld
17632
17633
17634
17635
17636                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17637 $as_echo_n "checking for shared library run path origin... " >&6; }
17638 if ${acl_cv_rpath+:} false; then :
17639   $as_echo_n "(cached) " >&6
17640 else
17641
17642     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17643     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17644     . ./conftest.sh
17645     rm -f ./conftest.sh
17646     acl_cv_rpath=done
17647
17648 fi
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17650 $as_echo "$acl_cv_rpath" >&6; }
17651   wl="$acl_cv_wl"
17652   libext="$acl_cv_libext"
17653   shlibext="$acl_cv_shlibext"
17654   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17655   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17656   hardcode_direct="$acl_cv_hardcode_direct"
17657   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17658     # Check whether --enable-rpath was given.
17659 if test "${enable_rpath+set}" = set; then :
17660   enableval=$enable_rpath; :
17661 else
17662   enable_rpath=yes
17663 fi
17664
17665
17666
17667
17668
17669
17670
17671
17672     use_additional=yes
17673
17674   acl_save_prefix="$prefix"
17675   prefix="$acl_final_prefix"
17676   acl_save_exec_prefix="$exec_prefix"
17677   exec_prefix="$acl_final_exec_prefix"
17678
17679     eval additional_includedir=\"$includedir\"
17680     eval additional_libdir=\"$libdir\"
17681
17682   exec_prefix="$acl_save_exec_prefix"
17683   prefix="$acl_save_prefix"
17684
17685
17686 # Check whether --with-libiconv-prefix was given.
17687 if test "${with_libiconv_prefix+set}" = set; then :
17688   withval=$with_libiconv_prefix;
17689     if test "X$withval" = "Xno"; then
17690       use_additional=no
17691     else
17692       if test "X$withval" = "X"; then
17693
17694   acl_save_prefix="$prefix"
17695   prefix="$acl_final_prefix"
17696   acl_save_exec_prefix="$exec_prefix"
17697   exec_prefix="$acl_final_exec_prefix"
17698
17699           eval additional_includedir=\"$includedir\"
17700           eval additional_libdir=\"$libdir\"
17701
17702   exec_prefix="$acl_save_exec_prefix"
17703   prefix="$acl_save_prefix"
17704
17705       else
17706         additional_includedir="$withval/include"
17707         additional_libdir="$withval/lib"
17708       fi
17709     fi
17710
17711 fi
17712
17713       LIBICONV=
17714   LTLIBICONV=
17715   INCICONV=
17716   rpathdirs=
17717   ltrpathdirs=
17718   names_already_handled=
17719   names_next_round='iconv '
17720   while test -n "$names_next_round"; do
17721     names_this_round="$names_next_round"
17722     names_next_round=
17723     for name in $names_this_round; do
17724       already_handled=
17725       for n in $names_already_handled; do
17726         if test "$n" = "$name"; then
17727           already_handled=yes
17728           break
17729         fi
17730       done
17731       if test -z "$already_handled"; then
17732         names_already_handled="$names_already_handled $name"
17733                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17734         eval value=\"\$HAVE_LIB$uppername\"
17735         if test -n "$value"; then
17736           if test "$value" = yes; then
17737             eval value=\"\$LIB$uppername\"
17738             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17739             eval value=\"\$LTLIB$uppername\"
17740             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17741           else
17742                                     :
17743           fi
17744         else
17745                               found_dir=
17746           found_la=
17747           found_so=
17748           found_a=
17749           if test $use_additional = yes; then
17750             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17751               found_dir="$additional_libdir"
17752               found_so="$additional_libdir/lib$name.$shlibext"
17753               if test -f "$additional_libdir/lib$name.la"; then
17754                 found_la="$additional_libdir/lib$name.la"
17755               fi
17756             else
17757               if test -f "$additional_libdir/lib$name.$libext"; then
17758                 found_dir="$additional_libdir"
17759                 found_a="$additional_libdir/lib$name.$libext"
17760                 if test -f "$additional_libdir/lib$name.la"; then
17761                   found_la="$additional_libdir/lib$name.la"
17762                 fi
17763               fi
17764             fi
17765           fi
17766           if test "X$found_dir" = "X"; then
17767             for x in $LDFLAGS $LTLIBICONV; do
17768
17769   acl_save_prefix="$prefix"
17770   prefix="$acl_final_prefix"
17771   acl_save_exec_prefix="$exec_prefix"
17772   exec_prefix="$acl_final_exec_prefix"
17773   eval x=\"$x\"
17774   exec_prefix="$acl_save_exec_prefix"
17775   prefix="$acl_save_prefix"
17776
17777               case "$x" in
17778                 -L*)
17779                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17780                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17781                     found_dir="$dir"
17782                     found_so="$dir/lib$name.$shlibext"
17783                     if test -f "$dir/lib$name.la"; then
17784                       found_la="$dir/lib$name.la"
17785                     fi
17786                   else
17787                     if test -f "$dir/lib$name.$libext"; then
17788                       found_dir="$dir"
17789                       found_a="$dir/lib$name.$libext"
17790                       if test -f "$dir/lib$name.la"; then
17791                         found_la="$dir/lib$name.la"
17792                       fi
17793                     fi
17794                   fi
17795                   ;;
17796               esac
17797               if test "X$found_dir" != "X"; then
17798                 break
17799               fi
17800             done
17801           fi
17802           if test "X$found_dir" != "X"; then
17803                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17804             if test "X$found_so" != "X"; then
17805                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17806                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17807               else
17808                                                                                 haveit=
17809                 for x in $ltrpathdirs; do
17810                   if test "X$x" = "X$found_dir"; then
17811                     haveit=yes
17812                     break
17813                   fi
17814                 done
17815                 if test -z "$haveit"; then
17816                   ltrpathdirs="$ltrpathdirs $found_dir"
17817                 fi
17818                                 if test "$hardcode_direct" = yes; then
17819                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17820                 else
17821                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17822                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17823                                                             haveit=
17824                     for x in $rpathdirs; do
17825                       if test "X$x" = "X$found_dir"; then
17826                         haveit=yes
17827                         break
17828                       fi
17829                     done
17830                     if test -z "$haveit"; then
17831                       rpathdirs="$rpathdirs $found_dir"
17832                     fi
17833                   else
17834                                                                                 haveit=
17835                     for x in $LDFLAGS $LIBICONV; do
17836
17837   acl_save_prefix="$prefix"
17838   prefix="$acl_final_prefix"
17839   acl_save_exec_prefix="$exec_prefix"
17840   exec_prefix="$acl_final_exec_prefix"
17841   eval x=\"$x\"
17842   exec_prefix="$acl_save_exec_prefix"
17843   prefix="$acl_save_prefix"
17844
17845                       if test "X$x" = "X-L$found_dir"; then
17846                         haveit=yes
17847                         break
17848                       fi
17849                     done
17850                     if test -z "$haveit"; then
17851                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17852                     fi
17853                     if test "$hardcode_minus_L" != no; then
17854                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17855                     else
17856                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17857                     fi
17858                   fi
17859                 fi
17860               fi
17861             else
17862               if test "X$found_a" != "X"; then
17863                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17864               else
17865                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17866               fi
17867             fi
17868                         additional_includedir=
17869             case "$found_dir" in
17870               */lib | */lib/)
17871                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17872                 additional_includedir="$basedir/include"
17873                 ;;
17874             esac
17875             if test "X$additional_includedir" != "X"; then
17876                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17877                 haveit=
17878                 if test "X$additional_includedir" = "X/usr/local/include"; then
17879                   if test -n "$GCC"; then
17880                     case $host_os in
17881                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17882                     esac
17883                   fi
17884                 fi
17885                 if test -z "$haveit"; then
17886                   for x in $CPPFLAGS $INCICONV; do
17887
17888   acl_save_prefix="$prefix"
17889   prefix="$acl_final_prefix"
17890   acl_save_exec_prefix="$exec_prefix"
17891   exec_prefix="$acl_final_exec_prefix"
17892   eval x=\"$x\"
17893   exec_prefix="$acl_save_exec_prefix"
17894   prefix="$acl_save_prefix"
17895
17896                     if test "X$x" = "X-I$additional_includedir"; then
17897                       haveit=yes
17898                       break
17899                     fi
17900                   done
17901                   if test -z "$haveit"; then
17902                     if test -d "$additional_includedir"; then
17903                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17904                     fi
17905                   fi
17906                 fi
17907               fi
17908             fi
17909                         if test -n "$found_la"; then
17910                                                         save_libdir="$libdir"
17911               case "$found_la" in
17912                 */* | *\\*) . "$found_la" ;;
17913                 *) . "./$found_la" ;;
17914               esac
17915               libdir="$save_libdir"
17916                             for dep in $dependency_libs; do
17917                 case "$dep" in
17918                   -L*)
17919                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17920                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17921                       haveit=
17922                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17923                         if test -n "$GCC"; then
17924                           case $host_os in
17925                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17926                           esac
17927                         fi
17928                       fi
17929                       if test -z "$haveit"; then
17930                         haveit=
17931                         for x in $LDFLAGS $LIBICONV; do
17932
17933   acl_save_prefix="$prefix"
17934   prefix="$acl_final_prefix"
17935   acl_save_exec_prefix="$exec_prefix"
17936   exec_prefix="$acl_final_exec_prefix"
17937   eval x=\"$x\"
17938   exec_prefix="$acl_save_exec_prefix"
17939   prefix="$acl_save_prefix"
17940
17941                           if test "X$x" = "X-L$additional_libdir"; then
17942                             haveit=yes
17943                             break
17944                           fi
17945                         done
17946                         if test -z "$haveit"; then
17947                           if test -d "$additional_libdir"; then
17948                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17949                           fi
17950                         fi
17951                         haveit=
17952                         for x in $LDFLAGS $LTLIBICONV; do
17953
17954   acl_save_prefix="$prefix"
17955   prefix="$acl_final_prefix"
17956   acl_save_exec_prefix="$exec_prefix"
17957   exec_prefix="$acl_final_exec_prefix"
17958   eval x=\"$x\"
17959   exec_prefix="$acl_save_exec_prefix"
17960   prefix="$acl_save_prefix"
17961
17962                           if test "X$x" = "X-L$additional_libdir"; then
17963                             haveit=yes
17964                             break
17965                           fi
17966                         done
17967                         if test -z "$haveit"; then
17968                           if test -d "$additional_libdir"; then
17969                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17970                           fi
17971                         fi
17972                       fi
17973                     fi
17974                     ;;
17975                   -R*)
17976                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17977                     if test "$enable_rpath" != no; then
17978                                                                   haveit=
17979                       for x in $rpathdirs; do
17980                         if test "X$x" = "X$dir"; then
17981                           haveit=yes
17982                           break
17983                         fi
17984                       done
17985                       if test -z "$haveit"; then
17986                         rpathdirs="$rpathdirs $dir"
17987                       fi
17988                                                                   haveit=
17989                       for x in $ltrpathdirs; do
17990                         if test "X$x" = "X$dir"; then
17991                           haveit=yes
17992                           break
17993                         fi
17994                       done
17995                       if test -z "$haveit"; then
17996                         ltrpathdirs="$ltrpathdirs $dir"
17997                       fi
17998                     fi
17999                     ;;
18000                   -l*)
18001                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18002                     ;;
18003                   *.la)
18004                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18005                     ;;
18006                   *)
18007                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18008                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18009                     ;;
18010                 esac
18011               done
18012             fi
18013           else
18014                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18015             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18016           fi
18017         fi
18018       fi
18019     done
18020   done
18021   if test "X$rpathdirs" != "X"; then
18022     if test -n "$hardcode_libdir_separator"; then
18023                         alldirs=
18024       for found_dir in $rpathdirs; do
18025         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18026       done
18027             acl_save_libdir="$libdir"
18028       libdir="$alldirs"
18029       eval flag=\"$hardcode_libdir_flag_spec\"
18030       libdir="$acl_save_libdir"
18031       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18032     else
18033             for found_dir in $rpathdirs; do
18034         acl_save_libdir="$libdir"
18035         libdir="$found_dir"
18036         eval flag=\"$hardcode_libdir_flag_spec\"
18037         libdir="$acl_save_libdir"
18038         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18039       done
18040     fi
18041   fi
18042   if test "X$ltrpathdirs" != "X"; then
18043             for found_dir in $ltrpathdirs; do
18044       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18045     done
18046   fi
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18066 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18067 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18068   $as_echo_n "(cached) " >&6
18069 else
18070   gt_save_CPPFLAGS="$CPPFLAGS"
18071      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18072      gt_save_LIBS="$LIBS"
18073      LIBS="$LIBS -framework CoreFoundation"
18074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h.  */
18076 #include <CFPreferences.h>
18077 int
18078 main ()
18079 {
18080 CFPreferencesCopyAppValue(NULL, NULL)
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 if ac_fn_c_try_link "$LINENO"; then :
18086   gt_cv_func_CFPreferencesCopyAppValue=yes
18087 else
18088   gt_cv_func_CFPreferencesCopyAppValue=no
18089 fi
18090 rm -f core conftest.err conftest.$ac_objext \
18091     conftest$ac_exeext conftest.$ac_ext
18092      CPPFLAGS="$gt_save_CPPFLAGS"
18093      LIBS="$gt_save_LIBS"
18094 fi
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18096 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18097   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18098
18099 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18100
18101   fi
18102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18103 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18104 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18105   $as_echo_n "(cached) " >&6
18106 else
18107   gt_save_CPPFLAGS="$CPPFLAGS"
18108      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18109      gt_save_LIBS="$LIBS"
18110      LIBS="$LIBS -framework CoreFoundation"
18111      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h.  */
18113 #include <CFLocale.h>
18114 int
18115 main ()
18116 {
18117 CFLocaleCopyCurrent();
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 if ac_fn_c_try_link "$LINENO"; then :
18123   gt_cv_func_CFLocaleCopyCurrent=yes
18124 else
18125   gt_cv_func_CFLocaleCopyCurrent=no
18126 fi
18127 rm -f core conftest.err conftest.$ac_objext \
18128     conftest$ac_exeext conftest.$ac_ext
18129      CPPFLAGS="$gt_save_CPPFLAGS"
18130      LIBS="$gt_save_LIBS"
18131 fi
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18133 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18134   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18135
18136 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18137
18138   fi
18139   INTL_MACOSX_LIBS=
18140   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18141     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18142   fi
18143
18144
18145
18146
18147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18148 $as_echo_n "checking whether NLS is requested... " >&6; }
18149     # Check whether --enable-nls was given.
18150 if test "${enable_nls+set}" = set; then :
18151   enableval=$enable_nls; USE_NLS=$enableval
18152 else
18153   USE_NLS=yes
18154 fi
18155
18156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18157 $as_echo "$USE_NLS" >&6; }
18158
18159
18160
18161
18162   LIBINTL=
18163   LTLIBINTL=
18164   POSUB=
18165
18166     if test "$USE_NLS" = "yes"; then
18167     gt_use_preinstalled_gnugettext=no
18168
18169
18170
18171
18172
18173
18174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18175 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18176 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18177   $as_echo_n "(cached) " >&6
18178 else
18179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h.  */
18181 #include <libintl.h>
18182 extern int _nl_msg_cat_cntr;
18183 extern int *_nl_domain_bindings;
18184 int
18185 main ()
18186 {
18187 bindtextdomain ("", "");
18188 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18189   ;
18190   return 0;
18191 }
18192 _ACEOF
18193 if ac_fn_c_try_link "$LINENO"; then :
18194   gt_cv_func_gnugettext1_libc=yes
18195 else
18196   gt_cv_func_gnugettext1_libc=no
18197 fi
18198 rm -f core conftest.err conftest.$ac_objext \
18199     conftest$ac_exeext conftest.$ac_ext
18200 fi
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18202 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18203
18204         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18205
18206
18207
18208
18209
18210           am_save_CPPFLAGS="$CPPFLAGS"
18211
18212   for element in $INCICONV; do
18213     haveit=
18214     for x in $CPPFLAGS; do
18215
18216   acl_save_prefix="$prefix"
18217   prefix="$acl_final_prefix"
18218   acl_save_exec_prefix="$exec_prefix"
18219   exec_prefix="$acl_final_exec_prefix"
18220   eval x=\"$x\"
18221   exec_prefix="$acl_save_exec_prefix"
18222   prefix="$acl_save_prefix"
18223
18224       if test "X$x" = "X$element"; then
18225         haveit=yes
18226         break
18227       fi
18228     done
18229     if test -z "$haveit"; then
18230       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18231     fi
18232   done
18233
18234
18235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18236 $as_echo_n "checking for iconv... " >&6; }
18237 if ${am_cv_func_iconv+:} false; then :
18238   $as_echo_n "(cached) " >&6
18239 else
18240
18241     am_cv_func_iconv="no, consider installing GNU libiconv"
18242     am_cv_lib_iconv=no
18243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h.  */
18245 #include <stdlib.h>
18246 #include <iconv.h>
18247 int
18248 main ()
18249 {
18250 iconv_t cd = iconv_open("","");
18251        iconv(cd,NULL,NULL,NULL,NULL);
18252        iconv_close(cd);
18253   ;
18254   return 0;
18255 }
18256 _ACEOF
18257 if ac_fn_c_try_link "$LINENO"; then :
18258   am_cv_func_iconv=yes
18259 fi
18260 rm -f core conftest.err conftest.$ac_objext \
18261     conftest$ac_exeext conftest.$ac_ext
18262     if test "$am_cv_func_iconv" != yes; then
18263       am_save_LIBS="$LIBS"
18264       LIBS="$LIBS $LIBICONV"
18265       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h.  */
18267 #include <stdlib.h>
18268 #include <iconv.h>
18269 int
18270 main ()
18271 {
18272 iconv_t cd = iconv_open("","");
18273          iconv(cd,NULL,NULL,NULL,NULL);
18274          iconv_close(cd);
18275   ;
18276   return 0;
18277 }
18278 _ACEOF
18279 if ac_fn_c_try_link "$LINENO"; then :
18280   am_cv_lib_iconv=yes
18281         am_cv_func_iconv=yes
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext \
18284     conftest$ac_exeext conftest.$ac_ext
18285       LIBS="$am_save_LIBS"
18286     fi
18287
18288 fi
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18290 $as_echo "$am_cv_func_iconv" >&6; }
18291   if test "$am_cv_func_iconv" = yes; then
18292
18293 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18294
18295   fi
18296   if test "$am_cv_lib_iconv" = yes; then
18297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18298 $as_echo_n "checking how to link with libiconv... " >&6; }
18299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18300 $as_echo "$LIBICONV" >&6; }
18301   else
18302             CPPFLAGS="$am_save_CPPFLAGS"
18303     LIBICONV=
18304     LTLIBICONV=
18305   fi
18306
18307
18308
18309
18310
18311
18312     use_additional=yes
18313
18314   acl_save_prefix="$prefix"
18315   prefix="$acl_final_prefix"
18316   acl_save_exec_prefix="$exec_prefix"
18317   exec_prefix="$acl_final_exec_prefix"
18318
18319     eval additional_includedir=\"$includedir\"
18320     eval additional_libdir=\"$libdir\"
18321
18322   exec_prefix="$acl_save_exec_prefix"
18323   prefix="$acl_save_prefix"
18324
18325
18326 # Check whether --with-libintl-prefix was given.
18327 if test "${with_libintl_prefix+set}" = set; then :
18328   withval=$with_libintl_prefix;
18329     if test "X$withval" = "Xno"; then
18330       use_additional=no
18331     else
18332       if test "X$withval" = "X"; then
18333
18334   acl_save_prefix="$prefix"
18335   prefix="$acl_final_prefix"
18336   acl_save_exec_prefix="$exec_prefix"
18337   exec_prefix="$acl_final_exec_prefix"
18338
18339           eval additional_includedir=\"$includedir\"
18340           eval additional_libdir=\"$libdir\"
18341
18342   exec_prefix="$acl_save_exec_prefix"
18343   prefix="$acl_save_prefix"
18344
18345       else
18346         additional_includedir="$withval/include"
18347         additional_libdir="$withval/lib"
18348       fi
18349     fi
18350
18351 fi
18352
18353       LIBINTL=
18354   LTLIBINTL=
18355   INCINTL=
18356   rpathdirs=
18357   ltrpathdirs=
18358   names_already_handled=
18359   names_next_round='intl '
18360   while test -n "$names_next_round"; do
18361     names_this_round="$names_next_round"
18362     names_next_round=
18363     for name in $names_this_round; do
18364       already_handled=
18365       for n in $names_already_handled; do
18366         if test "$n" = "$name"; then
18367           already_handled=yes
18368           break
18369         fi
18370       done
18371       if test -z "$already_handled"; then
18372         names_already_handled="$names_already_handled $name"
18373                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18374         eval value=\"\$HAVE_LIB$uppername\"
18375         if test -n "$value"; then
18376           if test "$value" = yes; then
18377             eval value=\"\$LIB$uppername\"
18378             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18379             eval value=\"\$LTLIB$uppername\"
18380             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18381           else
18382                                     :
18383           fi
18384         else
18385                               found_dir=
18386           found_la=
18387           found_so=
18388           found_a=
18389           if test $use_additional = yes; then
18390             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18391               found_dir="$additional_libdir"
18392               found_so="$additional_libdir/lib$name.$shlibext"
18393               if test -f "$additional_libdir/lib$name.la"; then
18394                 found_la="$additional_libdir/lib$name.la"
18395               fi
18396             else
18397               if test -f "$additional_libdir/lib$name.$libext"; then
18398                 found_dir="$additional_libdir"
18399                 found_a="$additional_libdir/lib$name.$libext"
18400                 if test -f "$additional_libdir/lib$name.la"; then
18401                   found_la="$additional_libdir/lib$name.la"
18402                 fi
18403               fi
18404             fi
18405           fi
18406           if test "X$found_dir" = "X"; then
18407             for x in $LDFLAGS $LTLIBINTL; do
18408
18409   acl_save_prefix="$prefix"
18410   prefix="$acl_final_prefix"
18411   acl_save_exec_prefix="$exec_prefix"
18412   exec_prefix="$acl_final_exec_prefix"
18413   eval x=\"$x\"
18414   exec_prefix="$acl_save_exec_prefix"
18415   prefix="$acl_save_prefix"
18416
18417               case "$x" in
18418                 -L*)
18419                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18420                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18421                     found_dir="$dir"
18422                     found_so="$dir/lib$name.$shlibext"
18423                     if test -f "$dir/lib$name.la"; then
18424                       found_la="$dir/lib$name.la"
18425                     fi
18426                   else
18427                     if test -f "$dir/lib$name.$libext"; then
18428                       found_dir="$dir"
18429                       found_a="$dir/lib$name.$libext"
18430                       if test -f "$dir/lib$name.la"; then
18431                         found_la="$dir/lib$name.la"
18432                       fi
18433                     fi
18434                   fi
18435                   ;;
18436               esac
18437               if test "X$found_dir" != "X"; then
18438                 break
18439               fi
18440             done
18441           fi
18442           if test "X$found_dir" != "X"; then
18443                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18444             if test "X$found_so" != "X"; then
18445                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18446                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18447               else
18448                                                                                 haveit=
18449                 for x in $ltrpathdirs; do
18450                   if test "X$x" = "X$found_dir"; then
18451                     haveit=yes
18452                     break
18453                   fi
18454                 done
18455                 if test -z "$haveit"; then
18456                   ltrpathdirs="$ltrpathdirs $found_dir"
18457                 fi
18458                                 if test "$hardcode_direct" = yes; then
18459                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18460                 else
18461                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18462                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18463                                                             haveit=
18464                     for x in $rpathdirs; do
18465                       if test "X$x" = "X$found_dir"; then
18466                         haveit=yes
18467                         break
18468                       fi
18469                     done
18470                     if test -z "$haveit"; then
18471                       rpathdirs="$rpathdirs $found_dir"
18472                     fi
18473                   else
18474                                                                                 haveit=
18475                     for x in $LDFLAGS $LIBINTL; do
18476
18477   acl_save_prefix="$prefix"
18478   prefix="$acl_final_prefix"
18479   acl_save_exec_prefix="$exec_prefix"
18480   exec_prefix="$acl_final_exec_prefix"
18481   eval x=\"$x\"
18482   exec_prefix="$acl_save_exec_prefix"
18483   prefix="$acl_save_prefix"
18484
18485                       if test "X$x" = "X-L$found_dir"; then
18486                         haveit=yes
18487                         break
18488                       fi
18489                     done
18490                     if test -z "$haveit"; then
18491                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18492                     fi
18493                     if test "$hardcode_minus_L" != no; then
18494                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18495                     else
18496                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18497                     fi
18498                   fi
18499                 fi
18500               fi
18501             else
18502               if test "X$found_a" != "X"; then
18503                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18504               else
18505                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18506               fi
18507             fi
18508                         additional_includedir=
18509             case "$found_dir" in
18510               */lib | */lib/)
18511                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18512                 additional_includedir="$basedir/include"
18513                 ;;
18514             esac
18515             if test "X$additional_includedir" != "X"; then
18516                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18517                 haveit=
18518                 if test "X$additional_includedir" = "X/usr/local/include"; then
18519                   if test -n "$GCC"; then
18520                     case $host_os in
18521                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18522                     esac
18523                   fi
18524                 fi
18525                 if test -z "$haveit"; then
18526                   for x in $CPPFLAGS $INCINTL; do
18527
18528   acl_save_prefix="$prefix"
18529   prefix="$acl_final_prefix"
18530   acl_save_exec_prefix="$exec_prefix"
18531   exec_prefix="$acl_final_exec_prefix"
18532   eval x=\"$x\"
18533   exec_prefix="$acl_save_exec_prefix"
18534   prefix="$acl_save_prefix"
18535
18536                     if test "X$x" = "X-I$additional_includedir"; then
18537                       haveit=yes
18538                       break
18539                     fi
18540                   done
18541                   if test -z "$haveit"; then
18542                     if test -d "$additional_includedir"; then
18543                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18544                     fi
18545                   fi
18546                 fi
18547               fi
18548             fi
18549                         if test -n "$found_la"; then
18550                                                         save_libdir="$libdir"
18551               case "$found_la" in
18552                 */* | *\\*) . "$found_la" ;;
18553                 *) . "./$found_la" ;;
18554               esac
18555               libdir="$save_libdir"
18556                             for dep in $dependency_libs; do
18557                 case "$dep" in
18558                   -L*)
18559                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18560                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18561                       haveit=
18562                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18563                         if test -n "$GCC"; then
18564                           case $host_os in
18565                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18566                           esac
18567                         fi
18568                       fi
18569                       if test -z "$haveit"; then
18570                         haveit=
18571                         for x in $LDFLAGS $LIBINTL; do
18572
18573   acl_save_prefix="$prefix"
18574   prefix="$acl_final_prefix"
18575   acl_save_exec_prefix="$exec_prefix"
18576   exec_prefix="$acl_final_exec_prefix"
18577   eval x=\"$x\"
18578   exec_prefix="$acl_save_exec_prefix"
18579   prefix="$acl_save_prefix"
18580
18581                           if test "X$x" = "X-L$additional_libdir"; then
18582                             haveit=yes
18583                             break
18584                           fi
18585                         done
18586                         if test -z "$haveit"; then
18587                           if test -d "$additional_libdir"; then
18588                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18589                           fi
18590                         fi
18591                         haveit=
18592                         for x in $LDFLAGS $LTLIBINTL; do
18593
18594   acl_save_prefix="$prefix"
18595   prefix="$acl_final_prefix"
18596   acl_save_exec_prefix="$exec_prefix"
18597   exec_prefix="$acl_final_exec_prefix"
18598   eval x=\"$x\"
18599   exec_prefix="$acl_save_exec_prefix"
18600   prefix="$acl_save_prefix"
18601
18602                           if test "X$x" = "X-L$additional_libdir"; then
18603                             haveit=yes
18604                             break
18605                           fi
18606                         done
18607                         if test -z "$haveit"; then
18608                           if test -d "$additional_libdir"; then
18609                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18610                           fi
18611                         fi
18612                       fi
18613                     fi
18614                     ;;
18615                   -R*)
18616                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18617                     if test "$enable_rpath" != no; then
18618                                                                   haveit=
18619                       for x in $rpathdirs; do
18620                         if test "X$x" = "X$dir"; then
18621                           haveit=yes
18622                           break
18623                         fi
18624                       done
18625                       if test -z "$haveit"; then
18626                         rpathdirs="$rpathdirs $dir"
18627                       fi
18628                                                                   haveit=
18629                       for x in $ltrpathdirs; do
18630                         if test "X$x" = "X$dir"; then
18631                           haveit=yes
18632                           break
18633                         fi
18634                       done
18635                       if test -z "$haveit"; then
18636                         ltrpathdirs="$ltrpathdirs $dir"
18637                       fi
18638                     fi
18639                     ;;
18640                   -l*)
18641                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18642                     ;;
18643                   *.la)
18644                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18645                     ;;
18646                   *)
18647                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18648                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18649                     ;;
18650                 esac
18651               done
18652             fi
18653           else
18654                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18655             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18656           fi
18657         fi
18658       fi
18659     done
18660   done
18661   if test "X$rpathdirs" != "X"; then
18662     if test -n "$hardcode_libdir_separator"; then
18663                         alldirs=
18664       for found_dir in $rpathdirs; do
18665         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18666       done
18667             acl_save_libdir="$libdir"
18668       libdir="$alldirs"
18669       eval flag=\"$hardcode_libdir_flag_spec\"
18670       libdir="$acl_save_libdir"
18671       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18672     else
18673             for found_dir in $rpathdirs; do
18674         acl_save_libdir="$libdir"
18675         libdir="$found_dir"
18676         eval flag=\"$hardcode_libdir_flag_spec\"
18677         libdir="$acl_save_libdir"
18678         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18679       done
18680     fi
18681   fi
18682   if test "X$ltrpathdirs" != "X"; then
18683             for found_dir in $ltrpathdirs; do
18684       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18685     done
18686   fi
18687
18688           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18689 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18690 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18691   $as_echo_n "(cached) " >&6
18692 else
18693   gt_save_CPPFLAGS="$CPPFLAGS"
18694             CPPFLAGS="$CPPFLAGS $INCINTL"
18695             gt_save_LIBS="$LIBS"
18696             LIBS="$LIBS $LIBINTL"
18697                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h.  */
18699 #include <libintl.h>
18700 extern int _nl_msg_cat_cntr;
18701 extern
18702 #ifdef __cplusplus
18703 "C"
18704 #endif
18705 const char *_nl_expand_alias (const char *);
18706 int
18707 main ()
18708 {
18709 bindtextdomain ("", "");
18710 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 if ac_fn_c_try_link "$LINENO"; then :
18716   gt_cv_func_gnugettext1_libintl=yes
18717 else
18718   gt_cv_func_gnugettext1_libintl=no
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext \
18721     conftest$ac_exeext conftest.$ac_ext
18722                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18723               LIBS="$LIBS $LIBICONV"
18724               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725 /* end confdefs.h.  */
18726 #include <libintl.h>
18727 extern int _nl_msg_cat_cntr;
18728 extern
18729 #ifdef __cplusplus
18730 "C"
18731 #endif
18732 const char *_nl_expand_alias (const char *);
18733 int
18734 main ()
18735 {
18736 bindtextdomain ("", "");
18737 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18738   ;
18739   return 0;
18740 }
18741 _ACEOF
18742 if ac_fn_c_try_link "$LINENO"; then :
18743   LIBINTL="$LIBINTL $LIBICONV"
18744                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18745                 gt_cv_func_gnugettext1_libintl=yes
18746
18747 fi
18748 rm -f core conftest.err conftest.$ac_objext \
18749     conftest$ac_exeext conftest.$ac_ext
18750             fi
18751             CPPFLAGS="$gt_save_CPPFLAGS"
18752             LIBS="$gt_save_LIBS"
18753 fi
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18755 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18756         fi
18757
18758                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18759            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18760                 && test "$PACKAGE" != gettext-runtime \
18761                 && test "$PACKAGE" != gettext-tools; }; then
18762           gt_use_preinstalled_gnugettext=yes
18763         else
18764                     LIBINTL=
18765           LTLIBINTL=
18766           INCINTL=
18767         fi
18768
18769
18770
18771     if test -n "$INTL_MACOSX_LIBS"; then
18772       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18773          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18774                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18775         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18776       fi
18777     fi
18778
18779     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18780        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18781
18782 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18783
18784     else
18785       USE_NLS=no
18786     fi
18787   fi
18788
18789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18790 $as_echo_n "checking whether to use NLS... " >&6; }
18791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18792 $as_echo "$USE_NLS" >&6; }
18793   if test "$USE_NLS" = "yes"; then
18794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18795 $as_echo_n "checking where the gettext function comes from... " >&6; }
18796     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18797       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18798         gt_source="external libintl"
18799       else
18800         gt_source="libc"
18801       fi
18802     else
18803       gt_source="included intl directory"
18804     fi
18805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18806 $as_echo "$gt_source" >&6; }
18807   fi
18808
18809   if test "$USE_NLS" = "yes"; then
18810
18811     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18812       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18814 $as_echo_n "checking how to link with libintl... " >&6; }
18815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18816 $as_echo "$LIBINTL" >&6; }
18817
18818   for element in $INCINTL; do
18819     haveit=
18820     for x in $CPPFLAGS; do
18821
18822   acl_save_prefix="$prefix"
18823   prefix="$acl_final_prefix"
18824   acl_save_exec_prefix="$exec_prefix"
18825   exec_prefix="$acl_final_exec_prefix"
18826   eval x=\"$x\"
18827   exec_prefix="$acl_save_exec_prefix"
18828   prefix="$acl_save_prefix"
18829
18830       if test "X$x" = "X$element"; then
18831         haveit=yes
18832         break
18833       fi
18834     done
18835     if test -z "$haveit"; then
18836       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18837     fi
18838   done
18839
18840       fi
18841
18842
18843 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18844
18845
18846 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18847
18848     fi
18849
18850         POSUB=po
18851   fi
18852
18853
18854
18855     INTLLIBS="$LIBINTL"
18856
18857
18858
18859
18860
18861
18862
18863 os_name=`uname -s 2>/dev/null`
18864 if test x${prefix} = xNONE ; then
18865    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18866       sysconfdir=/etc/bacula
18867    fi
18868
18869    if test `eval echo ${libdir}` = NONE/lib ; then
18870       case ${os_name} in
18871       Linux)
18872          os_processor=`uname -p 2>/dev/null`
18873          case ${os_processor} in
18874          x86_64)
18875             libdir=/usr/lib64
18876             ;;
18877          *)
18878             libdir=/usr/lib
18879             ;;
18880          esac
18881          ;;
18882       *)
18883          libdir=/usr/lib
18884          ;;
18885       esac
18886    fi
18887
18888    if test `eval echo ${includedir}` = NONE/include ; then
18889       includedir=/usr/include
18890    fi
18891
18892    if test `eval echo ${datarootdir}` = NONE/share ; then
18893       datarootdir=/usr/share
18894    fi
18895    prefix=
18896 fi
18897
18898 if test x${exec_prefix} = xNONE ; then
18899    exec_prefix=${prefix}
18900 fi
18901
18902 sysconfdir=`eval echo ${sysconfdir}`
18903 datarootdir=`eval echo ${datarootdir}`
18904 docdir=`eval echo ${docdir}`
18905 htmldir=`eval echo ${htmldir}`
18906 libdir=`eval echo ${libdir}`
18907 includedir=`eval echo ${includedir}`
18908 localedir=`eval echo ${datarootdir}/locale`
18909 cat >>confdefs.h <<_ACEOF
18910 #define SYSCONFDIR "$sysconfdir"
18911 _ACEOF
18912
18913 cat >>confdefs.h <<_ACEOF
18914 #define LOCALEDIR "$localedir"
18915 _ACEOF
18916
18917
18918 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18919    sbindir=${exec_prefix}/sbin
18920 fi
18921 sbindir=`eval echo ${sbindir}`
18922
18923 if test x$mandir = x'${prefix}/man' ; then
18924    mandir=/usr/share/man
18925 fi
18926
18927 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18928    htmldir=`eval echo ${docdir}html`
18929 fi
18930
18931 if test x$docdir = x'/usr/share/doc/' ; then
18932    docdir=`eval echo ${docdir}bacula`
18933 fi
18934
18935
18936 for ac_prog in msgfmt
18937 do
18938   # Extract the first word of "$ac_prog", so it can be a program name with args.
18939 set dummy $ac_prog; ac_word=$2
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18941 $as_echo_n "checking for $ac_word... " >&6; }
18942 if ${ac_cv_path_MSGFMT+:} false; then :
18943   $as_echo_n "(cached) " >&6
18944 else
18945   case $MSGFMT in
18946   [\\/]* | ?:[\\/]*)
18947   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18948   ;;
18949   *)
18950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18951 for as_dir in $PATH
18952 do
18953   IFS=$as_save_IFS
18954   test -z "$as_dir" && as_dir=.
18955     for ac_exec_ext in '' $ac_executable_extensions; do
18956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18957     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18959     break 2
18960   fi
18961 done
18962   done
18963 IFS=$as_save_IFS
18964
18965   ;;
18966 esac
18967 fi
18968 MSGFMT=$ac_cv_path_MSGFMT
18969 if test -n "$MSGFMT"; then
18970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18971 $as_echo "$MSGFMT" >&6; }
18972 else
18973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 $as_echo "no" >&6; }
18975 fi
18976
18977
18978   test -n "$MSGFMT" && break
18979 done
18980 test -n "$MSGFMT" || MSGFMT="no"
18981
18982 if test "$MSGFMT" = "no"
18983 then
18984    echo 'msgfmt program not found, disabling NLS !'
18985    USE_NLS=no
18986    USE_INCLUDED_LIBINTL=no
18987 #else
18988
18989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18990 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18991 if ${ac_cv_gnu_library_2+:} false; then :
18992   $as_echo_n "(cached) " >&6
18993 else
18994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h.  */
18996
18997 #include <features.h>
18998 #ifdef __GNU_LIBRARY__
18999  #if (__GLIBC__ >= 2)
19000   Lucky GNU user
19001  #endif
19002 #endif
19003
19004 _ACEOF
19005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19006   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19007   ac_cv_gnu_library_2=yes
19008 else
19009   ac_cv_gnu_library_2=no
19010 fi
19011 rm -f conftest*
19012
19013
19014
19015 fi
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19017 $as_echo "$ac_cv_gnu_library_2" >&6; }
19018
19019     GLIBC2="$ac_cv_gnu_library_2"
19020
19021
19022 if test -n "$ac_tool_prefix"; then
19023   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19026 $as_echo_n "checking for $ac_word... " >&6; }
19027 if ${ac_cv_prog_RANLIB+:} false; then :
19028   $as_echo_n "(cached) " >&6
19029 else
19030   if test -n "$RANLIB"; then
19031   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19032 else
19033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19034 for as_dir in $PATH
19035 do
19036   IFS=$as_save_IFS
19037   test -z "$as_dir" && as_dir=.
19038     for ac_exec_ext in '' $ac_executable_extensions; do
19039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19040     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19042     break 2
19043   fi
19044 done
19045   done
19046 IFS=$as_save_IFS
19047
19048 fi
19049 fi
19050 RANLIB=$ac_cv_prog_RANLIB
19051 if test -n "$RANLIB"; then
19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19053 $as_echo "$RANLIB" >&6; }
19054 else
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19057 fi
19058
19059
19060 fi
19061 if test -z "$ac_cv_prog_RANLIB"; then
19062   ac_ct_RANLIB=$RANLIB
19063   # Extract the first word of "ranlib", so it can be a program name with args.
19064 set dummy ranlib; ac_word=$2
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19066 $as_echo_n "checking for $ac_word... " >&6; }
19067 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19068   $as_echo_n "(cached) " >&6
19069 else
19070   if test -n "$ac_ct_RANLIB"; then
19071   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19072 else
19073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19074 for as_dir in $PATH
19075 do
19076   IFS=$as_save_IFS
19077   test -z "$as_dir" && as_dir=.
19078     for ac_exec_ext in '' $ac_executable_extensions; do
19079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19080     ac_cv_prog_ac_ct_RANLIB="ranlib"
19081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19082     break 2
19083   fi
19084 done
19085   done
19086 IFS=$as_save_IFS
19087
19088 fi
19089 fi
19090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19091 if test -n "$ac_ct_RANLIB"; then
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19093 $as_echo "$ac_ct_RANLIB" >&6; }
19094 else
19095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19097 fi
19098
19099   if test "x$ac_ct_RANLIB" = x; then
19100     RANLIB=":"
19101   else
19102     case $cross_compiling:$ac_tool_warned in
19103 yes:)
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19106 ac_tool_warned=yes ;;
19107 esac
19108     RANLIB=$ac_ct_RANLIB
19109   fi
19110 else
19111   RANLIB="$ac_cv_prog_RANLIB"
19112 fi
19113
19114
19115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19116 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19117 if ${ac_cv_lib_cposix_strerror+:} false; then :
19118   $as_echo_n "(cached) " >&6
19119 else
19120   ac_check_lib_save_LIBS=$LIBS
19121 LIBS="-lcposix  $LIBS"
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h.  */
19124
19125 /* Override any GCC internal prototype to avoid an error.
19126    Use char because int might match the return type of a GCC
19127    builtin and then its argument prototype would still apply.  */
19128 #ifdef __cplusplus
19129 extern "C"
19130 #endif
19131 char strerror ();
19132 int
19133 main ()
19134 {
19135 return strerror ();
19136   ;
19137   return 0;
19138 }
19139 _ACEOF
19140 if ac_fn_c_try_link "$LINENO"; then :
19141   ac_cv_lib_cposix_strerror=yes
19142 else
19143   ac_cv_lib_cposix_strerror=no
19144 fi
19145 rm -f core conftest.err conftest.$ac_objext \
19146     conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19148 fi
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19150 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19151 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19152   LIBS="$LIBS -lcposix"
19153 fi
19154
19155
19156
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19158 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19159 if ${ac_cv_c_const+:} false; then :
19160   $as_echo_n "(cached) " >&6
19161 else
19162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h.  */
19164
19165 int
19166 main ()
19167 {
19168
19169 #ifndef __cplusplus
19170   /* Ultrix mips cc rejects this sort of thing.  */
19171   typedef int charset[2];
19172   const charset cs = { 0, 0 };
19173   /* SunOS 4.1.1 cc rejects this.  */
19174   char const *const *pcpcc;
19175   char **ppc;
19176   /* NEC SVR4.0.2 mips cc rejects this.  */
19177   struct point {int x, y;};
19178   static struct point const zero = {0,0};
19179   /* AIX XL C 1.02.0.0 rejects this.
19180      It does not let you subtract one const X* pointer from another in
19181      an arm of an if-expression whose if-part is not a constant
19182      expression */
19183   const char *g = "string";
19184   pcpcc = &g + (g ? g-g : 0);
19185   /* HPUX 7.0 cc rejects these. */
19186   ++pcpcc;
19187   ppc = (char**) pcpcc;
19188   pcpcc = (char const *const *) ppc;
19189   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19190     char tx;
19191     char *t = &tx;
19192     char const *s = 0 ? (char *) 0 : (char const *) 0;
19193
19194     *t++ = 0;
19195     if (s) return 0;
19196   }
19197   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19198     int x[] = {25, 17};
19199     const int *foo = &x[0];
19200     ++foo;
19201   }
19202   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19203     typedef const int *iptr;
19204     iptr p = 0;
19205     ++p;
19206   }
19207   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19208        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19209     struct s { int j; const int *ap[3]; } bx;
19210     struct s *b = &bx; b->j = 5;
19211   }
19212   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19213     const int foo = 10;
19214     if (!foo) return 0;
19215   }
19216   return !cs[0] && !zero.x;
19217 #endif
19218
19219   ;
19220   return 0;
19221 }
19222 _ACEOF
19223 if ac_fn_c_try_compile "$LINENO"; then :
19224   ac_cv_c_const=yes
19225 else
19226   ac_cv_c_const=no
19227 fi
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229 fi
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19231 $as_echo "$ac_cv_c_const" >&6; }
19232 if test $ac_cv_c_const = no; then
19233
19234 $as_echo "#define const /**/" >>confdefs.h
19235
19236 fi
19237
19238
19239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19240 $as_echo_n "checking for signed... " >&6; }
19241 if ${bh_cv_c_signed+:} false; then :
19242   $as_echo_n "(cached) " >&6
19243 else
19244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h.  */
19246
19247 int
19248 main ()
19249 {
19250 signed char x;
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 if ac_fn_c_try_compile "$LINENO"; then :
19256   bh_cv_c_signed=yes
19257 else
19258   bh_cv_c_signed=no
19259 fi
19260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19261 fi
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19263 $as_echo "$bh_cv_c_signed" >&6; }
19264   if test $bh_cv_c_signed = no; then
19265
19266 $as_echo "#define signed /**/" >>confdefs.h
19267
19268   fi
19269
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19271 $as_echo_n "checking for inline... " >&6; }
19272 if ${ac_cv_c_inline+:} false; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275   ac_cv_c_inline=no
19276 for ac_kw in inline __inline__ __inline; do
19277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h.  */
19279 #ifndef __cplusplus
19280 typedef int foo_t;
19281 static $ac_kw foo_t static_foo () {return 0; }
19282 $ac_kw foo_t foo () {return 0; }
19283 #endif
19284
19285 _ACEOF
19286 if ac_fn_c_try_compile "$LINENO"; then :
19287   ac_cv_c_inline=$ac_kw
19288 fi
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290   test "$ac_cv_c_inline" != no && break
19291 done
19292
19293 fi
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19295 $as_echo "$ac_cv_c_inline" >&6; }
19296
19297 case $ac_cv_c_inline in
19298   inline | yes) ;;
19299   *)
19300     case $ac_cv_c_inline in
19301       no) ac_val=;;
19302       *) ac_val=$ac_cv_c_inline;;
19303     esac
19304     cat >>confdefs.h <<_ACEOF
19305 #ifndef __cplusplus
19306 #define inline $ac_val
19307 #endif
19308 _ACEOF
19309     ;;
19310 esac
19311
19312 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19313 if test "x$ac_cv_type_off_t" = xyes; then :
19314
19315 else
19316
19317 cat >>confdefs.h <<_ACEOF
19318 #define off_t long int
19319 _ACEOF
19320
19321 fi
19322
19323 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19324 if test "x$ac_cv_type_size_t" = xyes; then :
19325
19326 else
19327
19328 cat >>confdefs.h <<_ACEOF
19329 #define size_t unsigned int
19330 _ACEOF
19331
19332 fi
19333
19334
19335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19336 $as_echo_n "checking for long long... " >&6; }
19337 if ${ac_cv_type_long_long+:} false; then :
19338   $as_echo_n "(cached) " >&6
19339 else
19340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h.  */
19342 long long ll = 1LL; int i = 63;
19343 int
19344 main ()
19345 {
19346 long long llmax = (long long) -1;
19347      return ll << i | ll >> i | llmax / ll | llmax % ll;
19348   ;
19349   return 0;
19350 }
19351 _ACEOF
19352 if ac_fn_c_try_link "$LINENO"; then :
19353   ac_cv_type_long_long=yes
19354 else
19355   ac_cv_type_long_long=no
19356 fi
19357 rm -f core conftest.err conftest.$ac_objext \
19358     conftest$ac_exeext conftest.$ac_ext
19359 fi
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19361 $as_echo "$ac_cv_type_long_long" >&6; }
19362   if test $ac_cv_type_long_long = yes; then
19363
19364 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19365
19366   fi
19367
19368
19369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19370 $as_echo_n "checking for long double... " >&6; }
19371 if ${gt_cv_c_long_double+:} false; then :
19372   $as_echo_n "(cached) " >&6
19373 else
19374   if test "$GCC" = yes; then
19375        gt_cv_c_long_double=yes
19376      else
19377        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h.  */
19379
19380          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19381          long double foo = 0.0;
19382          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19383          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19384
19385 int
19386 main ()
19387 {
19388
19389   ;
19390   return 0;
19391 }
19392 _ACEOF
19393 if ac_fn_c_try_compile "$LINENO"; then :
19394   gt_cv_c_long_double=yes
19395 else
19396   gt_cv_c_long_double=no
19397 fi
19398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19399      fi
19400 fi
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19402 $as_echo "$gt_cv_c_long_double" >&6; }
19403   if test $gt_cv_c_long_double = yes; then
19404
19405 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19406
19407   fi
19408
19409
19410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19411 $as_echo_n "checking for wchar_t... " >&6; }
19412 if ${gt_cv_c_wchar_t+:} false; then :
19413   $as_echo_n "(cached) " >&6
19414 else
19415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h.  */
19417 #include <stddef.h>
19418        wchar_t foo = (wchar_t)'\0';
19419 int
19420 main ()
19421 {
19422
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 if ac_fn_c_try_compile "$LINENO"; then :
19428   gt_cv_c_wchar_t=yes
19429 else
19430   gt_cv_c_wchar_t=no
19431 fi
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433 fi
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19435 $as_echo "$gt_cv_c_wchar_t" >&6; }
19436   if test $gt_cv_c_wchar_t = yes; then
19437
19438 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19439
19440   fi
19441
19442
19443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19444 $as_echo_n "checking for wint_t... " >&6; }
19445 if ${gt_cv_c_wint_t+:} false; then :
19446   $as_echo_n "(cached) " >&6
19447 else
19448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h.  */
19450 #include <wchar.h>
19451        wint_t foo = (wchar_t)'\0';
19452 int
19453 main ()
19454 {
19455
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 if ac_fn_c_try_compile "$LINENO"; then :
19461   gt_cv_c_wint_t=yes
19462 else
19463   gt_cv_c_wint_t=no
19464 fi
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 fi
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19468 $as_echo "$gt_cv_c_wint_t" >&6; }
19469   if test $gt_cv_c_wint_t = yes; then
19470
19471 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19472
19473   fi
19474
19475
19476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19477 $as_echo_n "checking for inttypes.h... " >&6; }
19478 if ${gl_cv_header_inttypes_h+:} false; then :
19479   $as_echo_n "(cached) " >&6
19480 else
19481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h.  */
19483 #include <sys/types.h>
19484 #include <inttypes.h>
19485 int
19486 main ()
19487 {
19488 uintmax_t i = (uintmax_t) -1;
19489   ;
19490   return 0;
19491 }
19492 _ACEOF
19493 if ac_fn_c_try_compile "$LINENO"; then :
19494   gl_cv_header_inttypes_h=yes
19495 else
19496   gl_cv_header_inttypes_h=no
19497 fi
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19499 fi
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19501 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19502   if test $gl_cv_header_inttypes_h = yes; then
19503
19504 cat >>confdefs.h <<_ACEOF
19505 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19506 _ACEOF
19507
19508   fi
19509
19510
19511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19512 $as_echo_n "checking for stdint.h... " >&6; }
19513 if ${gl_cv_header_stdint_h+:} false; then :
19514   $as_echo_n "(cached) " >&6
19515 else
19516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h.  */
19518 #include <sys/types.h>
19519 #include <stdint.h>
19520 int
19521 main ()
19522 {
19523 uintmax_t i = (uintmax_t) -1;
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 if ac_fn_c_try_compile "$LINENO"; then :
19529   gl_cv_header_stdint_h=yes
19530 else
19531   gl_cv_header_stdint_h=no
19532 fi
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534 fi
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19536 $as_echo "$gl_cv_header_stdint_h" >&6; }
19537   if test $gl_cv_header_stdint_h = yes; then
19538
19539 cat >>confdefs.h <<_ACEOF
19540 #define HAVE_STDINT_H_WITH_UINTMAX 1
19541 _ACEOF
19542
19543   fi
19544
19545
19546
19547
19548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19549 $as_echo_n "checking for intmax_t... " >&6; }
19550 if ${gt_cv_c_intmax_t+:} false; then :
19551   $as_echo_n "(cached) " >&6
19552 else
19553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h.  */
19555
19556 #include <stddef.h>
19557 #include <stdlib.h>
19558 #if HAVE_STDINT_H_WITH_UINTMAX
19559 #include <stdint.h>
19560 #endif
19561 #if HAVE_INTTYPES_H_WITH_UINTMAX
19562 #include <inttypes.h>
19563 #endif
19564
19565 int
19566 main ()
19567 {
19568 intmax_t x = -1;
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 if ac_fn_c_try_compile "$LINENO"; then :
19574   gt_cv_c_intmax_t=yes
19575 else
19576   gt_cv_c_intmax_t=no
19577 fi
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579 fi
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19581 $as_echo "$gt_cv_c_intmax_t" >&6; }
19582   if test $gt_cv_c_intmax_t = yes; then
19583
19584 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19585
19586   fi
19587
19588
19589
19590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19591 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19592 if ${gt_cv_func_printf_posix+:} false; then :
19593   $as_echo_n "(cached) " >&6
19594 else
19595
19596       if test "$cross_compiling" = yes; then :
19597
19598         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h.  */
19600
19601 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19602   notposix
19603 #endif
19604
19605 _ACEOF
19606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19607   $EGREP "notposix" >/dev/null 2>&1; then :
19608   gt_cv_func_printf_posix="guessing no"
19609 else
19610   gt_cv_func_printf_posix="guessing yes"
19611 fi
19612 rm -f conftest*
19613
19614
19615 else
19616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h.  */
19618
19619 #include <stdio.h>
19620 #include <string.h>
19621 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19622    dollar expansion (possibly an autoconf bug).  */
19623 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19624 static char buf[100];
19625 int main ()
19626 {
19627   sprintf (buf, format, 33, 55);
19628   return (strcmp (buf, "55 33") != 0);
19629 }
19630 _ACEOF
19631 if ac_fn_c_try_run "$LINENO"; then :
19632   gt_cv_func_printf_posix=yes
19633 else
19634   gt_cv_func_printf_posix=no
19635 fi
19636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19637   conftest.$ac_objext conftest.beam conftest.$ac_ext
19638 fi
19639
19640
19641 fi
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19643 $as_echo "$gt_cv_func_printf_posix" >&6; }
19644   case $gt_cv_func_printf_posix in
19645     *yes)
19646
19647 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19648
19649       ;;
19650   esac
19651
19652 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19653 # for constant arguments.  Useless!
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19655 $as_echo_n "checking for working alloca.h... " >&6; }
19656 if ${ac_cv_working_alloca_h+:} false; then :
19657   $as_echo_n "(cached) " >&6
19658 else
19659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h.  */
19661 #include <alloca.h>
19662 int
19663 main ()
19664 {
19665 char *p = (char *) alloca (2 * sizeof (int));
19666                           if (p) return 0;
19667   ;
19668   return 0;
19669 }
19670 _ACEOF
19671 if ac_fn_c_try_link "$LINENO"; then :
19672   ac_cv_working_alloca_h=yes
19673 else
19674   ac_cv_working_alloca_h=no
19675 fi
19676 rm -f core conftest.err conftest.$ac_objext \
19677     conftest$ac_exeext conftest.$ac_ext
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19680 $as_echo "$ac_cv_working_alloca_h" >&6; }
19681 if test $ac_cv_working_alloca_h = yes; then
19682
19683 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19684
19685 fi
19686
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19688 $as_echo_n "checking for alloca... " >&6; }
19689 if ${ac_cv_func_alloca_works+:} false; then :
19690   $as_echo_n "(cached) " >&6
19691 else
19692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h.  */
19694 #ifdef __GNUC__
19695 # define alloca __builtin_alloca
19696 #else
19697 # ifdef _MSC_VER
19698 #  include <malloc.h>
19699 #  define alloca _alloca
19700 # else
19701 #  ifdef HAVE_ALLOCA_H
19702 #   include <alloca.h>
19703 #  else
19704 #   ifdef _AIX
19705  #pragma alloca
19706 #   else
19707 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19708 void *alloca (size_t);
19709 #    endif
19710 #   endif
19711 #  endif
19712 # endif
19713 #endif
19714
19715 int
19716 main ()
19717 {
19718 char *p = (char *) alloca (1);
19719                                     if (p) return 0;
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 if ac_fn_c_try_link "$LINENO"; then :
19725   ac_cv_func_alloca_works=yes
19726 else
19727   ac_cv_func_alloca_works=no
19728 fi
19729 rm -f core conftest.err conftest.$ac_objext \
19730     conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19733 $as_echo "$ac_cv_func_alloca_works" >&6; }
19734
19735 if test $ac_cv_func_alloca_works = yes; then
19736
19737 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19738
19739 else
19740   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19741 # that cause trouble.  Some versions do not even contain alloca or
19742 # contain a buggy version.  If you still want to use their alloca,
19743 # use ar to extract alloca.o from them instead of compiling alloca.c.
19744
19745 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19746
19747 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19748
19749
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19751 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19752 if ${ac_cv_os_cray+:} false; then :
19753   $as_echo_n "(cached) " >&6
19754 else
19755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19756 /* end confdefs.h.  */
19757 #if defined CRAY && ! defined CRAY2
19758 webecray
19759 #else
19760 wenotbecray
19761 #endif
19762
19763 _ACEOF
19764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19765   $EGREP "webecray" >/dev/null 2>&1; then :
19766   ac_cv_os_cray=yes
19767 else
19768   ac_cv_os_cray=no
19769 fi
19770 rm -f conftest*
19771
19772 fi
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19774 $as_echo "$ac_cv_os_cray" >&6; }
19775 if test $ac_cv_os_cray = yes; then
19776   for ac_func in _getb67 GETB67 getb67; do
19777     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19780
19781 cat >>confdefs.h <<_ACEOF
19782 #define CRAY_STACKSEG_END $ac_func
19783 _ACEOF
19784
19785     break
19786 fi
19787
19788   done
19789 fi
19790
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19792 $as_echo_n "checking stack direction for C alloca... " >&6; }
19793 if ${ac_cv_c_stack_direction+:} false; then :
19794   $as_echo_n "(cached) " >&6
19795 else
19796   if test "$cross_compiling" = yes; then :
19797   ac_cv_c_stack_direction=0
19798 else
19799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19800 /* end confdefs.h.  */
19801 $ac_includes_default
19802 int
19803 find_stack_direction (int *addr, int depth)
19804 {
19805   int dir, dummy = 0;
19806   if (! addr)
19807     addr = &dummy;
19808   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19809   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19810   return dir + dummy;
19811 }
19812
19813 int
19814 main (int argc, char **argv)
19815 {
19816   return find_stack_direction (0, argc + !argv + 20) < 0;
19817 }
19818 _ACEOF
19819 if ac_fn_c_try_run "$LINENO"; then :
19820   ac_cv_c_stack_direction=1
19821 else
19822   ac_cv_c_stack_direction=-1
19823 fi
19824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19825   conftest.$ac_objext conftest.beam conftest.$ac_ext
19826 fi
19827
19828 fi
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19830 $as_echo "$ac_cv_c_stack_direction" >&6; }
19831 cat >>confdefs.h <<_ACEOF
19832 #define STACK_DIRECTION $ac_cv_c_stack_direction
19833 _ACEOF
19834
19835
19836 fi
19837
19838
19839
19840
19841   for ac_header in $ac_header_list
19842 do :
19843   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19845 "
19846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19847   cat >>confdefs.h <<_ACEOF
19848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849 _ACEOF
19850
19851 fi
19852
19853 done
19854
19855
19856
19857
19858
19859
19860
19861
19862 for ac_func in getpagesize
19863 do :
19864   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19865 if test "x$ac_cv_func_getpagesize" = xyes; then :
19866   cat >>confdefs.h <<_ACEOF
19867 #define HAVE_GETPAGESIZE 1
19868 _ACEOF
19869
19870 fi
19871 done
19872
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19874 $as_echo_n "checking for working mmap... " >&6; }
19875 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19876   $as_echo_n "(cached) " >&6
19877 else
19878   if test "$cross_compiling" = yes; then :
19879   ac_cv_func_mmap_fixed_mapped=no
19880 else
19881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h.  */
19883 $ac_includes_default
19884 /* malloc might have been renamed as rpl_malloc. */
19885 #undef malloc
19886
19887 /* Thanks to Mike Haertel and Jim Avera for this test.
19888    Here is a matrix of mmap possibilities:
19889         mmap private not fixed
19890         mmap private fixed at somewhere currently unmapped
19891         mmap private fixed at somewhere already mapped
19892         mmap shared not fixed
19893         mmap shared fixed at somewhere currently unmapped
19894         mmap shared fixed at somewhere already mapped
19895    For private mappings, we should verify that changes cannot be read()
19896    back from the file, nor mmap's back from the file at a different
19897    address.  (There have been systems where private was not correctly
19898    implemented like the infamous i386 svr4.0, and systems where the
19899    VM page cache was not coherent with the file system buffer cache
19900    like early versions of FreeBSD and possibly contemporary NetBSD.)
19901    For shared mappings, we should conversely verify that changes get
19902    propagated back to all the places they're supposed to be.
19903
19904    Grep wants private fixed already mapped.
19905    The main things grep needs to know about mmap are:
19906    * does it exist and is it safe to write into the mmap'd area
19907    * how to use it (BSD variants)  */
19908
19909 #include <fcntl.h>
19910 #include <sys/mman.h>
19911
19912 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19913 char *malloc ();
19914 #endif
19915
19916 /* This mess was copied from the GNU getpagesize.h.  */
19917 #ifndef HAVE_GETPAGESIZE
19918 # ifdef _SC_PAGESIZE
19919 #  define getpagesize() sysconf(_SC_PAGESIZE)
19920 # else /* no _SC_PAGESIZE */
19921 #  ifdef HAVE_SYS_PARAM_H
19922 #   include <sys/param.h>
19923 #   ifdef EXEC_PAGESIZE
19924 #    define getpagesize() EXEC_PAGESIZE
19925 #   else /* no EXEC_PAGESIZE */
19926 #    ifdef NBPG
19927 #     define getpagesize() NBPG * CLSIZE
19928 #     ifndef CLSIZE
19929 #      define CLSIZE 1
19930 #     endif /* no CLSIZE */
19931 #    else /* no NBPG */
19932 #     ifdef NBPC
19933 #      define getpagesize() NBPC
19934 #     else /* no NBPC */
19935 #      ifdef PAGESIZE
19936 #       define getpagesize() PAGESIZE
19937 #      endif /* PAGESIZE */
19938 #     endif /* no NBPC */
19939 #    endif /* no NBPG */
19940 #   endif /* no EXEC_PAGESIZE */
19941 #  else /* no HAVE_SYS_PARAM_H */
19942 #   define getpagesize() 8192   /* punt totally */
19943 #  endif /* no HAVE_SYS_PARAM_H */
19944 # endif /* no _SC_PAGESIZE */
19945
19946 #endif /* no HAVE_GETPAGESIZE */
19947
19948 int
19949 main ()
19950 {
19951   char *data, *data2, *data3;
19952   const char *cdata2;
19953   int i, pagesize;
19954   int fd, fd2;
19955
19956   pagesize = getpagesize ();
19957
19958   /* First, make a file with some known garbage in it. */
19959   data = (char *) malloc (pagesize);
19960   if (!data)
19961     return 1;
19962   for (i = 0; i < pagesize; ++i)
19963     *(data + i) = rand ();
19964   umask (0);
19965   fd = creat ("conftest.mmap", 0600);
19966   if (fd < 0)
19967     return 2;
19968   if (write (fd, data, pagesize) != pagesize)
19969     return 3;
19970   close (fd);
19971
19972   /* Next, check that the tail of a page is zero-filled.  File must have
19973      non-zero length, otherwise we risk SIGBUS for entire page.  */
19974   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19975   if (fd2 < 0)
19976     return 4;
19977   cdata2 = "";
19978   if (write (fd2, cdata2, 1) != 1)
19979     return 5;
19980   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19981   if (data2 == MAP_FAILED)
19982     return 6;
19983   for (i = 0; i < pagesize; ++i)
19984     if (*(data2 + i))
19985       return 7;
19986   close (fd2);
19987   if (munmap (data2, pagesize))
19988     return 8;
19989
19990   /* Next, try to mmap the file at a fixed address which already has
19991      something else allocated at it.  If we can, also make sure that
19992      we see the same garbage.  */
19993   fd = open ("conftest.mmap", O_RDWR);
19994   if (fd < 0)
19995     return 9;
19996   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19997                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19998     return 10;
19999   for (i = 0; i < pagesize; ++i)
20000     if (*(data + i) != *(data2 + i))
20001       return 11;
20002
20003   /* Finally, make sure that changes to the mapped area do not
20004      percolate back to the file as seen by read().  (This is a bug on
20005      some variants of i386 svr4.0.)  */
20006   for (i = 0; i < pagesize; ++i)
20007     *(data2 + i) = *(data2 + i) + 1;
20008   data3 = (char *) malloc (pagesize);
20009   if (!data3)
20010     return 12;
20011   if (read (fd, data3, pagesize) != pagesize)
20012     return 13;
20013   for (i = 0; i < pagesize; ++i)
20014     if (*(data + i) != *(data3 + i))
20015       return 14;
20016   close (fd);
20017   return 0;
20018 }
20019 _ACEOF
20020 if ac_fn_c_try_run "$LINENO"; then :
20021   ac_cv_func_mmap_fixed_mapped=yes
20022 else
20023   ac_cv_func_mmap_fixed_mapped=no
20024 fi
20025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20026   conftest.$ac_objext conftest.beam conftest.$ac_ext
20027 fi
20028
20029 fi
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20031 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20032 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20033
20034 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20035
20036 fi
20037 rm -f conftest.mmap conftest.txt
20038
20039
20040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20041 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20042 if ${ac_cv_gnu_library_2_1+:} false; then :
20043   $as_echo_n "(cached) " >&6
20044 else
20045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h.  */
20047
20048 #include <features.h>
20049 #ifdef __GNU_LIBRARY__
20050  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20051   Lucky GNU user
20052  #endif
20053 #endif
20054
20055 _ACEOF
20056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20057   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20058   ac_cv_gnu_library_2_1=yes
20059 else
20060   ac_cv_gnu_library_2_1=no
20061 fi
20062 rm -f conftest*
20063
20064
20065
20066 fi
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20068 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20069
20070     GLIBC21="$ac_cv_gnu_library_2_1"
20071
20072
20073
20074
20075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20076 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20077 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20078   $as_echo_n "(cached) " >&6
20079 else
20080
20081       if test "$cross_compiling" = yes; then :
20082
20083           # Guess based on the CPU.
20084           case "$host_cpu" in
20085             alpha* | i3456786 | m68k | s390*)
20086               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20087             *)
20088               gt_cv_int_divbyzero_sigfpe="guessing no";;
20089           esac
20090
20091 else
20092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093 /* end confdefs.h.  */
20094
20095 #include <stdlib.h>
20096 #include <signal.h>
20097
20098 static void
20099 #ifdef __cplusplus
20100 sigfpe_handler (int sig)
20101 #else
20102 sigfpe_handler (sig) int sig;
20103 #endif
20104 {
20105   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20106   exit (sig != SIGFPE);
20107 }
20108
20109 int x = 1;
20110 int y = 0;
20111 int z;
20112 int nan;
20113
20114 int main ()
20115 {
20116   signal (SIGFPE, sigfpe_handler);
20117 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20118 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20119   signal (SIGTRAP, sigfpe_handler);
20120 #endif
20121 /* Linux/SPARC yields signal SIGILL.  */
20122 #if defined (__sparc__) && defined (__linux__)
20123   signal (SIGILL, sigfpe_handler);
20124 #endif
20125
20126   z = x / y;
20127   nan = y / y;
20128   exit (1);
20129 }
20130
20131 _ACEOF
20132 if ac_fn_c_try_run "$LINENO"; then :
20133   gt_cv_int_divbyzero_sigfpe=yes
20134 else
20135   gt_cv_int_divbyzero_sigfpe=no
20136 fi
20137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20138   conftest.$ac_objext conftest.beam conftest.$ac_ext
20139 fi
20140
20141
20142 fi
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20144 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20145   case "$gt_cv_int_divbyzero_sigfpe" in
20146     *yes) value=1;;
20147     *) value=0;;
20148   esac
20149
20150 cat >>confdefs.h <<_ACEOF
20151 #define INTDIV0_RAISES_SIGFPE $value
20152 _ACEOF
20153
20154
20155
20156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20157 $as_echo_n "checking for unsigned long long... " >&6; }
20158 if ${ac_cv_type_unsigned_long_long+:} false; then :
20159   $as_echo_n "(cached) " >&6
20160 else
20161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h.  */
20163 unsigned long long ull = 1ULL; int i = 63;
20164 int
20165 main ()
20166 {
20167 unsigned long long ullmax = (unsigned long long) -1;
20168      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20169   ;
20170   return 0;
20171 }
20172 _ACEOF
20173 if ac_fn_c_try_link "$LINENO"; then :
20174   ac_cv_type_unsigned_long_long=yes
20175 else
20176   ac_cv_type_unsigned_long_long=no
20177 fi
20178 rm -f core conftest.err conftest.$ac_objext \
20179     conftest$ac_exeext conftest.$ac_ext
20180 fi
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20182 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20183   if test $ac_cv_type_unsigned_long_long = yes; then
20184
20185 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20186
20187   fi
20188
20189
20190
20191
20192   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20193
20194     test $ac_cv_type_unsigned_long_long = yes \
20195       && ac_type='unsigned long long' \
20196       || ac_type='unsigned long'
20197
20198 cat >>confdefs.h <<_ACEOF
20199 #define uintmax_t $ac_type
20200 _ACEOF
20201
20202   else
20203
20204 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20205
20206   fi
20207
20208
20209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20210 $as_echo_n "checking for inttypes.h... " >&6; }
20211 if ${gt_cv_header_inttypes_h+:} false; then :
20212   $as_echo_n "(cached) " >&6
20213 else
20214
20215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h.  */
20217 #include <sys/types.h>
20218 #include <inttypes.h>
20219 int
20220 main ()
20221 {
20222
20223   ;
20224   return 0;
20225 }
20226 _ACEOF
20227 if ac_fn_c_try_compile "$LINENO"; then :
20228   gt_cv_header_inttypes_h=yes
20229 else
20230   gt_cv_header_inttypes_h=no
20231 fi
20232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233
20234 fi
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20236 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20237   if test $gt_cv_header_inttypes_h = yes; then
20238
20239 cat >>confdefs.h <<_ACEOF
20240 #define HAVE_INTTYPES_H 1
20241 _ACEOF
20242
20243   fi
20244
20245
20246
20247   if test $gt_cv_header_inttypes_h = yes; then
20248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20249 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20250 if ${gt_cv_inttypes_pri_broken+:} false; then :
20251   $as_echo_n "(cached) " >&6
20252 else
20253
20254         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h.  */
20256 #include <inttypes.h>
20257 #ifdef PRId32
20258 char *p = PRId32;
20259 #endif
20260
20261 int
20262 main ()
20263 {
20264
20265   ;
20266   return 0;
20267 }
20268 _ACEOF
20269 if ac_fn_c_try_compile "$LINENO"; then :
20270   gt_cv_inttypes_pri_broken=no
20271 else
20272   gt_cv_inttypes_pri_broken=yes
20273 fi
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275
20276 fi
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20278 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20279   fi
20280   if test "$gt_cv_inttypes_pri_broken" = yes; then
20281
20282 cat >>confdefs.h <<_ACEOF
20283 #define PRI_MACROS_BROKEN 1
20284 _ACEOF
20285
20286   fi
20287
20288
20289   for ac_header in stdint.h
20290 do :
20291   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20292 if test "x$ac_cv_header_stdint_h" = xyes; then :
20293   cat >>confdefs.h <<_ACEOF
20294 #define HAVE_STDINT_H 1
20295 _ACEOF
20296
20297 fi
20298
20299 done
20300
20301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20302 $as_echo_n "checking for SIZE_MAX... " >&6; }
20303   result=
20304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20305 /* end confdefs.h.  */
20306
20307 #include <limits.h>
20308 #if HAVE_STDINT_H
20309 #include <stdint.h>
20310 #endif
20311 #ifdef SIZE_MAX
20312 Found it
20313 #endif
20314
20315 _ACEOF
20316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20317   $EGREP "Found it" >/dev/null 2>&1; then :
20318   result=yes
20319 fi
20320 rm -f conftest*
20321
20322   if test -z "$result"; then
20323                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20324
20325 else
20326   result=?
20327 fi
20328
20329
20330     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20331
20332 else
20333   result=?
20334 fi
20335
20336
20337     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20338
20339 else
20340   result=?
20341 fi
20342
20343
20344     if test "$fits_in_uint" = 1; then
20345                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20346 /* end confdefs.h.  */
20347 #include <stddef.h>
20348         extern size_t foo;
20349         extern unsigned long foo;
20350
20351 int
20352 main ()
20353 {
20354
20355   ;
20356   return 0;
20357 }
20358 _ACEOF
20359 if ac_fn_c_try_compile "$LINENO"; then :
20360   fits_in_uint=0
20361 fi
20362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363     fi
20364     if test -z "$result"; then
20365       if test "$fits_in_uint" = 1; then
20366         result="$res_hi$res_lo"U
20367       else
20368         result="$res_hi$res_lo"UL
20369       fi
20370     else
20371             result='~(size_t)0'
20372     fi
20373   fi
20374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20375 $as_echo "$result" >&6; }
20376   if test "$result" != yes; then
20377
20378 cat >>confdefs.h <<_ACEOF
20379 #define SIZE_MAX $result
20380 _ACEOF
20381
20382   fi
20383
20384
20385
20386
20387   for ac_header in stdint.h
20388 do :
20389   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20390 if test "x$ac_cv_header_stdint_h" = xyes; then :
20391   cat >>confdefs.h <<_ACEOF
20392 #define HAVE_STDINT_H 1
20393 _ACEOF
20394
20395 fi
20396
20397 done
20398
20399
20400
20401
20402
20403
20404
20405
20406   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20407 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20408
20409 else
20410
20411 $as_echo "#define ptrdiff_t long" >>confdefs.h
20412
20413
20414 fi
20415
20416   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20417 stdlib.h string.h unistd.h sys/param.h
20418 do :
20419   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20422   cat >>confdefs.h <<_ACEOF
20423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20424 _ACEOF
20425
20426 fi
20427
20428 done
20429
20430   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20431 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20432 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20433 __fsetlocking
20434 do :
20435   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20438   cat >>confdefs.h <<_ACEOF
20439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20440 _ACEOF
20441
20442 fi
20443 done
20444
20445
20446
20447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20448 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20449 if ${ac_cv_have_decl__snprintf+:} false; then :
20450   $as_echo_n "(cached) " >&6
20451 else
20452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h.  */
20454 #include <stdio.h>
20455 int
20456 main ()
20457 {
20458
20459 #ifndef _snprintf
20460   char *p = (char *) _snprintf;
20461 #endif
20462
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 if ac_fn_c_try_compile "$LINENO"; then :
20468   ac_cv_have_decl__snprintf=yes
20469 else
20470   ac_cv_have_decl__snprintf=no
20471 fi
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473 fi
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20475 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20476   if test $ac_cv_have_decl__snprintf = yes; then
20477     gt_value=1
20478   else
20479     gt_value=0
20480   fi
20481
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_DECL__SNPRINTF $gt_value
20484 _ACEOF
20485
20486
20487
20488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20489 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20490 if ${ac_cv_have_decl__snwprintf+:} false; then :
20491   $as_echo_n "(cached) " >&6
20492 else
20493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h.  */
20495 #include <stdio.h>
20496 int
20497 main ()
20498 {
20499
20500 #ifndef _snwprintf
20501   char *p = (char *) _snwprintf;
20502 #endif
20503
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 if ac_fn_c_try_compile "$LINENO"; then :
20509   ac_cv_have_decl__snwprintf=yes
20510 else
20511   ac_cv_have_decl__snwprintf=no
20512 fi
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 fi
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20516 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20517   if test $ac_cv_have_decl__snwprintf = yes; then
20518     gt_value=1
20519   else
20520     gt_value=0
20521   fi
20522
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_DECL__SNWPRINTF $gt_value
20525 _ACEOF
20526
20527
20528
20529
20530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20531 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20532 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20533   $as_echo_n "(cached) " >&6
20534 else
20535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h.  */
20537 #include <stdio.h>
20538 int
20539 main ()
20540 {
20541
20542 #ifndef feof_unlocked
20543   char *p = (char *) feof_unlocked;
20544 #endif
20545
20546   ;
20547   return 0;
20548 }
20549 _ACEOF
20550 if ac_fn_c_try_compile "$LINENO"; then :
20551   ac_cv_have_decl_feof_unlocked=yes
20552 else
20553   ac_cv_have_decl_feof_unlocked=no
20554 fi
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 fi
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20558 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20559   if test $ac_cv_have_decl_feof_unlocked = yes; then
20560     gt_value=1
20561   else
20562     gt_value=0
20563   fi
20564
20565 cat >>confdefs.h <<_ACEOF
20566 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20567 _ACEOF
20568
20569
20570
20571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20572 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20573 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20574   $as_echo_n "(cached) " >&6
20575 else
20576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h.  */
20578 #include <stdio.h>
20579 int
20580 main ()
20581 {
20582
20583 #ifndef fgets_unlocked
20584   char *p = (char *) fgets_unlocked;
20585 #endif
20586
20587   ;
20588   return 0;
20589 }
20590 _ACEOF
20591 if ac_fn_c_try_compile "$LINENO"; then :
20592   ac_cv_have_decl_fgets_unlocked=yes
20593 else
20594   ac_cv_have_decl_fgets_unlocked=no
20595 fi
20596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597 fi
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20599 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20600   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20601     gt_value=1
20602   else
20603     gt_value=0
20604   fi
20605
20606 cat >>confdefs.h <<_ACEOF
20607 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20608 _ACEOF
20609
20610
20611
20612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20613 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20614 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20615   $as_echo_n "(cached) " >&6
20616 else
20617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h.  */
20619 #include <stdio.h>
20620 int
20621 main ()
20622 {
20623
20624 #ifndef getc_unlocked
20625   char *p = (char *) getc_unlocked;
20626 #endif
20627
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 if ac_fn_c_try_compile "$LINENO"; then :
20633   ac_cv_have_decl_getc_unlocked=yes
20634 else
20635   ac_cv_have_decl_getc_unlocked=no
20636 fi
20637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20638 fi
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20640 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20641   if test $ac_cv_have_decl_getc_unlocked = yes; then
20642     gt_value=1
20643   else
20644     gt_value=0
20645   fi
20646
20647 cat >>confdefs.h <<_ACEOF
20648 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20649 _ACEOF
20650
20651
20652
20653   case $gt_cv_func_printf_posix in
20654     *yes) HAVE_POSIX_PRINTF=1 ;;
20655     *) HAVE_POSIX_PRINTF=0 ;;
20656   esac
20657
20658   if test "$ac_cv_func_asprintf" = yes; then
20659     HAVE_ASPRINTF=1
20660   else
20661     HAVE_ASPRINTF=0
20662   fi
20663
20664   if test "$ac_cv_func_snprintf" = yes; then
20665     HAVE_SNPRINTF=1
20666   else
20667     HAVE_SNPRINTF=0
20668   fi
20669
20670   if test "$ac_cv_func_wprintf" = yes; then
20671     HAVE_WPRINTF=1
20672   else
20673     HAVE_WPRINTF=0
20674   fi
20675
20676
20677
20678
20679
20680
20681
20682           am_save_CPPFLAGS="$CPPFLAGS"
20683
20684   for element in $INCICONV; do
20685     haveit=
20686     for x in $CPPFLAGS; do
20687
20688   acl_save_prefix="$prefix"
20689   prefix="$acl_final_prefix"
20690   acl_save_exec_prefix="$exec_prefix"
20691   exec_prefix="$acl_final_exec_prefix"
20692   eval x=\"$x\"
20693   exec_prefix="$acl_save_exec_prefix"
20694   prefix="$acl_save_prefix"
20695
20696       if test "X$x" = "X$element"; then
20697         haveit=yes
20698         break
20699       fi
20700     done
20701     if test -z "$haveit"; then
20702       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20703     fi
20704   done
20705
20706
20707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20708 $as_echo_n "checking for iconv... " >&6; }
20709 if ${am_cv_func_iconv+:} false; then :
20710   $as_echo_n "(cached) " >&6
20711 else
20712
20713     am_cv_func_iconv="no, consider installing GNU libiconv"
20714     am_cv_lib_iconv=no
20715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h.  */
20717 #include <stdlib.h>
20718 #include <iconv.h>
20719 int
20720 main ()
20721 {
20722 iconv_t cd = iconv_open("","");
20723        iconv(cd,NULL,NULL,NULL,NULL);
20724        iconv_close(cd);
20725   ;
20726   return 0;
20727 }
20728 _ACEOF
20729 if ac_fn_c_try_link "$LINENO"; then :
20730   am_cv_func_iconv=yes
20731 fi
20732 rm -f core conftest.err conftest.$ac_objext \
20733     conftest$ac_exeext conftest.$ac_ext
20734     if test "$am_cv_func_iconv" != yes; then
20735       am_save_LIBS="$LIBS"
20736       LIBS="$LIBS $LIBICONV"
20737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h.  */
20739 #include <stdlib.h>
20740 #include <iconv.h>
20741 int
20742 main ()
20743 {
20744 iconv_t cd = iconv_open("","");
20745          iconv(cd,NULL,NULL,NULL,NULL);
20746          iconv_close(cd);
20747   ;
20748   return 0;
20749 }
20750 _ACEOF
20751 if ac_fn_c_try_link "$LINENO"; then :
20752   am_cv_lib_iconv=yes
20753         am_cv_func_iconv=yes
20754 fi
20755 rm -f core conftest.err conftest.$ac_objext \
20756     conftest$ac_exeext conftest.$ac_ext
20757       LIBS="$am_save_LIBS"
20758     fi
20759
20760 fi
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20762 $as_echo "$am_cv_func_iconv" >&6; }
20763   if test "$am_cv_func_iconv" = yes; then
20764
20765 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20766
20767   fi
20768   if test "$am_cv_lib_iconv" = yes; then
20769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20770 $as_echo_n "checking how to link with libiconv... " >&6; }
20771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20772 $as_echo "$LIBICONV" >&6; }
20773   else
20774             CPPFLAGS="$am_save_CPPFLAGS"
20775     LIBICONV=
20776     LTLIBICONV=
20777   fi
20778
20779
20780
20781   if test "$am_cv_func_iconv" = yes; then
20782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20783 $as_echo_n "checking for iconv declaration... " >&6; }
20784     if ${am_cv_proto_iconv+:} false; then :
20785   $as_echo_n "(cached) " >&6
20786 else
20787
20788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789 /* end confdefs.h.  */
20790
20791 #include <stdlib.h>
20792 #include <iconv.h>
20793 extern
20794 #ifdef __cplusplus
20795 "C"
20796 #endif
20797 #if defined(__STDC__) || defined(__cplusplus)
20798 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20799 #else
20800 size_t iconv();
20801 #endif
20802
20803 int
20804 main ()
20805 {
20806
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 if ac_fn_c_try_compile "$LINENO"; then :
20812   am_cv_proto_iconv_arg1=""
20813 else
20814   am_cv_proto_iconv_arg1="const"
20815 fi
20816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20817       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);"
20818 fi
20819
20820     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20822          }$am_cv_proto_iconv" >&5
20823 $as_echo "${ac_t:-
20824          }$am_cv_proto_iconv" >&6; }
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define ICONV_CONST $am_cv_proto_iconv_arg1
20828 _ACEOF
20829
20830   fi
20831
20832
20833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20834 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20835 if ${am_cv_langinfo_codeset+:} false; then :
20836   $as_echo_n "(cached) " >&6
20837 else
20838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h.  */
20840 #include <langinfo.h>
20841 int
20842 main ()
20843 {
20844 char* cs = nl_langinfo(CODESET);
20845   ;
20846   return 0;
20847 }
20848 _ACEOF
20849 if ac_fn_c_try_link "$LINENO"; then :
20850   am_cv_langinfo_codeset=yes
20851 else
20852   am_cv_langinfo_codeset=no
20853 fi
20854 rm -f core conftest.err conftest.$ac_objext \
20855     conftest$ac_exeext conftest.$ac_ext
20856
20857 fi
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20859 $as_echo "$am_cv_langinfo_codeset" >&6; }
20860   if test $am_cv_langinfo_codeset = yes; then
20861
20862 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20863
20864   fi
20865
20866   if test $ac_cv_header_locale_h = yes; then
20867
20868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20869 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20870 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20871   $as_echo_n "(cached) " >&6
20872 else
20873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h.  */
20875 #include <locale.h>
20876 int
20877 main ()
20878 {
20879 return LC_MESSAGES
20880   ;
20881   return 0;
20882 }
20883 _ACEOF
20884 if ac_fn_c_try_link "$LINENO"; then :
20885   gt_cv_val_LC_MESSAGES=yes
20886 else
20887   gt_cv_val_LC_MESSAGES=no
20888 fi
20889 rm -f core conftest.err conftest.$ac_objext \
20890     conftest$ac_exeext conftest.$ac_ext
20891 fi
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20893 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20894   if test $gt_cv_val_LC_MESSAGES = yes; then
20895
20896 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20897
20898   fi
20899
20900   fi
20901
20902   if test -n "$INTL_MACOSX_LIBS"; then
20903     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20904   fi
20905
20906                       for ac_prog in bison
20907 do
20908   # Extract the first word of "$ac_prog", so it can be a program name with args.
20909 set dummy $ac_prog; ac_word=$2
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20911 $as_echo_n "checking for $ac_word... " >&6; }
20912 if ${ac_cv_prog_INTLBISON+:} false; then :
20913   $as_echo_n "(cached) " >&6
20914 else
20915   if test -n "$INTLBISON"; then
20916   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20917 else
20918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20919 for as_dir in $PATH
20920 do
20921   IFS=$as_save_IFS
20922   test -z "$as_dir" && as_dir=.
20923     for ac_exec_ext in '' $ac_executable_extensions; do
20924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20925     ac_cv_prog_INTLBISON="$ac_prog"
20926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20927     break 2
20928   fi
20929 done
20930   done
20931 IFS=$as_save_IFS
20932
20933 fi
20934 fi
20935 INTLBISON=$ac_cv_prog_INTLBISON
20936 if test -n "$INTLBISON"; then
20937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20938 $as_echo "$INTLBISON" >&6; }
20939 else
20940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941 $as_echo "no" >&6; }
20942 fi
20943
20944
20945   test -n "$INTLBISON" && break
20946 done
20947
20948   if test -z "$INTLBISON"; then
20949     ac_verc_fail=yes
20950   else
20951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20952 $as_echo_n "checking version of bison... " >&6; }
20953     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20954     case $ac_prog_version in
20955       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20956       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20957          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20958       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20959     esac
20960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20961 $as_echo "$ac_prog_version" >&6; }
20962   fi
20963   if test $ac_verc_fail = yes; then
20964     INTLBISON=:
20965   fi
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20983 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20984 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20985   $as_echo_n "(cached) " >&6
20986 else
20987   gt_save_CPPFLAGS="$CPPFLAGS"
20988      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20989      gt_save_LIBS="$LIBS"
20990      LIBS="$LIBS -framework CoreFoundation"
20991      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h.  */
20993 #include <CFPreferences.h>
20994 int
20995 main ()
20996 {
20997 CFPreferencesCopyAppValue(NULL, NULL)
20998   ;
20999   return 0;
21000 }
21001 _ACEOF
21002 if ac_fn_c_try_link "$LINENO"; then :
21003   gt_cv_func_CFPreferencesCopyAppValue=yes
21004 else
21005   gt_cv_func_CFPreferencesCopyAppValue=no
21006 fi
21007 rm -f core conftest.err conftest.$ac_objext \
21008     conftest$ac_exeext conftest.$ac_ext
21009      CPPFLAGS="$gt_save_CPPFLAGS"
21010      LIBS="$gt_save_LIBS"
21011 fi
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21013 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21014   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21015
21016 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21017
21018   fi
21019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21020 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21021 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21022   $as_echo_n "(cached) " >&6
21023 else
21024   gt_save_CPPFLAGS="$CPPFLAGS"
21025      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21026      gt_save_LIBS="$LIBS"
21027      LIBS="$LIBS -framework CoreFoundation"
21028      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h.  */
21030 #include <CFLocale.h>
21031 int
21032 main ()
21033 {
21034 CFLocaleCopyCurrent();
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 if ac_fn_c_try_link "$LINENO"; then :
21040   gt_cv_func_CFLocaleCopyCurrent=yes
21041 else
21042   gt_cv_func_CFLocaleCopyCurrent=no
21043 fi
21044 rm -f core conftest.err conftest.$ac_objext \
21045     conftest$ac_exeext conftest.$ac_ext
21046      CPPFLAGS="$gt_save_CPPFLAGS"
21047      LIBS="$gt_save_LIBS"
21048 fi
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21050 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21051   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21052
21053 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21054
21055   fi
21056   INTL_MACOSX_LIBS=
21057   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21058     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21059   fi
21060
21061
21062
21063
21064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21065 $as_echo_n "checking whether NLS is requested... " >&6; }
21066     # Check whether --enable-nls was given.
21067 if test "${enable_nls+set}" = set; then :
21068   enableval=$enable_nls; USE_NLS=$enableval
21069 else
21070   USE_NLS=yes
21071 fi
21072
21073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21074 $as_echo "$USE_NLS" >&6; }
21075
21076
21077
21078
21079     BUILD_INCLUDED_LIBINTL=no
21080     USE_INCLUDED_LIBINTL=no
21081
21082   LIBINTL=
21083   LTLIBINTL=
21084   POSUB=
21085
21086     if test "$USE_NLS" = "yes"; then
21087     gt_use_preinstalled_gnugettext=no
21088
21089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21090 $as_echo_n "checking whether included gettext is requested... " >&6; }
21091
21092 # Check whether --with-included-gettext was given.
21093 if test "${with_included_gettext+set}" = set; then :
21094   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21095 else
21096   nls_cv_force_use_gnu_gettext=no
21097 fi
21098
21099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21100 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21101
21102       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21103       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21104
21105
21106
21107
21108
21109
21110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21111 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21112 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21113   $as_echo_n "(cached) " >&6
21114 else
21115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21116 /* end confdefs.h.  */
21117 #include <libintl.h>
21118 extern int _nl_msg_cat_cntr;
21119 extern int *_nl_domain_bindings;
21120 int
21121 main ()
21122 {
21123 bindtextdomain ("", "");
21124 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21125   ;
21126   return 0;
21127 }
21128 _ACEOF
21129 if ac_fn_c_try_link "$LINENO"; then :
21130   gt_cv_func_gnugettext1_libc=yes
21131 else
21132   gt_cv_func_gnugettext1_libc=no
21133 fi
21134 rm -f core conftest.err conftest.$ac_objext \
21135     conftest$ac_exeext conftest.$ac_ext
21136 fi
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21138 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21139
21140         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21141
21142
21143
21144     use_additional=yes
21145
21146   acl_save_prefix="$prefix"
21147   prefix="$acl_final_prefix"
21148   acl_save_exec_prefix="$exec_prefix"
21149   exec_prefix="$acl_final_exec_prefix"
21150
21151     eval additional_includedir=\"$includedir\"
21152     eval additional_libdir=\"$libdir\"
21153
21154   exec_prefix="$acl_save_exec_prefix"
21155   prefix="$acl_save_prefix"
21156
21157
21158 # Check whether --with-libintl-prefix was given.
21159 if test "${with_libintl_prefix+set}" = set; then :
21160   withval=$with_libintl_prefix;
21161     if test "X$withval" = "Xno"; then
21162       use_additional=no
21163     else
21164       if test "X$withval" = "X"; then
21165
21166   acl_save_prefix="$prefix"
21167   prefix="$acl_final_prefix"
21168   acl_save_exec_prefix="$exec_prefix"
21169   exec_prefix="$acl_final_exec_prefix"
21170
21171           eval additional_includedir=\"$includedir\"
21172           eval additional_libdir=\"$libdir\"
21173
21174   exec_prefix="$acl_save_exec_prefix"
21175   prefix="$acl_save_prefix"
21176
21177       else
21178         additional_includedir="$withval/include"
21179         additional_libdir="$withval/lib"
21180       fi
21181     fi
21182
21183 fi
21184
21185       LIBINTL=
21186   LTLIBINTL=
21187   INCINTL=
21188   rpathdirs=
21189   ltrpathdirs=
21190   names_already_handled=
21191   names_next_round='intl '
21192   while test -n "$names_next_round"; do
21193     names_this_round="$names_next_round"
21194     names_next_round=
21195     for name in $names_this_round; do
21196       already_handled=
21197       for n in $names_already_handled; do
21198         if test "$n" = "$name"; then
21199           already_handled=yes
21200           break
21201         fi
21202       done
21203       if test -z "$already_handled"; then
21204         names_already_handled="$names_already_handled $name"
21205                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21206         eval value=\"\$HAVE_LIB$uppername\"
21207         if test -n "$value"; then
21208           if test "$value" = yes; then
21209             eval value=\"\$LIB$uppername\"
21210             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21211             eval value=\"\$LTLIB$uppername\"
21212             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21213           else
21214                                     :
21215           fi
21216         else
21217                               found_dir=
21218           found_la=
21219           found_so=
21220           found_a=
21221           if test $use_additional = yes; then
21222             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21223               found_dir="$additional_libdir"
21224               found_so="$additional_libdir/lib$name.$shlibext"
21225               if test -f "$additional_libdir/lib$name.la"; then
21226                 found_la="$additional_libdir/lib$name.la"
21227               fi
21228             else
21229               if test -f "$additional_libdir/lib$name.$libext"; then
21230                 found_dir="$additional_libdir"
21231                 found_a="$additional_libdir/lib$name.$libext"
21232                 if test -f "$additional_libdir/lib$name.la"; then
21233                   found_la="$additional_libdir/lib$name.la"
21234                 fi
21235               fi
21236             fi
21237           fi
21238           if test "X$found_dir" = "X"; then
21239             for x in $LDFLAGS $LTLIBINTL; do
21240
21241   acl_save_prefix="$prefix"
21242   prefix="$acl_final_prefix"
21243   acl_save_exec_prefix="$exec_prefix"
21244   exec_prefix="$acl_final_exec_prefix"
21245   eval x=\"$x\"
21246   exec_prefix="$acl_save_exec_prefix"
21247   prefix="$acl_save_prefix"
21248
21249               case "$x" in
21250                 -L*)
21251                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21252                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21253                     found_dir="$dir"
21254                     found_so="$dir/lib$name.$shlibext"
21255                     if test -f "$dir/lib$name.la"; then
21256                       found_la="$dir/lib$name.la"
21257                     fi
21258                   else
21259                     if test -f "$dir/lib$name.$libext"; then
21260                       found_dir="$dir"
21261                       found_a="$dir/lib$name.$libext"
21262                       if test -f "$dir/lib$name.la"; then
21263                         found_la="$dir/lib$name.la"
21264                       fi
21265                     fi
21266                   fi
21267                   ;;
21268               esac
21269               if test "X$found_dir" != "X"; then
21270                 break
21271               fi
21272             done
21273           fi
21274           if test "X$found_dir" != "X"; then
21275                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21276             if test "X$found_so" != "X"; then
21277                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21278                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21279               else
21280                                                                                 haveit=
21281                 for x in $ltrpathdirs; do
21282                   if test "X$x" = "X$found_dir"; then
21283                     haveit=yes
21284                     break
21285                   fi
21286                 done
21287                 if test -z "$haveit"; then
21288                   ltrpathdirs="$ltrpathdirs $found_dir"
21289                 fi
21290                                 if test "$hardcode_direct" = yes; then
21291                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21292                 else
21293                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21294                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21295                                                             haveit=
21296                     for x in $rpathdirs; do
21297                       if test "X$x" = "X$found_dir"; then
21298                         haveit=yes
21299                         break
21300                       fi
21301                     done
21302                     if test -z "$haveit"; then
21303                       rpathdirs="$rpathdirs $found_dir"
21304                     fi
21305                   else
21306                                                                                 haveit=
21307                     for x in $LDFLAGS $LIBINTL; do
21308
21309   acl_save_prefix="$prefix"
21310   prefix="$acl_final_prefix"
21311   acl_save_exec_prefix="$exec_prefix"
21312   exec_prefix="$acl_final_exec_prefix"
21313   eval x=\"$x\"
21314   exec_prefix="$acl_save_exec_prefix"
21315   prefix="$acl_save_prefix"
21316
21317                       if test "X$x" = "X-L$found_dir"; then
21318                         haveit=yes
21319                         break
21320                       fi
21321                     done
21322                     if test -z "$haveit"; then
21323                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21324                     fi
21325                     if test "$hardcode_minus_L" != no; then
21326                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21327                     else
21328                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21329                     fi
21330                   fi
21331                 fi
21332               fi
21333             else
21334               if test "X$found_a" != "X"; then
21335                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21336               else
21337                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21338               fi
21339             fi
21340                         additional_includedir=
21341             case "$found_dir" in
21342               */lib | */lib/)
21343                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21344                 additional_includedir="$basedir/include"
21345                 ;;
21346             esac
21347             if test "X$additional_includedir" != "X"; then
21348                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21349                 haveit=
21350                 if test "X$additional_includedir" = "X/usr/local/include"; then
21351                   if test -n "$GCC"; then
21352                     case $host_os in
21353                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21354                     esac
21355                   fi
21356                 fi
21357                 if test -z "$haveit"; then
21358                   for x in $CPPFLAGS $INCINTL; do
21359
21360   acl_save_prefix="$prefix"
21361   prefix="$acl_final_prefix"
21362   acl_save_exec_prefix="$exec_prefix"
21363   exec_prefix="$acl_final_exec_prefix"
21364   eval x=\"$x\"
21365   exec_prefix="$acl_save_exec_prefix"
21366   prefix="$acl_save_prefix"
21367
21368                     if test "X$x" = "X-I$additional_includedir"; then
21369                       haveit=yes
21370                       break
21371                     fi
21372                   done
21373                   if test -z "$haveit"; then
21374                     if test -d "$additional_includedir"; then
21375                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21376                     fi
21377                   fi
21378                 fi
21379               fi
21380             fi
21381                         if test -n "$found_la"; then
21382                                                         save_libdir="$libdir"
21383               case "$found_la" in
21384                 */* | *\\*) . "$found_la" ;;
21385                 *) . "./$found_la" ;;
21386               esac
21387               libdir="$save_libdir"
21388                             for dep in $dependency_libs; do
21389                 case "$dep" in
21390                   -L*)
21391                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21392                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21393                       haveit=
21394                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21395                         if test -n "$GCC"; then
21396                           case $host_os in
21397                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21398                           esac
21399                         fi
21400                       fi
21401                       if test -z "$haveit"; then
21402                         haveit=
21403                         for x in $LDFLAGS $LIBINTL; do
21404
21405   acl_save_prefix="$prefix"
21406   prefix="$acl_final_prefix"
21407   acl_save_exec_prefix="$exec_prefix"
21408   exec_prefix="$acl_final_exec_prefix"
21409   eval x=\"$x\"
21410   exec_prefix="$acl_save_exec_prefix"
21411   prefix="$acl_save_prefix"
21412
21413                           if test "X$x" = "X-L$additional_libdir"; then
21414                             haveit=yes
21415                             break
21416                           fi
21417                         done
21418                         if test -z "$haveit"; then
21419                           if test -d "$additional_libdir"; then
21420                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21421                           fi
21422                         fi
21423                         haveit=
21424                         for x in $LDFLAGS $LTLIBINTL; do
21425
21426   acl_save_prefix="$prefix"
21427   prefix="$acl_final_prefix"
21428   acl_save_exec_prefix="$exec_prefix"
21429   exec_prefix="$acl_final_exec_prefix"
21430   eval x=\"$x\"
21431   exec_prefix="$acl_save_exec_prefix"
21432   prefix="$acl_save_prefix"
21433
21434                           if test "X$x" = "X-L$additional_libdir"; then
21435                             haveit=yes
21436                             break
21437                           fi
21438                         done
21439                         if test -z "$haveit"; then
21440                           if test -d "$additional_libdir"; then
21441                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21442                           fi
21443                         fi
21444                       fi
21445                     fi
21446                     ;;
21447                   -R*)
21448                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21449                     if test "$enable_rpath" != no; then
21450                                                                   haveit=
21451                       for x in $rpathdirs; do
21452                         if test "X$x" = "X$dir"; then
21453                           haveit=yes
21454                           break
21455                         fi
21456                       done
21457                       if test -z "$haveit"; then
21458                         rpathdirs="$rpathdirs $dir"
21459                       fi
21460                                                                   haveit=
21461                       for x in $ltrpathdirs; do
21462                         if test "X$x" = "X$dir"; then
21463                           haveit=yes
21464                           break
21465                         fi
21466                       done
21467                       if test -z "$haveit"; then
21468                         ltrpathdirs="$ltrpathdirs $dir"
21469                       fi
21470                     fi
21471                     ;;
21472                   -l*)
21473                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21474                     ;;
21475                   *.la)
21476                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21477                     ;;
21478                   *)
21479                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21480                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21481                     ;;
21482                 esac
21483               done
21484             fi
21485           else
21486                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21487             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21488           fi
21489         fi
21490       fi
21491     done
21492   done
21493   if test "X$rpathdirs" != "X"; then
21494     if test -n "$hardcode_libdir_separator"; then
21495                         alldirs=
21496       for found_dir in $rpathdirs; do
21497         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21498       done
21499             acl_save_libdir="$libdir"
21500       libdir="$alldirs"
21501       eval flag=\"$hardcode_libdir_flag_spec\"
21502       libdir="$acl_save_libdir"
21503       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21504     else
21505             for found_dir in $rpathdirs; do
21506         acl_save_libdir="$libdir"
21507         libdir="$found_dir"
21508         eval flag=\"$hardcode_libdir_flag_spec\"
21509         libdir="$acl_save_libdir"
21510         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21511       done
21512     fi
21513   fi
21514   if test "X$ltrpathdirs" != "X"; then
21515             for found_dir in $ltrpathdirs; do
21516       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21517     done
21518   fi
21519
21520           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21521 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21522 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21523   $as_echo_n "(cached) " >&6
21524 else
21525   gt_save_CPPFLAGS="$CPPFLAGS"
21526             CPPFLAGS="$CPPFLAGS $INCINTL"
21527             gt_save_LIBS="$LIBS"
21528             LIBS="$LIBS $LIBINTL"
21529                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530 /* end confdefs.h.  */
21531 #include <libintl.h>
21532 extern int _nl_msg_cat_cntr;
21533 extern
21534 #ifdef __cplusplus
21535 "C"
21536 #endif
21537 const char *_nl_expand_alias (const char *);
21538 int
21539 main ()
21540 {
21541 bindtextdomain ("", "");
21542 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 if ac_fn_c_try_link "$LINENO"; then :
21548   gt_cv_func_gnugettext1_libintl=yes
21549 else
21550   gt_cv_func_gnugettext1_libintl=no
21551 fi
21552 rm -f core conftest.err conftest.$ac_objext \
21553     conftest$ac_exeext conftest.$ac_ext
21554                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21555               LIBS="$LIBS $LIBICONV"
21556               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h.  */
21558 #include <libintl.h>
21559 extern int _nl_msg_cat_cntr;
21560 extern
21561 #ifdef __cplusplus
21562 "C"
21563 #endif
21564 const char *_nl_expand_alias (const char *);
21565 int
21566 main ()
21567 {
21568 bindtextdomain ("", "");
21569 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 if ac_fn_c_try_link "$LINENO"; then :
21575   LIBINTL="$LIBINTL $LIBICONV"
21576                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21577                 gt_cv_func_gnugettext1_libintl=yes
21578
21579 fi
21580 rm -f core conftest.err conftest.$ac_objext \
21581     conftest$ac_exeext conftest.$ac_ext
21582             fi
21583             CPPFLAGS="$gt_save_CPPFLAGS"
21584             LIBS="$gt_save_LIBS"
21585 fi
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21587 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21588         fi
21589
21590                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21591            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21592                 && test "$PACKAGE" != gettext-runtime \
21593                 && test "$PACKAGE" != gettext-tools; }; then
21594           gt_use_preinstalled_gnugettext=yes
21595         else
21596                     LIBINTL=
21597           LTLIBINTL=
21598           INCINTL=
21599         fi
21600
21601
21602         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21603                               nls_cv_use_gnu_gettext=yes
21604         fi
21605       fi
21606
21607       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21608                 BUILD_INCLUDED_LIBINTL=yes
21609         USE_INCLUDED_LIBINTL=yes
21610         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21611         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21612         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21613       fi
21614
21615       CATOBJEXT=
21616       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21617          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21618                 CATOBJEXT=.gmo
21619       fi
21620
21621
21622     if test -n "$INTL_MACOSX_LIBS"; then
21623       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21624          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21625                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21626         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21627       fi
21628     fi
21629
21630     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21631        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21632
21633 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21634
21635     else
21636       USE_NLS=no
21637     fi
21638   fi
21639
21640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21641 $as_echo_n "checking whether to use NLS... " >&6; }
21642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21643 $as_echo "$USE_NLS" >&6; }
21644   if test "$USE_NLS" = "yes"; then
21645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21646 $as_echo_n "checking where the gettext function comes from... " >&6; }
21647     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21648       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21649         gt_source="external libintl"
21650       else
21651         gt_source="libc"
21652       fi
21653     else
21654       gt_source="included intl directory"
21655     fi
21656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21657 $as_echo "$gt_source" >&6; }
21658   fi
21659
21660   if test "$USE_NLS" = "yes"; then
21661
21662     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21663       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21664         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21665 $as_echo_n "checking how to link with libintl... " >&6; }
21666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21667 $as_echo "$LIBINTL" >&6; }
21668
21669   for element in $INCINTL; do
21670     haveit=
21671     for x in $CPPFLAGS; do
21672
21673   acl_save_prefix="$prefix"
21674   prefix="$acl_final_prefix"
21675   acl_save_exec_prefix="$exec_prefix"
21676   exec_prefix="$acl_final_exec_prefix"
21677   eval x=\"$x\"
21678   exec_prefix="$acl_save_exec_prefix"
21679   prefix="$acl_save_prefix"
21680
21681       if test "X$x" = "X$element"; then
21682         haveit=yes
21683         break
21684       fi
21685     done
21686     if test -z "$haveit"; then
21687       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21688     fi
21689   done
21690
21691       fi
21692
21693
21694 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21695
21696
21697 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21698
21699     fi
21700
21701         POSUB=po
21702   fi
21703
21704
21705             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21706       BUILD_INCLUDED_LIBINTL=yes
21707     fi
21708
21709
21710
21711
21712
21713         nls_cv_header_intl=
21714     nls_cv_header_libgt=
21715
21716         DATADIRNAME=share
21717
21718
21719         INSTOBJEXT=.mo
21720
21721
21722         GENCAT=gencat
21723
21724
21725         INTLOBJS=
21726     if test "$USE_INCLUDED_LIBINTL" = yes; then
21727       INTLOBJS="\$(GETTOBJS)"
21728     fi
21729
21730
21731         INTL_LIBTOOL_SUFFIX_PREFIX=
21732
21733
21734
21735     INTLLIBS="$LIBINTL"
21736
21737
21738
21739
21740
21741
21742 fi
21743
21744 support_smartalloc=yes
21745 support_readline=yes
21746 support_lzo=yes
21747 support_conio=yes
21748 support_bat=no
21749 support_tls=no
21750 support_crypto=no
21751 support_static_tools=no
21752 support_static_fd=no
21753 support_static_sd=no
21754 support_static_dir=no
21755 support_static_cons=no
21756 build_client_only=no
21757 build_dird=yes
21758 build_stored=yes
21759 db_backends=""
21760 batch_insert_db_backends=""
21761 support_lockmgr=no
21762
21763
21764 # Check whether --enable-bat was given.
21765 if test "${enable_bat+set}" = set; then :
21766   enableval=$enable_bat;
21767        if test x$enableval = xyes; then
21768
21769 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21770
21771           support_bat=yes
21772        fi
21773
21774
21775 fi
21776
21777
21778 BAT_DIR=
21779 if test x$support_bat = xyes; then
21780    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21781    pkg=$?
21782    if test $pkg = 0; then
21783       BAT_DIR=src/qt-console
21784    else
21785       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21786    fi
21787 fi
21788
21789 got_qwt=no
21790 QWT_INC=
21791 QWT_LDFLAGS=
21792 QWT_LIB=
21793 QWT=
21794 no_qwt=no
21795
21796
21797
21798
21799
21800
21801
21802
21803 # Check whether --enable-smartalloc was given.
21804 if test "${enable_smartalloc+set}" = set; then :
21805   enableval=$enable_smartalloc;
21806        if test x$enableval = xno; then
21807           support_smartalloc=no
21808        fi
21809
21810
21811 fi
21812
21813
21814 if test x$support_smartalloc = xyes; then
21815
21816 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21817
21818 fi
21819
21820 # Check whether --enable-lockmgr was given.
21821 if test "${enable_lockmgr+set}" = set; then :
21822   enableval=$enable_lockmgr;
21823        if test x$enableval = xyes; then
21824           support_lockmgr=yes
21825        fi
21826
21827
21828 fi
21829
21830
21831 if test x$support_lockmgr = xyes; then
21832
21833 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21834
21835 fi
21836
21837
21838 # Check whether --enable-static-tools was given.
21839 if test "${enable_static_tools+set}" = set; then :
21840   enableval=$enable_static_tools;
21841        if test x$enableval = xyes; then
21842           if test x$use_libtool = xyes; then
21843              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21844   please rerun configure with --disable-libtool" "$LINENO" 5
21845           fi
21846           support_static_tools=yes
21847        fi
21848
21849
21850 fi
21851
21852
21853 TTOOL_LDFLAGS=
21854 if test x$support_static_tools = xyes; then
21855    TTOOL_LDFLAGS="-static"
21856 fi
21857
21858
21859 # Check whether --enable-static-fd was given.
21860 if test "${enable_static_fd+set}" = set; then :
21861   enableval=$enable_static_fd;
21862        if test x$enableval = xyes; then
21863           if test x$use_libtool = xyes; then
21864              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21865   please rerun configure with --disable-libtool" "$LINENO" 5
21866           fi
21867           support_static_fd=yes
21868        fi
21869
21870
21871 fi
21872
21873
21874 STATIC_FD=
21875 if test x$support_static_fd = xyes; then
21876    STATIC_FD="static-bacula-fd"
21877 fi
21878
21879
21880 # Check whether --enable-static-sd was given.
21881 if test "${enable_static_sd+set}" = set; then :
21882   enableval=$enable_static_sd;
21883        if test x$enableval = xyes; then
21884           if test x$use_libtool = xyes; then
21885              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21886   please rerun configure with --disable-libtool" "$LINENO" 5
21887           fi
21888           support_static_sd=yes
21889        fi
21890
21891
21892 fi
21893
21894
21895 STATIC_SD=
21896 if test x$support_static_sd = xyes; then
21897    STATIC_SD="static-bacula-sd"
21898 fi
21899
21900
21901 # Check whether --enable-static-dir was given.
21902 if test "${enable_static_dir+set}" = set; then :
21903   enableval=$enable_static_dir;
21904        if test x$enableval = xyes; then
21905           if test x$use_libtool = xyes; then
21906              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21907   please rerun configure with --disable-libtool" "$LINENO" 5
21908           fi
21909           support_static_dir=yes
21910        fi
21911
21912
21913 fi
21914
21915
21916 STATIC_DIR=
21917 if test x$support_static_dir = xyes; then
21918    STATIC_DIR="static-bacula-dir"
21919 fi
21920
21921
21922 # Check whether --enable-static-cons was given.
21923 if test "${enable_static_cons+set}" = set; then :
21924   enableval=$enable_static_cons;
21925        if test x$enableval = xyes; then
21926           if test x$use_libtool = xyes; then
21927              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21928   please rerun configure with --disable-libtool" "$LINENO" 5
21929           fi
21930           support_static_cons=yes
21931        fi
21932
21933
21934 fi
21935
21936
21937 STATIC_CONS=
21938 if test x$support_static_cons = xyes; then
21939    STATIC_CONS="static-bconsole"
21940 fi
21941
21942
21943 # Check whether --enable-client-only was given.
21944 if test "${enable_client_only+set}" = set; then :
21945   enableval=$enable_client_only;
21946        if test x$enableval = xyes; then
21947           build_client_only=yes
21948           db_backends="None"
21949           DB_BACKENDS="none"
21950        fi
21951
21952
21953 fi
21954
21955 if test x$build_client_only = xno; then
21956    ALL_DIRS="subdirs"
21957 else
21958    ALL_DIRS=""
21959 fi
21960
21961
21962 # Check whether --enable-build-dird was given.
21963 if test "${enable_build_dird+set}" = set; then :
21964   enableval=$enable_build_dird;
21965        if test x$enableval = xno; then
21966           build_dird=no
21967        fi
21968
21969
21970 fi
21971
21972
21973 DIRD_DIR="src/dird"
21974 DIR_TOOLS="DIRTOOLS"
21975
21976
21977
21978
21979 # Check whether --enable-build-stored was given.
21980 if test "${enable_build_stored+set}" = set; then :
21981   enableval=$enable_build_stored;
21982       if test x$enableval = xno; then
21983          build_stored=no
21984       fi
21985
21986
21987 fi
21988
21989 if test x$build_stored = xyes; then
21990    STORED_DIR="src/stored"
21991 else
21992    STORED_DIR=""
21993 fi
21994
21995
21996 # Check whether --enable-conio was given.
21997 if test "${enable_conio+set}" = set; then :
21998   enableval=$enable_conio;
21999        if test x$enableval = xno; then
22000           support_conio=no
22001        fi
22002
22003
22004 fi
22005
22006
22007
22008 support_ipv6=yes
22009 # Check whether --enable-ipv6 was given.
22010 if test "${enable_ipv6+set}" = set; then :
22011   enableval=$enable_ipv6;
22012        if test x$enableval = xno; then
22013           support_ipv6=no
22014        fi
22015
22016
22017 fi
22018
22019
22020 if test x$support_ipv6 = xyes; then
22021     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h.  */
22023  #include <sys/types.h>
22024 #include <sys/socket.h>
22025 #include <netinet/in.h>
22026 int
22027 main ()
22028 {
22029 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 if ac_fn_c_try_link "$LINENO"; then :
22035   support_in6addr_any=yes
22036 else
22037   support_in6addr_any=no
22038 fi
22039 rm -f core conftest.err conftest.$ac_objext \
22040     conftest$ac_exeext conftest.$ac_ext
22041
22042    if test x$support_in6addr_any = xno ; then
22043        in6addr_any="const struct in6_addr in6addr_any"
22044    else
22045        in6addr_any="1"
22046    fi
22047
22048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h.  */
22050  #include <sys/types.h>
22051 #include <sys/socket.h>
22052 #include <netinet/in.h>
22053 int
22054 main ()
22055 {
22056 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 if ac_fn_c_try_link "$LINENO"; then :
22062   support_ipv6=yes
22063 else
22064   support_ipv6=no
22065 fi
22066 rm -f core conftest.err conftest.$ac_objext \
22067     conftest$ac_exeext conftest.$ac_ext
22068 fi
22069
22070 if test x$support_ipv6 = xyes; then
22071
22072 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22073
22074
22075    if test x$support_in6addr_any = xno ; then
22076
22077 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22078
22079    fi
22080 fi
22081
22082 TERM_LIB=""
22083 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22084 if test "x$ac_cv_header_curses_h" = xyes; then :
22085
22086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22087 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22088 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22089   $as_echo_n "(cached) " >&6
22090 else
22091   ac_check_lib_save_LIBS=$LIBS
22092 LIBS="-ltinfo  $LIBS"
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h.  */
22095
22096 /* Override any GCC internal prototype to avoid an error.
22097    Use char because int might match the return type of a GCC
22098    builtin and then its argument prototype would still apply.  */
22099 #ifdef __cplusplus
22100 extern "C"
22101 #endif
22102 char tgetent ();
22103 int
22104 main ()
22105 {
22106 return tgetent ();
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 if ac_fn_c_try_link "$LINENO"; then :
22112   ac_cv_lib_tinfo_tgetent=yes
22113 else
22114   ac_cv_lib_tinfo_tgetent=no
22115 fi
22116 rm -f core conftest.err conftest.$ac_objext \
22117     conftest$ac_exeext conftest.$ac_ext
22118 LIBS=$ac_check_lib_save_LIBS
22119 fi
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22121 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22122 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22123    TERM_LIB="-ltinfo"
22124 else
22125
22126       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22127 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22128 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22129   $as_echo_n "(cached) " >&6
22130 else
22131   ac_check_lib_save_LIBS=$LIBS
22132 LIBS="-lncurses  $LIBS"
22133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h.  */
22135
22136 /* Override any GCC internal prototype to avoid an error.
22137    Use char because int might match the return type of a GCC
22138    builtin and then its argument prototype would still apply.  */
22139 #ifdef __cplusplus
22140 extern "C"
22141 #endif
22142 char tgetent ();
22143 int
22144 main ()
22145 {
22146 return tgetent ();
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 if ac_fn_c_try_link "$LINENO"; then :
22152   ac_cv_lib_ncurses_tgetent=yes
22153 else
22154   ac_cv_lib_ncurses_tgetent=no
22155 fi
22156 rm -f core conftest.err conftest.$ac_objext \
22157     conftest$ac_exeext conftest.$ac_ext
22158 LIBS=$ac_check_lib_save_LIBS
22159 fi
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22161 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22162 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22163    TERM_LIB="-lncurses"
22164 else
22165
22166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22167 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22168 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22169   $as_echo_n "(cached) " >&6
22170 else
22171   ac_check_lib_save_LIBS=$LIBS
22172 LIBS="-ltermcap  $LIBS"
22173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h.  */
22175
22176 /* Override any GCC internal prototype to avoid an error.
22177    Use char because int might match the return type of a GCC
22178    builtin and then its argument prototype would still apply.  */
22179 #ifdef __cplusplus
22180 extern "C"
22181 #endif
22182 char tgetent ();
22183 int
22184 main ()
22185 {
22186 return tgetent ();
22187   ;
22188   return 0;
22189 }
22190 _ACEOF
22191 if ac_fn_c_try_link "$LINENO"; then :
22192   ac_cv_lib_termcap_tgetent=yes
22193 else
22194   ac_cv_lib_termcap_tgetent=no
22195 fi
22196 rm -f core conftest.err conftest.$ac_objext \
22197     conftest$ac_exeext conftest.$ac_ext
22198 LIBS=$ac_check_lib_save_LIBS
22199 fi
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22201 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22202 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22203    TERM_LIB="-ltermcap"
22204 fi
22205
22206
22207 fi
22208
22209
22210 fi
22211
22212
22213 else
22214     for ac_header in curses.h
22215 do :
22216   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22217 if test "x$ac_cv_header_curses_h" = xyes; then :
22218   cat >>confdefs.h <<_ACEOF
22219 #define HAVE_CURSES_H 1
22220 _ACEOF
22221
22222 fi
22223
22224 done
22225
22226      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22227 if test "x$ac_cv_header_term_h" = xyes; then :
22228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22229 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22230 if ${ac_cv_lib_curses_tgetent+:} false; then :
22231   $as_echo_n "(cached) " >&6
22232 else
22233   ac_check_lib_save_LIBS=$LIBS
22234 LIBS="-lcurses  $LIBS"
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h.  */
22237
22238 /* Override any GCC internal prototype to avoid an error.
22239    Use char because int might match the return type of a GCC
22240    builtin and then its argument prototype would still apply.  */
22241 #ifdef __cplusplus
22242 extern "C"
22243 #endif
22244 char tgetent ();
22245 int
22246 main ()
22247 {
22248 return tgetent ();
22249   ;
22250   return 0;
22251 }
22252 _ACEOF
22253 if ac_fn_c_try_link "$LINENO"; then :
22254   ac_cv_lib_curses_tgetent=yes
22255 else
22256   ac_cv_lib_curses_tgetent=no
22257 fi
22258 rm -f core conftest.err conftest.$ac_objext \
22259     conftest$ac_exeext conftest.$ac_ext
22260 LIBS=$ac_check_lib_save_LIBS
22261 fi
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22263 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22264 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22265    TERM_LIB="-lcurses"
22266 fi
22267
22268
22269 fi
22270
22271
22272
22273 fi
22274
22275
22276
22277
22278 got_conio="no"
22279 if test x$support_conio = xyes; then
22280    if test x$TERM_LIB != x; then
22281       CONS_LIBS=$TERM_LIB
22282       CONS_OBJ="conio.o"
22283       CONS_SRC="conio.c"
22284       got_conio="yes"
22285       support_readline=no
22286
22287 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22288
22289    else
22290       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22291    fi
22292 fi
22293
22294
22295 # Check whether --enable-readline was given.
22296 if test "${enable_readline+set}" = set; then :
22297   enableval=$enable_readline;
22298        if test x$enableval = xno; then
22299           support_readline=no
22300        fi
22301
22302
22303 fi
22304
22305
22306 got_readline="no"
22307 READLINE_SRC=
22308 if test x$support_readline = xyes; then
22309
22310 # Check whether --with-readline was given.
22311 if test "${with_readline+set}" = set; then :
22312   withval=$with_readline;
22313           case "$with_readline" in
22314           no)
22315              :
22316              ;;
22317           yes|*)
22318              if test -f ${with_readline}/readline.h; then
22319                 CONS_INC="-I${with_readline}"
22320                 CONS_LDFLAGS="-L$with_readline"
22321              elif test -f ${with_readline}/include/readline/readline.h; then
22322                 CONS_INC="-I${with_readline}/include/readline"
22323                 CONS_LDFLAGS="-L${with_readline}/lib"
22324                 with_readline="${with_readline}/include/readline"
22325              else
22326                 with_readline="/usr/include/readline"
22327              fi
22328
22329              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22330 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22332
22333
22334 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22335
22336                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22337                     got_readline="yes"
22338
22339 else
22340
22341                     echo " "
22342                     echo "readline.h not found. readline turned off ..."
22343                     echo " "
22344
22345
22346 fi
22347
22348
22349              ;;
22350           esac
22351
22352 else
22353
22354                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22355 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22356
22357
22358 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22359
22360                 got_readline="yes"
22361                 CONS_INC="-I/usr/include/readline"
22362                 CONS_LIBS="-lreadline ${TERM_LIB}"
22363
22364 else
22365
22366                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22367 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22369
22370
22371 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22372
22373                         got_readline="yes"
22374                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22375                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22376                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22377                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22378
22379 else
22380
22381                         echo " "
22382                         echo "readline.h not found. readline turned off ..."
22383                         echo " "
22384
22385
22386 fi
22387
22388
22389
22390
22391 fi
22392
22393
22394
22395
22396 fi
22397
22398 fi
22399
22400
22401
22402
22403
22404
22405
22406
22407 MAKE_SHELL=/bin/sh
22408
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22410 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22411 if ${ac_cv_header_stat_broken+:} false; then :
22412   $as_echo_n "(cached) " >&6
22413 else
22414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h.  */
22416 #include <sys/types.h>
22417 #include <sys/stat.h>
22418
22419 #if defined S_ISBLK && defined S_IFDIR
22420 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22421 #endif
22422
22423 #if defined S_ISBLK && defined S_IFCHR
22424 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22425 #endif
22426
22427 #if defined S_ISLNK && defined S_IFREG
22428 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22429 #endif
22430
22431 #if defined S_ISSOCK && defined S_IFREG
22432 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22433 #endif
22434
22435 _ACEOF
22436 if ac_fn_c_try_compile "$LINENO"; then :
22437   ac_cv_header_stat_broken=no
22438 else
22439   ac_cv_header_stat_broken=yes
22440 fi
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 fi
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22444 $as_echo "$ac_cv_header_stat_broken" >&6; }
22445 if test $ac_cv_header_stat_broken = yes; then
22446
22447 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22448
22449 fi
22450
22451 ac_header_dirent=no
22452 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22453   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22455 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22456 if eval \${$as_ac_Header+:} false; then :
22457   $as_echo_n "(cached) " >&6
22458 else
22459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h.  */
22461 #include <sys/types.h>
22462 #include <$ac_hdr>
22463
22464 int
22465 main ()
22466 {
22467 if ((DIR *) 0)
22468 return 0;
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 if ac_fn_c_try_compile "$LINENO"; then :
22474   eval "$as_ac_Header=yes"
22475 else
22476   eval "$as_ac_Header=no"
22477 fi
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 fi
22480 eval ac_res=\$$as_ac_Header
22481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22482 $as_echo "$ac_res" >&6; }
22483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22484   cat >>confdefs.h <<_ACEOF
22485 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22486 _ACEOF
22487
22488 ac_header_dirent=$ac_hdr; break
22489 fi
22490
22491 done
22492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22493 if test $ac_header_dirent = dirent.h; then
22494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22495 $as_echo_n "checking for library containing opendir... " >&6; }
22496 if ${ac_cv_search_opendir+:} false; then :
22497   $as_echo_n "(cached) " >&6
22498 else
22499   ac_func_search_save_LIBS=$LIBS
22500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22501 /* end confdefs.h.  */
22502
22503 /* Override any GCC internal prototype to avoid an error.
22504    Use char because int might match the return type of a GCC
22505    builtin and then its argument prototype would still apply.  */
22506 #ifdef __cplusplus
22507 extern "C"
22508 #endif
22509 char opendir ();
22510 int
22511 main ()
22512 {
22513 return opendir ();
22514   ;
22515   return 0;
22516 }
22517 _ACEOF
22518 for ac_lib in '' dir; do
22519   if test -z "$ac_lib"; then
22520     ac_res="none required"
22521   else
22522     ac_res=-l$ac_lib
22523     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22524   fi
22525   if ac_fn_c_try_link "$LINENO"; then :
22526   ac_cv_search_opendir=$ac_res
22527 fi
22528 rm -f core conftest.err conftest.$ac_objext \
22529     conftest$ac_exeext
22530   if ${ac_cv_search_opendir+:} false; then :
22531   break
22532 fi
22533 done
22534 if ${ac_cv_search_opendir+:} false; then :
22535
22536 else
22537   ac_cv_search_opendir=no
22538 fi
22539 rm conftest.$ac_ext
22540 LIBS=$ac_func_search_save_LIBS
22541 fi
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22543 $as_echo "$ac_cv_search_opendir" >&6; }
22544 ac_res=$ac_cv_search_opendir
22545 if test "$ac_res" != no; then :
22546   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22547
22548 fi
22549
22550 else
22551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22552 $as_echo_n "checking for library containing opendir... " >&6; }
22553 if ${ac_cv_search_opendir+:} false; then :
22554   $as_echo_n "(cached) " >&6
22555 else
22556   ac_func_search_save_LIBS=$LIBS
22557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h.  */
22559
22560 /* Override any GCC internal prototype to avoid an error.
22561    Use char because int might match the return type of a GCC
22562    builtin and then its argument prototype would still apply.  */
22563 #ifdef __cplusplus
22564 extern "C"
22565 #endif
22566 char opendir ();
22567 int
22568 main ()
22569 {
22570 return opendir ();
22571   ;
22572   return 0;
22573 }
22574 _ACEOF
22575 for ac_lib in '' x; do
22576   if test -z "$ac_lib"; then
22577     ac_res="none required"
22578   else
22579     ac_res=-l$ac_lib
22580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22581   fi
22582   if ac_fn_c_try_link "$LINENO"; then :
22583   ac_cv_search_opendir=$ac_res
22584 fi
22585 rm -f core conftest.err conftest.$ac_objext \
22586     conftest$ac_exeext
22587   if ${ac_cv_search_opendir+:} false; then :
22588   break
22589 fi
22590 done
22591 if ${ac_cv_search_opendir+:} false; then :
22592
22593 else
22594   ac_cv_search_opendir=no
22595 fi
22596 rm conftest.$ac_ext
22597 LIBS=$ac_func_search_save_LIBS
22598 fi
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22600 $as_echo "$ac_cv_search_opendir" >&6; }
22601 ac_res=$ac_cv_search_opendir
22602 if test "$ac_res" != no; then :
22603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22604
22605 fi
22606
22607 fi
22608
22609 for ac_func in strcasecmp select setenv putenv tcgetattr
22610 do :
22611   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22614   cat >>confdefs.h <<_ACEOF
22615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22616 _ACEOF
22617
22618 fi
22619 done
22620
22621 for ac_func in lstat lchown lchmod futimes fchmod fchown
22622 do :
22623   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22626   cat >>confdefs.h <<_ACEOF
22627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22628 _ACEOF
22629
22630 fi
22631 done
22632
22633 for ac_func in nanosleep nl_langinfo
22634 do :
22635   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22638   cat >>confdefs.h <<_ACEOF
22639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22640 _ACEOF
22641
22642 fi
22643 done
22644
22645 for ac_func in be64toh htobe64
22646 do :
22647   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22648 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22649 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22650   cat >>confdefs.h <<_ACEOF
22651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22652 _ACEOF
22653
22654 fi
22655 done
22656
22657 for ac_header in varargs.h
22658 do :
22659   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22660 if test "x$ac_cv_header_varargs_h" = xyes; then :
22661   cat >>confdefs.h <<_ACEOF
22662 #define HAVE_VARARGS_H 1
22663 _ACEOF
22664
22665 fi
22666
22667 done
22668
22669
22670
22671 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22672 if test "x$ac_cv_func_socket" = xyes; then :
22673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22674 $as_echo "using libc's socket" >&6; }
22675 else
22676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22677 $as_echo_n "checking for socket in -lxnet... " >&6; }
22678 if ${ac_cv_lib_xnet_socket+:} false; then :
22679   $as_echo_n "(cached) " >&6
22680 else
22681   ac_check_lib_save_LIBS=$LIBS
22682 LIBS="-lxnet  $LIBS"
22683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h.  */
22685
22686 /* Override any GCC internal prototype to avoid an error.
22687    Use char because int might match the return type of a GCC
22688    builtin and then its argument prototype would still apply.  */
22689 #ifdef __cplusplus
22690 extern "C"
22691 #endif
22692 char socket ();
22693 int
22694 main ()
22695 {
22696 return socket ();
22697   ;
22698   return 0;
22699 }
22700 _ACEOF
22701 if ac_fn_c_try_link "$LINENO"; then :
22702   ac_cv_lib_xnet_socket=yes
22703 else
22704   ac_cv_lib_xnet_socket=no
22705 fi
22706 rm -f core conftest.err conftest.$ac_objext \
22707     conftest$ac_exeext conftest.$ac_ext
22708 LIBS=$ac_check_lib_save_LIBS
22709 fi
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22711 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22712 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22713   cat >>confdefs.h <<_ACEOF
22714 #define HAVE_LIBXNET 1
22715 _ACEOF
22716
22717   LIBS="-lxnet $LIBS"
22718
22719 fi
22720
22721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22722 $as_echo_n "checking for socket in -lsocket... " >&6; }
22723 if ${ac_cv_lib_socket_socket+:} false; then :
22724   $as_echo_n "(cached) " >&6
22725 else
22726   ac_check_lib_save_LIBS=$LIBS
22727 LIBS="-lsocket  $LIBS"
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h.  */
22730
22731 /* Override any GCC internal prototype to avoid an error.
22732    Use char because int might match the return type of a GCC
22733    builtin and then its argument prototype would still apply.  */
22734 #ifdef __cplusplus
22735 extern "C"
22736 #endif
22737 char socket ();
22738 int
22739 main ()
22740 {
22741 return socket ();
22742   ;
22743   return 0;
22744 }
22745 _ACEOF
22746 if ac_fn_c_try_link "$LINENO"; then :
22747   ac_cv_lib_socket_socket=yes
22748 else
22749   ac_cv_lib_socket_socket=no
22750 fi
22751 rm -f core conftest.err conftest.$ac_objext \
22752     conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22754 fi
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22756 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22757 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22758   cat >>confdefs.h <<_ACEOF
22759 #define HAVE_LIBSOCKET 1
22760 _ACEOF
22761
22762   LIBS="-lsocket $LIBS"
22763
22764 fi
22765
22766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22767 $as_echo_n "checking for socket in -linet... " >&6; }
22768 if ${ac_cv_lib_inet_socket+:} false; then :
22769   $as_echo_n "(cached) " >&6
22770 else
22771   ac_check_lib_save_LIBS=$LIBS
22772 LIBS="-linet  $LIBS"
22773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h.  */
22775
22776 /* Override any GCC internal prototype to avoid an error.
22777    Use char because int might match the return type of a GCC
22778    builtin and then its argument prototype would still apply.  */
22779 #ifdef __cplusplus
22780 extern "C"
22781 #endif
22782 char socket ();
22783 int
22784 main ()
22785 {
22786 return socket ();
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 if ac_fn_c_try_link "$LINENO"; then :
22792   ac_cv_lib_inet_socket=yes
22793 else
22794   ac_cv_lib_inet_socket=no
22795 fi
22796 rm -f core conftest.err conftest.$ac_objext \
22797     conftest$ac_exeext conftest.$ac_ext
22798 LIBS=$ac_check_lib_save_LIBS
22799 fi
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22801 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22802 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22803   cat >>confdefs.h <<_ACEOF
22804 #define HAVE_LIBINET 1
22805 _ACEOF
22806
22807   LIBS="-linet $LIBS"
22808
22809 fi
22810
22811 fi
22812
22813
22814 TCPW_MSG="no"
22815 WRAPLIBS=""
22816
22817 # Check whether --with-tcp-wrappers was given.
22818 if test "${with_tcp_wrappers+set}" = set; then :
22819   withval=$with_tcp_wrappers;
22820        if test "x$withval" != "xno" ; then
22821           saved_LIBS="$LIBS"
22822           LIBS="$saved_LIBS -lwrap"
22823           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22824 $as_echo_n "checking for library containing nanosleep... " >&6; }
22825 if ${ac_cv_search_nanosleep+:} false; then :
22826   $as_echo_n "(cached) " >&6
22827 else
22828   ac_func_search_save_LIBS=$LIBS
22829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830 /* end confdefs.h.  */
22831
22832 /* Override any GCC internal prototype to avoid an error.
22833    Use char because int might match the return type of a GCC
22834    builtin and then its argument prototype would still apply.  */
22835 #ifdef __cplusplus
22836 extern "C"
22837 #endif
22838 char nanosleep ();
22839 int
22840 main ()
22841 {
22842 return nanosleep ();
22843   ;
22844   return 0;
22845 }
22846 _ACEOF
22847 for ac_lib in '' rt; do
22848   if test -z "$ac_lib"; then
22849     ac_res="none required"
22850   else
22851     ac_res=-l$ac_lib
22852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22853   fi
22854   if ac_fn_c_try_link "$LINENO"; then :
22855   ac_cv_search_nanosleep=$ac_res
22856 fi
22857 rm -f core conftest.err conftest.$ac_objext \
22858     conftest$ac_exeext
22859   if ${ac_cv_search_nanosleep+:} false; then :
22860   break
22861 fi
22862 done
22863 if ${ac_cv_search_nanosleep+:} false; then :
22864
22865 else
22866   ac_cv_search_nanosleep=no
22867 fi
22868 rm conftest.$ac_ext
22869 LIBS=$ac_func_search_save_LIBS
22870 fi
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22872 $as_echo "$ac_cv_search_nanosleep" >&6; }
22873 ac_res=$ac_cv_search_nanosleep
22874 if test "$ac_res" != no; then :
22875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22876
22877 fi
22878
22879           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22880 $as_echo_n "checking for libwrap... " >&6; }
22881           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882 /* end confdefs.h.  */
22883
22884                #include <sys/types.h>
22885                #include <tcpd.h>
22886                int deny_severity = 0;
22887                int allow_severity = 0;
22888                struct request_info *req;
22889
22890 int
22891 main ()
22892 {
22893
22894                 hosts_access(req);
22895
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 if ac_fn_c_try_link "$LINENO"; then :
22901
22902                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22903 $as_echo "yes" >&6; }
22904
22905 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22906
22907                  TCPW_MSG="yes"
22908                  LIBS="$saved_LIBS"
22909                  WRAPLIBS="-lwrap"
22910
22911 else
22912
22913                  LIBS="$saved_LIBS -lwrap -lnsl"
22914                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22915                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h.  */
22917
22918                        #include <sys/types.h>
22919                        #include <tcpd.h>
22920                        int deny_severity = 0;
22921                        int allow_severity = 0;
22922                        struct request_info *req;
22923
22924 int
22925 main ()
22926 {
22927
22928                        hosts_access(req);
22929
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 if ac_fn_c_try_link "$LINENO"; then :
22935
22936                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22937 $as_echo "yes" >&6; }
22938
22939 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22940
22941                       TCPW_MSG="yes"
22942                       LIBS="$saved_LIBS"
22943                       WRAPLIBS="-lwrap"
22944
22945 else
22946
22947                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22948
22949
22950 fi
22951 rm -f core conftest.err conftest.$ac_objext \
22952     conftest$ac_exeext conftest.$ac_ext
22953
22954
22955 fi
22956 rm -f core conftest.err conftest.$ac_objext \
22957     conftest$ac_exeext conftest.$ac_ext
22958        fi
22959
22960
22961 fi
22962
22963
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22965 $as_echo_n "checking for OpenSSL... " >&6; }
22966
22967 # Check whether --with-openssl was given.
22968 if test "${with_openssl+set}" = set; then :
22969   withval=$with_openssl;
22970         with_openssl_directory=${withval}
22971
22972
22973 fi
22974
22975
22976 if test "x$with_openssl_directory" != "xno"; then
22977    OPENSSL_LIBS="-lssl -lcrypto"
22978    OPENSSL_INC=""
22979
22980    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22981       #
22982       # Make sure the $with_openssl_directory also makes sense
22983       #
22984       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22985          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22986          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22987       fi
22988    fi
22989
22990    saved_LIBS="${LIBS}"
22991    saved_CFLAGS="${CFLAGS}"
22992    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22993    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22994
22995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h.  */
22997
22998           #include <openssl/ssl.h>
22999
23000 int
23001 main ()
23002 {
23003
23004            CRYPTO_set_id_callback(NULL);
23005
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 if ac_fn_c_try_link "$LINENO"; then :
23011
23012           support_tls="yes"
23013           support_crypto="yes"
23014
23015 else
23016
23017           support_tls="no"
23018           support_crypto="no"
23019
23020
23021 fi
23022 rm -f core conftest.err conftest.$ac_objext \
23023     conftest$ac_exeext conftest.$ac_ext
23024
23025    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h.  */
23027
23028           #include <openssl/evp.h>
23029
23030 int
23031 main ()
23032 {
23033
23034           EVP_sha512();
23035
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 if ac_fn_c_try_link "$LINENO"; then :
23041
23042           ac_cv_openssl_sha2="yes"
23043
23044 else
23045
23046           ac_cv_openssl_sha2="no"
23047
23048
23049 fi
23050 rm -f core conftest.err conftest.$ac_objext \
23051     conftest$ac_exeext conftest.$ac_ext
23052
23053                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23054 /* end confdefs.h.  */
23055
23056           #include <openssl/evp.h>
23057
23058 int
23059 main ()
23060 {
23061
23062           EVP_aes_192_cbc();
23063
23064   ;
23065   return 0;
23066 }
23067 _ACEOF
23068 if ac_fn_c_try_link "$LINENO"; then :
23069
23070           ac_cv_openssl_export="no"
23071
23072 else
23073
23074           ac_cv_openssl_export="yes"
23075
23076
23077 fi
23078 rm -f core conftest.err conftest.$ac_objext \
23079     conftest$ac_exeext conftest.$ac_ext
23080
23081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23082 $as_echo "$support_tls" >&6; }
23083    if test "$support_tls" = "yes"; then
23084
23085 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23086
23087
23088 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23089
23090
23091 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23092
23093    fi
23094
23095    if test "$ac_cv_openssl_sha2" = "yes"; then
23096
23097 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23098
23099    fi
23100
23101    if test "$ac_cv_openssl_export" = "yes"; then
23102
23103 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23104
23105    fi
23106
23107    if test "$support_crypto" = "yes"; then
23108       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23109 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23110 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23111   $as_echo_n "(cached) " >&6
23112 else
23113   ac_check_lib_save_LIBS=$LIBS
23114 LIBS="-lcrypto  $LIBS"
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h.  */
23117
23118 /* Override any GCC internal prototype to avoid an error.
23119    Use char because int might match the return type of a GCC
23120    builtin and then its argument prototype would still apply.  */
23121 #ifdef __cplusplus
23122 extern "C"
23123 #endif
23124 char EVP_PKEY_encrypt_old ();
23125 int
23126 main ()
23127 {
23128 return EVP_PKEY_encrypt_old ();
23129   ;
23130   return 0;
23131 }
23132 _ACEOF
23133 if ac_fn_c_try_link "$LINENO"; then :
23134   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23135 else
23136   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23137 fi
23138 rm -f core conftest.err conftest.$ac_objext \
23139     conftest$ac_exeext conftest.$ac_ext
23140 LIBS=$ac_check_lib_save_LIBS
23141 fi
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23143 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23144 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23145
23146 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23147
23148 fi
23149
23150    fi
23151
23152    LIBS="${saved_LIBS}"
23153    CFLAGS="${saved_CFLAGS}"
23154 else
23155    support_tls="no"
23156    support_crypto="no"
23157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23158 $as_echo "$support_tls" >&6; }
23159 fi
23160
23161 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23162    OPENSSL_LIBS=""
23163    OPENSSL_INC=""
23164 fi
23165
23166
23167
23168
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23170 $as_echo_n "checking for library containing dlopen... " >&6; }
23171 if ${ac_cv_search_dlopen+:} false; then :
23172   $as_echo_n "(cached) " >&6
23173 else
23174   ac_func_search_save_LIBS=$LIBS
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23176 /* end confdefs.h.  */
23177
23178 /* Override any GCC internal prototype to avoid an error.
23179    Use char because int might match the return type of a GCC
23180    builtin and then its argument prototype would still apply.  */
23181 #ifdef __cplusplus
23182 extern "C"
23183 #endif
23184 char dlopen ();
23185 int
23186 main ()
23187 {
23188 return dlopen ();
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 for ac_lib in '' dl; do
23194   if test -z "$ac_lib"; then
23195     ac_res="none required"
23196   else
23197     ac_res=-l$ac_lib
23198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23199   fi
23200   if ac_fn_c_try_link "$LINENO"; then :
23201   ac_cv_search_dlopen=$ac_res
23202 fi
23203 rm -f core conftest.err conftest.$ac_objext \
23204     conftest$ac_exeext
23205   if ${ac_cv_search_dlopen+:} false; then :
23206   break
23207 fi
23208 done
23209 if ${ac_cv_search_dlopen+:} false; then :
23210
23211 else
23212   ac_cv_search_dlopen=no
23213 fi
23214 rm conftest.$ac_ext
23215 LIBS=$ac_func_search_save_LIBS
23216 fi
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23218 $as_echo "$ac_cv_search_dlopen" >&6; }
23219 ac_res=$ac_cv_search_dlopen
23220 if test "$ac_res" != no; then :
23221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23222
23223 fi
23224
23225
23226 working_dir=`eval echo /opt/bacula/working`
23227
23228 # Check whether --with-working-dir was given.
23229 if test "${with_working_dir+set}" = set; then :
23230   withval=$with_working_dir;
23231        if test "x$withval" != "xno" ; then
23232          working_dir=$withval
23233        fi
23234
23235
23236 fi
23237
23238
23239
23240
23241 archivedir=/tmp
23242
23243 # Check whether --with-archivedir was given.
23244 if test "${with_archivedir+set}" = set; then :
23245   withval=$with_archivedir;
23246        if test "x$withval" != "xno" ; then
23247           archivedir=$withval
23248        fi
23249
23250
23251 fi
23252
23253
23254
23255
23256 basename=`hostname`
23257
23258 # Check whether --with-basename was given.
23259 if test "${with_basename+set}" = set; then :
23260   withval=$with_basename;
23261        if test "x$withval" != "xno" ; then
23262           basename=$withval
23263        fi
23264
23265
23266 fi
23267
23268
23269
23270
23271 hostname=`uname -n | cut -d '.' -f 1`
23272 if test x${hostname} = x ; then
23273   hostname="localhost"
23274 fi
23275 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23276 if test ! $? = 0; then
23277   hostname="localhost"
23278 fi
23279
23280 # Check whether --with-hostname was given.
23281 if test "${with_hostname+set}" = set; then :
23282   withval=$with_hostname;
23283        if test "x$withval" != "xno" ; then
23284          hostname=$withval
23285        fi
23286
23287
23288 fi
23289
23290
23291
23292
23293
23294 scriptdir=`eval echo ${sysconfdir}`
23295
23296 # Check whether --with-scriptdir was given.
23297 if test "${with_scriptdir+set}" = set; then :
23298   withval=$with_scriptdir;
23299        if test "x$withval" != "xno" ; then
23300           scriptdir=$withval
23301        fi
23302
23303
23304 fi
23305
23306
23307
23308
23309
23310 bsrdir=`eval echo /opt/bacula/bsr`
23311
23312 # Check whether --with-bsrdir was given.
23313 if test "${with_bsrdir+set}" = set; then :
23314   withval=$with_bsrdir;
23315        if test "x$withval" != "xno" ; then
23316           bsrdir=$withval
23317        fi
23318
23319
23320 fi
23321
23322
23323
23324
23325 logdir=`eval echo /opt/bacula/log`
23326
23327 # Check whether --with-logdir was given.
23328 if test "${with_logdir+set}" = set; then :
23329   withval=$with_logdir;
23330        if test "x$withval" != "xno" ; then
23331           logdir=$withval
23332        fi
23333
23334
23335 fi
23336
23337
23338
23339
23340
23341 # ------------------------------------------
23342 # Where to place plugindir (plugin files)
23343 # ------------------------------------------
23344 plugindir=`eval echo ${libdir}`
23345
23346 # Check whether --with-plugindir was given.
23347 if test "${with_plugindir+set}" = set; then :
23348   withval=$with_plugindir;
23349        if test "x$withval" != "xno" ; then
23350           plugindir=$withval
23351        fi
23352
23353
23354 fi
23355
23356
23357
23358
23359
23360 dump_email=root@localhost
23361
23362 # Check whether --with-dump-email was given.
23363 if test "${with_dump_email+set}" = set; then :
23364   withval=$with_dump_email;
23365        if test "x$withval" != "xno" ; then
23366           dump_email=$withval
23367        fi
23368
23369
23370 fi
23371
23372
23373
23374
23375 job_email=root@localhost
23376
23377 # Check whether --with-job-email was given.
23378 if test "${with_job_email+set}" = set; then :
23379   withval=$with_job_email;
23380        if test "x$withval" != "xno" ; then
23381           job_email=$withval
23382        fi
23383
23384
23385 fi
23386
23387
23388
23389
23390 smtp_host=localhost
23391
23392 # Check whether --with-smtp_host was given.
23393 if test "${with_smtp_host+set}" = set; then :
23394   withval=$with_smtp_host;
23395        if test "x$withval" != "xno" ; then
23396           smtp_host=$withval
23397        fi
23398
23399
23400 fi
23401
23402
23403
23404
23405 piddir=/var/run
23406
23407 # Check whether --with-pid-dir was given.
23408 if test "${with_pid_dir+set}" = set; then :
23409   withval=$with_pid_dir;
23410        if test "x$withval" != "xno" ; then
23411           piddir=$withval
23412        fi
23413
23414
23415 fi
23416
23417
23418 cat >>confdefs.h <<_ACEOF
23419 #define _PATH_BACULA_PIDDIR "$piddir"
23420 _ACEOF
23421
23422
23423
23424 subsysdir=/var/run/subsys
23425 if test -d /var/run/subsys; then
23426    subsysdir=/var/run/subsys
23427 elif test -d /var/lock/subsys; then
23428    subsysdir=/var/lock/subsys
23429 else
23430    subsysdir=/var/run/subsys
23431 fi
23432
23433 # Check whether --with-subsys-dir was given.
23434 if test "${with_subsys_dir+set}" = set; then :
23435   withval=$with_subsys_dir;
23436        if test "x$withval" != "xno" ; then
23437           subsysdir=$withval
23438        fi
23439
23440
23441 fi
23442
23443
23444
23445
23446 baseport=9101
23447
23448 # Check whether --with-baseport was given.
23449 if test "${with_baseport+set}" = set; then :
23450   withval=$with_baseport;
23451        if test "x$withval" != "xno" ; then
23452           baseport=$withval
23453        fi
23454
23455
23456 fi
23457
23458
23459
23460 dir_port=`expr $baseport`
23461 fd_port=`expr $baseport + 1`
23462 sd_port=`expr $fd_port + 1`
23463
23464
23465
23466
23467
23468 dir_password=
23469
23470 # Check whether --with-dir-password was given.
23471 if test "${with_dir_password+set}" = set; then :
23472   withval=$with_dir_password;
23473        if test "x$withval" != "xno" ; then
23474           dir_password=$withval
23475        fi
23476
23477
23478 fi
23479
23480
23481 if test "x$dir_password" = "x" ; then
23482    if test "x$OPENSSL" = "xnone" ; then
23483       key=`autoconf/randpass 33`
23484    else
23485       key=`openssl rand -base64 33`
23486    fi
23487    dir_password=$key
23488 fi
23489
23490 fd_password=
23491
23492 # Check whether --with-fd-password was given.
23493 if test "${with_fd_password+set}" = set; then :
23494   withval=$with_fd_password;
23495        if test "x$withval" != "xno" ; then
23496           fd_password=$withval
23497        fi
23498
23499
23500 fi
23501
23502
23503 if test "x$fd_password" = "x" ; then
23504    if test "x$OPENSSL" = "xnone" ; then
23505       key=`autoconf/randpass 37`
23506    else
23507       key=`openssl rand -base64 33`
23508    fi
23509    fd_password=$key
23510 fi
23511
23512 sd_password=
23513
23514 # Check whether --with-sd-password was given.
23515 if test "${with_sd_password+set}" = set; then :
23516   withval=$with_sd_password;
23517        if test "x$withval" != "xno" ; then
23518           sd_password=$withval
23519        fi
23520
23521
23522 fi
23523
23524
23525 if test "x$sd_password" = "x" ; then
23526    if test "x$OPENSSL" = "xnone" ; then
23527       key=`autoconf/randpass 41`
23528    else
23529       key=`openssl rand -base64 33`
23530    fi
23531    sd_password=$key
23532 fi
23533
23534 mon_dir_password=
23535
23536 # Check whether --with-mon-dir-password was given.
23537 if test "${with_mon_dir_password+set}" = set; then :
23538   withval=$with_mon_dir_password;
23539        if test "x$withval" != "xno" ; then
23540           mon_dir_password=$withval
23541        fi
23542
23543
23544 fi
23545
23546
23547 if test "x$mon_dir_password" = "x" ; then
23548    if test "x$OPENSSL" = "xnone" ; then
23549       key=`autoconf/randpass 33`
23550    else
23551       key=`openssl rand -base64 33`
23552    fi
23553    mon_dir_password=$key
23554 fi
23555
23556 mon_fd_password=
23557
23558 # Check whether --with-mon-fd-password was given.
23559 if test "${with_mon_fd_password+set}" = set; then :
23560   withval=$with_mon_fd_password;
23561        if test "x$withval" != "xno" ; then
23562           mon_fd_password=$withval
23563        fi
23564
23565
23566 fi
23567
23568
23569 if test "x$mon_fd_password" = "x" ; then
23570    if test "x$OPENSSL" = "xnone" ; then
23571       key=`autoconf/randpass 37`
23572    else
23573       key=`openssl rand -base64 33`
23574    fi
23575    mon_fd_password=$key
23576 fi
23577
23578 mon_sd_password=
23579
23580 # Check whether --with-mon-sd-password was given.
23581 if test "${with_mon_sd_password+set}" = set; then :
23582   withval=$with_mon_sd_password;
23583        if test "x$withval" != "xno" ; then
23584           mon_sd_password=$withval
23585        fi
23586
23587
23588 fi
23589
23590
23591 if test "x$mon_sd_password" = "x" ; then
23592    if test "x$OPENSSL" = "xnone" ; then
23593       key=`autoconf/randpass 41`
23594    else
23595       key=`openssl rand -base64 33`
23596    fi
23597    mon_sd_password=$key
23598 fi
23599
23600
23601
23602
23603
23604
23605
23606
23607 db_name=bacula
23608
23609 # Check whether --with-db_name was given.
23610 if test "${with_db_name+set}" = set; then :
23611   withval=$with_db_name;
23612        if test "x$withval" != "x" ; then
23613           db_name=$withval
23614        fi
23615
23616
23617 fi
23618
23619
23620
23621 db_user=bacula
23622
23623 # Check whether --with-db_user was given.
23624 if test "${with_db_user+set}" = set; then :
23625   withval=$with_db_user;
23626        if test "x$withval" != "x" ; then
23627           db_user=$withval
23628        fi
23629
23630
23631 fi
23632
23633
23634
23635 db_password=
23636
23637 # Check whether --with-db_password was given.
23638 if test "${with_db_password+set}" = set; then :
23639   withval=$with_db_password;
23640        if test "x$withval" != "x" ; then
23641           db_password=$withval
23642        fi
23643
23644
23645 fi
23646
23647
23648
23649 db_port=" "
23650
23651 # Check whether --with-db_port was given.
23652 if test "${with_db_port+set}" = set; then :
23653   withval=$with_db_port;
23654        if test "x$withval" != "x" ; then
23655           db_port=$withval
23656        fi
23657
23658
23659 fi
23660 +db_ssl_options=
23661
23662
23663
23664 # Check whether --with-db_ssl_options was given.
23665 if test "${with_db_ssl_options+set}" = set; then :
23666   withval=$with_db_ssl_options;
23667        if test "x$withval" != "x" ; then
23668          db_ssl_options=$withval
23669        fi
23670
23671
23672 fi
23673
23674
23675
23676 #
23677 # Handle users and groups for each daemon
23678 #
23679 dir_user=
23680
23681 # Check whether --with-dir_user was given.
23682 if test "${with_dir_user+set}" = set; then :
23683   withval=$with_dir_user;
23684        if test "x$withval" != "x" ; then
23685            dir_user=$withval
23686        fi
23687
23688
23689 fi
23690
23691
23692 dir_group=
23693
23694 # Check whether --with-dir_group was given.
23695 if test "${with_dir_group+set}" = set; then :
23696   withval=$with_dir_group;
23697        if test "x$withval" != "x" ; then
23698           dir_group=$withval
23699        fi
23700
23701
23702 fi
23703
23704
23705 sd_user=
23706
23707 # Check whether --with-sd_user was given.
23708 if test "${with_sd_user+set}" = set; then :
23709   withval=$with_sd_user;
23710        if test "x$withval" != "x" ; then
23711           sd_user=$withval
23712        fi
23713
23714
23715 fi
23716
23717
23718 sd_group=
23719
23720 # Check whether --with-sd_group was given.
23721 if test "${with_sd_group+set}" = set; then :
23722   withval=$with_sd_group;
23723        if test "x$withval" != "x" ; then
23724           sd_group=$withval
23725        fi
23726
23727
23728 fi
23729
23730
23731 fd_user=
23732
23733 # Check whether --with-fd_user was given.
23734 if test "${with_fd_user+set}" = set; then :
23735   withval=$with_fd_user;
23736        if test "x$withval" != "x" ; then
23737           fd_user=$withval
23738        fi
23739
23740
23741 fi
23742
23743
23744 fd_group=
23745
23746 # Check whether --with-fd_group was given.
23747 if test "${with_fd_group+set}" = set; then :
23748   withval=$with_fd_group;
23749        if test "x$withval" != "x" ; then
23750           fd_group=$withval
23751        fi
23752
23753
23754 fi
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764 SBINPERM=0750
23765
23766 # Check whether --with-sbin-perm was given.
23767 if test "${with_sbin_perm+set}" = set; then :
23768   withval=$with_sbin_perm;
23769        if test "x$withval" != "x" ; then
23770           SBINPERM=$withval
23771        fi
23772
23773
23774 fi
23775
23776
23777
23778
23779 support_batch_insert=yes
23780 # Check whether --enable-batch-insert was given.
23781 if test "${enable_batch_insert+set}" = set; then :
23782   enableval=$enable_batch_insert;
23783        if test x$enableval = xno; then
23784           support_batch_insert=no
23785        fi
23786
23787
23788 fi
23789
23790
23791 if test x$support_batch_insert = xyes; then
23792
23793 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23794
23795 fi
23796
23797
23798 uncomment_dbi="#"
23799
23800
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23802 $as_echo_n "checking for PostgreSQL support... " >&6; }
23803
23804 # Check whether --with-postgresql was given.
23805 if test "${with_postgresql+set}" = set; then :
23806   withval=$with_postgresql;
23807   if test "$withval" != "no"; then
23808       if test "$withval" = "yes"; then
23809           PG_CONFIG=`which pg_config 2>/dev/null`
23810           if test -n "$PG_CONFIG"; then
23811               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23812               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23813               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23814           elif test -f /usr/local/include/libpq-fe.h; then
23815               POSTGRESQL_INCDIR=/usr/local/include
23816               if test -d /usr/local/lib64; then
23817                  POSTGRESQL_LIBDIR=/usr/local/lib64
23818               else
23819                  POSTGRESQL_LIBDIR=/usr/local/lib
23820               fi
23821               POSTGRESQL_BINDIR=/usr/local/bin
23822           elif test -f /usr/include/libpq-fe.h; then
23823               POSTGRESQL_INCDIR=/usr/include
23824               if test -d /usr/lib64; then
23825                  POSTGRESQL_LIBDIR=/usr/lib64
23826               else
23827                  POSTGRESQL_LIBDIR=/usr/lib
23828               fi
23829               POSTGRESQL_BINDIR=/usr/bin
23830           elif test -f /usr/include/pgsql/libpq-fe.h; then
23831               POSTGRESQL_INCDIR=/usr/include/pgsql
23832               if test -d /usr/lib64/pgsql; then
23833                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23834               else
23835                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23836               fi
23837               POSTGRESQL_BINDIR=/usr/bin
23838           elif test -f /usr/include/postgresql/libpq-fe.h; then
23839               POSTGRESQL_INCDIR=/usr/include/postgresql
23840               if test -d /usr/lib64/postgresql; then
23841                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23842               else
23843                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23844               fi
23845               POSTGRESQL_BINDIR=/usr/bin
23846           else
23847               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23848 $as_echo "no" >&6; }
23849               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23850           fi
23851       elif test -f $withval/include/libpq-fe.h; then
23852           POSTGRESQL_INCDIR=$withval/include
23853           POSTGRESQL_LIBDIR=$withval/lib
23854           POSTGRESQL_BINDIR=$withval/bin
23855       elif test -f $withval/include/postgresql/libpq-fe.h; then
23856           POSTGRESQL_INCDIR=$withval/include/postgresql
23857           if test -d $withval/lib64; then
23858               POSTGRESQL_LIBDIR=$withval/lib64
23859           else
23860               POSTGRESQL_LIBDIR=$withval/lib
23861           fi
23862           POSTGRESQL_BINDIR=$withval/bin
23863       else
23864           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23865 $as_echo "no" >&6; }
23866           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23867       fi
23868
23869 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23870
23871      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23872 $as_echo "yes" >&6; }
23873
23874      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23875      if test x$use_libtool != xno; then
23876         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23877      else
23878         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23879      fi
23880      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23881 if test "x$ac_cv_func_crypt" = xyes; then :
23882
23883 else
23884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23885 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23886 if ${ac_cv_lib_crypt_crypt+:} false; then :
23887   $as_echo_n "(cached) " >&6
23888 else
23889   ac_check_lib_save_LIBS=$LIBS
23890 LIBS="-lcrypt  $LIBS"
23891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h.  */
23893
23894 /* Override any GCC internal prototype to avoid an error.
23895    Use char because int might match the return type of a GCC
23896    builtin and then its argument prototype would still apply.  */
23897 #ifdef __cplusplus
23898 extern "C"
23899 #endif
23900 char crypt ();
23901 int
23902 main ()
23903 {
23904 return crypt ();
23905   ;
23906   return 0;
23907 }
23908 _ACEOF
23909 if ac_fn_c_try_link "$LINENO"; then :
23910   ac_cv_lib_crypt_crypt=yes
23911 else
23912   ac_cv_lib_crypt_crypt=no
23913 fi
23914 rm -f core conftest.err conftest.$ac_objext \
23915     conftest$ac_exeext conftest.$ac_ext
23916 LIBS=$ac_check_lib_save_LIBS
23917 fi
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23919 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23920 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23921   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23922 fi
23923
23924 fi
23925
23926      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23927      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23928
23929      if test -z "${db_backends}"; then
23930          db_backends="PostgreSQL"
23931      else
23932          db_backends="${db_backends} PostgreSQL"
23933      fi
23934      if test -z "${DB_BACKENDS}"; then
23935          DB_BACKENDS="postgresql"
23936      else
23937          DB_BACKENDS="${DB_BACKENDS} postgresql"
23938      fi
23939
23940                     if test "x$support_batch_insert" = "xyes"; then
23941                   saved_LDFLAGS="${LDFLAGS}"
23942          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23943          saved_LIBS="${LIBS}"
23944          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23945             LIBS="${saved_LIBS} -lcrypt"
23946          fi
23947
23948          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23949 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23950 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23951   $as_echo_n "(cached) " >&6
23952 else
23953   ac_check_lib_save_LIBS=$LIBS
23954 LIBS="-lpq  $LIBS"
23955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h.  */
23957
23958 /* Override any GCC internal prototype to avoid an error.
23959    Use char because int might match the return type of a GCC
23960    builtin and then its argument prototype would still apply.  */
23961 #ifdef __cplusplus
23962 extern "C"
23963 #endif
23964 char PQisthreadsafe ();
23965 int
23966 main ()
23967 {
23968 return PQisthreadsafe ();
23969   ;
23970   return 0;
23971 }
23972 _ACEOF
23973 if ac_fn_c_try_link "$LINENO"; then :
23974   ac_cv_lib_pq_PQisthreadsafe=yes
23975 else
23976   ac_cv_lib_pq_PQisthreadsafe=no
23977 fi
23978 rm -f core conftest.err conftest.$ac_objext \
23979     conftest$ac_exeext conftest.$ac_ext
23980 LIBS=$ac_check_lib_save_LIBS
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23983 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23984 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23985
23986 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23987
23988 fi
23989
23990          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23991 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23992 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23993   $as_echo_n "(cached) " >&6
23994 else
23995   ac_check_lib_save_LIBS=$LIBS
23996 LIBS="-lpq  $LIBS"
23997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23998 /* end confdefs.h.  */
23999
24000 /* Override any GCC internal prototype to avoid an error.
24001    Use char because int might match the return type of a GCC
24002    builtin and then its argument prototype would still apply.  */
24003 #ifdef __cplusplus
24004 extern "C"
24005 #endif
24006 char PQputCopyData ();
24007 int
24008 main ()
24009 {
24010 return PQputCopyData ();
24011   ;
24012   return 0;
24013 }
24014 _ACEOF
24015 if ac_fn_c_try_link "$LINENO"; then :
24016   ac_cv_lib_pq_PQputCopyData=yes
24017 else
24018   ac_cv_lib_pq_PQputCopyData=no
24019 fi
24020 rm -f core conftest.err conftest.$ac_objext \
24021     conftest$ac_exeext conftest.$ac_ext
24022 LIBS=$ac_check_lib_save_LIBS
24023 fi
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24025 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24026 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24027
24028 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24029
24030 fi
24031
24032          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24033              if test $support_batch_insert = yes ; then
24034
24035 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24036
24037                  if test -z "${batch_insert_db_backends}"; then
24038                      batch_insert_db_backends="PostgreSQL"
24039                  else
24040                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24041                  fi
24042              fi
24043          fi
24044
24045          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24046          then
24047              echo "WARNING: Your PostgreSQL client library is too old to detect "
24048              echo "if it was compiled with --enable-thread-safety, consider to "
24049              echo "upgrade it in order to avoid problems with Batch insert mode"
24050          fi
24051
24052                   LDFLAGS="${saved_LDFLAGS}"
24053          LIBS="${saved_LIBS}"
24054      fi
24055   else
24056      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24057 $as_echo "no" >&6; }
24058   fi
24059
24060 else
24061
24062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24063 $as_echo "no" >&6; }
24064
24065 fi
24066
24067
24068
24069
24070
24071
24072
24073
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24075 $as_echo_n "checking for MySQL support... " >&6; }
24076
24077 # Check whether --with-mysql was given.
24078 if test "${with_mysql+set}" = set; then :
24079   withval=$with_mysql;
24080   if test "$withval" != "no"; then
24081         if test "$withval" = "yes"; then
24082 #
24083 # This code is very broken on older systems
24084 #
24085 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24086 #           if test "x${MYSQL_CONFIG}" != x; then
24087 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24088 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24089 #              if test $? = 0 ; then
24090 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24091 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24092 #              else
24093 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24094 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24095 #              fi
24096 #           fi
24097 #           if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24098            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24099               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24100               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24101                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24102                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24103               else
24104                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24105               fi
24106               MYSQL_BINDIR=/usr/local/mysql/bin
24107            elif test -f /usr/include/mysql/mysql.h; then
24108               MYSQL_INCDIR=/usr/include/mysql
24109               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24110                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24111                  MYSQL_LIBDIR=/usr/lib64/mysql
24112               elif test -f /usr/lib64/libmysqlclient_r.a \
24113                         -o -f /usr/lib64/libmysqlclient_r.so; then
24114                  MYSQL_LIBDIR=/usr/lib64
24115               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24116                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24117                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24118               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24119                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24120                  MYSQL_LIBDIR=/usr/lib/mysql
24121               else
24122                  MYSQL_LIBDIR=/usr/lib
24123               fi
24124               MYSQL_BINDIR=/usr/bin
24125            elif test -f /usr/include/mysql.h; then
24126               MYSQL_INCDIR=/usr/include
24127               if test -f /usr/lib64/libmysqlclient_r.a \
24128                       -o -f /usr/lib64/libmysqlclient_r.so; then
24129                  MYSQL_LIBDIR=/usr/lib64
24130               else
24131                  MYSQL_LIBDIR=/usr/lib
24132               fi
24133               MYSQL_BINDIR=/usr/bin
24134            elif test -f /usr/local/include/mysql/mysql.h; then
24135               MYSQL_INCDIR=/usr/local/include/mysql
24136               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24137                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24138                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24139               else
24140                  MYSQL_LIBDIR=/usr/local/lib/mysql
24141               fi
24142               MYSQL_BINDIR=/usr/local/bin
24143            elif test -f /usr/local/include/mysql.h; then
24144               MYSQL_INCDIR=/usr/local/include
24145               if test -f /usr/local/lib64/libmysqlclient_r.a \
24146                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24147                  MYSQL_LIBDIR=/usr/local/lib64
24148               else
24149                  MYSQL_LIBDIR=/usr/local/lib
24150               fi
24151               MYSQL_BINDIR=/usr/local/bin
24152            else
24153               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24154 $as_echo "no" >&6; }
24155               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24156            fi
24157         else
24158            if test -f $withval/include/mysql/mysql.h; then
24159               MYSQL_INCDIR=$withval/include/mysql
24160               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24161                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24162                  MYSQL_LIBDIR=$withval/lib64/mysql
24163               elif test -f $withval/lib64/libmysqlclient_r.a \
24164                    -o -f $withval/lib64/libmysqlclient_r.so; then
24165                  MYSQL_LIBDIR=$withval/lib64
24166               elif test -f $withval/lib/libmysqlclient_r.a \
24167                    -o -f $withval/lib/libmysqlclient_r.so; then
24168                  MYSQL_LIBDIR=$withval/lib
24169               else
24170                  MYSQL_LIBDIR=$withval/lib/mysql
24171               fi
24172               MYSQL_BINDIR=$withval/bin
24173            elif test -f $withval/include/mysql.h; then
24174               MYSQL_INCDIR=$withval/include
24175               if test -f $withval/lib64/libmysqlclient_r.a \
24176                    -o -f $withval/lib64/libmysqlclient_r.so; then
24177                  MYSQL_LIBDIR=$withval/lib64
24178               else
24179                  MYSQL_LIBDIR=$withval/lib
24180               fi
24181               MYSQL_BINDIR=$withval/bin
24182            elif test -f $withval/mysql.h; then
24183                             MYSQL_INCDIR=$withval
24184               { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24185 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24186               case $MYSQL_INCDIR in
24187                  *mysql55*)
24188                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24189 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24190                                           if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24191                           -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24192                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24193 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24194                         MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24195                      fi
24196                      MYSQL_BINDIR=$prefix/lib/mysql55/bin
24197                  ;;
24198                  *mysql51*)
24199                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24200 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24201                                           if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24202                           -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24203                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24204 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24205                         MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24206                      fi
24207                      MYSQL_BINDIR=$prefix/lib/mysql51/bin
24208                  ;;
24209               esac
24210               if test -z "${MYSQL_LIBDIR}" ; then
24211                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24212 $as_echo "no" >&6; }
24213                  as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24214               fi
24215            else
24216               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24217 $as_echo "no" >&6; }
24218               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24219            fi
24220         fi
24221      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24222      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24223           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24224         if test x$use_libtool != xno; then
24225            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24226         else
24227            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24228         fi
24229         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24230      fi
24231      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24232
24233
24234 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24235
24236      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24237 $as_echo "yes" >&6; }
24238
24239      if test -z "${db_backends}" ; then
24240          db_backends="MySQL"
24241      else
24242          db_backends="${db_backends} MySQL"
24243      fi
24244      if test -z "${DB_BACKENDS}" ; then
24245          DB_BACKENDS="mysql"
24246      else
24247          DB_BACKENDS="${DB_BACKENDS} mysql"
24248      fi
24249
24250                     if test "x$support_batch_insert" = "xyes"; then
24251                   saved_LDFLAGS="${LDFLAGS}"
24252          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24253          saved_LIBS="${LIBS}"
24254          LIBS="${saved_LIBS} -lz"
24255
24256          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24257 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24258 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24259   $as_echo_n "(cached) " >&6
24260 else
24261   ac_check_lib_save_LIBS=$LIBS
24262 LIBS="-lmysqlclient_r  $LIBS"
24263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24264 /* end confdefs.h.  */
24265
24266 /* Override any GCC internal prototype to avoid an error.
24267    Use char because int might match the return type of a GCC
24268    builtin and then its argument prototype would still apply.  */
24269 #ifdef __cplusplus
24270 extern "C"
24271 #endif
24272 char mysql_thread_safe ();
24273 int
24274 main ()
24275 {
24276 return mysql_thread_safe ();
24277   ;
24278   return 0;
24279 }
24280 _ACEOF
24281 if ac_fn_c_try_link "$LINENO"; then :
24282   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24283 else
24284   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24285 fi
24286 rm -f core conftest.err conftest.$ac_objext \
24287     conftest$ac_exeext conftest.$ac_ext
24288 LIBS=$ac_check_lib_save_LIBS
24289 fi
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24291 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24292 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24293
24294 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24295
24296 fi
24297
24298          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24299              if test -z "${batch_insert_db_backends}"; then
24300                  batch_insert_db_backends="MySQL"
24301              else
24302                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24303              fi
24304          fi
24305
24306                   LDFLAGS="${saved_LDFLAGS}"
24307          LIBS="${saved_LIBS}"
24308      fi
24309   else
24310      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24311 $as_echo "no" >&6; }
24312   fi
24313
24314 else
24315
24316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24317 $as_echo "no" >&6; }
24318
24319 fi
24320
24321
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24323 $as_echo_n "checking for MySQL embedded support... " >&6; }
24324
24325 # Check whether --with-embedded-mysql was given.
24326 if test "${with_embedded_mysql+set}" = set; then :
24327   withval=$with_embedded_mysql;
24328   if test "$withval" != "no"; then
24329         if test "$withval" = "yes"; then
24330                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24331                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24332                         if test -d /usr/local/mysql/lib64/mysql; then
24333                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24334                         else
24335                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24336                         fi
24337                         MYSQL_BINDIR=/usr/local/mysql/bin
24338                 elif test -f /usr/include/mysql/mysql.h; then
24339                         MYSQL_INCDIR=/usr/include/mysql
24340                         if test -d /usr/lib64/mysql; then
24341                                 MYSQL_LIBDIR=/usr/lib64/mysql
24342                         else
24343                                 MYSQL_LIBDIR=/usr/lib/mysql
24344                         fi
24345                         MYSQL_BINDIR=/usr/bin
24346                 elif test -f /usr/include/mysql.h; then
24347                         MYSQL_INCDIR=/usr/include
24348                         if test -d /usr/lib64; then
24349                                 MYSQL_LIBDIR=/usr/lib64
24350                         else
24351                                 MYSQL_LIBDIR=/usr/lib
24352                         fi
24353                         MYSQL_BINDIR=/usr/bin
24354                 elif test -f /usr/local/include/mysql/mysql.h; then
24355                         MYSQL_INCDIR=/usr/local/include/mysql
24356                         if test -d /usr/local/lib64/mysql; then
24357                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24358                         else
24359                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24360                         fi
24361                         MYSQL_BINDIR=/usr/local/bin
24362                 elif test -f /usr/local/include/mysql.h; then
24363                         MYSQL_INCDIR=/usr/local/include
24364                         if test -d /usr/local/lib64; then
24365                                 MYSQL_LIBDIR=/usr/local/lib64
24366                         else
24367                                 MYSQL_LIBDIR=/usr/local/lib
24368                         fi
24369                         MYSQL_BINDIR=/usr/local/bin
24370                 else
24371                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24372 $as_echo "no" >&6; }
24373                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24374                 fi
24375         else
24376                 if test -f $withval/include/mysql/mysql.h; then
24377                         MYSQL_INCDIR=$withval/include/mysql
24378                         if test -d $withval/lib64/mysql; then
24379                                 MYSQL_LIBDIR=$withval/lib64/mysql
24380                         else
24381                                 MYSQL_LIBDIR=$withval/lib/mysql
24382                         fi
24383                         MYSQL_BINDIR=$withval/bin
24384                 elif test -f $withval/include/mysql.h; then
24385                         MYSQL_INCDIR=$withval/include
24386                         if test -d $withval/lib64; then
24387                                 MYSQL_LIBDIR=$withval/lib64
24388                         else
24389                                 MYSQL_LIBDIR=$withval/lib
24390                         fi
24391                         MYSQL_BINDIR=$withval/bin
24392                 else
24393                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24394 $as_echo "no" >&6; }
24395                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24396                 fi
24397         fi
24398      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24399      if test x$use_libtool != xno; then
24400         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24401      else
24402         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24403      fi
24404      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24405      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24406
24407
24408 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24409
24410
24411 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24412
24413      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24414 $as_echo "yes" >&6; }
24415
24416      if test -z "${db_backends}"; then
24417          db_backends="MySQL"
24418      else
24419          db_backends="${db_backends} MySQL"
24420      fi
24421      if test -z "${DB_BACKENDS}"; then
24422          DB_BACKENDS="mysql"
24423      else
24424          DB_BACKENDS="${DB_BACKENDS} mysql"
24425      fi
24426
24427                     if test "x$support_batch_insert" = "xyes"; then
24428                   saved_LDFLAGS="${LDFLAGS}"
24429          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24430          saved_LIBS="${LIBS}"
24431          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24432
24433          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24434 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24435 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24436   $as_echo_n "(cached) " >&6
24437 else
24438   ac_check_lib_save_LIBS=$LIBS
24439 LIBS="-lmysqlclient_r  $LIBS"
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h.  */
24442
24443 /* Override any GCC internal prototype to avoid an error.
24444    Use char because int might match the return type of a GCC
24445    builtin and then its argument prototype would still apply.  */
24446 #ifdef __cplusplus
24447 extern "C"
24448 #endif
24449 char mysql_thread_safe ();
24450 int
24451 main ()
24452 {
24453 return mysql_thread_safe ();
24454   ;
24455   return 0;
24456 }
24457 _ACEOF
24458 if ac_fn_c_try_link "$LINENO"; then :
24459   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24460 else
24461   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24462 fi
24463 rm -f core conftest.err conftest.$ac_objext \
24464     conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24466 fi
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24468 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24469 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24470
24471 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24472
24473 fi
24474
24475          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24476              if test -z "${batch_insert_db_backends}"; then
24477                  batch_insert_db_backends="MySQL"
24478              else
24479                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24480              fi
24481          fi
24482
24483                   LDFLAGS="${saved_LDFLAGS}"
24484          LIBS="${saved_LIBS}"
24485      fi
24486   else
24487      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24488 $as_echo "no" >&6; }
24489   fi
24490
24491 else
24492
24493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494 $as_echo "no" >&6; }
24495
24496 fi
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24507 $as_echo_n "checking for SQLite3 support... " >&6; }
24508
24509 # Check whether --with-sqlite3 was given.
24510 if test "${with_sqlite3+set}" = set; then :
24511   withval=$with_sqlite3;
24512   if test "$withval" != "no"; then
24513      if test "$withval" = "yes"; then
24514         if test -f /usr/local/include/sqlite3.h; then
24515            SQLITE_INCDIR=/usr/local/include
24516            if test -d /usr/local/lib64; then
24517               SQLITE_LIBDIR=/usr/local/lib64
24518            else
24519               SQLITE_LIBDIR=/usr/local/lib
24520            fi
24521            SQLITE_BINDIR=/usr/local/bin
24522         elif test -f /usr/include/sqlite3.h; then
24523            SQLITE_INCDIR=/usr/include
24524            if test -d /usr/lib64; then
24525               SQLITE_LIBDIR=/usr/lib64
24526            else
24527               SQLITE_LIBDIR=/usr/lib
24528            fi
24529            SQLITE_BINDIR=/usr/bin
24530         elif test -f $prefix/include/sqlite3.h; then
24531            SQLITE_INCDIR=$prefix/include
24532            if test -d $prefix/lib64; then
24533               SQLITE_LIBDIR=$prefix/lib64
24534            else
24535               SQLITE_LIBDIR=$prefix/lib
24536            fi
24537            SQLITE_BINDIR=$prefix/bin
24538         else
24539            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24540 $as_echo "no" >&6; }
24541            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24542         fi
24543      else
24544         if test -f $withval/sqlite3.h; then
24545            SQLITE_INCDIR=$withval
24546            SQLITE_LIBDIR=$withval
24547            SQLITE_BINDIR=$withval
24548         elif test -f $withval/include/sqlite3.h; then
24549            SQLITE_INCDIR=$withval/include
24550            if test -d $withval/lib64; then
24551               SQLITE_LIBDIR=$withval/lib64
24552            else
24553               SQLITE_LIBDIR=$withval/lib
24554            fi
24555            SQLITE_BINDIR=$withval/bin
24556         else
24557            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24558 $as_echo "no" >&6; }
24559            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24560         fi
24561      fi
24562      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24563      if test x$use_libtool != xno; then
24564         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24565      else
24566         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24567      fi
24568      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24569      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24570
24571
24572 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24573
24574      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24575 $as_echo "yes" >&6; }
24576
24577      if test -z "${db_backends}"; then
24578          db_backends="SQLite3"
24579      else
24580          db_backends="${db_backends} SQLite3"
24581      fi
24582      if test -z "${DB_BACKENDS}"; then
24583          DB_BACKENDS="sqlite3"
24584      else
24585          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24586      fi
24587
24588                     if test "x$support_batch_insert" = "xyes"; then
24589                   saved_LDFLAGS="${LDFLAGS}"
24590          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24591
24592          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24593 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24594 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24595   $as_echo_n "(cached) " >&6
24596 else
24597   ac_check_lib_save_LIBS=$LIBS
24598 LIBS="-lsqlite3  $LIBS"
24599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24600 /* end confdefs.h.  */
24601
24602 /* Override any GCC internal prototype to avoid an error.
24603    Use char because int might match the return type of a GCC
24604    builtin and then its argument prototype would still apply.  */
24605 #ifdef __cplusplus
24606 extern "C"
24607 #endif
24608 char sqlite3_threadsafe ();
24609 int
24610 main ()
24611 {
24612 return sqlite3_threadsafe ();
24613   ;
24614   return 0;
24615 }
24616 _ACEOF
24617 if ac_fn_c_try_link "$LINENO"; then :
24618   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24619 else
24620   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24621 fi
24622 rm -f core conftest.err conftest.$ac_objext \
24623     conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24625 fi
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24627 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24628 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24629
24630 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24631
24632 fi
24633
24634          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24635              if test -z "${batch_insert_db_backends}"; then
24636                  batch_insert_db_backends="SQLite3"
24637              else
24638                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24639              fi
24640          fi
24641
24642                   LDFLAGS="${saved_LDFLAGS}"
24643      fi
24644   else
24645      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24646 $as_echo "no" >&6; }
24647   fi
24648
24649 else
24650
24651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24652 $as_echo "no" >&6; }
24653
24654 fi
24655
24656
24657
24658
24659
24660
24661
24662 if test -z "${batch_insert_db_backends}"; then
24663    batch_insert_db_backends="None"
24664 fi
24665
24666 if test "x${db_backends}" = "x" ; then
24667    echo " "
24668    echo " "
24669    echo "You have not specified either --enable-client-only or one of the"
24670    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24671    echo "This is not permitted. Please reconfigure."
24672    echo " "
24673    echo "Aborting the configuration ..."
24674    echo " "
24675    echo " "
24676    exit 1
24677 fi
24678
24679 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24680    1)
24681       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24682       if test x$use_libtool = xno; then
24683          SHARED_CATALOG_TARGETS=""
24684       else
24685          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24686       fi
24687       ;;
24688    *)
24689                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24690
24691                         if test x$use_libtool = xno; then
24692          echo " "
24693          echo " "
24694          echo "You have specified two or more of the"
24695          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24696          echo "This is not permitted when not using libtool Please reconfigure."
24697          echo " "
24698          echo "Aborting the configuration ..."
24699          echo " "
24700          echo " "
24701          exit 1
24702       fi
24703
24704       SHARED_CATALOG_TARGETS=""
24705       for db_type in ${DB_BACKENDS}
24706       do
24707          if test -z "${SHARED_CATALOG_TARGETS}"; then
24708             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24709          else
24710             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24711          fi
24712       done
24713       ;;
24714 esac
24715
24716 if test x$use_libtool = xyes; then
24717    DB_LIBS=""
24718 fi
24719
24720
24721
24722
24723
24724
24725
24726 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24727
24728
24729 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24730    if test -z "$CCOPTS"; then
24731       CCOPTS='-g -O2 -Wall'
24732    fi
24733    CFLAGS="$CCOPTS"
24734 fi
24735
24736
24737
24738 largefile_support="no"
24739
24740    # Check whether --enable-largefile was given.
24741 if test "${enable_largefile+set}" = set; then :
24742   enableval=$enable_largefile;
24743 fi
24744
24745    if test "$enable_largefile" != no; then
24746      if test -n "$ac_tool_prefix"; then
24747   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24748 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24750 $as_echo_n "checking for $ac_word... " >&6; }
24751 if ${ac_cv_prog_GETCONF+:} false; then :
24752   $as_echo_n "(cached) " >&6
24753 else
24754   if test -n "$GETCONF"; then
24755   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24756 else
24757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24758 for as_dir in $PATH
24759 do
24760   IFS=$as_save_IFS
24761   test -z "$as_dir" && as_dir=.
24762     for ac_exec_ext in '' $ac_executable_extensions; do
24763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24764     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24766     break 2
24767   fi
24768 done
24769   done
24770 IFS=$as_save_IFS
24771
24772 fi
24773 fi
24774 GETCONF=$ac_cv_prog_GETCONF
24775 if test -n "$GETCONF"; then
24776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24777 $as_echo "$GETCONF" >&6; }
24778 else
24779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24780 $as_echo "no" >&6; }
24781 fi
24782
24783
24784 fi
24785 if test -z "$ac_cv_prog_GETCONF"; then
24786   ac_ct_GETCONF=$GETCONF
24787   # Extract the first word of "getconf", so it can be a program name with args.
24788 set dummy getconf; ac_word=$2
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24790 $as_echo_n "checking for $ac_word... " >&6; }
24791 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24792   $as_echo_n "(cached) " >&6
24793 else
24794   if test -n "$ac_ct_GETCONF"; then
24795   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24796 else
24797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24798 for as_dir in $PATH
24799 do
24800   IFS=$as_save_IFS
24801   test -z "$as_dir" && as_dir=.
24802     for ac_exec_ext in '' $ac_executable_extensions; do
24803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24804     ac_cv_prog_ac_ct_GETCONF="getconf"
24805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24806     break 2
24807   fi
24808 done
24809   done
24810 IFS=$as_save_IFS
24811
24812 fi
24813 fi
24814 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24815 if test -n "$ac_ct_GETCONF"; then
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24817 $as_echo "$ac_ct_GETCONF" >&6; }
24818 else
24819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24820 $as_echo "no" >&6; }
24821 fi
24822
24823   if test "x$ac_ct_GETCONF" = x; then
24824     GETCONF=""
24825   else
24826     case $cross_compiling:$ac_tool_warned in
24827 yes:)
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24830 ac_tool_warned=yes ;;
24831 esac
24832     GETCONF=$ac_ct_GETCONF
24833   fi
24834 else
24835   GETCONF="$ac_cv_prog_GETCONF"
24836 fi
24837
24838      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24839 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24840 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24841   $as_echo_n "(cached) " >&6
24842 else
24843   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24844         ac_cv_sys_largefile_CFLAGS=no
24845         case "$host_os" in
24846            # IRIX 6.2 and later require cc -n32.
24847            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24848              if test "$GCC" != yes; then
24849                ac_cv_sys_largefile_CFLAGS=-n32
24850              fi
24851              ac_save_CC="$CC"
24852              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24853              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854 /* end confdefs.h.  */
24855
24856 int
24857 main ()
24858 {
24859
24860   ;
24861   return 0;
24862 }
24863 _ACEOF
24864 if ac_fn_c_try_link "$LINENO"; then :
24865
24866 else
24867   ac_cv_sys_largefile_CFLAGS=no
24868 fi
24869 rm -f core conftest.err conftest.$ac_objext \
24870     conftest$ac_exeext conftest.$ac_ext
24871              CC="$ac_save_CC"
24872            esac
24873       }
24874 fi
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24876 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24877      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24878 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24879 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24880   $as_echo_n "(cached) " >&6
24881 else
24882   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24883         ac_cv_sys_largefile_LDFLAGS=no
24884
24885       }
24886 fi
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24888 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24889      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24890 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24891 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24892   $as_echo_n "(cached) " >&6
24893 else
24894   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24895         ac_cv_sys_largefile_LIBS=no
24896
24897       }
24898 fi
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24900 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24901
24902      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24903        case "$ac_flag" in
24904        no) ;;
24905        -D_FILE_OFFSET_BITS=*) ;;
24906        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24907        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24908        -D?* | -I?*)
24909          case "$ac_flag" in
24910    no) ;;
24911    ?*)
24912      case "$CPPFLAGS" in
24913      '') CPPFLAGS="$ac_flag" ;;
24914      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24915      esac ;;
24916    esac ;;
24917        *)
24918          case "$ac_flag" in
24919    no) ;;
24920    ?*)
24921      case "$CFLAGS" in
24922      '') CFLAGS="$ac_flag" ;;
24923      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24924      esac ;;
24925    esac ;;
24926        esac
24927      done
24928      case "$ac_cv_sys_largefile_LDFLAGS" in
24929    no) ;;
24930    ?*)
24931      case "$LDFLAGS" in
24932      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24933      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24934      esac ;;
24935    esac
24936      case "$ac_cv_sys_largefile_LIBS" in
24937    no) ;;
24938    ?*)
24939      case "$LIBS" in
24940      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24941      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24942      esac ;;
24943    esac
24944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24945 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24946 if ${ac_cv_sys_file_offset_bits+:} false; then :
24947   $as_echo_n "(cached) " >&6
24948 else
24949   ac_cv_sys_file_offset_bits=no
24950       ac_cv_sys_file_offset_bits=64
24951       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24952         case "$ac_flag" in
24953         -D_FILE_OFFSET_BITS)
24954           ac_cv_sys_file_offset_bits=1 ;;
24955         -D_FILE_OFFSET_BITS=*)
24956           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24957         esac
24958       done
24959
24960 fi
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24962 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24963    if test "$ac_cv_sys_file_offset_bits" != no; then
24964
24965 cat >>confdefs.h <<_ACEOF
24966 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24967 _ACEOF
24968
24969    fi
24970      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24971 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24972 if ${ac_cv_sys_largefile_source+:} false; then :
24973   $as_echo_n "(cached) " >&6
24974 else
24975   ac_cv_sys_largefile_source=no
24976       ac_cv_sys_largefile_source=1
24977       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24978         case "$ac_flag" in
24979         -D_LARGEFILE_SOURCE)
24980           ac_cv_sys_largefile_source=1 ;;
24981         -D_LARGEFILE_SOURCE=*)
24982           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24983         esac
24984       done
24985
24986 fi
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24988 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24989    if test "$ac_cv_sys_largefile_source" != no; then
24990
24991 cat >>confdefs.h <<_ACEOF
24992 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24993 _ACEOF
24994
24995    fi
24996      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24997 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24998 if ${ac_cv_sys_large_files+:} false; then :
24999   $as_echo_n "(cached) " >&6
25000 else
25001   ac_cv_sys_large_files=no
25002       ac_cv_sys_large_files=1
25003       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25004         case "$ac_flag" in
25005         -D_LARGE_FILES)
25006           ac_cv_sys_large_files=1 ;;
25007         -D_LARGE_FILES=*)
25008           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25009         esac
25010       done
25011
25012 fi
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25014 $as_echo "$ac_cv_sys_large_files" >&6; }
25015    if test "$ac_cv_sys_large_files" != no; then
25016
25017 cat >>confdefs.h <<_ACEOF
25018 #define _LARGE_FILES $ac_cv_sys_large_files
25019 _ACEOF
25020
25021    fi
25022    fi
25023
25024
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25026 $as_echo_n "checking for X... " >&6; }
25027
25028
25029 # Check whether --with-x was given.
25030 if test "${with_x+set}" = set; then :
25031   withval=$with_x;
25032 fi
25033
25034 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25035 if test "x$with_x" = xno; then
25036   # The user explicitly disabled X.
25037   have_x=disabled
25038 else
25039   case $x_includes,$x_libraries in #(
25040     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25041     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25042   $as_echo_n "(cached) " >&6
25043 else
25044   # One or both of the vars are not set, and there is no cached value.
25045 ac_x_includes=no ac_x_libraries=no
25046 rm -f -r conftest.dir
25047 if mkdir conftest.dir; then
25048   cd conftest.dir
25049   cat >Imakefile <<'_ACEOF'
25050 incroot:
25051         @echo incroot='${INCROOT}'
25052 usrlibdir:
25053         @echo usrlibdir='${USRLIBDIR}'
25054 libdir:
25055         @echo libdir='${LIBDIR}'
25056 _ACEOF
25057   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25058     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25059     for ac_var in incroot usrlibdir libdir; do
25060       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25061     done
25062     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25063     for ac_extension in a so sl dylib la dll; do
25064       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25065          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25066         ac_im_usrlibdir=$ac_im_libdir; break
25067       fi
25068     done
25069     # Screen out bogus values from the imake configuration.  They are
25070     # bogus both because they are the default anyway, and because
25071     # using them would break gcc on systems where it needs fixed includes.
25072     case $ac_im_incroot in
25073         /usr/include) ac_x_includes= ;;
25074         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25075     esac
25076     case $ac_im_usrlibdir in
25077         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25078         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25079     esac
25080   fi
25081   cd ..
25082   rm -f -r conftest.dir
25083 fi
25084
25085 # Standard set of common directories for X headers.
25086 # Check X11 before X11Rn because it is often a symlink to the current release.
25087 ac_x_header_dirs='
25088 /usr/X11/include
25089 /usr/X11R7/include
25090 /usr/X11R6/include
25091 /usr/X11R5/include
25092 /usr/X11R4/include
25093
25094 /usr/include/X11
25095 /usr/include/X11R7
25096 /usr/include/X11R6
25097 /usr/include/X11R5
25098 /usr/include/X11R4
25099
25100 /usr/local/X11/include
25101 /usr/local/X11R7/include
25102 /usr/local/X11R6/include
25103 /usr/local/X11R5/include
25104 /usr/local/X11R4/include
25105
25106 /usr/local/include/X11
25107 /usr/local/include/X11R7
25108 /usr/local/include/X11R6
25109 /usr/local/include/X11R5
25110 /usr/local/include/X11R4
25111
25112 /usr/X386/include
25113 /usr/x386/include
25114 /usr/XFree86/include/X11
25115
25116 /usr/include
25117 /usr/local/include
25118 /usr/unsupported/include
25119 /usr/athena/include
25120 /usr/local/x11r5/include
25121 /usr/lpp/Xamples/include
25122
25123 /usr/openwin/include
25124 /usr/openwin/share/include'
25125
25126 if test "$ac_x_includes" = no; then
25127   # Guess where to find include files, by looking for Xlib.h.
25128   # First, try using that file with no special directory specified.
25129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25130 /* end confdefs.h.  */
25131 #include <X11/Xlib.h>
25132 _ACEOF
25133 if ac_fn_c_try_cpp "$LINENO"; then :
25134   # We can compile using X headers with no special include directory.
25135 ac_x_includes=
25136 else
25137   for ac_dir in $ac_x_header_dirs; do
25138   if test -r "$ac_dir/X11/Xlib.h"; then
25139     ac_x_includes=$ac_dir
25140     break
25141   fi
25142 done
25143 fi
25144 rm -f conftest.err conftest.i conftest.$ac_ext
25145 fi # $ac_x_includes = no
25146
25147 if test "$ac_x_libraries" = no; then
25148   # Check for the libraries.
25149   # See if we find them without any special options.
25150   # Don't add to $LIBS permanently.
25151   ac_save_LIBS=$LIBS
25152   LIBS="-lX11 $LIBS"
25153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h.  */
25155 #include <X11/Xlib.h>
25156 int
25157 main ()
25158 {
25159 XrmInitialize ()
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 if ac_fn_c_try_link "$LINENO"; then :
25165   LIBS=$ac_save_LIBS
25166 # We can link X programs with no special library path.
25167 ac_x_libraries=
25168 else
25169   LIBS=$ac_save_LIBS
25170 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25171 do
25172   # Don't even attempt the hair of trying to link an X program!
25173   for ac_extension in a so sl dylib la dll; do
25174     if test -r "$ac_dir/libX11.$ac_extension"; then
25175       ac_x_libraries=$ac_dir
25176       break 2
25177     fi
25178   done
25179 done
25180 fi
25181 rm -f core conftest.err conftest.$ac_objext \
25182     conftest$ac_exeext conftest.$ac_ext
25183 fi # $ac_x_libraries = no
25184
25185 case $ac_x_includes,$ac_x_libraries in #(
25186   no,* | *,no | *\'*)
25187     # Didn't find X, or a directory has "'" in its name.
25188     ac_cv_have_x="have_x=no";; #(
25189   *)
25190     # Record where we found X for the cache.
25191     ac_cv_have_x="have_x=yes\
25192         ac_x_includes='$ac_x_includes'\
25193         ac_x_libraries='$ac_x_libraries'"
25194 esac
25195 fi
25196 ;; #(
25197     *) have_x=yes;;
25198   esac
25199   eval "$ac_cv_have_x"
25200 fi # $with_x != no
25201
25202 if test "$have_x" != yes; then
25203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25204 $as_echo "$have_x" >&6; }
25205   no_x=yes
25206 else
25207   # If each of the values was on the command line, it overrides each guess.
25208   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25209   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25210   # Update the cache value to reflect the command line values.
25211   ac_cv_have_x="have_x=yes\
25212         ac_x_includes='$x_includes'\
25213         ac_x_libraries='$x_libraries'"
25214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25215 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25216 fi
25217
25218 if test "$no_x" = yes; then
25219   # Not all programs may use this symbol, but it does not hurt to define it.
25220
25221 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25222
25223   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25224 else
25225   if test -n "$x_includes"; then
25226     X_CFLAGS="$X_CFLAGS -I$x_includes"
25227   fi
25228
25229   # It would also be nice to do this for all -L options, not just this one.
25230   if test -n "$x_libraries"; then
25231     X_LIBS="$X_LIBS -L$x_libraries"
25232     # For Solaris; some versions of Sun CC require a space after -R and
25233     # others require no space.  Words are not sufficient . . . .
25234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25235 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25236     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25237     ac_xsave_c_werror_flag=$ac_c_werror_flag
25238     ac_c_werror_flag=yes
25239     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25240 /* end confdefs.h.  */
25241
25242 int
25243 main ()
25244 {
25245
25246   ;
25247   return 0;
25248 }
25249 _ACEOF
25250 if ac_fn_c_try_link "$LINENO"; then :
25251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25252 $as_echo "no" >&6; }
25253        X_LIBS="$X_LIBS -R$x_libraries"
25254 else
25255   LIBS="$ac_xsave_LIBS -R $x_libraries"
25256        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h.  */
25258
25259 int
25260 main ()
25261 {
25262
25263   ;
25264   return 0;
25265 }
25266 _ACEOF
25267 if ac_fn_c_try_link "$LINENO"; then :
25268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25269 $as_echo "yes" >&6; }
25270           X_LIBS="$X_LIBS -R $x_libraries"
25271 else
25272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25273 $as_echo "neither works" >&6; }
25274 fi
25275 rm -f core conftest.err conftest.$ac_objext \
25276     conftest$ac_exeext conftest.$ac_ext
25277 fi
25278 rm -f core conftest.err conftest.$ac_objext \
25279     conftest$ac_exeext conftest.$ac_ext
25280     ac_c_werror_flag=$ac_xsave_c_werror_flag
25281     LIBS=$ac_xsave_LIBS
25282   fi
25283
25284   # Check for system-dependent libraries X programs must link with.
25285   # Do this before checking for the system-independent R6 libraries
25286   # (-lICE), since we may need -lsocket or whatever for X linking.
25287
25288   if test "$ISC" = yes; then
25289     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25290   else
25291     # Martyn Johnson says this is needed for Ultrix, if the X
25292     # libraries were built with DECnet support.  And Karl Berry says
25293     # the Alpha needs dnet_stub (dnet does not exist).
25294     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25296 /* end confdefs.h.  */
25297
25298 /* Override any GCC internal prototype to avoid an error.
25299    Use char because int might match the return type of a GCC
25300    builtin and then its argument prototype would still apply.  */
25301 #ifdef __cplusplus
25302 extern "C"
25303 #endif
25304 char XOpenDisplay ();
25305 int
25306 main ()
25307 {
25308 return XOpenDisplay ();
25309   ;
25310   return 0;
25311 }
25312 _ACEOF
25313 if ac_fn_c_try_link "$LINENO"; then :
25314
25315 else
25316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25317 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25318 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25319   $as_echo_n "(cached) " >&6
25320 else
25321   ac_check_lib_save_LIBS=$LIBS
25322 LIBS="-ldnet  $LIBS"
25323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h.  */
25325
25326 /* Override any GCC internal prototype to avoid an error.
25327    Use char because int might match the return type of a GCC
25328    builtin and then its argument prototype would still apply.  */
25329 #ifdef __cplusplus
25330 extern "C"
25331 #endif
25332 char dnet_ntoa ();
25333 int
25334 main ()
25335 {
25336 return dnet_ntoa ();
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 if ac_fn_c_try_link "$LINENO"; then :
25342   ac_cv_lib_dnet_dnet_ntoa=yes
25343 else
25344   ac_cv_lib_dnet_dnet_ntoa=no
25345 fi
25346 rm -f core conftest.err conftest.$ac_objext \
25347     conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25349 fi
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25351 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25352 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25353   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25354 fi
25355
25356     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25357       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25358 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25359 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25360   $as_echo_n "(cached) " >&6
25361 else
25362   ac_check_lib_save_LIBS=$LIBS
25363 LIBS="-ldnet_stub  $LIBS"
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h.  */
25366
25367 /* Override any GCC internal prototype to avoid an error.
25368    Use char because int might match the return type of a GCC
25369    builtin and then its argument prototype would still apply.  */
25370 #ifdef __cplusplus
25371 extern "C"
25372 #endif
25373 char dnet_ntoa ();
25374 int
25375 main ()
25376 {
25377 return dnet_ntoa ();
25378   ;
25379   return 0;
25380 }
25381 _ACEOF
25382 if ac_fn_c_try_link "$LINENO"; then :
25383   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25384 else
25385   ac_cv_lib_dnet_stub_dnet_ntoa=no
25386 fi
25387 rm -f core conftest.err conftest.$ac_objext \
25388     conftest$ac_exeext conftest.$ac_ext
25389 LIBS=$ac_check_lib_save_LIBS
25390 fi
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25392 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25393 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25394   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25395 fi
25396
25397     fi
25398 fi
25399 rm -f core conftest.err conftest.$ac_objext \
25400     conftest$ac_exeext conftest.$ac_ext
25401     LIBS="$ac_xsave_LIBS"
25402
25403     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25404     # to get the SysV transport functions.
25405     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25406     # needs -lnsl.
25407     # The nsl library prevents programs from opening the X display
25408     # on Irix 5.2, according to T.E. Dickey.
25409     # The functions gethostbyname, getservbyname, and inet_addr are
25410     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25411     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25412 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25413
25414 fi
25415
25416     if test $ac_cv_func_gethostbyname = no; then
25417       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25418 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25419 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25420   $as_echo_n "(cached) " >&6
25421 else
25422   ac_check_lib_save_LIBS=$LIBS
25423 LIBS="-lnsl  $LIBS"
25424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h.  */
25426
25427 /* Override any GCC internal prototype to avoid an error.
25428    Use char because int might match the return type of a GCC
25429    builtin and then its argument prototype would still apply.  */
25430 #ifdef __cplusplus
25431 extern "C"
25432 #endif
25433 char gethostbyname ();
25434 int
25435 main ()
25436 {
25437 return gethostbyname ();
25438   ;
25439   return 0;
25440 }
25441 _ACEOF
25442 if ac_fn_c_try_link "$LINENO"; then :
25443   ac_cv_lib_nsl_gethostbyname=yes
25444 else
25445   ac_cv_lib_nsl_gethostbyname=no
25446 fi
25447 rm -f core conftest.err conftest.$ac_objext \
25448     conftest$ac_exeext conftest.$ac_ext
25449 LIBS=$ac_check_lib_save_LIBS
25450 fi
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25452 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25453 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25454   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25455 fi
25456
25457       if test $ac_cv_lib_nsl_gethostbyname = no; then
25458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25459 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25460 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25461   $as_echo_n "(cached) " >&6
25462 else
25463   ac_check_lib_save_LIBS=$LIBS
25464 LIBS="-lbsd  $LIBS"
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h.  */
25467
25468 /* Override any GCC internal prototype to avoid an error.
25469    Use char because int might match the return type of a GCC
25470    builtin and then its argument prototype would still apply.  */
25471 #ifdef __cplusplus
25472 extern "C"
25473 #endif
25474 char gethostbyname ();
25475 int
25476 main ()
25477 {
25478 return gethostbyname ();
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 if ac_fn_c_try_link "$LINENO"; then :
25484   ac_cv_lib_bsd_gethostbyname=yes
25485 else
25486   ac_cv_lib_bsd_gethostbyname=no
25487 fi
25488 rm -f core conftest.err conftest.$ac_objext \
25489     conftest$ac_exeext conftest.$ac_ext
25490 LIBS=$ac_check_lib_save_LIBS
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25493 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25494 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25495   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25496 fi
25497
25498       fi
25499     fi
25500
25501     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25502     # socket/setsockopt and other routines are undefined under SCO ODT
25503     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25504     # on later versions), says Simon Leinen: it contains gethostby*
25505     # variants that don't use the name server (or something).  -lsocket
25506     # must be given before -lnsl if both are needed.  We assume that
25507     # if connect needs -lnsl, so does gethostbyname.
25508     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25509 if test "x$ac_cv_func_connect" = xyes; then :
25510
25511 fi
25512
25513     if test $ac_cv_func_connect = no; then
25514       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25515 $as_echo_n "checking for connect in -lsocket... " >&6; }
25516 if ${ac_cv_lib_socket_connect+:} false; then :
25517   $as_echo_n "(cached) " >&6
25518 else
25519   ac_check_lib_save_LIBS=$LIBS
25520 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h.  */
25523
25524 /* Override any GCC internal prototype to avoid an error.
25525    Use char because int might match the return type of a GCC
25526    builtin and then its argument prototype would still apply.  */
25527 #ifdef __cplusplus
25528 extern "C"
25529 #endif
25530 char connect ();
25531 int
25532 main ()
25533 {
25534 return connect ();
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 if ac_fn_c_try_link "$LINENO"; then :
25540   ac_cv_lib_socket_connect=yes
25541 else
25542   ac_cv_lib_socket_connect=no
25543 fi
25544 rm -f core conftest.err conftest.$ac_objext \
25545     conftest$ac_exeext conftest.$ac_ext
25546 LIBS=$ac_check_lib_save_LIBS
25547 fi
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25549 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25550 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25551   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25552 fi
25553
25554     fi
25555
25556     # Guillermo Gomez says -lposix is necessary on A/UX.
25557     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25558 if test "x$ac_cv_func_remove" = xyes; then :
25559
25560 fi
25561
25562     if test $ac_cv_func_remove = no; then
25563       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25564 $as_echo_n "checking for remove in -lposix... " >&6; }
25565 if ${ac_cv_lib_posix_remove+:} false; then :
25566   $as_echo_n "(cached) " >&6
25567 else
25568   ac_check_lib_save_LIBS=$LIBS
25569 LIBS="-lposix  $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 remove ();
25580 int
25581 main ()
25582 {
25583 return remove ();
25584   ;
25585   return 0;
25586 }
25587 _ACEOF
25588 if ac_fn_c_try_link "$LINENO"; then :
25589   ac_cv_lib_posix_remove=yes
25590 else
25591   ac_cv_lib_posix_remove=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_posix_remove" >&5
25598 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25599 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25600   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25601 fi
25602
25603     fi
25604
25605     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25606     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25607 if test "x$ac_cv_func_shmat" = xyes; then :
25608
25609 fi
25610
25611     if test $ac_cv_func_shmat = no; then
25612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25613 $as_echo_n "checking for shmat in -lipc... " >&6; }
25614 if ${ac_cv_lib_ipc_shmat+:} false; then :
25615   $as_echo_n "(cached) " >&6
25616 else
25617   ac_check_lib_save_LIBS=$LIBS
25618 LIBS="-lipc  $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 shmat ();
25629 int
25630 main ()
25631 {
25632 return shmat ();
25633   ;
25634   return 0;
25635 }
25636 _ACEOF
25637 if ac_fn_c_try_link "$LINENO"; then :
25638   ac_cv_lib_ipc_shmat=yes
25639 else
25640   ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
25647 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25648 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25649   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25650 fi
25651
25652     fi
25653   fi
25654
25655   # Check for libraries that X11R6 Xt/Xaw programs need.
25656   ac_save_LDFLAGS=$LDFLAGS
25657   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25658   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25659   # check for ICE first), but we must link in the order -lSM -lICE or
25660   # we get undefined symbols.  So assume we have SM if we have ICE.
25661   # These have to be linked with before -lX11, unlike the other
25662   # libraries we check for below, so use a different variable.
25663   # John Interrante, Karl Berry
25664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25665 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25666 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25667   $as_echo_n "(cached) " >&6
25668 else
25669   ac_check_lib_save_LIBS=$LIBS
25670 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h.  */
25673
25674 /* Override any GCC internal prototype to avoid an error.
25675    Use char because int might match the return type of a GCC
25676    builtin and then its argument prototype would still apply.  */
25677 #ifdef __cplusplus
25678 extern "C"
25679 #endif
25680 char IceConnectionNumber ();
25681 int
25682 main ()
25683 {
25684 return IceConnectionNumber ();
25685   ;
25686   return 0;
25687 }
25688 _ACEOF
25689 if ac_fn_c_try_link "$LINENO"; then :
25690   ac_cv_lib_ICE_IceConnectionNumber=yes
25691 else
25692   ac_cv_lib_ICE_IceConnectionNumber=no
25693 fi
25694 rm -f core conftest.err conftest.$ac_objext \
25695     conftest$ac_exeext conftest.$ac_ext
25696 LIBS=$ac_check_lib_save_LIBS
25697 fi
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25699 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25700 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25701   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25702 fi
25703
25704   LDFLAGS=$ac_save_LDFLAGS
25705
25706 fi
25707
25708
25709 for ac_header in \
25710    assert.h \
25711    fcntl.h \
25712    grp.h \
25713    pwd.h \
25714    libc.h \
25715    limits.h \
25716    stdarg.h \
25717    stdlib.h \
25718    stdint.h \
25719    inttypes.h \
25720    string.h \
25721    strings.h \
25722    termios.h \
25723    termcap.h \
25724    term.h \
25725    unistd.h \
25726    sys/bitypes.h \
25727    sys/byteorder.h \
25728    sys/ioctl.h \
25729    sys/select.h \
25730    sys/socket.h \
25731    sys/sockio.h \
25732    sys/stat.h \
25733    sys/time.h \
25734    sys/types.h \
25735    arpa/nameser.h \
25736    mtio.h \
25737    sys/mtio.h \
25738    sys/tape.h \
25739    regex.h \
25740
25741 do :
25742   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25743 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25745   cat >>confdefs.h <<_ACEOF
25746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25747 _ACEOF
25748
25749 fi
25750
25751 done
25752
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25754 $as_echo_n "checking for ANSI C header files... " >&6; }
25755 if ${ac_cv_header_stdc+:} false; then :
25756   $as_echo_n "(cached) " >&6
25757 else
25758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25759 /* end confdefs.h.  */
25760 #include <stdlib.h>
25761 #include <stdarg.h>
25762 #include <string.h>
25763 #include <float.h>
25764
25765 int
25766 main ()
25767 {
25768
25769   ;
25770   return 0;
25771 }
25772 _ACEOF
25773 if ac_fn_c_try_compile "$LINENO"; then :
25774   ac_cv_header_stdc=yes
25775 else
25776   ac_cv_header_stdc=no
25777 fi
25778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25779
25780 if test $ac_cv_header_stdc = yes; then
25781   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h.  */
25784 #include <string.h>
25785
25786 _ACEOF
25787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25788   $EGREP "memchr" >/dev/null 2>&1; then :
25789
25790 else
25791   ac_cv_header_stdc=no
25792 fi
25793 rm -f conftest*
25794
25795 fi
25796
25797 if test $ac_cv_header_stdc = yes; then
25798   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800 /* end confdefs.h.  */
25801 #include <stdlib.h>
25802
25803 _ACEOF
25804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25805   $EGREP "free" >/dev/null 2>&1; then :
25806
25807 else
25808   ac_cv_header_stdc=no
25809 fi
25810 rm -f conftest*
25811
25812 fi
25813
25814 if test $ac_cv_header_stdc = yes; then
25815   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25816   if test "$cross_compiling" = yes; then :
25817   :
25818 else
25819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25820 /* end confdefs.h.  */
25821 #include <ctype.h>
25822 #include <stdlib.h>
25823 #if ((' ' & 0x0FF) == 0x020)
25824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25826 #else
25827 # define ISLOWER(c) \
25828                    (('a' <= (c) && (c) <= 'i') \
25829                      || ('j' <= (c) && (c) <= 'r') \
25830                      || ('s' <= (c) && (c) <= 'z'))
25831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25832 #endif
25833
25834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25835 int
25836 main ()
25837 {
25838   int i;
25839   for (i = 0; i < 256; i++)
25840     if (XOR (islower (i), ISLOWER (i))
25841         || toupper (i) != TOUPPER (i))
25842       return 2;
25843   return 0;
25844 }
25845 _ACEOF
25846 if ac_fn_c_try_run "$LINENO"; then :
25847
25848 else
25849   ac_cv_header_stdc=no
25850 fi
25851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25852   conftest.$ac_objext conftest.beam conftest.$ac_ext
25853 fi
25854
25855 fi
25856 fi
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25858 $as_echo "$ac_cv_header_stdc" >&6; }
25859 if test $ac_cv_header_stdc = yes; then
25860
25861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25862
25863 fi
25864
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25866 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25867 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25868   $as_echo_n "(cached) " >&6
25869 else
25870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25871 /* end confdefs.h.  */
25872 #include <sys/types.h>
25873 int
25874 main ()
25875 {
25876 return makedev(0, 0);
25877   ;
25878   return 0;
25879 }
25880 _ACEOF
25881 if ac_fn_c_try_link "$LINENO"; then :
25882   ac_cv_header_sys_types_h_makedev=yes
25883 else
25884   ac_cv_header_sys_types_h_makedev=no
25885 fi
25886 rm -f core conftest.err conftest.$ac_objext \
25887     conftest$ac_exeext conftest.$ac_ext
25888
25889 fi
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25891 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25892
25893 if test $ac_cv_header_sys_types_h_makedev = no; then
25894 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25895 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25896
25897 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25898
25899 fi
25900
25901
25902
25903   if test $ac_cv_header_sys_mkdev_h = no; then
25904     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25905 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25906
25907 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25908
25909 fi
25910
25911
25912   fi
25913 fi
25914
25915 ac_header_dirent=no
25916 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25917   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25919 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25920 if eval \${$as_ac_Header+:} false; then :
25921   $as_echo_n "(cached) " >&6
25922 else
25923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h.  */
25925 #include <sys/types.h>
25926 #include <$ac_hdr>
25927
25928 int
25929 main ()
25930 {
25931 if ((DIR *) 0)
25932 return 0;
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 if ac_fn_c_try_compile "$LINENO"; then :
25938   eval "$as_ac_Header=yes"
25939 else
25940   eval "$as_ac_Header=no"
25941 fi
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943 fi
25944 eval ac_res=\$$as_ac_Header
25945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25946 $as_echo "$ac_res" >&6; }
25947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25948   cat >>confdefs.h <<_ACEOF
25949 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25950 _ACEOF
25951
25952 ac_header_dirent=$ac_hdr; break
25953 fi
25954
25955 done
25956 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25957 if test $ac_header_dirent = dirent.h; then
25958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25959 $as_echo_n "checking for library containing opendir... " >&6; }
25960 if ${ac_cv_search_opendir+:} false; then :
25961   $as_echo_n "(cached) " >&6
25962 else
25963   ac_func_search_save_LIBS=$LIBS
25964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25965 /* end confdefs.h.  */
25966
25967 /* Override any GCC internal prototype to avoid an error.
25968    Use char because int might match the return type of a GCC
25969    builtin and then its argument prototype would still apply.  */
25970 #ifdef __cplusplus
25971 extern "C"
25972 #endif
25973 char opendir ();
25974 int
25975 main ()
25976 {
25977 return opendir ();
25978   ;
25979   return 0;
25980 }
25981 _ACEOF
25982 for ac_lib in '' dir; do
25983   if test -z "$ac_lib"; then
25984     ac_res="none required"
25985   else
25986     ac_res=-l$ac_lib
25987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25988   fi
25989   if ac_fn_c_try_link "$LINENO"; then :
25990   ac_cv_search_opendir=$ac_res
25991 fi
25992 rm -f core conftest.err conftest.$ac_objext \
25993     conftest$ac_exeext
25994   if ${ac_cv_search_opendir+:} false; then :
25995   break
25996 fi
25997 done
25998 if ${ac_cv_search_opendir+:} false; then :
25999
26000 else
26001   ac_cv_search_opendir=no
26002 fi
26003 rm conftest.$ac_ext
26004 LIBS=$ac_func_search_save_LIBS
26005 fi
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26007 $as_echo "$ac_cv_search_opendir" >&6; }
26008 ac_res=$ac_cv_search_opendir
26009 if test "$ac_res" != no; then :
26010   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26011
26012 fi
26013
26014 else
26015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26016 $as_echo_n "checking for library containing opendir... " >&6; }
26017 if ${ac_cv_search_opendir+:} false; then :
26018   $as_echo_n "(cached) " >&6
26019 else
26020   ac_func_search_save_LIBS=$LIBS
26021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26022 /* end confdefs.h.  */
26023
26024 /* Override any GCC internal prototype to avoid an error.
26025    Use char because int might match the return type of a GCC
26026    builtin and then its argument prototype would still apply.  */
26027 #ifdef __cplusplus
26028 extern "C"
26029 #endif
26030 char opendir ();
26031 int
26032 main ()
26033 {
26034 return opendir ();
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 for ac_lib in '' x; do
26040   if test -z "$ac_lib"; then
26041     ac_res="none required"
26042   else
26043     ac_res=-l$ac_lib
26044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26045   fi
26046   if ac_fn_c_try_link "$LINENO"; then :
26047   ac_cv_search_opendir=$ac_res
26048 fi
26049 rm -f core conftest.err conftest.$ac_objext \
26050     conftest$ac_exeext
26051   if ${ac_cv_search_opendir+:} false; then :
26052   break
26053 fi
26054 done
26055 if ${ac_cv_search_opendir+:} false; then :
26056
26057 else
26058   ac_cv_search_opendir=no
26059 fi
26060 rm conftest.$ac_ext
26061 LIBS=$ac_func_search_save_LIBS
26062 fi
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26064 $as_echo "$ac_cv_search_opendir" >&6; }
26065 ac_res=$ac_cv_search_opendir
26066 if test "$ac_res" != no; then :
26067   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26068
26069 fi
26070
26071 fi
26072
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26074 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26075 if ${ac_cv_header_stat_broken+:} false; then :
26076   $as_echo_n "(cached) " >&6
26077 else
26078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h.  */
26080 #include <sys/types.h>
26081 #include <sys/stat.h>
26082
26083 #if defined S_ISBLK && defined S_IFDIR
26084 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26085 #endif
26086
26087 #if defined S_ISBLK && defined S_IFCHR
26088 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26089 #endif
26090
26091 #if defined S_ISLNK && defined S_IFREG
26092 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26093 #endif
26094
26095 #if defined S_ISSOCK && defined S_IFREG
26096 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26097 #endif
26098
26099 _ACEOF
26100 if ac_fn_c_try_compile "$LINENO"; then :
26101   ac_cv_header_stat_broken=no
26102 else
26103   ac_cv_header_stat_broken=yes
26104 fi
26105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26106 fi
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26108 $as_echo "$ac_cv_header_stat_broken" >&6; }
26109 if test $ac_cv_header_stat_broken = yes; then
26110
26111 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26112
26113 fi
26114
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26116 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26117 if ${ac_cv_header_sys_wait_h+:} false; then :
26118   $as_echo_n "(cached) " >&6
26119 else
26120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26121 /* end confdefs.h.  */
26122 #include <sys/types.h>
26123 #include <sys/wait.h>
26124 #ifndef WEXITSTATUS
26125 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26126 #endif
26127 #ifndef WIFEXITED
26128 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26129 #endif
26130
26131 int
26132 main ()
26133 {
26134   int s;
26135   wait (&s);
26136   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26137   ;
26138   return 0;
26139 }
26140 _ACEOF
26141 if ac_fn_c_try_compile "$LINENO"; then :
26142   ac_cv_header_sys_wait_h=yes
26143 else
26144   ac_cv_header_sys_wait_h=no
26145 fi
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 fi
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26149 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26150 if test $ac_cv_header_sys_wait_h = yes; then
26151
26152 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26153
26154 fi
26155
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26157 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26158 if ${ac_cv_header_time+:} false; then :
26159   $as_echo_n "(cached) " >&6
26160 else
26161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26162 /* end confdefs.h.  */
26163 #include <sys/types.h>
26164 #include <sys/time.h>
26165 #include <time.h>
26166
26167 int
26168 main ()
26169 {
26170 if ((struct tm *) 0)
26171 return 0;
26172   ;
26173   return 0;
26174 }
26175 _ACEOF
26176 if ac_fn_c_try_compile "$LINENO"; then :
26177   ac_cv_header_time=yes
26178 else
26179   ac_cv_header_time=no
26180 fi
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182 fi
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26184 $as_echo "$ac_cv_header_time" >&6; }
26185 if test $ac_cv_header_time = yes; then
26186
26187 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26188
26189 fi
26190
26191 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26192 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26193
26194 cat >>confdefs.h <<_ACEOF
26195 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26196 _ACEOF
26197
26198
26199 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26200
26201 fi
26202
26203
26204 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26205 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26206
26207 cat >>confdefs.h <<_ACEOF
26208 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26209 _ACEOF
26210
26211
26212 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26213
26214 else
26215   case " $LIBOBJS " in
26216   *" fileblocks.$ac_objext "* ) ;;
26217   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26218  ;;
26219 esac
26220
26221 fi
26222
26223
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26225 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26226 if ${ac_cv_struct_tm+:} false; then :
26227   $as_echo_n "(cached) " >&6
26228 else
26229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h.  */
26231 #include <sys/types.h>
26232 #include <time.h>
26233
26234 int
26235 main ()
26236 {
26237 struct tm tm;
26238                                      int *p = &tm.tm_sec;
26239                                      return !p;
26240   ;
26241   return 0;
26242 }
26243 _ACEOF
26244 if ac_fn_c_try_compile "$LINENO"; then :
26245   ac_cv_struct_tm=time.h
26246 else
26247   ac_cv_struct_tm=sys/time.h
26248 fi
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26250 fi
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26252 $as_echo "$ac_cv_struct_tm" >&6; }
26253 if test $ac_cv_struct_tm = sys/time.h; then
26254
26255 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26256
26257 fi
26258
26259 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26260 #include <$ac_cv_struct_tm>
26261
26262 "
26263 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26264
26265 cat >>confdefs.h <<_ACEOF
26266 #define HAVE_STRUCT_TM_TM_ZONE 1
26267 _ACEOF
26268
26269
26270 fi
26271
26272 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26273
26274 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26275
26276 else
26277   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26278 "
26279 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26280   ac_have_decl=1
26281 else
26282   ac_have_decl=0
26283 fi
26284
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_DECL_TZNAME $ac_have_decl
26287 _ACEOF
26288
26289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26290 $as_echo_n "checking for tzname... " >&6; }
26291 if ${ac_cv_var_tzname+:} false; then :
26292   $as_echo_n "(cached) " >&6
26293 else
26294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h.  */
26296 #include <time.h>
26297 #if !HAVE_DECL_TZNAME
26298 extern char *tzname[];
26299 #endif
26300
26301 int
26302 main ()
26303 {
26304 return tzname[0][0];
26305   ;
26306   return 0;
26307 }
26308 _ACEOF
26309 if ac_fn_c_try_link "$LINENO"; then :
26310   ac_cv_var_tzname=yes
26311 else
26312   ac_cv_var_tzname=no
26313 fi
26314 rm -f core conftest.err conftest.$ac_objext \
26315     conftest$ac_exeext conftest.$ac_ext
26316 fi
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26318 $as_echo "$ac_cv_var_tzname" >&6; }
26319   if test $ac_cv_var_tzname = yes; then
26320
26321 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26322
26323   fi
26324 fi
26325
26326
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26328 $as_echo_n "checking for utime.h... " >&6; }
26329 if ${ba_cv_header_utime_h+:} false; then :
26330   $as_echo_n "(cached) " >&6
26331 else
26332
26333        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26334 /* end confdefs.h.  */
26335
26336               #include <sys/types.h>
26337               #include <utime.h>
26338
26339 int
26340 main ()
26341 {
26342
26343               struct utimbuf foo
26344
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 if ac_fn_c_try_compile "$LINENO"; then :
26350
26351               ba_cv_header_utime_h=yes
26352
26353 else
26354
26355               ba_cv_header_utime_h=no
26356
26357
26358 fi
26359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26360
26361
26362 fi
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26364 $as_echo "$ba_cv_header_utime_h" >&6; }
26365 test $ba_cv_header_utime_h = yes &&
26366 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26367
26368
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26370 $as_echo_n "checking for socklen_t... " >&6; }
26371 if ${ba_cv_header_socklen_t+:} false; then :
26372   $as_echo_n "(cached) " >&6
26373 else
26374
26375        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26376 /* end confdefs.h.  */
26377
26378               #include <sys/types.h>
26379               #include <sys/socket.h>
26380
26381 int
26382 main ()
26383 {
26384
26385               socklen_t x
26386
26387   ;
26388   return 0;
26389 }
26390 _ACEOF
26391 if ac_fn_c_try_compile "$LINENO"; then :
26392
26393              ba_cv_header_socklen_t=yes
26394
26395 else
26396
26397              ba_cv_header_socklen_t=no
26398
26399
26400 fi
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26402
26403
26404 fi
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26406 $as_echo "$ba_cv_header_socklen_t" >&6; }
26407 test $ba_cv_header_socklen_t = yes &&
26408 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26409
26410
26411 ac_ext=cpp
26412 ac_cpp='$CXXCPP $CPPFLAGS'
26413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26416
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26418 $as_echo_n "checking for ioctl_req_t... " >&6; }
26419 if ${ba_cv_header_ioctl_req_t+:} false; then :
26420   $as_echo_n "(cached) " >&6
26421 else
26422
26423        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26424 /* end confdefs.h.  */
26425
26426               #include <unistd.h>
26427               #include <sys/types.h>
26428               #include <sys/ioctl.h>
26429
26430 int
26431 main ()
26432 {
26433
26434               int (*d_ioctl)(int fd, unsigned long int request, ...);
26435               d_ioctl = ::ioctl;
26436
26437   ;
26438   return 0;
26439 }
26440 _ACEOF
26441 if ac_fn_cxx_try_compile "$LINENO"; then :
26442
26443              ba_cv_header_ioctl_req_t=yes
26444
26445 else
26446
26447              ba_cv_header_ioctl_req_t=no
26448
26449
26450 fi
26451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26452
26453
26454 fi
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26456 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26457 test $ba_cv_header_ioctl_req_t = yes &&
26458 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26459
26460
26461 ac_ext=c
26462 ac_cpp='$CPP $CPPFLAGS'
26463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26466
26467
26468 ac_ext=cpp
26469 ac_cpp='$CXXCPP $CPPFLAGS'
26470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26473
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26475 $as_echo_n "checking for typeof... " >&6; }
26476 if ${ba_cv_have_typeof+:} false; then :
26477   $as_echo_n "(cached) " >&6
26478 else
26479
26480        if test "$cross_compiling" = yes; then :
26481
26482               ba_cv_have_typeof=no
26483
26484
26485 else
26486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26487 /* end confdefs.h.  */
26488
26489               main(){char *a = 0; a = (typeof a)a;}
26490
26491 _ACEOF
26492 if ac_fn_cxx_try_run "$LINENO"; then :
26493
26494               ba_cv_have_typeof=yes
26495
26496 else
26497
26498               ba_cv_have_typeof=no
26499
26500 fi
26501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26502   conftest.$ac_objext conftest.beam conftest.$ac_ext
26503 fi
26504
26505
26506
26507 fi
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26509 $as_echo "$ba_cv_have_typeof" >&6; }
26510 test $ba_cv_have_typeof = yes &&
26511 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26512
26513 ac_ext=c
26514 ac_cpp='$CPP $CPPFLAGS'
26515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26518
26519
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26521 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26522 if ${ac_cv_c_const+:} false; then :
26523   $as_echo_n "(cached) " >&6
26524 else
26525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26526 /* end confdefs.h.  */
26527
26528 int
26529 main ()
26530 {
26531
26532 #ifndef __cplusplus
26533   /* Ultrix mips cc rejects this sort of thing.  */
26534   typedef int charset[2];
26535   const charset cs = { 0, 0 };
26536   /* SunOS 4.1.1 cc rejects this.  */
26537   char const *const *pcpcc;
26538   char **ppc;
26539   /* NEC SVR4.0.2 mips cc rejects this.  */
26540   struct point {int x, y;};
26541   static struct point const zero = {0,0};
26542   /* AIX XL C 1.02.0.0 rejects this.
26543      It does not let you subtract one const X* pointer from another in
26544      an arm of an if-expression whose if-part is not a constant
26545      expression */
26546   const char *g = "string";
26547   pcpcc = &g + (g ? g-g : 0);
26548   /* HPUX 7.0 cc rejects these. */
26549   ++pcpcc;
26550   ppc = (char**) pcpcc;
26551   pcpcc = (char const *const *) ppc;
26552   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26553     char tx;
26554     char *t = &tx;
26555     char const *s = 0 ? (char *) 0 : (char const *) 0;
26556
26557     *t++ = 0;
26558     if (s) return 0;
26559   }
26560   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26561     int x[] = {25, 17};
26562     const int *foo = &x[0];
26563     ++foo;
26564   }
26565   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26566     typedef const int *iptr;
26567     iptr p = 0;
26568     ++p;
26569   }
26570   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26571        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26572     struct s { int j; const int *ap[3]; } bx;
26573     struct s *b = &bx; b->j = 5;
26574   }
26575   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26576     const int foo = 10;
26577     if (!foo) return 0;
26578   }
26579   return !cs[0] && !zero.x;
26580 #endif
26581
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 if ac_fn_c_try_compile "$LINENO"; then :
26587   ac_cv_c_const=yes
26588 else
26589   ac_cv_c_const=no
26590 fi
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26592 fi
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26594 $as_echo "$ac_cv_c_const" >&6; }
26595 if test $ac_cv_c_const = no; then
26596
26597 $as_echo "#define const /**/" >>confdefs.h
26598
26599 fi
26600
26601
26602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26603 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26604 if ${ac_cv_c_bigendian+:} false; then :
26605   $as_echo_n "(cached) " >&6
26606 else
26607   ac_cv_c_bigendian=unknown
26608     # See if we're dealing with a universal compiler.
26609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26610 /* end confdefs.h.  */
26611 #ifndef __APPLE_CC__
26612                not a universal capable compiler
26613              #endif
26614              typedef int dummy;
26615
26616 _ACEOF
26617 if ac_fn_c_try_compile "$LINENO"; then :
26618
26619         # Check for potential -arch flags.  It is not universal unless
26620         # there are at least two -arch flags with different values.
26621         ac_arch=
26622         ac_prev=
26623         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26624          if test -n "$ac_prev"; then
26625            case $ac_word in
26626              i?86 | x86_64 | ppc | ppc64)
26627                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26628                  ac_arch=$ac_word
26629                else
26630                  ac_cv_c_bigendian=universal
26631                  break
26632                fi
26633                ;;
26634            esac
26635            ac_prev=
26636          elif test "x$ac_word" = "x-arch"; then
26637            ac_prev=arch
26638          fi
26639        done
26640 fi
26641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26642     if test $ac_cv_c_bigendian = unknown; then
26643       # See if sys/param.h defines the BYTE_ORDER macro.
26644       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h.  */
26646 #include <sys/types.h>
26647              #include <sys/param.h>
26648
26649 int
26650 main ()
26651 {
26652 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26653                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26654                      && LITTLE_ENDIAN)
26655               bogus endian macros
26656              #endif
26657
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 if ac_fn_c_try_compile "$LINENO"; then :
26663   # It does; now see whether it defined to BIG_ENDIAN or not.
26664          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26665 /* end confdefs.h.  */
26666 #include <sys/types.h>
26667                 #include <sys/param.h>
26668
26669 int
26670 main ()
26671 {
26672 #if BYTE_ORDER != BIG_ENDIAN
26673                  not big endian
26674                 #endif
26675
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 if ac_fn_c_try_compile "$LINENO"; then :
26681   ac_cv_c_bigendian=yes
26682 else
26683   ac_cv_c_bigendian=no
26684 fi
26685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26686 fi
26687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26688     fi
26689     if test $ac_cv_c_bigendian = unknown; then
26690       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26691       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h.  */
26693 #include <limits.h>
26694
26695 int
26696 main ()
26697 {
26698 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26699               bogus endian macros
26700              #endif
26701
26702   ;
26703   return 0;
26704 }
26705 _ACEOF
26706 if ac_fn_c_try_compile "$LINENO"; then :
26707   # It does; now see whether it defined to _BIG_ENDIAN or not.
26708          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26709 /* end confdefs.h.  */
26710 #include <limits.h>
26711
26712 int
26713 main ()
26714 {
26715 #ifndef _BIG_ENDIAN
26716                  not big endian
26717                 #endif
26718
26719   ;
26720   return 0;
26721 }
26722 _ACEOF
26723 if ac_fn_c_try_compile "$LINENO"; then :
26724   ac_cv_c_bigendian=yes
26725 else
26726   ac_cv_c_bigendian=no
26727 fi
26728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26729 fi
26730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26731     fi
26732     if test $ac_cv_c_bigendian = unknown; then
26733       # Compile a test program.
26734       if test "$cross_compiling" = yes; then :
26735   # Try to guess by grepping values from an object file.
26736          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h.  */
26738 short int ascii_mm[] =
26739                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26740                 short int ascii_ii[] =
26741                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26742                 int use_ascii (int i) {
26743                   return ascii_mm[i] + ascii_ii[i];
26744                 }
26745                 short int ebcdic_ii[] =
26746                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26747                 short int ebcdic_mm[] =
26748                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26749                 int use_ebcdic (int i) {
26750                   return ebcdic_mm[i] + ebcdic_ii[i];
26751                 }
26752                 extern int foo;
26753
26754 int
26755 main ()
26756 {
26757 return use_ascii (foo) == use_ebcdic (foo);
26758   ;
26759   return 0;
26760 }
26761 _ACEOF
26762 if ac_fn_c_try_compile "$LINENO"; then :
26763   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26764               ac_cv_c_bigendian=yes
26765             fi
26766             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26767               if test "$ac_cv_c_bigendian" = unknown; then
26768                 ac_cv_c_bigendian=no
26769               else
26770                 # finding both strings is unlikely to happen, but who knows?
26771                 ac_cv_c_bigendian=unknown
26772               fi
26773             fi
26774 fi
26775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26776 else
26777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26778 /* end confdefs.h.  */
26779 $ac_includes_default
26780 int
26781 main ()
26782 {
26783
26784              /* Are we little or big endian?  From Harbison&Steele.  */
26785              union
26786              {
26787                long int l;
26788                char c[sizeof (long int)];
26789              } u;
26790              u.l = 1;
26791              return u.c[sizeof (long int) - 1] == 1;
26792
26793   ;
26794   return 0;
26795 }
26796 _ACEOF
26797 if ac_fn_c_try_run "$LINENO"; then :
26798   ac_cv_c_bigendian=no
26799 else
26800   ac_cv_c_bigendian=yes
26801 fi
26802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26803   conftest.$ac_objext conftest.beam conftest.$ac_ext
26804 fi
26805
26806     fi
26807 fi
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26809 $as_echo "$ac_cv_c_bigendian" >&6; }
26810  case $ac_cv_c_bigendian in #(
26811    yes)
26812
26813 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26814 ;; #(
26815    no)
26816
26817 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26818  ;; #(
26819    universal)
26820
26821 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26822
26823      ;; #(
26824    *)
26825      as_fn_error $? "unknown endianness
26826  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26827  esac
26828
26829
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26831 $as_echo_n "checking how to get filesystem type... " >&6; }
26832 fstype=no
26833 # The order of these tests is important.
26834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26835 /* end confdefs.h.  */
26836
26837        #include <sys/statvfs.h>
26838        #include <sys/fstyp.h>
26839
26840 _ACEOF
26841 if ac_fn_c_try_cpp "$LINENO"; then :
26842   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26843  fstype=SVR4
26844
26845 fi
26846 rm -f conftest.err conftest.i conftest.$ac_ext
26847 if test $fstype = no; then
26848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849 /* end confdefs.h.  */
26850
26851           #include <sys/statfs.h>
26852           #include <sys/fstyp.h>
26853
26854 _ACEOF
26855 if ac_fn_c_try_cpp "$LINENO"; then :
26856   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26857  fstype=SVR3
26858
26859 fi
26860 rm -f conftest.err conftest.i conftest.$ac_ext
26861 fi
26862 if test $fstype = no; then
26863    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26864 /* end confdefs.h.  */
26865
26866           #include <sys/statfs.h>
26867           #include <sys/vmount.h>
26868
26869 _ACEOF
26870 if ac_fn_c_try_cpp "$LINENO"; then :
26871   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26872  fstype=AIX
26873
26874 fi
26875 rm -f conftest.err conftest.i conftest.$ac_ext
26876 fi
26877 if test $fstype = no; then
26878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h.  */
26880
26881           #include <mntent.h>
26882
26883 _ACEOF
26884 if ac_fn_c_try_cpp "$LINENO"; then :
26885   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26886  fstype=4.3BSD
26887
26888 fi
26889 rm -f conftest.err conftest.i conftest.$ac_ext
26890 fi
26891 if test $fstype = no; then
26892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26893 /* end confdefs.h.  */
26894 #include <sys/mount.h>
26895
26896 _ACEOF
26897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26898   $EGREP "f_type;" >/dev/null 2>&1; then :
26899   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26900  fstype=4.4BSD/OSF1
26901 fi
26902 rm -f conftest*
26903
26904 fi
26905 if test $fstype = no; then
26906    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h.  */
26908
26909           #include <sys/mount.h>
26910           #include <sys/fs_types.h>
26911
26912 _ACEOF
26913 if ac_fn_c_try_cpp "$LINENO"; then :
26914   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26915  fstype=Ultrix
26916
26917 fi
26918 rm -f conftest.err conftest.i conftest.$ac_ext
26919 fi
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26921 $as_echo "$fstype" >&6; }
26922
26923 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26924 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26925
26926 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26927
26928 fi
26929
26930
26931
26932 ac_ext=cpp
26933 ac_cpp='$CXXCPP $CPPFLAGS'
26934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26937
26938 for ac_func in backtrace
26939 do :
26940   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26941 if test "x$ac_cv_func_backtrace" = xyes; then :
26942   cat >>confdefs.h <<_ACEOF
26943 #define HAVE_BACKTRACE 1
26944 _ACEOF
26945
26946 fi
26947 done
26948
26949 ac_ext=c
26950 ac_cpp='$CPP $CPPFLAGS'
26951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26954
26955
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26957 $as_echo_n "checking return type of signal handlers... " >&6; }
26958 if ${ac_cv_type_signal+:} false; then :
26959   $as_echo_n "(cached) " >&6
26960 else
26961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h.  */
26963 #include <sys/types.h>
26964 #include <signal.h>
26965
26966 int
26967 main ()
26968 {
26969 return *(signal (0, 0)) (0) == 1;
26970   ;
26971   return 0;
26972 }
26973 _ACEOF
26974 if ac_fn_c_try_compile "$LINENO"; then :
26975   ac_cv_type_signal=int
26976 else
26977   ac_cv_type_signal=void
26978 fi
26979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26980 fi
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26982 $as_echo "$ac_cv_type_signal" >&6; }
26983
26984 cat >>confdefs.h <<_ACEOF
26985 #define RETSIGTYPE $ac_cv_type_signal
26986 _ACEOF
26987
26988
26989
26990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26991 $as_echo_n "checking for type of signal functions... " >&6; }
26992   if ${bash_cv_signal_vintage+:} false; then :
26993   $as_echo_n "(cached) " >&6
26994 else
26995
26996     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26997 /* end confdefs.h.  */
26998 #include <signal.h>
26999 int
27000 main ()
27001 {
27002
27003       sigset_t ss;
27004       struct sigaction sa;
27005       sigemptyset(&ss); sigsuspend(&ss);
27006       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27007       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27008
27009   ;
27010   return 0;
27011 }
27012 _ACEOF
27013 if ac_fn_c_try_link "$LINENO"; then :
27014   bash_cv_signal_vintage="posix"
27015 else
27016
27017       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27018 /* end confdefs.h.  */
27019 #include <signal.h>
27020 int
27021 main ()
27022 {
27023
27024           int mask = sigmask(SIGINT);
27025           sigsetmask(mask); sigblock(mask); sigpause(mask);
27026
27027   ;
27028   return 0;
27029 }
27030 _ACEOF
27031 if ac_fn_c_try_link "$LINENO"; then :
27032   bash_cv_signal_vintage="4.2bsd"
27033 else
27034
27035         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h.  */
27037
27038           #include <signal.h>
27039           RETSIGTYPE foo() { }
27040 int
27041 main ()
27042 {
27043
27044                   int mask = sigmask(SIGINT);
27045                   sigset(SIGINT, foo); sigrelse(SIGINT);
27046                   sighold(SIGINT); sigpause(SIGINT);
27047
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 if ac_fn_c_try_link "$LINENO"; then :
27053   bash_cv_signal_vintage="svr3"
27054 else
27055   bash_cv_signal_vintage="v7"
27056
27057 fi
27058 rm -f core conftest.err conftest.$ac_objext \
27059     conftest$ac_exeext conftest.$ac_ext
27060
27061 fi
27062 rm -f core conftest.err conftest.$ac_objext \
27063     conftest$ac_exeext conftest.$ac_ext
27064
27065 fi
27066 rm -f core conftest.err conftest.$ac_objext \
27067     conftest$ac_exeext conftest.$ac_ext
27068
27069 fi
27070
27071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27072 $as_echo "$bash_cv_signal_vintage" >&6; }
27073   if test "$bash_cv_signal_vintage" = "posix"; then
27074     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27075
27076   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27077     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27078
27079   elif test "$bash_cv_signal_vintage" = "svr3"; then
27080     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27081
27082   fi
27083
27084 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27085 if test "x$ac_cv_type_mode_t" = xyes; then :
27086
27087 else
27088
27089 cat >>confdefs.h <<_ACEOF
27090 #define mode_t int
27091 _ACEOF
27092
27093 fi
27094
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27096 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27097 if ${ac_cv_type_uid_t+:} false; then :
27098   $as_echo_n "(cached) " >&6
27099 else
27100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h.  */
27102 #include <sys/types.h>
27103
27104 _ACEOF
27105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27106   $EGREP "uid_t" >/dev/null 2>&1; then :
27107   ac_cv_type_uid_t=yes
27108 else
27109   ac_cv_type_uid_t=no
27110 fi
27111 rm -f conftest*
27112
27113 fi
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27115 $as_echo "$ac_cv_type_uid_t" >&6; }
27116 if test $ac_cv_type_uid_t = no; then
27117
27118 $as_echo "#define uid_t int" >>confdefs.h
27119
27120
27121 $as_echo "#define gid_t int" >>confdefs.h
27122
27123 fi
27124
27125 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27126 if test "x$ac_cv_type_size_t" = xyes; then :
27127
27128 else
27129
27130 cat >>confdefs.h <<_ACEOF
27131 #define size_t unsigned int
27132 _ACEOF
27133
27134 fi
27135
27136 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27137 if test "x$ac_cv_type_pid_t" = xyes; then :
27138
27139 else
27140
27141 cat >>confdefs.h <<_ACEOF
27142 #define pid_t int
27143 _ACEOF
27144
27145 fi
27146
27147 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27148 if test "x$ac_cv_type_off_t" = xyes; then :
27149
27150 else
27151
27152 cat >>confdefs.h <<_ACEOF
27153 #define off_t long int
27154 _ACEOF
27155
27156 fi
27157
27158
27159   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27160 if test "x$ac_cv_type_intptr_t" = xyes; then :
27161
27162 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27163
27164 else
27165   for ac_type in 'int' 'long int' 'long long int'; do
27166        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h.  */
27168 $ac_includes_default
27169 int
27170 main ()
27171 {
27172 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27173 test_array [0] = 0;
27174 return test_array [0];
27175
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 if ac_fn_c_try_compile "$LINENO"; then :
27181
27182 cat >>confdefs.h <<_ACEOF
27183 #define intptr_t $ac_type
27184 _ACEOF
27185
27186           ac_type=
27187 fi
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27189        test -z "$ac_type" && break
27190      done
27191 fi
27192
27193
27194
27195   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27196 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27197
27198 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27199
27200 else
27201   for ac_type in 'unsigned int' 'unsigned long int' \
27202         'unsigned long long int'; do
27203        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27204 /* end confdefs.h.  */
27205 $ac_includes_default
27206 int
27207 main ()
27208 {
27209 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27210 test_array [0] = 0;
27211 return test_array [0];
27212
27213   ;
27214   return 0;
27215 }
27216 _ACEOF
27217 if ac_fn_c_try_compile "$LINENO"; then :
27218
27219 cat >>confdefs.h <<_ACEOF
27220 #define uintptr_t $ac_type
27221 _ACEOF
27222
27223           ac_type=
27224 fi
27225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27226        test -z "$ac_type" && break
27227      done
27228 fi
27229
27230
27231 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27232 if test "x$ac_cv_type_ino_t" = xyes; then :
27233
27234 else
27235
27236 cat >>confdefs.h <<_ACEOF
27237 #define ino_t unsigned long
27238 _ACEOF
27239
27240 fi
27241
27242 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27243 if test "x$ac_cv_type_dev_t" = xyes; then :
27244
27245 else
27246
27247 cat >>confdefs.h <<_ACEOF
27248 #define dev_t unsigned long
27249 _ACEOF
27250
27251 fi
27252
27253 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27254 if test "x$ac_cv_type_daddr_t" = xyes; then :
27255
27256 else
27257
27258 cat >>confdefs.h <<_ACEOF
27259 #define daddr_t long
27260 _ACEOF
27261
27262 fi
27263
27264 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27265 if test "x$ac_cv_type_major_t" = xyes; then :
27266
27267 else
27268
27269 cat >>confdefs.h <<_ACEOF
27270 #define major_t int
27271 _ACEOF
27272
27273 fi
27274
27275 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27276 if test "x$ac_cv_type_minor_t" = xyes; then :
27277
27278 else
27279
27280 cat >>confdefs.h <<_ACEOF
27281 #define minor_t int
27282 _ACEOF
27283
27284 fi
27285
27286 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27287 if test "x$ac_cv_type_ssize_t" = xyes; then :
27288
27289 else
27290
27291 cat >>confdefs.h <<_ACEOF
27292 #define ssize_t int
27293 _ACEOF
27294
27295 fi
27296
27297 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27298 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27299
27300 cat >>confdefs.h <<_ACEOF
27301 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27302 _ACEOF
27303
27304
27305 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27306
27307 else
27308   case " $LIBOBJS " in
27309   *" fileblocks.$ac_objext "* ) ;;
27310   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27311  ;;
27312 esac
27313
27314 fi
27315
27316
27317 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27318 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27319
27320 cat >>confdefs.h <<_ACEOF
27321 #define HAVE_STRUCT_STAT_ST_RDEV 1
27322 _ACEOF
27323
27324
27325 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27326
27327 fi
27328
27329
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27331 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27332 if ${ac_cv_struct_tm+:} false; then :
27333   $as_echo_n "(cached) " >&6
27334 else
27335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27336 /* end confdefs.h.  */
27337 #include <sys/types.h>
27338 #include <time.h>
27339
27340 int
27341 main ()
27342 {
27343 struct tm tm;
27344                                      int *p = &tm.tm_sec;
27345                                      return !p;
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 if ac_fn_c_try_compile "$LINENO"; then :
27351   ac_cv_struct_tm=time.h
27352 else
27353   ac_cv_struct_tm=sys/time.h
27354 fi
27355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27356 fi
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27358 $as_echo "$ac_cv_struct_tm" >&6; }
27359 if test $ac_cv_struct_tm = sys/time.h; then
27360
27361 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27362
27363 fi
27364
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27367 if ${ac_cv_c_const+:} false; then :
27368   $as_echo_n "(cached) " >&6
27369 else
27370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27371 /* end confdefs.h.  */
27372
27373 int
27374 main ()
27375 {
27376
27377 #ifndef __cplusplus
27378   /* Ultrix mips cc rejects this sort of thing.  */
27379   typedef int charset[2];
27380   const charset cs = { 0, 0 };
27381   /* SunOS 4.1.1 cc rejects this.  */
27382   char const *const *pcpcc;
27383   char **ppc;
27384   /* NEC SVR4.0.2 mips cc rejects this.  */
27385   struct point {int x, y;};
27386   static struct point const zero = {0,0};
27387   /* AIX XL C 1.02.0.0 rejects this.
27388      It does not let you subtract one const X* pointer from another in
27389      an arm of an if-expression whose if-part is not a constant
27390      expression */
27391   const char *g = "string";
27392   pcpcc = &g + (g ? g-g : 0);
27393   /* HPUX 7.0 cc rejects these. */
27394   ++pcpcc;
27395   ppc = (char**) pcpcc;
27396   pcpcc = (char const *const *) ppc;
27397   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27398     char tx;
27399     char *t = &tx;
27400     char const *s = 0 ? (char *) 0 : (char const *) 0;
27401
27402     *t++ = 0;
27403     if (s) return 0;
27404   }
27405   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27406     int x[] = {25, 17};
27407     const int *foo = &x[0];
27408     ++foo;
27409   }
27410   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27411     typedef const int *iptr;
27412     iptr p = 0;
27413     ++p;
27414   }
27415   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27416        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27417     struct s { int j; const int *ap[3]; } bx;
27418     struct s *b = &bx; b->j = 5;
27419   }
27420   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27421     const int foo = 10;
27422     if (!foo) return 0;
27423   }
27424   return !cs[0] && !zero.x;
27425 #endif
27426
27427   ;
27428   return 0;
27429 }
27430 _ACEOF
27431 if ac_fn_c_try_compile "$LINENO"; then :
27432   ac_cv_c_const=yes
27433 else
27434   ac_cv_c_const=no
27435 fi
27436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27437 fi
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27439 $as_echo "$ac_cv_c_const" >&6; }
27440 if test $ac_cv_c_const = no; then
27441
27442 $as_echo "#define const /**/" >>confdefs.h
27443
27444 fi
27445
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27447 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27448 if ${ac_cv_c_restrict+:} false; then :
27449   $as_echo_n "(cached) " >&6
27450 else
27451   ac_cv_c_restrict=no
27452    # The order here caters to the fact that C++ does not require restrict.
27453    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27454      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27455 /* end confdefs.h.  */
27456 typedef int * int_ptr;
27457         int foo (int_ptr $ac_kw ip) {
27458         return ip[0];
27459        }
27460 int
27461 main ()
27462 {
27463 int s[1];
27464         int * $ac_kw t = s;
27465         t[0] = 0;
27466         return foo(t)
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 if ac_fn_c_try_compile "$LINENO"; then :
27472   ac_cv_c_restrict=$ac_kw
27473 fi
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27475      test "$ac_cv_c_restrict" != no && break
27476    done
27477
27478 fi
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27480 $as_echo "$ac_cv_c_restrict" >&6; }
27481
27482  case $ac_cv_c_restrict in
27483    restrict) ;;
27484    no) $as_echo "#define restrict /**/" >>confdefs.h
27485  ;;
27486    *)  cat >>confdefs.h <<_ACEOF
27487 #define restrict $ac_cv_c_restrict
27488 _ACEOF
27489  ;;
27490  esac
27491
27492
27493 # The cast to long int works around a bug in the HP C Compiler
27494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27496 # This bug is HP SR number 8606223364.
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27498 $as_echo_n "checking size of char... " >&6; }
27499 if ${ac_cv_sizeof_char+:} false; then :
27500   $as_echo_n "(cached) " >&6
27501 else
27502   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27503
27504 else
27505   if test "$ac_cv_type_char" = yes; then
27506      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27508 as_fn_error 77 "cannot compute sizeof (char)
27509 See \`config.log' for more details" "$LINENO" 5; }
27510    else
27511      ac_cv_sizeof_char=0
27512    fi
27513 fi
27514
27515 fi
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27517 $as_echo "$ac_cv_sizeof_char" >&6; }
27518
27519
27520
27521 cat >>confdefs.h <<_ACEOF
27522 #define SIZEOF_CHAR $ac_cv_sizeof_char
27523 _ACEOF
27524
27525
27526 # The cast to long int works around a bug in the HP C Compiler
27527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27529 # This bug is HP SR number 8606223364.
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27531 $as_echo_n "checking size of short int... " >&6; }
27532 if ${ac_cv_sizeof_short_int+:} false; then :
27533   $as_echo_n "(cached) " >&6
27534 else
27535   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27536
27537 else
27538   if test "$ac_cv_type_short_int" = yes; then
27539      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27541 as_fn_error 77 "cannot compute sizeof (short int)
27542 See \`config.log' for more details" "$LINENO" 5; }
27543    else
27544      ac_cv_sizeof_short_int=0
27545    fi
27546 fi
27547
27548 fi
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27550 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27551
27552
27553
27554 cat >>confdefs.h <<_ACEOF
27555 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27556 _ACEOF
27557
27558
27559 # The cast to long int works around a bug in the HP C Compiler
27560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27562 # This bug is HP SR number 8606223364.
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27564 $as_echo_n "checking size of int... " >&6; }
27565 if ${ac_cv_sizeof_int+:} false; then :
27566   $as_echo_n "(cached) " >&6
27567 else
27568   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27569
27570 else
27571   if test "$ac_cv_type_int" = yes; then
27572      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27574 as_fn_error 77 "cannot compute sizeof (int)
27575 See \`config.log' for more details" "$LINENO" 5; }
27576    else
27577      ac_cv_sizeof_int=0
27578    fi
27579 fi
27580
27581 fi
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27583 $as_echo "$ac_cv_sizeof_int" >&6; }
27584
27585
27586
27587 cat >>confdefs.h <<_ACEOF
27588 #define SIZEOF_INT $ac_cv_sizeof_int
27589 _ACEOF
27590
27591
27592 # The cast to long int works around a bug in the HP C Compiler
27593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27595 # This bug is HP SR number 8606223364.
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27597 $as_echo_n "checking size of long int... " >&6; }
27598 if ${ac_cv_sizeof_long_int+:} false; then :
27599   $as_echo_n "(cached) " >&6
27600 else
27601   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27602
27603 else
27604   if test "$ac_cv_type_long_int" = yes; then
27605      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27607 as_fn_error 77 "cannot compute sizeof (long int)
27608 See \`config.log' for more details" "$LINENO" 5; }
27609    else
27610      ac_cv_sizeof_long_int=0
27611    fi
27612 fi
27613
27614 fi
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27616 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27617
27618
27619
27620 cat >>confdefs.h <<_ACEOF
27621 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27622 _ACEOF
27623
27624
27625 # The cast to long int works around a bug in the HP C Compiler
27626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27628 # This bug is HP SR number 8606223364.
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27630 $as_echo_n "checking size of long long int... " >&6; }
27631 if ${ac_cv_sizeof_long_long_int+:} false; then :
27632   $as_echo_n "(cached) " >&6
27633 else
27634   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27635
27636 else
27637   if test "$ac_cv_type_long_long_int" = yes; then
27638      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27640 as_fn_error 77 "cannot compute sizeof (long long int)
27641 See \`config.log' for more details" "$LINENO" 5; }
27642    else
27643      ac_cv_sizeof_long_long_int=0
27644    fi
27645 fi
27646
27647 fi
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27649 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27650
27651
27652
27653 cat >>confdefs.h <<_ACEOF
27654 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27655 _ACEOF
27656
27657
27658 # The cast to long int works around a bug in the HP C Compiler
27659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27661 # This bug is HP SR number 8606223364.
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27663 $as_echo_n "checking size of int *... " >&6; }
27664 if ${ac_cv_sizeof_int_p+:} false; then :
27665   $as_echo_n "(cached) " >&6
27666 else
27667   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27668
27669 else
27670   if test "$ac_cv_type_int_p" = yes; then
27671      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27673 as_fn_error 77 "cannot compute sizeof (int *)
27674 See \`config.log' for more details" "$LINENO" 5; }
27675    else
27676      ac_cv_sizeof_int_p=0
27677    fi
27678 fi
27679
27680 fi
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27682 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27683
27684
27685
27686 cat >>confdefs.h <<_ACEOF
27687 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27688 _ACEOF
27689
27690
27691
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27693 $as_echo_n "checking for u_int type... " >&6; }
27694 if ${ac_cv_have_u_int+:} false; then :
27695   $as_echo_n "(cached) " >&6
27696 else
27697
27698        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27699 /* end confdefs.h.  */
27700
27701               #include <sys/types.h>
27702
27703 int
27704 main ()
27705 {
27706
27707               u_int a; a = 1;
27708
27709   ;
27710   return 0;
27711 }
27712 _ACEOF
27713 if ac_fn_c_try_compile "$LINENO"; then :
27714
27715               ac_cv_have_u_int="yes"
27716
27717 else
27718
27719               ac_cv_have_u_int="no"
27720
27721
27722 fi
27723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724
27725
27726 fi
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27728 $as_echo "$ac_cv_have_u_int" >&6; }
27729 if test "x$ac_cv_have_u_int" = "xyes" ; then
27730    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27731
27732    have_u_int=1
27733 fi
27734
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27736 $as_echo_n "checking for intmax_t type... " >&6; }
27737 if ${ac_cv_have_intmax_t+:} false; then :
27738   $as_echo_n "(cached) " >&6
27739 else
27740
27741        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27742 /* end confdefs.h.  */
27743
27744               #include <sys/types.h>
27745
27746 int
27747 main ()
27748 {
27749
27750               intmax_t a; a = 1;
27751
27752   ;
27753   return 0;
27754 }
27755 _ACEOF
27756 if ac_fn_c_try_compile "$LINENO"; then :
27757
27758               ac_cv_have_intmax_t="yes"
27759
27760 else
27761
27762               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27763 /* end confdefs.h.  */
27764
27765                      #include <stdint.h>
27766
27767 int
27768 main ()
27769 {
27770
27771                      intmax_t a; a = 1;
27772
27773   ;
27774   return 0;
27775 }
27776 _ACEOF
27777 if ac_fn_c_try_compile "$LINENO"; then :
27778
27779                      ac_cv_have_intmax_t="yes"
27780
27781 else
27782
27783                      ac_cv_have_intmax_t="no"
27784
27785
27786 fi
27787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27788
27789
27790 fi
27791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27792
27793
27794 fi
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27796 $as_echo "$ac_cv_have_intmax_t" >&6; }
27797 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27798    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27799
27800    have_intmax_t=1
27801 fi
27802
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27804 $as_echo_n "checking for u_intmax_t type... " >&6; }
27805 if ${ac_cv_have_u_intmax_t+:} false; then :
27806   $as_echo_n "(cached) " >&6
27807 else
27808
27809        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27810 /* end confdefs.h.  */
27811
27812               #include <sys/types.h>
27813
27814 int
27815 main ()
27816 {
27817
27818               u_intmax_t a; a = 1;
27819
27820   ;
27821   return 0;
27822 }
27823 _ACEOF
27824 if ac_fn_c_try_compile "$LINENO"; then :
27825
27826               ac_cv_have_u_intmax_t="yes"
27827
27828 else
27829
27830               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h.  */
27832
27833                      #include <stdint.h>
27834
27835 int
27836 main ()
27837 {
27838
27839                     u_intmax_t a; a = 1;
27840
27841   ;
27842   return 0;
27843 }
27844 _ACEOF
27845 if ac_fn_c_try_compile "$LINENO"; then :
27846
27847                     ac_cv_have_u_intmax_t="yes"
27848
27849 else
27850
27851                     ac_cv_have_u_intmax_t="no"
27852
27853
27854 fi
27855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27856
27857
27858 fi
27859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27860
27861
27862 fi
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27864 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27865 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27866    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27867
27868    have_u_intmax_t=1
27869 fi
27870
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27872 $as_echo_n "checking for intXX_t types... " >&6; }
27873 if ${ac_cv_have_intxx_t+:} false; then :
27874   $as_echo_n "(cached) " >&6
27875 else
27876
27877        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27878 /* end confdefs.h.  */
27879
27880               #include <sys/types.h>
27881
27882 int
27883 main ()
27884 {
27885
27886               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27887
27888   ;
27889   return 0;
27890 }
27891 _ACEOF
27892 if ac_fn_c_try_compile "$LINENO"; then :
27893
27894               ac_cv_have_intxx_t="yes"
27895
27896 else
27897
27898               ac_cv_have_intxx_t="no"
27899
27900
27901 fi
27902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27903
27904
27905 fi
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27907 $as_echo "$ac_cv_have_intxx_t" >&6; }
27908 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27909    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27910
27911    have_intxx_t=1
27912 fi
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27915 $as_echo_n "checking for int64_t type... " >&6; }
27916 if ${ac_cv_have_int64_t+:} false; then :
27917   $as_echo_n "(cached) " >&6
27918 else
27919
27920        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27921 /* end confdefs.h.  */
27922
27923               #include <sys/types.h>
27924
27925 int
27926 main ()
27927 {
27928
27929               int64_t a; a = 1;
27930
27931   ;
27932   return 0;
27933 }
27934 _ACEOF
27935 if ac_fn_c_try_compile "$LINENO"; then :
27936
27937               ac_cv_have_int64_t="yes"
27938
27939 else
27940
27941               ac_cv_have_int64_t="no"
27942
27943
27944 fi
27945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27946
27947
27948 fi
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27950 $as_echo "$ac_cv_have_int64_t" >&6; }
27951 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27952    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27953
27954    have_int64_t=1
27955 fi
27956
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27958 $as_echo_n "checking for u_intXX_t types... " >&6; }
27959 if ${ac_cv_have_u_intxx_t+:} false; then :
27960   $as_echo_n "(cached) " >&6
27961 else
27962
27963        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27964 /* end confdefs.h.  */
27965
27966               #include <sys/types.h>
27967
27968 int
27969 main ()
27970 {
27971
27972               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27973
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 if ac_fn_c_try_compile "$LINENO"; then :
27979
27980              ac_cv_have_u_intxx_t="yes"
27981
27982 else
27983
27984              ac_cv_have_u_intxx_t="no"
27985
27986
27987 fi
27988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27989
27990
27991 fi
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27993 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27994 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27995    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27996
27997    have_u_intxx_t=1
27998 fi
27999
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28001 $as_echo_n "checking for u_int64_t types... " >&6; }
28002 if ${ac_cv_have_u_int64_t+:} false; then :
28003   $as_echo_n "(cached) " >&6
28004 else
28005
28006        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28007 /* end confdefs.h.  */
28008
28009               #include <sys/types.h>
28010
28011 int
28012 main ()
28013 {
28014
28015               u_int64_t a; a = 1;
28016
28017   ;
28018   return 0;
28019 }
28020 _ACEOF
28021 if ac_fn_c_try_compile "$LINENO"; then :
28022
28023              ac_cv_have_u_int64_t="yes"
28024
28025 else
28026
28027              ac_cv_have_u_int64_t="no"
28028
28029
28030 fi
28031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28032
28033
28034 fi
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28036 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28037 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28038    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28039
28040    have_u_int64_t=1
28041 fi
28042
28043 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28044     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28045 then
28046    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28047 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28049 /* end confdefs.h.  */
28050
28051           #include <sys/bitypes.h>
28052
28053 int
28054 main ()
28055 {
28056
28057           int8_t a; int16_t b; int32_t c;
28058           u_int8_t e; u_int16_t f; u_int32_t g;
28059           a = b = c = e = f = g = 1;
28060
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 if ac_fn_c_try_compile "$LINENO"; then :
28066
28067           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28068
28069           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28070
28071           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28072
28073           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28074 $as_echo "yes" >&6; }
28075
28076 else
28077
28078           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28079 $as_echo "no" >&6; }
28080
28081
28082 fi
28083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084 fi
28085
28086 if test -z "$have_u_intxx_t" ; then
28087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28088 $as_echo_n "checking for uintXX_t types... " >&6; }
28089 if ${ac_cv_have_uintxx_t+:} false; then :
28090   $as_echo_n "(cached) " >&6
28091 else
28092
28093           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28094 /* end confdefs.h.  */
28095
28096                  #include <sys/types.h>
28097
28098 int
28099 main ()
28100 {
28101
28102                  uint8_t a; uint16_t b;
28103                  uint32_t c; a = b = c = 1;
28104
28105   ;
28106   return 0;
28107 }
28108 _ACEOF
28109 if ac_fn_c_try_compile "$LINENO"; then :
28110
28111                 ac_cv_have_uintxx_t="yes"
28112
28113 else
28114
28115                 ac_cv_have_uintxx_t="no"
28116
28117
28118 fi
28119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28120
28121
28122 fi
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28124 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28125    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28126       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28127
28128    fi
28129 fi
28130
28131 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28132     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28133 then
28134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28135 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28137 /* end confdefs.h.  */
28138
28139           #include <sys/bitypes.h>
28140
28141 int
28142 main ()
28143 {
28144
28145           int64_t a; u_int64_t b;
28146           a = b = 1;
28147
28148   ;
28149   return 0;
28150 }
28151 _ACEOF
28152 if ac_fn_c_try_compile "$LINENO"; then :
28153
28154           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28155
28156           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28157
28158           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28159 $as_echo "yes" >&6; }
28160
28161 else
28162
28163           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28164 $as_echo "no" >&6; }
28165
28166
28167 fi
28168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28169 fi
28170
28171 if (test -z "$have_uintxx_t" && \
28172     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28173 then
28174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28175 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28176    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177 /* end confdefs.h.  */
28178
28179           #include <sys/bitypes.h>
28180
28181 int
28182 main ()
28183 {
28184
28185           uint8_t a; uint16_t b;
28186           uint32_t c; a = b = c = 1;
28187
28188   ;
28189   return 0;
28190 }
28191 _ACEOF
28192 if ac_fn_c_try_compile "$LINENO"; then :
28193
28194           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28195
28196           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28197 $as_echo "yes" >&6; }
28198
28199 else
28200
28201           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28202 $as_echo "no" >&6; }
28203
28204
28205 fi
28206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28207 fi
28208
28209 for ac_func in \
28210    fork \
28211    getcwd \
28212    gethostname \
28213    getpid \
28214    gettimeofday \
28215    setpgid \
28216    setpgrp \
28217    setsid \
28218    signal \
28219    strerror \
28220    strncmp \
28221    strncpy \
28222    vfprintf \
28223
28224 do :
28225   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28226 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28228   cat >>confdefs.h <<_ACEOF
28229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28230 _ACEOF
28231
28232 else
28233   echo 'configure: cannot find needed function.'; exit 1
28234
28235 fi
28236 done
28237
28238
28239 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28240
28241 "
28242 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28243
28244 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28245
28246 fi
28247
28248
28249 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28250
28251 "
28252 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28253
28254 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28255
28256 fi
28257
28258
28259 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28260 if test "x$ac_cv_func_closefrom" = xyes; then :
28261
28262 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28263
28264 fi
28265
28266 for ac_func in getpagesize
28267 do :
28268   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28269 if test "x$ac_cv_func_getpagesize" = xyes; then :
28270   cat >>confdefs.h <<_ACEOF
28271 #define HAVE_GETPAGESIZE 1
28272 _ACEOF
28273
28274 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28275
28276 fi
28277 done
28278
28279 for ac_func in malloc_trim
28280 do :
28281   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28282 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28283   cat >>confdefs.h <<_ACEOF
28284 #define HAVE_MALLOC_TRIM 1
28285 _ACEOF
28286
28287 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28288
28289 fi
28290 done
28291
28292
28293 for ac_func in fchdir
28294 do :
28295   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28296 if test "x$ac_cv_func_fchdir" = xyes; then :
28297   cat >>confdefs.h <<_ACEOF
28298 #define HAVE_FCHDIR 1
28299 _ACEOF
28300  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28301
28302 fi
28303 done
28304
28305 for ac_func in strtoll
28306 do :
28307   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28308 if test "x$ac_cv_func_strtoll" = xyes; then :
28309   cat >>confdefs.h <<_ACEOF
28310 #define HAVE_STRTOLL 1
28311 _ACEOF
28312  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28313
28314 fi
28315 done
28316
28317 for ac_func in posix_fadvise
28318 do :
28319   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28320 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28321   cat >>confdefs.h <<_ACEOF
28322 #define HAVE_POSIX_FADVISE 1
28323 _ACEOF
28324
28325 fi
28326 done
28327
28328 for ac_func in posix_fallocate
28329 do :
28330   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28331 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28332   cat >>confdefs.h <<_ACEOF
28333 #define HAVE_POSIX_FALLOCATE 1
28334 _ACEOF
28335
28336 fi
28337 done
28338
28339 for ac_func in fdatasync
28340 do :
28341   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28342 if test "x$ac_cv_func_fdatasync" = xyes; then :
28343   cat >>confdefs.h <<_ACEOF
28344 #define HAVE_FDATASYNC 1
28345 _ACEOF
28346
28347 fi
28348 done
28349
28350
28351 for ac_func in chflags
28352 do :
28353   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28354 if test "x$ac_cv_func_chflags" = xyes; then :
28355   cat >>confdefs.h <<_ACEOF
28356 #define HAVE_CHFLAGS 1
28357 _ACEOF
28358
28359 fi
28360 done
28361
28362
28363 for ac_func in snprintf vsnprintf gethostid fseeko
28364 do :
28365   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28367 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28368   cat >>confdefs.h <<_ACEOF
28369 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28370 _ACEOF
28371
28372 fi
28373 done
28374
28375
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28377 $as_echo_n "checking for va_copy... " >&6; }
28378 if ${ba_cv_va_copy+:} false; then :
28379   $as_echo_n "(cached) " >&6
28380 else
28381
28382        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h.  */
28384
28385               #include <stdarg.h>
28386               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28387               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28388
28389 int
28390 main ()
28391 {
28392
28393               call_use_va_copy(1,2,3)
28394
28395   ;
28396   return 0;
28397 }
28398 _ACEOF
28399 if ac_fn_c_try_link "$LINENO"; then :
28400
28401               ba_cv_va_copy=yes
28402
28403 else
28404
28405               ba_cv_va_copy=no
28406
28407
28408 fi
28409 rm -f core conftest.err conftest.$ac_objext \
28410     conftest$ac_exeext conftest.$ac_ext
28411
28412
28413 fi
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28415 $as_echo "$ba_cv_va_copy" >&6; }
28416 test $ba_cv_va_copy = yes &&
28417 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28418
28419
28420 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28421 do :
28422   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28425   cat >>confdefs.h <<_ACEOF
28426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28427 _ACEOF
28428
28429 fi
28430 done
28431
28432
28433 # If resolver functions are not in libc check for -lnsl or -lresolv.
28434 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28435 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28437 $as_echo "using libc's resolver" >&6; }
28438 else
28439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28440 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28441 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28442   $as_echo_n "(cached) " >&6
28443 else
28444   ac_check_lib_save_LIBS=$LIBS
28445 LIBS="-lnsl  $LIBS"
28446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28447 /* end confdefs.h.  */
28448
28449 /* Override any GCC internal prototype to avoid an error.
28450    Use char because int might match the return type of a GCC
28451    builtin and then its argument prototype would still apply.  */
28452 #ifdef __cplusplus
28453 extern "C"
28454 #endif
28455 char gethostbyname_r ();
28456 int
28457 main ()
28458 {
28459 return gethostbyname_r ();
28460   ;
28461   return 0;
28462 }
28463 _ACEOF
28464 if ac_fn_c_try_link "$LINENO"; then :
28465   ac_cv_lib_nsl_gethostbyname_r=yes
28466 else
28467   ac_cv_lib_nsl_gethostbyname_r=no
28468 fi
28469 rm -f core conftest.err conftest.$ac_objext \
28470     conftest$ac_exeext conftest.$ac_ext
28471 LIBS=$ac_check_lib_save_LIBS
28472 fi
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28474 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28475 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28476   cat >>confdefs.h <<_ACEOF
28477 #define HAVE_LIBNSL 1
28478 _ACEOF
28479
28480   LIBS="-lnsl $LIBS"
28481
28482 fi
28483
28484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28485 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28486 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28487   $as_echo_n "(cached) " >&6
28488 else
28489   ac_check_lib_save_LIBS=$LIBS
28490 LIBS="-lresolv  $LIBS"
28491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28492 /* end confdefs.h.  */
28493
28494 /* Override any GCC internal prototype to avoid an error.
28495    Use char because int might match the return type of a GCC
28496    builtin and then its argument prototype would still apply.  */
28497 #ifdef __cplusplus
28498 extern "C"
28499 #endif
28500 char gethostbyname_r ();
28501 int
28502 main ()
28503 {
28504 return gethostbyname_r ();
28505   ;
28506   return 0;
28507 }
28508 _ACEOF
28509 if ac_fn_c_try_link "$LINENO"; then :
28510   ac_cv_lib_resolv_gethostbyname_r=yes
28511 else
28512   ac_cv_lib_resolv_gethostbyname_r=no
28513 fi
28514 rm -f core conftest.err conftest.$ac_objext \
28515     conftest$ac_exeext conftest.$ac_ext
28516 LIBS=$ac_check_lib_save_LIBS
28517 fi
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28519 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28520 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28521   cat >>confdefs.h <<_ACEOF
28522 #define HAVE_LIBRESOLV 1
28523 _ACEOF
28524
28525   LIBS="-lresolv $LIBS"
28526
28527 fi
28528
28529 fi
28530
28531
28532 for ac_func in inet_pton
28533 do :
28534   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28535 if test "x$ac_cv_func_inet_pton" = xyes; then :
28536   cat >>confdefs.h <<_ACEOF
28537 #define HAVE_INET_PTON 1
28538 _ACEOF
28539  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28540
28541 fi
28542 done
28543
28544 for ac_func in inet_ntop
28545 do :
28546   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28547 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28548   cat >>confdefs.h <<_ACEOF
28549 #define HAVE_INET_NTOP 1
28550 _ACEOF
28551  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28552
28553 fi
28554 done
28555
28556 for ac_func in gethostbyname2
28557 do :
28558   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28559 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28560   cat >>confdefs.h <<_ACEOF
28561 #define HAVE_GETHOSTBYNAME2 1
28562 _ACEOF
28563  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28564
28565 fi
28566 done
28567
28568 for ac_func in getnameinfo
28569 do :
28570   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28571 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28572   cat >>confdefs.h <<_ACEOF
28573 #define HAVE_GETNAMEINFO 1
28574 _ACEOF
28575  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28576
28577 fi
28578 done
28579
28580
28581
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28583 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28584 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28585   $as_echo_n "(cached) " >&6
28586 else
28587
28588        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28589 /* end confdefs.h.  */
28590
28591               #include <sys/socket.h>
28592
28593 int
28594 main ()
28595 {
28596
28597               struct sockaddr s; s.sa_len;
28598
28599   ;
28600   return 0;
28601 }
28602 _ACEOF
28603 if ac_fn_c_try_compile "$LINENO"; then :
28604
28605              ac_cv_struct_sockaddr_sa_len=yes
28606
28607 else
28608   ac_cv_struct_sockaddr_sa_len=no
28609
28610
28611 fi
28612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28613
28614
28615 fi
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28617 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28618
28619 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28620
28621 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28622
28623 fi
28624
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28626 $as_echo_n "checking for working getaddrinfo... " >&6; }
28627 if ${ac_cv_working_getaddrinfo+:} false; then :
28628   $as_echo_n "(cached) " >&6
28629 else
28630
28631        if test "$cross_compiling" = yes; then :
28632
28633               ac_cv_working_getaddrinfo="yes"
28634
28635
28636 else
28637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28638 /* end confdefs.h.  */
28639
28640               #include <netdb.h>
28641               #include <string.h>
28642               #include <sys/types.h>
28643               #include <sys/socket.h>
28644
28645               void main(void) {
28646                   struct addrinfo hints, *ai;
28647                   int error;
28648
28649                   memset(&hints, 0, sizeof(hints));
28650                   hints.ai_family = AF_UNSPEC;
28651                   hints.ai_socktype = SOCK_STREAM;
28652                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28653                   if (error) {
28654                       exit(1);
28655                   }
28656                   if (ai->ai_addr->sa_family != AF_INET) {
28657                       exit(1);
28658                   }
28659                   exit(0);
28660               }
28661
28662 _ACEOF
28663 if ac_fn_c_try_run "$LINENO"; then :
28664
28665               ac_cv_working_getaddrinfo="yes"
28666
28667 else
28668
28669               ac_cv_working_getaddrinfo="no"
28670
28671 fi
28672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28673   conftest.$ac_objext conftest.beam conftest.$ac_ext
28674 fi
28675
28676
28677
28678 fi
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28680 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28681 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28682 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28683
28684 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28685
28686 fi
28687
28688
28689 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28690   if test "$ac_cv_func_gai_strerror" != "yes"; then
28691     ac_cv_working_getaddrinfo="no"
28692   else
28693
28694 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28695
28696   fi
28697 fi
28698
28699 for ac_func in strftime
28700 do :
28701   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28702 if test "x$ac_cv_func_strftime" = xyes; then :
28703   cat >>confdefs.h <<_ACEOF
28704 #define HAVE_STRFTIME 1
28705 _ACEOF
28706
28707 else
28708   # strftime is in -lintl on SCO UNIX.
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28710 $as_echo_n "checking for strftime in -lintl... " >&6; }
28711 if ${ac_cv_lib_intl_strftime+:} false; then :
28712   $as_echo_n "(cached) " >&6
28713 else
28714   ac_check_lib_save_LIBS=$LIBS
28715 LIBS="-lintl  $LIBS"
28716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28717 /* end confdefs.h.  */
28718
28719 /* Override any GCC internal prototype to avoid an error.
28720    Use char because int might match the return type of a GCC
28721    builtin and then its argument prototype would still apply.  */
28722 #ifdef __cplusplus
28723 extern "C"
28724 #endif
28725 char strftime ();
28726 int
28727 main ()
28728 {
28729 return strftime ();
28730   ;
28731   return 0;
28732 }
28733 _ACEOF
28734 if ac_fn_c_try_link "$LINENO"; then :
28735   ac_cv_lib_intl_strftime=yes
28736 else
28737   ac_cv_lib_intl_strftime=no
28738 fi
28739 rm -f core conftest.err conftest.$ac_objext \
28740     conftest$ac_exeext conftest.$ac_ext
28741 LIBS=$ac_check_lib_save_LIBS
28742 fi
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28744 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28745 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28746   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28747
28748 LIBS="-lintl $LIBS"
28749 fi
28750
28751 fi
28752 done
28753
28754 for ac_func in vprintf
28755 do :
28756   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28757 if test "x$ac_cv_func_vprintf" = xyes; then :
28758   cat >>confdefs.h <<_ACEOF
28759 #define HAVE_VPRINTF 1
28760 _ACEOF
28761
28762 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28763 if test "x$ac_cv_func__doprnt" = xyes; then :
28764
28765 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28766
28767 fi
28768
28769 fi
28770 done
28771
28772
28773 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28774 # for constant arguments.  Useless!
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28776 $as_echo_n "checking for working alloca.h... " >&6; }
28777 if ${ac_cv_working_alloca_h+:} false; then :
28778   $as_echo_n "(cached) " >&6
28779 else
28780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28781 /* end confdefs.h.  */
28782 #include <alloca.h>
28783 int
28784 main ()
28785 {
28786 char *p = (char *) alloca (2 * sizeof (int));
28787                           if (p) return 0;
28788   ;
28789   return 0;
28790 }
28791 _ACEOF
28792 if ac_fn_c_try_link "$LINENO"; then :
28793   ac_cv_working_alloca_h=yes
28794 else
28795   ac_cv_working_alloca_h=no
28796 fi
28797 rm -f core conftest.err conftest.$ac_objext \
28798     conftest$ac_exeext conftest.$ac_ext
28799 fi
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28801 $as_echo "$ac_cv_working_alloca_h" >&6; }
28802 if test $ac_cv_working_alloca_h = yes; then
28803
28804 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28805
28806 fi
28807
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28809 $as_echo_n "checking for alloca... " >&6; }
28810 if ${ac_cv_func_alloca_works+:} false; then :
28811   $as_echo_n "(cached) " >&6
28812 else
28813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28814 /* end confdefs.h.  */
28815 #ifdef __GNUC__
28816 # define alloca __builtin_alloca
28817 #else
28818 # ifdef _MSC_VER
28819 #  include <malloc.h>
28820 #  define alloca _alloca
28821 # else
28822 #  ifdef HAVE_ALLOCA_H
28823 #   include <alloca.h>
28824 #  else
28825 #   ifdef _AIX
28826  #pragma alloca
28827 #   else
28828 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28829 void *alloca (size_t);
28830 #    endif
28831 #   endif
28832 #  endif
28833 # endif
28834 #endif
28835
28836 int
28837 main ()
28838 {
28839 char *p = (char *) alloca (1);
28840                                     if (p) return 0;
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 if ac_fn_c_try_link "$LINENO"; then :
28846   ac_cv_func_alloca_works=yes
28847 else
28848   ac_cv_func_alloca_works=no
28849 fi
28850 rm -f core conftest.err conftest.$ac_objext \
28851     conftest$ac_exeext conftest.$ac_ext
28852 fi
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28854 $as_echo "$ac_cv_func_alloca_works" >&6; }
28855
28856 if test $ac_cv_func_alloca_works = yes; then
28857
28858 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28859
28860 else
28861   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28862 # that cause trouble.  Some versions do not even contain alloca or
28863 # contain a buggy version.  If you still want to use their alloca,
28864 # use ar to extract alloca.o from them instead of compiling alloca.c.
28865
28866 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28867
28868 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28869
28870
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28872 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28873 if ${ac_cv_os_cray+:} false; then :
28874   $as_echo_n "(cached) " >&6
28875 else
28876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28877 /* end confdefs.h.  */
28878 #if defined CRAY && ! defined CRAY2
28879 webecray
28880 #else
28881 wenotbecray
28882 #endif
28883
28884 _ACEOF
28885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28886   $EGREP "webecray" >/dev/null 2>&1; then :
28887   ac_cv_os_cray=yes
28888 else
28889   ac_cv_os_cray=no
28890 fi
28891 rm -f conftest*
28892
28893 fi
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28895 $as_echo "$ac_cv_os_cray" >&6; }
28896 if test $ac_cv_os_cray = yes; then
28897   for ac_func in _getb67 GETB67 getb67; do
28898     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28901
28902 cat >>confdefs.h <<_ACEOF
28903 #define CRAY_STACKSEG_END $ac_func
28904 _ACEOF
28905
28906     break
28907 fi
28908
28909   done
28910 fi
28911
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28913 $as_echo_n "checking stack direction for C alloca... " >&6; }
28914 if ${ac_cv_c_stack_direction+:} false; then :
28915   $as_echo_n "(cached) " >&6
28916 else
28917   if test "$cross_compiling" = yes; then :
28918   ac_cv_c_stack_direction=0
28919 else
28920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h.  */
28922 $ac_includes_default
28923 int
28924 find_stack_direction (int *addr, int depth)
28925 {
28926   int dir, dummy = 0;
28927   if (! addr)
28928     addr = &dummy;
28929   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28930   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28931   return dir + dummy;
28932 }
28933
28934 int
28935 main (int argc, char **argv)
28936 {
28937   return find_stack_direction (0, argc + !argv + 20) < 0;
28938 }
28939 _ACEOF
28940 if ac_fn_c_try_run "$LINENO"; then :
28941   ac_cv_c_stack_direction=1
28942 else
28943   ac_cv_c_stack_direction=-1
28944 fi
28945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28946   conftest.$ac_objext conftest.beam conftest.$ac_ext
28947 fi
28948
28949 fi
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28951 $as_echo "$ac_cv_c_stack_direction" >&6; }
28952 cat >>confdefs.h <<_ACEOF
28953 #define STACK_DIRECTION $ac_cv_c_stack_direction
28954 _ACEOF
28955
28956
28957 fi
28958
28959 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28960 # -lseq on Dynix/PTX, -lgen on Unixware.
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28962 $as_echo_n "checking for library containing getmntent... " >&6; }
28963 if ${ac_cv_search_getmntent+:} false; then :
28964   $as_echo_n "(cached) " >&6
28965 else
28966   ac_func_search_save_LIBS=$LIBS
28967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28968 /* end confdefs.h.  */
28969
28970 /* Override any GCC internal prototype to avoid an error.
28971    Use char because int might match the return type of a GCC
28972    builtin and then its argument prototype would still apply.  */
28973 #ifdef __cplusplus
28974 extern "C"
28975 #endif
28976 char getmntent ();
28977 int
28978 main ()
28979 {
28980 return getmntent ();
28981   ;
28982   return 0;
28983 }
28984 _ACEOF
28985 for ac_lib in '' sun seq gen; do
28986   if test -z "$ac_lib"; then
28987     ac_res="none required"
28988   else
28989     ac_res=-l$ac_lib
28990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28991   fi
28992   if ac_fn_c_try_link "$LINENO"; then :
28993   ac_cv_search_getmntent=$ac_res
28994 fi
28995 rm -f core conftest.err conftest.$ac_objext \
28996     conftest$ac_exeext
28997   if ${ac_cv_search_getmntent+:} false; then :
28998   break
28999 fi
29000 done
29001 if ${ac_cv_search_getmntent+:} false; then :
29002
29003 else
29004   ac_cv_search_getmntent=no
29005 fi
29006 rm conftest.$ac_ext
29007 LIBS=$ac_func_search_save_LIBS
29008 fi
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29010 $as_echo "$ac_cv_search_getmntent" >&6; }
29011 ac_res=$ac_cv_search_getmntent
29012 if test "$ac_res" != no; then :
29013   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29014   ac_cv_func_getmntent=yes
29015
29016 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29017
29018 else
29019   ac_cv_func_getmntent=no
29020 fi
29021
29022
29023 for ac_func in getmntinfo
29024 do :
29025   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29026 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29027   cat >>confdefs.h <<_ACEOF
29028 #define HAVE_GETMNTINFO 1
29029 _ACEOF
29030  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29031
29032 fi
29033 done
29034
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29036 $as_echo_n "checking whether closedir returns void... " >&6; }
29037 if ${ac_cv_func_closedir_void+:} false; then :
29038   $as_echo_n "(cached) " >&6
29039 else
29040   if test "$cross_compiling" = yes; then :
29041   ac_cv_func_closedir_void=yes
29042 else
29043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29044 /* end confdefs.h.  */
29045 $ac_includes_default
29046 #include <$ac_header_dirent>
29047 #ifndef __cplusplus
29048 int closedir ();
29049 #endif
29050
29051 int
29052 main ()
29053 {
29054 return closedir (opendir (".")) != 0;
29055   ;
29056   return 0;
29057 }
29058 _ACEOF
29059 if ac_fn_c_try_run "$LINENO"; then :
29060   ac_cv_func_closedir_void=no
29061 else
29062   ac_cv_func_closedir_void=yes
29063 fi
29064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29065   conftest.$ac_objext conftest.beam conftest.$ac_ext
29066 fi
29067
29068 fi
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29070 $as_echo "$ac_cv_func_closedir_void" >&6; }
29071 if test $ac_cv_func_closedir_void = yes; then
29072
29073 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29074
29075 fi
29076
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29078 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29079 if ${ac_cv_func_setpgrp_void+:} false; then :
29080   $as_echo_n "(cached) " >&6
29081 else
29082   if test "$cross_compiling" = yes; then :
29083   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29084 else
29085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086 /* end confdefs.h.  */
29087 $ac_includes_default
29088 int
29089 main ()
29090 {
29091 /* If this system has a BSD-style setpgrp which takes arguments,
29092   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29093   exit successfully. */
29094   return setpgrp (1,1) != -1;
29095   ;
29096   return 0;
29097 }
29098 _ACEOF
29099 if ac_fn_c_try_run "$LINENO"; then :
29100   ac_cv_func_setpgrp_void=no
29101 else
29102   ac_cv_func_setpgrp_void=yes
29103 fi
29104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29105   conftest.$ac_objext conftest.beam conftest.$ac_ext
29106 fi
29107
29108 fi
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29110 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29111 if test $ac_cv_func_setpgrp_void = yes; then
29112
29113 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29114
29115 fi
29116             # AC_FUNC_FNMATCH    dnl use local version
29117
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29119 $as_echo_n "checking for gettext in -lintl... " >&6; }
29120 if ${ac_cv_lib_intl_gettext+:} false; then :
29121   $as_echo_n "(cached) " >&6
29122 else
29123   ac_check_lib_save_LIBS=$LIBS
29124 LIBS="-lintl  $LIBS"
29125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29126 /* end confdefs.h.  */
29127
29128 /* Override any GCC internal prototype to avoid an error.
29129    Use char because int might match the return type of a GCC
29130    builtin and then its argument prototype would still apply.  */
29131 #ifdef __cplusplus
29132 extern "C"
29133 #endif
29134 char gettext ();
29135 int
29136 main ()
29137 {
29138 return gettext ();
29139   ;
29140   return 0;
29141 }
29142 _ACEOF
29143 if ac_fn_c_try_link "$LINENO"; then :
29144   ac_cv_lib_intl_gettext=yes
29145 else
29146   ac_cv_lib_intl_gettext=no
29147 fi
29148 rm -f core conftest.err conftest.$ac_objext \
29149     conftest$ac_exeext conftest.$ac_ext
29150 LIBS=$ac_check_lib_save_LIBS
29151 fi
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29153 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29154 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29155   LIBS="$LIBS -lintl"
29156 fi
29157
29158
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29160 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29161 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29162   $as_echo_n "(cached) " >&6
29163 else
29164   ac_check_lib_save_LIBS=$LIBS
29165 LIBS="-lsun  $LIBS"
29166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29167 /* end confdefs.h.  */
29168
29169 /* Override any GCC internal prototype to avoid an error.
29170    Use char because int might match the return type of a GCC
29171    builtin and then its argument prototype would still apply.  */
29172 #ifdef __cplusplus
29173 extern "C"
29174 #endif
29175 char getpwnam ();
29176 int
29177 main ()
29178 {
29179 return getpwnam ();
29180   ;
29181   return 0;
29182 }
29183 _ACEOF
29184 if ac_fn_c_try_link "$LINENO"; then :
29185   ac_cv_lib_sun_getpwnam=yes
29186 else
29187   ac_cv_lib_sun_getpwnam=no
29188 fi
29189 rm -f core conftest.err conftest.$ac_objext \
29190     conftest$ac_exeext conftest.$ac_ext
29191 LIBS=$ac_check_lib_save_LIBS
29192 fi
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29194 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29195 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29196   cat >>confdefs.h <<_ACEOF
29197 #define HAVE_LIBSUN 1
29198 _ACEOF
29199
29200   LIBS="-lsun $LIBS"
29201
29202 fi
29203
29204
29205 for ac_header in zlib.h
29206 do :
29207   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29208 if test "x$ac_cv_header_zlib_h" = xyes; then :
29209   cat >>confdefs.h <<_ACEOF
29210 #define HAVE_ZLIB_H 1
29211 _ACEOF
29212
29213 fi
29214
29215 done
29216
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29218 $as_echo_n "checking for deflate in -lz... " >&6; }
29219 if ${ac_cv_lib_z_deflate+:} false; then :
29220   $as_echo_n "(cached) " >&6
29221 else
29222   ac_check_lib_save_LIBS=$LIBS
29223 LIBS="-lz  $LIBS"
29224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29225 /* end confdefs.h.  */
29226
29227 /* Override any GCC internal prototype to avoid an error.
29228    Use char because int might match the return type of a GCC
29229    builtin and then its argument prototype would still apply.  */
29230 #ifdef __cplusplus
29231 extern "C"
29232 #endif
29233 char deflate ();
29234 int
29235 main ()
29236 {
29237 return deflate ();
29238   ;
29239   return 0;
29240 }
29241 _ACEOF
29242 if ac_fn_c_try_link "$LINENO"; then :
29243   ac_cv_lib_z_deflate=yes
29244 else
29245   ac_cv_lib_z_deflate=no
29246 fi
29247 rm -f core conftest.err conftest.$ac_objext \
29248     conftest$ac_exeext conftest.$ac_ext
29249 LIBS=$ac_check_lib_save_LIBS
29250 fi
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29252 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29253 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29254   ZLIBS="-lz"
29255 fi
29256
29257 have_zlib=no
29258 if test x$ZLIBS = x-lz; then
29259    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29260
29261    have_zlib=yes
29262 fi
29263
29264
29265 AFS_CFLAGS=""
29266 AFS_LIBS=""
29267 support_afs=auto
29268 # Check whether --enable-afs was given.
29269 if test "${enable_afs+set}" = set; then :
29270   enableval=$enable_afs;
29271        if test x$enableval = xyes; then
29272           support_afs=yes
29273        elif test x$enableval = xno; then
29274           support_afs=no
29275        fi
29276
29277
29278 fi
29279
29280
29281 have_afs=no
29282 if test x$support_afs = xyes -o x$support_afs = xauto; then
29283
29284 # Check whether --with-afsdir was given.
29285 if test "${with_afsdir+set}" = set; then :
29286   withval=$with_afsdir; with_afsdir=$withval
29287
29288 fi
29289
29290
29291             if test x$with_afsdir = x; then
29292       for root in /usr /usr/local; do
29293          if test -d ${root}/include/afs/ ; then
29294             with_afsdir=${root}
29295             break
29296          fi
29297          if test -d ${root}/include/openafs/afs/ ; then
29298             with_afsdir=${root}
29299             break
29300          fi
29301       done
29302    fi
29303
29304    if test -d ${with_afsdir}/include/afs/ ; then
29305       AFS_CFLAGS="-I${with_afsdir}/include"
29306    else
29307       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29308          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29309       fi
29310    fi
29311
29312    saved_CFLAGS="${CFLAGS}"
29313    saved_CPPFLAGS="${CPPFLAGS}"
29314    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29315    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29316
29317    for ac_header in afs/afsint.h
29318 do :
29319   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29320 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29321   cat >>confdefs.h <<_ACEOF
29322 #define HAVE_AFS_AFSINT_H 1
29323 _ACEOF
29324
29325 fi
29326
29327 done
29328
29329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29330 /* end confdefs.h.  */
29331
29332           #include <afs/afsint.h>
29333           #include <afs/venus.h>
29334
29335 _ACEOF
29336 if ac_fn_c_try_cpp "$LINENO"; then :
29337
29338 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29339
29340
29341 fi
29342 rm -f conftest.err conftest.i conftest.$ac_ext
29343
29344    CFLAGS="${saved_CFLAGS}"
29345    CPPFLAGS="${saved_CPPFLAGS}"
29346
29347             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29348 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29349    for dir in ${with_afsdir}/lib \
29350               ${with_afsdir}/lib/afs \
29351               ${with_afsdir}/lib/openafs \
29352               ${with_afsdir}/lib64 \
29353               ${with_afsdir}/lib64/afs \
29354               ${with_afsdir}/lib64/openafs
29355    do
29356       for arch_type in .a .so
29357       do
29358          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29359          pkg=$?
29360          if test $pkg = 0; then
29361             have_afs=yes
29362             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29363             break
29364          fi
29365       done
29366    done
29367
29368    if test $have_afs = yes; then
29369       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29370 $as_echo "yes" >&6; }
29371    else
29372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29373 $as_echo "no" >&6; }
29374    fi
29375
29376    if test x$support_afs = xyes -a $have_afs != yes; then
29377       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29378   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29379    else
29380       if test $have_afs = yes; then
29381
29382 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29383
29384
29385 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29386
29387       fi
29388    fi
29389 fi
29390
29391
29392
29393
29394 # Check whether --enable-lzo was given.
29395 if test "${enable_lzo+set}" = set; then :
29396   enableval=$enable_lzo;
29397        if test x$enableval = xno; then
29398           support_lzo=no
29399        fi
29400
29401
29402 fi
29403
29404
29405 LZO_INC=
29406 LZO_LIBS=
29407 LZO_LDFLAGS=
29408
29409 have_lzo="no"
29410 if test x$support_lzo = xyes; then
29411
29412 # Check whether --with-lzo was given.
29413 if test "${with_lzo+set}" = set; then :
29414   withval=$with_lzo;
29415           case "$with_lzo" in
29416           no)
29417              :
29418              ;;
29419           yes|*)
29420              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29421                 LZO_INC="-I${with_lzo}/include"
29422                 LZO_LDFLAGS="-L${with_lzo}/lib"
29423                 with_lzo="${with_lzo}/include"
29424              else
29425                 with_lzo="/usr/include"
29426              fi
29427
29428              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29429 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29431
29432
29433 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29434
29435                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29436                     have_lzo="yes"
29437
29438 else
29439
29440                     echo " "
29441                     echo "lzoconf.h not found. lzo turned off ..."
29442                     echo " "
29443
29444
29445 fi
29446
29447
29448              ;;
29449           esac
29450
29451 else
29452
29453          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29454 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29455
29456             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29457 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29458
29459                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29460 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29461 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29462   $as_echo_n "(cached) " >&6
29463 else
29464   ac_check_lib_save_LIBS=$LIBS
29465 LIBS="-llzo2  $LIBS"
29466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29467 /* end confdefs.h.  */
29468
29469 /* Override any GCC internal prototype to avoid an error.
29470    Use char because int might match the return type of a GCC
29471    builtin and then its argument prototype would still apply.  */
29472 #ifdef __cplusplus
29473 extern "C"
29474 #endif
29475 char lzo1x_1_compress ();
29476 int
29477 main ()
29478 {
29479 return lzo1x_1_compress ();
29480   ;
29481   return 0;
29482 }
29483 _ACEOF
29484 if ac_fn_c_try_link "$LINENO"; then :
29485   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29486 else
29487   ac_cv_lib_lzo2_lzo1x_1_compress=no
29488 fi
29489 rm -f core conftest.err conftest.$ac_objext \
29490     conftest$ac_exeext conftest.$ac_ext
29491 LIBS=$ac_check_lib_save_LIBS
29492 fi
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29494 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29495 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29496
29497                  LZO_LIBS="-llzo2"
29498
29499 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29500
29501                  have_lzo=yes
29502
29503 fi
29504
29505
29506 fi
29507
29508
29509
29510 fi
29511
29512
29513
29514 fi
29515
29516 fi
29517
29518
29519
29520
29521
29522 support_acl=auto
29523 # Check whether --enable-acl was given.
29524 if test "${enable_acl+set}" = set; then :
29525   enableval=$enable_acl;
29526        if test x$enableval = xyes; then
29527           support_acl=yes
29528        elif test x$enableval = xno; then
29529           support_acl=no
29530        fi
29531
29532
29533 fi
29534
29535
29536 have_acl=no
29537 have_extended_acl=no
29538 if test x$support_acl = xyes -o x$support_acl = xauto; then
29539    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29540 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29541
29542 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29543
29544 fi
29545
29546
29547
29548             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29549 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29550
29551           have_acl=yes
29552
29553
29554 fi
29555
29556
29557             if test $have_acl = no; then
29558       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29559 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29560 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29561   $as_echo_n "(cached) " >&6
29562 else
29563   ac_check_lib_save_LIBS=$LIBS
29564 LIBS="-lacl  $LIBS"
29565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29566 /* end confdefs.h.  */
29567
29568 /* Override any GCC internal prototype to avoid an error.
29569    Use char because int might match the return type of a GCC
29570    builtin and then its argument prototype would still apply.  */
29571 #ifdef __cplusplus
29572 extern "C"
29573 #endif
29574 char acl_get_file ();
29575 int
29576 main ()
29577 {
29578 return acl_get_file ();
29579   ;
29580   return 0;
29581 }
29582 _ACEOF
29583 if ac_fn_c_try_link "$LINENO"; then :
29584   ac_cv_lib_acl_acl_get_file=yes
29585 else
29586   ac_cv_lib_acl_acl_get_file=no
29587 fi
29588 rm -f core conftest.err conftest.$ac_objext \
29589     conftest$ac_exeext conftest.$ac_ext
29590 LIBS=$ac_check_lib_save_LIBS
29591 fi
29592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29593 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29594 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29595
29596              have_acl=yes
29597              if test $have_afs = yes; then
29598                                                                 if test -d /usr/lib64/; then
29599                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29600                 else
29601                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29602                 fi
29603              else
29604                 FDLIBS="-lacl $FDLIBS"
29605              fi
29606
29607
29608 fi
29609
29610    fi
29611
29612                if test $have_acl = no -a \
29613            x${HAVE_OSF1_OS_TRUE} = x; then
29614       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29615 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29616 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29617   $as_echo_n "(cached) " >&6
29618 else
29619   ac_check_lib_save_LIBS=$LIBS
29620 LIBS="-lpacl  $LIBS"
29621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29622 /* end confdefs.h.  */
29623
29624 /* Override any GCC internal prototype to avoid an error.
29625    Use char because int might match the return type of a GCC
29626    builtin and then its argument prototype would still apply.  */
29627 #ifdef __cplusplus
29628 extern "C"
29629 #endif
29630 char acl_get_file ();
29631 int
29632 main ()
29633 {
29634 return acl_get_file ();
29635   ;
29636   return 0;
29637 }
29638 _ACEOF
29639 if ac_fn_c_try_link "$LINENO"; then :
29640   ac_cv_lib_pacl_acl_get_file=yes
29641 else
29642   ac_cv_lib_pacl_acl_get_file=no
29643 fi
29644 rm -f core conftest.err conftest.$ac_objext \
29645     conftest$ac_exeext conftest.$ac_ext
29646 LIBS=$ac_check_lib_save_LIBS
29647 fi
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29649 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29650 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29651
29652              have_acl=yes
29653              FDLIBS="-lpacl $FDLIBS"
29654
29655
29656 fi
29657
29658
29659       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29660 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29661       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29662       if test $? = 0; then
29663
29664 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29665
29666          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29667 $as_echo "yes" >&6; }
29668       else
29669          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29670 $as_echo "no" >&6; }
29671       fi
29672    fi
29673
29674             if test $have_acl = yes -a \
29675            x${HAVE_DARWIN_OS_TRUE} = x; then
29676       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29677 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29678       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29679       if test $? = 0; then
29680
29681 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29682
29683          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29684 $as_echo "yes" >&6; }
29685       else
29686          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29687 $as_echo "no" >&6; }
29688       fi
29689    fi
29690
29691             if test $have_acl = yes -a \
29692            x${HAVE_FREEBSD_OS_TRUE} = x; then
29693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29694 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29695       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29696       if test $? = 0; then
29697
29698 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29699
29700          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29701 $as_echo "yes" >&6; }
29702       else
29703          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29704 $as_echo "no" >&6; }
29705       fi
29706    fi
29707
29708             if test $have_acl = no -a \
29709            x${HAVE_SUN_OS_TRUE} = x; then
29710       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29711 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29712 if ${ac_cv_lib_sec_acltotext+:} false; then :
29713   $as_echo_n "(cached) " >&6
29714 else
29715   ac_check_lib_save_LIBS=$LIBS
29716 LIBS="-lsec  $LIBS"
29717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29718 /* end confdefs.h.  */
29719
29720 /* Override any GCC internal prototype to avoid an error.
29721    Use char because int might match the return type of a GCC
29722    builtin and then its argument prototype would still apply.  */
29723 #ifdef __cplusplus
29724 extern "C"
29725 #endif
29726 char acltotext ();
29727 int
29728 main ()
29729 {
29730 return acltotext ();
29731   ;
29732   return 0;
29733 }
29734 _ACEOF
29735 if ac_fn_c_try_link "$LINENO"; then :
29736   ac_cv_lib_sec_acltotext=yes
29737 else
29738   ac_cv_lib_sec_acltotext=no
29739 fi
29740 rm -f core conftest.err conftest.$ac_objext \
29741     conftest$ac_exeext conftest.$ac_ext
29742 LIBS=$ac_check_lib_save_LIBS
29743 fi
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29745 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29746 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29747
29748              have_acl=yes
29749              FDLIBS="-lsec $FDLIBS"
29750
29751              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29752 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29753 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29754   $as_echo_n "(cached) " >&6
29755 else
29756   ac_check_lib_save_LIBS=$LIBS
29757 LIBS="-lsec  $LIBS"
29758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29759 /* end confdefs.h.  */
29760
29761 /* Override any GCC internal prototype to avoid an error.
29762    Use char because int might match the return type of a GCC
29763    builtin and then its argument prototype would still apply.  */
29764 #ifdef __cplusplus
29765 extern "C"
29766 #endif
29767 char acl_totext ();
29768 int
29769 main ()
29770 {
29771 return acl_totext ();
29772   ;
29773   return 0;
29774 }
29775 _ACEOF
29776 if ac_fn_c_try_link "$LINENO"; then :
29777   ac_cv_lib_sec_acl_totext=yes
29778 else
29779   ac_cv_lib_sec_acl_totext=no
29780 fi
29781 rm -f core conftest.err conftest.$ac_objext \
29782     conftest$ac_exeext conftest.$ac_ext
29783 LIBS=$ac_check_lib_save_LIBS
29784 fi
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29786 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29787 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29788
29789                     have_extended_acl=yes
29790
29791
29792 fi
29793
29794
29795
29796 fi
29797
29798    fi
29799
29800             if test $have_acl = no -a \
29801            x${HAVE_AIX_OS_TRUE} = x; then
29802       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29803 if test "x$ac_cv_func_acl_get" = xyes; then :
29804
29805              have_acl=yes
29806
29807              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29808 if test "x$ac_cv_func_aclx_get" = xyes; then :
29809
29810                     have_extended_acl=yes
29811
29812
29813 fi
29814
29815
29816
29817 fi
29818
29819    fi
29820
29821    if test x$support_acl = xyes -a $have_acl != yes; then
29822       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29823   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29824    else
29825       if test $have_acl = yes; then
29826
29827 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29828
29829       fi
29830
29831       if test $have_extended_acl = yes; then
29832
29833 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29834
29835       fi
29836    fi
29837 fi
29838
29839 support_xattr=auto
29840 # Check whether --enable-xattr was given.
29841 if test "${enable_xattr+set}" = set; then :
29842   enableval=$enable_xattr;
29843        if test x$enableval = xyes; then
29844           support_xattr=yes
29845        elif test x$enableval = xno; then
29846           support_xattr=no
29847        fi
29848
29849
29850 fi
29851
29852
29853 have_xattr=no
29854 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29855                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29856            x${HAVE_NETBSD_OS_TRUE} = x -o \
29857            x${HAVE_OPENBSD_OS_TRUE} = x; then
29858       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29859 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29860
29861 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29862
29863 fi
29864
29865
29866       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29867 if test "x$ac_cv_header_libutil_h" = xyes; then :
29868
29869 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29870
29871 fi
29872
29873
29874       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29875 do :
29876   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29877 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29878 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29879   cat >>confdefs.h <<_ACEOF
29880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29881 _ACEOF
29882
29883              have_xattr=yes
29884
29885 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29886
29887
29888 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29889
29890
29891 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29892
29893
29894
29895 fi
29896 done
29897
29898
29899       if test $have_xattr = no; then
29900          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29901 do :
29902   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29905   cat >>confdefs.h <<_ACEOF
29906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29907 _ACEOF
29908
29909                 have_xattr=yes
29910
29911 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29912
29913
29914 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29915
29916
29917 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29918
29919
29920
29921 fi
29922 done
29923
29924       fi
29925
29926       if test $have_xattr = yes; then
29927          have_extattr_string_in_libc=no
29928          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29929 do :
29930   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29932 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29933   cat >>confdefs.h <<_ACEOF
29934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29935 _ACEOF
29936
29937                 have_extattr_string_in_libc=yes
29938
29939 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29940
29941
29942 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29943
29944
29945
29946 fi
29947 done
29948
29949
29950                                  if test $have_extattr_string_in_libc = no; then
29951             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29952 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29953 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29954   $as_echo_n "(cached) " >&6
29955 else
29956   ac_check_lib_save_LIBS=$LIBS
29957 LIBS="-lutil  $LIBS"
29958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29959 /* end confdefs.h.  */
29960
29961 /* Override any GCC internal prototype to avoid an error.
29962    Use char because int might match the return type of a GCC
29963    builtin and then its argument prototype would still apply.  */
29964 #ifdef __cplusplus
29965 extern "C"
29966 #endif
29967 char extattr_namespace_to_string extattr_string_to_namespace ();
29968 int
29969 main ()
29970 {
29971 return extattr_namespace_to_string extattr_string_to_namespace ();
29972   ;
29973   return 0;
29974 }
29975 _ACEOF
29976 if ac_fn_c_try_link "$LINENO"; then :
29977   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29978 else
29979   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29980 fi
29981 rm -f core conftest.err conftest.$ac_objext \
29982     conftest$ac_exeext conftest.$ac_ext
29983 LIBS=$ac_check_lib_save_LIBS
29984 fi
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29986 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29987 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29988
29989
29990 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29991
29992
29993 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29994
29995                    FDLIBS="-lutil $FDLIBS"
29996
29997
29998 fi
29999
30000          fi
30001       fi
30002    fi
30003
30004                if test $have_xattr = no -a \
30005            x${HAVE_AIX_OS_TRUE} = x; then
30006       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30007 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30008
30009 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30010
30011 fi
30012
30013
30014       for ac_func in llistea lgetea lsetea
30015 do :
30016   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30019   cat >>confdefs.h <<_ACEOF
30020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30021 _ACEOF
30022
30023              have_xattr=yes
30024
30025 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30026
30027
30028 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30029
30030
30031 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30032
30033
30034
30035 fi
30036 done
30037
30038
30039       if test $have_xattr = no; then
30040          for ac_func in listea getea setea
30041 do :
30042   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30045   cat >>confdefs.h <<_ACEOF
30046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30047 _ACEOF
30048
30049                 have_xattr=yes
30050
30051 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30052
30053
30054 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30055
30056
30057 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30058
30059
30060
30061 fi
30062 done
30063
30064       fi
30065    fi
30066
30067                if test $have_xattr = no -a \
30068            x${HAVE_OSF1_OS_TRUE} = x; then
30069       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30070 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30071
30072 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30073
30074 fi
30075
30076
30077       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30078 do :
30079   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30081 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30082   cat >>confdefs.h <<_ACEOF
30083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30084 _ACEOF
30085
30086              have_xattr=yes
30087
30088 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30089
30090
30091 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30092
30093
30094 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30095
30096
30097 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30098
30099
30100 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30101
30102
30103
30104 fi
30105 done
30106
30107    fi
30108
30109                if test $have_xattr = no -a \
30110            x${HAVE_SUN_OS_TRUE} = x; then
30111       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30112 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30113
30114 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30115
30116 fi
30117
30118
30119       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30120 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30121
30122 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30123
30124 fi
30125
30126
30127       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30128 if test "x$ac_cv_header_attr_h" = xyes; then :
30129
30130 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30131
30132 fi
30133
30134
30135
30136       for ac_func in openat fstatat unlinkat fchownat futimesat
30137 do :
30138   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30141   cat >>confdefs.h <<_ACEOF
30142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30143 _ACEOF
30144
30145              have_xattr=yes
30146
30147 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30148
30149
30150 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30151
30152
30153 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30154
30155
30156 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30157
30158
30159 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30160
30161
30162
30163 fi
30164 done
30165
30166
30167       if test $have_xattr = yes; then
30168          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30169 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30170 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30171   $as_echo_n "(cached) " >&6
30172 else
30173   ac_check_lib_save_LIBS=$LIBS
30174 LIBS="-lnvpair  $LIBS"
30175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30176 /* end confdefs.h.  */
30177
30178 /* Override any GCC internal prototype to avoid an error.
30179    Use char because int might match the return type of a GCC
30180    builtin and then its argument prototype would still apply.  */
30181 #ifdef __cplusplus
30182 extern "C"
30183 #endif
30184 char nvlist_next_nvpair ();
30185 int
30186 main ()
30187 {
30188 return nvlist_next_nvpair ();
30189   ;
30190   return 0;
30191 }
30192 _ACEOF
30193 if ac_fn_c_try_link "$LINENO"; then :
30194   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30195 else
30196   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30197 fi
30198 rm -f core conftest.err conftest.$ac_objext \
30199     conftest$ac_exeext conftest.$ac_ext
30200 LIBS=$ac_check_lib_save_LIBS
30201 fi
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30203 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30204 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30205
30206
30207 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30208
30209                 FDLIBS="-lnvpair $FDLIBS"
30210
30211
30212 fi
30213
30214       fi
30215    fi
30216
30217             if test $have_xattr = no; then
30218       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30219 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30220
30221 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30222
30223 fi
30224
30225
30226       for ac_func in llistxattr lgetxattr lsetxattr
30227 do :
30228   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30230 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30231   cat >>confdefs.h <<_ACEOF
30232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30233 _ACEOF
30234
30235              have_xattr=yes
30236
30237 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30238
30239
30240 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30241
30242
30243 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30244
30245
30246
30247 fi
30248 done
30249
30250
30251       if test $have_xattr = no; then
30252          for ac_func in listxattr getxattr setxattr
30253 do :
30254   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30257   cat >>confdefs.h <<_ACEOF
30258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30259 _ACEOF
30260
30261                 have_xattr=yes
30262
30263 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30264
30265
30266 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30267
30268
30269 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30270
30271
30272
30273 fi
30274 done
30275
30276       fi
30277    fi
30278
30279    if test x$support_xattr = xyes -a $have_xattr != yes; then
30280       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30281   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30282    else
30283       if test $have_xattr = yes; then
30284
30285 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30286
30287       fi
30288    fi
30289 fi
30290
30291 PTHREAD_LIB=""
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30293 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30294 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30295   $as_echo_n "(cached) " >&6
30296 else
30297   ac_check_lib_save_LIBS=$LIBS
30298 LIBS="-lpthread  $LIBS"
30299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30300 /* end confdefs.h.  */
30301
30302 /* Override any GCC internal prototype to avoid an error.
30303    Use char because int might match the return type of a GCC
30304    builtin and then its argument prototype would still apply.  */
30305 #ifdef __cplusplus
30306 extern "C"
30307 #endif
30308 char pthread_create ();
30309 int
30310 main ()
30311 {
30312 return pthread_create ();
30313   ;
30314   return 0;
30315 }
30316 _ACEOF
30317 if ac_fn_c_try_link "$LINENO"; then :
30318   ac_cv_lib_pthread_pthread_create=yes
30319 else
30320   ac_cv_lib_pthread_pthread_create=no
30321 fi
30322 rm -f core conftest.err conftest.$ac_objext \
30323     conftest$ac_exeext conftest.$ac_ext
30324 LIBS=$ac_check_lib_save_LIBS
30325 fi
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30327 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30328 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30329   PTHREAD_LIB="-lpthread"
30330 else
30331
30332        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30333 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30334 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30335   $as_echo_n "(cached) " >&6
30336 else
30337   ac_check_lib_save_LIBS=$LIBS
30338 LIBS="-lpthreads  $LIBS"
30339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30340 /* end confdefs.h.  */
30341
30342 /* Override any GCC internal prototype to avoid an error.
30343    Use char because int might match the return type of a GCC
30344    builtin and then its argument prototype would still apply.  */
30345 #ifdef __cplusplus
30346 extern "C"
30347 #endif
30348 char pthread_create ();
30349 int
30350 main ()
30351 {
30352 return pthread_create ();
30353   ;
30354   return 0;
30355 }
30356 _ACEOF
30357 if ac_fn_c_try_link "$LINENO"; then :
30358   ac_cv_lib_pthreads_pthread_create=yes
30359 else
30360   ac_cv_lib_pthreads_pthread_create=no
30361 fi
30362 rm -f core conftest.err conftest.$ac_objext \
30363     conftest$ac_exeext conftest.$ac_ext
30364 LIBS=$ac_check_lib_save_LIBS
30365 fi
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30367 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30368 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30369   PTHREAD_LIB="-lpthreads"
30370 else
30371
30372               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30373 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30374 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30375   $as_echo_n "(cached) " >&6
30376 else
30377   ac_check_lib_save_LIBS=$LIBS
30378 LIBS="-lc_r  $LIBS"
30379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380 /* end confdefs.h.  */
30381
30382 /* Override any GCC internal prototype to avoid an error.
30383    Use char because int might match the return type of a GCC
30384    builtin and then its argument prototype would still apply.  */
30385 #ifdef __cplusplus
30386 extern "C"
30387 #endif
30388 char pthread_create ();
30389 int
30390 main ()
30391 {
30392 return pthread_create ();
30393   ;
30394   return 0;
30395 }
30396 _ACEOF
30397 if ac_fn_c_try_link "$LINENO"; then :
30398   ac_cv_lib_c_r_pthread_create=yes
30399 else
30400   ac_cv_lib_c_r_pthread_create=no
30401 fi
30402 rm -f core conftest.err conftest.$ac_objext \
30403     conftest$ac_exeext conftest.$ac_ext
30404 LIBS=$ac_check_lib_save_LIBS
30405 fi
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30407 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30408 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30409   PTHREAD_LIB="-lc_r"
30410 else
30411
30412                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30413 if test "x$ac_cv_func_pthread_create" = xyes; then :
30414
30415 fi
30416
30417
30418
30419 fi
30420
30421
30422
30423 fi
30424
30425
30426
30427 fi
30428
30429
30430 for ac_header in sys/prctl.h sys/capability.h
30431 do :
30432   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30433 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30435   cat >>confdefs.h <<_ACEOF
30436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30437 _ACEOF
30438
30439 fi
30440
30441 done
30442
30443 for ac_func in prctl setreuid
30444 do :
30445   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30446 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30447 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30448   cat >>confdefs.h <<_ACEOF
30449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30450 _ACEOF
30451
30452 fi
30453 done
30454
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30456 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30457 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30458   $as_echo_n "(cached) " >&6
30459 else
30460   ac_check_lib_save_LIBS=$LIBS
30461 LIBS="-lcap  $LIBS"
30462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30463 /* end confdefs.h.  */
30464
30465 /* Override any GCC internal prototype to avoid an error.
30466    Use char because int might match the return type of a GCC
30467    builtin and then its argument prototype would still apply.  */
30468 #ifdef __cplusplus
30469 extern "C"
30470 #endif
30471 char cap_set_proc ();
30472 int
30473 main ()
30474 {
30475 return cap_set_proc ();
30476   ;
30477   return 0;
30478 }
30479 _ACEOF
30480 if ac_fn_c_try_link "$LINENO"; then :
30481   ac_cv_lib_cap_cap_set_proc=yes
30482 else
30483   ac_cv_lib_cap_cap_set_proc=no
30484 fi
30485 rm -f core conftest.err conftest.$ac_objext \
30486     conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30488 fi
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30490 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30491 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30492   CAP_LIBS="-lcap"
30493 else
30494   CAP_LIBS=
30495 fi
30496
30497 if test x$CAP_LIBS = x-lcap; then
30498
30499 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30500
30501 fi
30502
30503
30504
30505 $as_echo "#define FDLIBS 1" >>confdefs.h
30506
30507
30508 CFLAGS=${CFLAGS--O}
30509
30510 if test x$have_gcc = xyes ; then
30511    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30512    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30513 fi
30514 LDFLAGS=${LDFLAGS--O}
30515 CPPFLAGS="$CPPFLAGS"
30516 CFLAGS="$CFLAGS"
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532 OBJLIST=
30533
30534
30535 lld="lld"
30536 llu="llu"
30537
30538 WCFLAGS=
30539 WLDFLAGS=
30540
30541 PSCMD="ps -e"
30542 WIN32=
30543 MACOSX=
30544 COMPRESS_MANPAGES=yes
30545
30546 case "$DISTNAME" in
30547 aix)
30548    DISTVER=`uname -r`
30549    PSCMD="ps -e -o pid,comm"
30550    PFILES="${PFILES} platforms/aix/Makefile"
30551    TAPEDRIVE="/dev/rmt0.1"
30552   ;;
30553 alpha)
30554    DISTVER=`uname -r`
30555    PTHREAD_LIB="-lpthread -lexc"
30556    if test "${CC}" = "gcc" ; then
30557       lld="lld"
30558       llu="llu"
30559    else
30560       lld="ld"
30561       llu="lu"
30562    fi
30563    TAPEDRIVE="/dev/nrmt0"
30564   ;;
30565 bsdi)
30566    DISTVER=`uname -a |awk '{print $3}'`
30567    TAPEDRIVE="/dev/nrmt0"
30568    PTHREAD_LIB="-pthread"
30569    CFLAGS="${CFLAGS} -pthread"
30570    PSCMD="ps -ax -o pid,command"
30571    lld="qd"
30572    llu="qu"
30573    PFILES="${PFILES} \
30574        platforms/bsdi/Makefile \
30575        platforms/bsdi/bacula-fd \
30576        platforms/bsdi/bacula-sd \
30577        platforms/bsdi/bacula-dir"
30578    largefile_support="yes"
30579   ;;
30580 cygwin)
30581    DISTVER=`uname -a |awk '{print $3}'`
30582    TAPEDRIVE="/dev/nrst0"
30583    WIN32=win32
30584    WCFLAGS="-mwindows"
30585    WLDFLAGS="-mwindows"
30586   ;;
30587 darwin)
30588    DISTVER=`uname -r`
30589    TAPEDRIVE="/dev/nst0"
30590    PSCMD="ps -e -o pid,command"
30591    MACOSX=macosx
30592    PFILES="${PFILES} \
30593       platforms/darwin/Makefile"
30594   ;;
30595 osx)
30596    DISTVER=`uname -r`
30597    TAPEDRIVE="/dev/nst0"
30598    PSCMD="ps -e -o pid,command"
30599    MACOSX=macosx
30600    PFILES="${PFILES} \
30601       platforms/osx/Makefile"
30602   ;;
30603 debian)
30604    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30605       DISTNAME="ubuntu"
30606    fi
30607    DISTVER=`cat /etc/debian_version`
30608    if test -f /etc/lsb-release ; then
30609       . /etc/lsb-release
30610       if test "x$DISTRIB_ID" != "x" ; then
30611          DISTNAME=$DISTRIB_ID
30612       fi
30613       if test "x$DISTRIB_RELEASE" != "x" ; then
30614          DISTVER=$DISTRIB_RELEASE
30615       fi
30616    fi
30617    if test "$DISTNAME" = "Ubuntu" ; then
30618       DISTNAME="ubuntu"
30619    fi
30620    TAPEDRIVE="/dev/nst0"
30621    PSCMD="ps -e -o pid,command"
30622    if test "$DISTNAME" = "ubuntu" ; then
30623       PFILES="${PFILES} \
30624          platforms/ubuntu/Makefile \
30625          platforms/ubuntu/bacula-fd \
30626          platforms/ubuntu/bacula-sd \
30627          platforms/ubuntu/bacula-dir"
30628    else
30629       PFILES="${PFILES} \
30630          platforms/debian/Makefile \
30631          platforms/debian/bacula-fd \
30632          platforms/debian/bacula-sd \
30633          platforms/debian/bacula-dir"
30634    fi
30635   ;;
30636 freebsd)
30637    DISTVER=`uname -a |awk '{print $3}'`
30638    VER=`echo $DISTVER | cut -c 1`
30639    if test x$VER = x4 ; then
30640       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30641       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30642    fi
30643    lld="qd"
30644    llu="qu"
30645    TAPEDRIVE="/dev/nrsa0"
30646    PSCMD="ps -ax -o pid,command"
30647    PFILES="${PFILES} \
30648        platforms/freebsd/Makefile \
30649        platforms/freebsd/bacula-fd \
30650        platforms/freebsd/bacula-sd \
30651        platforms/freebsd/bacula-dir"
30652    largefile_support="yes"
30653   ;;
30654 hurd)
30655    DISTVER=`uname -r`
30656    TAPEDRIVE="/dev/nst0"
30657    PSCMD="ps -e -o pid,command"
30658    PFILES="${PFILES} \
30659        platforms/hurd/Makefile \
30660        platforms/hurd/bacula-fd \
30661        platforms/hurd/bacula-sd \
30662        platforms/hurd/bacula-dir"
30663   ;;
30664 hpux)
30665    PSCMD="UNIX95=1; ps -e -o pid,comm"
30666    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30667    DISTVER=`uname -r`
30668    TAPEDRIVE="/dev/rmt/0hnb"
30669    PTHREAD_LIB="-lpthread"
30670    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30671
30672   ;;
30673 irix)
30674    DISTVER=`uname -r`
30675    TAPEDRIVE="/dev/rmt/0cbn"
30676    PSCMD="ps -e -o pid,comm"
30677    PFILES="${PFILES} \
30678        platforms/irix/Makefile \
30679        platforms/irix/bacula-fd \
30680        platforms/irix/bacula-sd \
30681        platforms/irix/bacula-dir"
30682   ;;
30683 netbsd)
30684    DISTVER=`uname -a |awk '{print $3}'`
30685    lld="qd"
30686    llu="qu"
30687    TAPEDRIVE="/dev/nrst0"
30688    PSCMD="ps -ax -o pid,command"
30689    PTHREAD_LIB="-pthread"
30690    CFLAGS="${CFLAGS} -pthread"
30691   ;;
30692 openbsd)
30693    DISTVER=`uname -a |awk '{print $3}'`
30694    lld="qd"
30695    llu="qu"
30696    TAPEDRIVE="/dev/nrst0"
30697    PSCMD="ps -ax -o pid,command"
30698    PTHREAD_LIB="-pthread"
30699    CFLAGS="${CFLAGS} -pthread"
30700    PFILES="${PFILES} \
30701        platforms/openbsd/Makefile \
30702        platforms/openbsd/bacula-fd \
30703        platforms/openbsd/bacula-sd \
30704        platforms/openbsd/bacula-dir"
30705   ;;
30706 redhat)
30707    if test -f /etc/whitebox-release ; then
30708       f=/etc/whitebox-release
30709    else
30710       f=/etc/redhat-release
30711    fi
30712    if test `cat $f | grep release |\
30713          cut -f 3 -d ' '`x = "Enterprise"x ; then
30714       DISTVER="Enterprise "`cat $f | grep release |\
30715           cut -f 6 -d ' '`
30716    else
30717        DISTVER=`cat /etc/redhat-release | grep release |\
30718            cut -f 5 -d ' '`
30719    fi
30720    TAPEDRIVE="/dev/nst0"
30721    PSCMD="ps -e -o pid,command"
30722    PFILES="${PFILES} \
30723        platforms/redhat/Makefile \
30724        platforms/redhat/bacula-fd \
30725        platforms/redhat/bacula-sd \
30726        platforms/redhat/bacula-dir
30727        "
30728   ;;
30729 mandrake)
30730    DISTVER=`cat /etc/mandrake-release | grep release |\
30731       cut -f 5 -d ' '`
30732    TAPEDRIVE="/dev/nst0"
30733    PSCMD="ps -e -o pid,command"
30734    PFILES="${PFILES} \
30735        platforms/mandrake/Makefile \
30736        platforms/mandrake/bacula-fd \
30737        platforms/mandrake/bacula-sd \
30738        platforms/mandrake/bacula-dir \
30739        "
30740   ;;
30741 gentoo)
30742    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30743    TAPEDRIVE="/dev/nst0"
30744    PSCMD="ps -e -o pid,command"
30745    PFILES="${PFILES} \
30746        platforms/gentoo/Makefile \
30747     platforms/gentoo/bacula-init \
30748        platforms/gentoo/bacula-fd \
30749        platforms/gentoo/bacula-sd \
30750        platforms/gentoo/bacula-dir"
30751   ;;
30752 slackware)
30753    DISTVER=`cat /etc/slackware-version`
30754    TAPEDRIVE="/dev/nst0"
30755    PSCMD="ps -e -o pid,command"
30756    PFILES="${PFILES} \
30757        platforms/slackware/Makefile \
30758        platforms/slackware/rc.bacula-fd \
30759        platforms/slackware/rc.bacula-sd \
30760        platforms/slackware/rc.bacula-dir\
30761        platforms/slackware/functions.bacula"
30762   ;;
30763 solaris)
30764    DISTVER=`uname -r`
30765    TAPEDRIVE="/dev/rmt/0cbn"
30766    PSCMD="ps -e -o pid,comm"
30767    PFILES="${PFILES} \
30768        platforms/solaris/Makefile \
30769        platforms/solaris/bacula-fd \
30770        platforms/solaris/bacula-sd \
30771        platforms/solaris/bacula-dir"
30772    COMPRESS_MANPAGES=
30773    case ${DISTVER} in
30774    5.5|5.6)
30775       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30776
30777       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30778
30779       ;;
30780    5.7|5.8)
30781       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30782
30783       ;;
30784    *)
30785       ;;
30786    esac
30787    LIBS="$LIBS -lresolv -lrt"
30788   ;;
30789 suse)
30790    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30791        cut -f 3 -d ' '`
30792    TAPEDRIVE="/dev/nst0"
30793    PSCMD="ps -e -o pid,command"
30794    PFILES="${PFILES} \
30795        platforms/suse/Makefile \
30796        platforms/suse/bacula-fd \
30797        platforms/suse/bacula-sd \
30798        platforms/suse/bacula-dir \
30799        platforms/suse/bacula"
30800   ;;
30801 suse5)
30802    DISTNAME=suse
30803    DISTVER=5.x
30804    TAPEDRIVE="/dev/nst0"
30805    PSCMD="ps -e -o pid,command"
30806    PFILES="${PFILES} \
30807        platforms/suse/Makefile \
30808        platforms/suse/bacula-fd \
30809        platforms/suse/bacula-sd \
30810        platforms/suse/bacula-dir"
30811   ;;
30812 unknown)
30813    DISTVER=unknown
30814    TAPEDRIVE="/dev/nst0"
30815   ;;
30816 *)
30817   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30818   ;;
30819 esac
30820
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30822 $as_echo_n "checking for systemd support... " >&6; }
30823
30824 # Check whether --with-systemd was given.
30825 if test "${with_systemd+set}" = set; then :
30826   withval=$with_systemd;
30827        if test "$withval" != "no"; then
30828            if test "$withval" = "yes"; then
30829                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30830            else
30831                SYSTEMD_UNITDIR="${withval}"
30832            fi
30833
30834            PFILES="${PFILES} \
30835                    platforms/systemd/Makefile \
30836                    platforms/systemd/bacula-dir.service \
30837                    platforms/systemd/bacula-fd.service \
30838                    platforms/systemd/bacula-sd.service"
30839
30840 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30841
30842            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843 $as_echo "yes" >&6; }
30844            support_systemd="yes"
30845        else
30846            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30847 $as_echo "no" >&6; }
30848            support_systemd="no"
30849        fi
30850
30851 else
30852
30853        support_systemd="no"
30854        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30855 $as_echo "no" >&6; }
30856
30857
30858 fi
30859
30860
30861
30862
30863
30864 LIBS="$PTHREAD_LIB $LIBS"
30865
30866 cat >>confdefs.h <<_ACEOF
30867 #define lld "$lld"
30868 _ACEOF
30869
30870 cat >>confdefs.h <<_ACEOF
30871 #define llu "$llu"
30872 _ACEOF
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882 MCOMMON=./autoconf/Make.common
30883
30884
30885 if test "x${subsysdir}" = "x${sbindir}" ; then
30886    echo " "
30887    echo " "
30888    echo "You have set both --sbindir and --with-subsys-dir"
30889    echo "  equal to: ${subsysdir} "
30890    echo "This is not permitted. Please reconfigure."
30891    echo " "
30892    echo "Aborting configuration ..."
30893    echo " "
30894    echo " "
30895    exit 1
30896 fi
30897
30898
30899 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 updatedb/update_mysql_tables_12_to_13 updatedb/update_postgresql_tables_12_to_13 updatedb/update_mysql_tables_13_to_14 updatedb/update_postgresql_tables_13_to_14 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"
30900
30901 ac_config_commands="$ac_config_commands default"
30902
30903 cat >confcache <<\_ACEOF
30904 # This file is a shell script that caches the results of configure
30905 # tests run on this system so they can be shared between configure
30906 # scripts and configure runs, see configure's option --config-cache.
30907 # It is not useful on other systems.  If it contains results you don't
30908 # want to keep, you may remove or edit it.
30909 #
30910 # config.status only pays attention to the cache file if you give it
30911 # the --recheck option to rerun configure.
30912 #
30913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30915 # following values.
30916
30917 _ACEOF
30918
30919 # The following way of writing the cache mishandles newlines in values,
30920 # but we know of no workaround that is simple, portable, and efficient.
30921 # So, we kill variables containing newlines.
30922 # Ultrix sh set writes to stderr and can't be redirected directly,
30923 # and sets the high bit in the cache file unless we assign to the vars.
30924 (
30925   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30926     eval ac_val=\$$ac_var
30927     case $ac_val in #(
30928     *${as_nl}*)
30929       case $ac_var in #(
30930       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30932       esac
30933       case $ac_var in #(
30934       _ | IFS | as_nl) ;; #(
30935       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30936       *) { eval $ac_var=; unset $ac_var;} ;;
30937       esac ;;
30938     esac
30939   done
30940
30941   (set) 2>&1 |
30942     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30943     *${as_nl}ac_space=\ *)
30944       # `set' does not quote correctly, so add quotes: double-quote
30945       # substitution turns \\\\ into \\, and sed turns \\ into \.
30946       sed -n \
30947         "s/'/'\\\\''/g;
30948           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30949       ;; #(
30950     *)
30951       # `set' quotes correctly as required by POSIX, so do not add quotes.
30952       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30953       ;;
30954     esac |
30955     sort
30956 ) |
30957   sed '
30958      /^ac_cv_env_/b end
30959      t clear
30960      :clear
30961      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30962      t end
30963      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30964      :end' >>confcache
30965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30966   if test -w "$cache_file"; then
30967     if test "x$cache_file" != "x/dev/null"; then
30968       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30969 $as_echo "$as_me: updating cache $cache_file" >&6;}
30970       if test ! -f "$cache_file" || test -h "$cache_file"; then
30971         cat confcache >"$cache_file"
30972       else
30973         case $cache_file in #(
30974         */* | ?:*)
30975           mv -f confcache "$cache_file"$$ &&
30976           mv -f "$cache_file"$$ "$cache_file" ;; #(
30977         *)
30978           mv -f confcache "$cache_file" ;;
30979         esac
30980       fi
30981     fi
30982   else
30983     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30985   fi
30986 fi
30987 rm -f confcache
30988
30989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30990 # Let make expand exec_prefix.
30991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30992
30993 DEFS=-DHAVE_CONFIG_H
30994
30995 ac_libobjs=
30996 ac_ltlibobjs=
30997 U=
30998 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30999   # 1. Remove the extension, and $U if already installed.
31000   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31001   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31002   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31003   #    will be set to the directory where LIBOBJS objects are built.
31004   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31005   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31006 done
31007 LIBOBJS=$ac_libobjs
31008
31009 LTLIBOBJS=$ac_ltlibobjs
31010
31011
31012
31013
31014 : "${CONFIG_STATUS=./config.status}"
31015 ac_write_fail=0
31016 ac_clean_files_save=$ac_clean_files
31017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31019 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31020 as_write_fail=0
31021 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31022 #! $SHELL
31023 # Generated by $as_me.
31024 # Run this file to recreate the current configuration.
31025 # Compiler output produced by configure, useful for debugging
31026 # configure, is in config.log if it exists.
31027
31028 debug=false
31029 ac_cs_recheck=false
31030 ac_cs_silent=false
31031
31032 SHELL=\${CONFIG_SHELL-$SHELL}
31033 export SHELL
31034 _ASEOF
31035 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31036 ## -------------------- ##
31037 ## M4sh Initialization. ##
31038 ## -------------------- ##
31039
31040 # Be more Bourne compatible
31041 DUALCASE=1; export DUALCASE # for MKS sh
31042 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31043   emulate sh
31044   NULLCMD=:
31045   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31046   # is contrary to our usage.  Disable this feature.
31047   alias -g '${1+"$@"}'='"$@"'
31048   setopt NO_GLOB_SUBST
31049 else
31050   case `(set -o) 2>/dev/null` in #(
31051   *posix*) :
31052     set -o posix ;; #(
31053   *) :
31054      ;;
31055 esac
31056 fi
31057
31058
31059 as_nl='
31060 '
31061 export as_nl
31062 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31063 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31066 # Prefer a ksh shell builtin over an external printf program on Solaris,
31067 # but without wasting forks for bash or zsh.
31068 if test -z "$BASH_VERSION$ZSH_VERSION" \
31069     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31070   as_echo='print -r --'
31071   as_echo_n='print -rn --'
31072 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31073   as_echo='printf %s\n'
31074   as_echo_n='printf %s'
31075 else
31076   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31077     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31078     as_echo_n='/usr/ucb/echo -n'
31079   else
31080     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31081     as_echo_n_body='eval
31082       arg=$1;
31083       case $arg in #(
31084       *"$as_nl"*)
31085         expr "X$arg" : "X\\(.*\\)$as_nl";
31086         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31087       esac;
31088       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31089     '
31090     export as_echo_n_body
31091     as_echo_n='sh -c $as_echo_n_body as_echo'
31092   fi
31093   export as_echo_body
31094   as_echo='sh -c $as_echo_body as_echo'
31095 fi
31096
31097 # The user is always right.
31098 if test "${PATH_SEPARATOR+set}" != set; then
31099   PATH_SEPARATOR=:
31100   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31101     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31102       PATH_SEPARATOR=';'
31103   }
31104 fi
31105
31106
31107 # IFS
31108 # We need space, tab and new line, in precisely that order.  Quoting is
31109 # there to prevent editors from complaining about space-tab.
31110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31111 # splitting by setting IFS to empty value.)
31112 IFS=" ""        $as_nl"
31113
31114 # Find who we are.  Look in the path if we contain no directory separator.
31115 as_myself=
31116 case $0 in #((
31117   *[\\/]* ) as_myself=$0 ;;
31118   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31119 for as_dir in $PATH
31120 do
31121   IFS=$as_save_IFS
31122   test -z "$as_dir" && as_dir=.
31123     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31124   done
31125 IFS=$as_save_IFS
31126
31127      ;;
31128 esac
31129 # We did not find ourselves, most probably we were run as `sh COMMAND'
31130 # in which case we are not to be found in the path.
31131 if test "x$as_myself" = x; then
31132   as_myself=$0
31133 fi
31134 if test ! -f "$as_myself"; then
31135   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31136   exit 1
31137 fi
31138
31139 # Unset variables that we do not need and which cause bugs (e.g. in
31140 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31141 # suppresses any "Segmentation fault" message there.  '((' could
31142 # trigger a bug in pdksh 5.2.14.
31143 for as_var in BASH_ENV ENV MAIL MAILPATH
31144 do eval test x\${$as_var+set} = xset \
31145   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31146 done
31147 PS1='$ '
31148 PS2='> '
31149 PS4='+ '
31150
31151 # NLS nuisances.
31152 LC_ALL=C
31153 export LC_ALL
31154 LANGUAGE=C
31155 export LANGUAGE
31156
31157 # CDPATH.
31158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31159
31160
31161 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31162 # ----------------------------------------
31163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31165 # script with STATUS, using 1 if that was 0.
31166 as_fn_error ()
31167 {
31168   as_status=$1; test $as_status -eq 0 && as_status=1
31169   if test "$4"; then
31170     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31171     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31172   fi
31173   $as_echo "$as_me: error: $2" >&2
31174   as_fn_exit $as_status
31175 } # as_fn_error
31176
31177
31178 # as_fn_set_status STATUS
31179 # -----------------------
31180 # Set $? to STATUS, without forking.
31181 as_fn_set_status ()
31182 {
31183   return $1
31184 } # as_fn_set_status
31185
31186 # as_fn_exit STATUS
31187 # -----------------
31188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31189 as_fn_exit ()
31190 {
31191   set +e
31192   as_fn_set_status $1
31193   exit $1
31194 } # as_fn_exit
31195
31196 # as_fn_unset VAR
31197 # ---------------
31198 # Portably unset VAR.
31199 as_fn_unset ()
31200 {
31201   { eval $1=; unset $1;}
31202 }
31203 as_unset=as_fn_unset
31204 # as_fn_append VAR VALUE
31205 # ----------------------
31206 # Append the text in VALUE to the end of the definition contained in VAR. Take
31207 # advantage of any shell optimizations that allow amortized linear growth over
31208 # repeated appends, instead of the typical quadratic growth present in naive
31209 # implementations.
31210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31211   eval 'as_fn_append ()
31212   {
31213     eval $1+=\$2
31214   }'
31215 else
31216   as_fn_append ()
31217   {
31218     eval $1=\$$1\$2
31219   }
31220 fi # as_fn_append
31221
31222 # as_fn_arith ARG...
31223 # ------------------
31224 # Perform arithmetic evaluation on the ARGs, and store the result in the
31225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31226 # must be portable across $(()) and expr.
31227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31228   eval 'as_fn_arith ()
31229   {
31230     as_val=$(( $* ))
31231   }'
31232 else
31233   as_fn_arith ()
31234   {
31235     as_val=`expr "$@" || test $? -eq 1`
31236   }
31237 fi # as_fn_arith
31238
31239
31240 if expr a : '\(a\)' >/dev/null 2>&1 &&
31241    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31242   as_expr=expr
31243 else
31244   as_expr=false
31245 fi
31246
31247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31248   as_basename=basename
31249 else
31250   as_basename=false
31251 fi
31252
31253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31254   as_dirname=dirname
31255 else
31256   as_dirname=false
31257 fi
31258
31259 as_me=`$as_basename -- "$0" ||
31260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31261          X"$0" : 'X\(//\)$' \| \
31262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31263 $as_echo X/"$0" |
31264     sed '/^.*\/\([^/][^/]*\)\/*$/{
31265             s//\1/
31266             q
31267           }
31268           /^X\/\(\/\/\)$/{
31269             s//\1/
31270             q
31271           }
31272           /^X\/\(\/\).*/{
31273             s//\1/
31274             q
31275           }
31276           s/.*/./; q'`
31277
31278 # Avoid depending upon Character Ranges.
31279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31282 as_cr_digits='0123456789'
31283 as_cr_alnum=$as_cr_Letters$as_cr_digits
31284
31285 ECHO_C= ECHO_N= ECHO_T=
31286 case `echo -n x` in #(((((
31287 -n*)
31288   case `echo 'xy\c'` in
31289   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31290   xy)  ECHO_C='\c';;
31291   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31292        ECHO_T=' ';;
31293   esac;;
31294 *)
31295   ECHO_N='-n';;
31296 esac
31297
31298 rm -f conf$$ conf$$.exe conf$$.file
31299 if test -d conf$$.dir; then
31300   rm -f conf$$.dir/conf$$.file
31301 else
31302   rm -f conf$$.dir
31303   mkdir conf$$.dir 2>/dev/null
31304 fi
31305 if (echo >conf$$.file) 2>/dev/null; then
31306   if ln -s conf$$.file conf$$ 2>/dev/null; then
31307     as_ln_s='ln -s'
31308     # ... but there are two gotchas:
31309     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31310     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31311     # In both cases, we have to default to `cp -pR'.
31312     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31313       as_ln_s='cp -pR'
31314   elif ln conf$$.file conf$$ 2>/dev/null; then
31315     as_ln_s=ln
31316   else
31317     as_ln_s='cp -pR'
31318   fi
31319 else
31320   as_ln_s='cp -pR'
31321 fi
31322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31323 rmdir conf$$.dir 2>/dev/null
31324
31325
31326 # as_fn_mkdir_p
31327 # -------------
31328 # Create "$as_dir" as a directory, including parents if necessary.
31329 as_fn_mkdir_p ()
31330 {
31331
31332   case $as_dir in #(
31333   -*) as_dir=./$as_dir;;
31334   esac
31335   test -d "$as_dir" || eval $as_mkdir_p || {
31336     as_dirs=
31337     while :; do
31338       case $as_dir in #(
31339       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31340       *) as_qdir=$as_dir;;
31341       esac
31342       as_dirs="'$as_qdir' $as_dirs"
31343       as_dir=`$as_dirname -- "$as_dir" ||
31344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31345          X"$as_dir" : 'X\(//\)[^/]' \| \
31346          X"$as_dir" : 'X\(//\)$' \| \
31347          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31348 $as_echo X"$as_dir" |
31349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31350             s//\1/
31351             q
31352           }
31353           /^X\(\/\/\)[^/].*/{
31354             s//\1/
31355             q
31356           }
31357           /^X\(\/\/\)$/{
31358             s//\1/
31359             q
31360           }
31361           /^X\(\/\).*/{
31362             s//\1/
31363             q
31364           }
31365           s/.*/./; q'`
31366       test -d "$as_dir" && break
31367     done
31368     test -z "$as_dirs" || eval "mkdir $as_dirs"
31369   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31370
31371
31372 } # as_fn_mkdir_p
31373 if mkdir -p . 2>/dev/null; then
31374   as_mkdir_p='mkdir -p "$as_dir"'
31375 else
31376   test -d ./-p && rmdir ./-p
31377   as_mkdir_p=false
31378 fi
31379
31380
31381 # as_fn_executable_p FILE
31382 # -----------------------
31383 # Test if FILE is an executable regular file.
31384 as_fn_executable_p ()
31385 {
31386   test -f "$1" && test -x "$1"
31387 } # as_fn_executable_p
31388 as_test_x='test -x'
31389 as_executable_p=as_fn_executable_p
31390
31391 # Sed expression to map a string onto a valid CPP name.
31392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31393
31394 # Sed expression to map a string onto a valid variable name.
31395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31396
31397
31398 exec 6>&1
31399 ## ----------------------------------- ##
31400 ## Main body of $CONFIG_STATUS script. ##
31401 ## ----------------------------------- ##
31402 _ASEOF
31403 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31404
31405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31406 # Save the log message, to keep $0 and so on meaningful, and to
31407 # report actual input values of CONFIG_FILES etc. instead of their
31408 # values after options handling.
31409 ac_log="
31410 This file was extended by bacula $as_me 7.2.0, which was
31411 generated by GNU Autoconf 2.69.  Invocation command line was
31412
31413   CONFIG_FILES    = $CONFIG_FILES
31414   CONFIG_HEADERS  = $CONFIG_HEADERS
31415   CONFIG_LINKS    = $CONFIG_LINKS
31416   CONFIG_COMMANDS = $CONFIG_COMMANDS
31417   $ $0 $@
31418
31419 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31420 "
31421
31422 _ACEOF
31423
31424 case $ac_config_files in *"
31425 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31426 esac
31427
31428 case $ac_config_headers in *"
31429 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31430 esac
31431
31432
31433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31434 # Files that config.status was made for.
31435 config_files="$ac_config_files"
31436 config_headers="$ac_config_headers"
31437 config_commands="$ac_config_commands"
31438
31439 _ACEOF
31440
31441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31442 ac_cs_usage="\
31443 \`$as_me' instantiates files and other configuration actions
31444 from templates according to the current configuration.  Unless the files
31445 and actions are specified as TAGs, all are instantiated by default.
31446
31447 Usage: $0 [OPTION]... [TAG]...
31448
31449   -h, --help       print this help, then exit
31450   -V, --version    print version number and configuration settings, then exit
31451       --config     print configuration, then exit
31452   -q, --quiet, --silent
31453                    do not print progress messages
31454   -d, --debug      don't remove temporary files
31455       --recheck    update $as_me by reconfiguring in the same conditions
31456       --file=FILE[:TEMPLATE]
31457                    instantiate the configuration file FILE
31458       --header=FILE[:TEMPLATE]
31459                    instantiate the configuration header FILE
31460
31461 Configuration files:
31462 $config_files
31463
31464 Configuration headers:
31465 $config_headers
31466
31467 Configuration commands:
31468 $config_commands
31469
31470 Report bugs to the package provider."
31471
31472 _ACEOF
31473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31474 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31475 ac_cs_version="\\
31476 bacula config.status 7.2.0
31477 configured by $0, generated by GNU Autoconf 2.69,
31478   with options \\"\$ac_cs_config\\"
31479
31480 Copyright (C) 2012 Free Software Foundation, Inc.
31481 This config.status script is free software; the Free Software Foundation
31482 gives unlimited permission to copy, distribute and modify it."
31483
31484 ac_pwd='$ac_pwd'
31485 srcdir='$srcdir'
31486 INSTALL='$INSTALL'
31487 AWK='$AWK'
31488 test -n "\$AWK" || AWK=awk
31489 _ACEOF
31490
31491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31492 # The default lists apply if the user does not specify any file.
31493 ac_need_defaults=:
31494 while test $# != 0
31495 do
31496   case $1 in
31497   --*=?*)
31498     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31499     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31500     ac_shift=:
31501     ;;
31502   --*=)
31503     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31504     ac_optarg=
31505     ac_shift=:
31506     ;;
31507   *)
31508     ac_option=$1
31509     ac_optarg=$2
31510     ac_shift=shift
31511     ;;
31512   esac
31513
31514   case $ac_option in
31515   # Handling of the options.
31516   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31517     ac_cs_recheck=: ;;
31518   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31519     $as_echo "$ac_cs_version"; exit ;;
31520   --config | --confi | --conf | --con | --co | --c )
31521     $as_echo "$ac_cs_config"; exit ;;
31522   --debug | --debu | --deb | --de | --d | -d )
31523     debug=: ;;
31524   --file | --fil | --fi | --f )
31525     $ac_shift
31526     case $ac_optarg in
31527     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31528     '') as_fn_error $? "missing file argument" ;;
31529     esac
31530     as_fn_append CONFIG_FILES " '$ac_optarg'"
31531     ac_need_defaults=false;;
31532   --header | --heade | --head | --hea )
31533     $ac_shift
31534     case $ac_optarg in
31535     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31536     esac
31537     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31538     ac_need_defaults=false;;
31539   --he | --h)
31540     # Conflict between --help and --header
31541     as_fn_error $? "ambiguous option: \`$1'
31542 Try \`$0 --help' for more information.";;
31543   --help | --hel | -h )
31544     $as_echo "$ac_cs_usage"; exit ;;
31545   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31546   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31547     ac_cs_silent=: ;;
31548
31549   # This is an error.
31550   -*) as_fn_error $? "unrecognized option: \`$1'
31551 Try \`$0 --help' for more information." ;;
31552
31553   *) as_fn_append ac_config_targets " $1"
31554      ac_need_defaults=false ;;
31555
31556   esac
31557   shift
31558 done
31559
31560 ac_configure_extra_args=
31561
31562 if $ac_cs_silent; then
31563   exec 6>/dev/null
31564   ac_configure_extra_args="$ac_configure_extra_args --silent"
31565 fi
31566
31567 _ACEOF
31568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31569 if \$ac_cs_recheck; then
31570   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31571   shift
31572   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31573   CONFIG_SHELL='$SHELL'
31574   export CONFIG_SHELL
31575   exec "\$@"
31576 fi
31577
31578 _ACEOF
31579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31580 exec 5>>config.log
31581 {
31582   echo
31583   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31584 ## Running $as_me. ##
31585 _ASBOX
31586   $as_echo "$ac_log"
31587 } >&5
31588
31589 _ACEOF
31590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31591 #
31592 # INIT-COMMANDS
31593 #
31594
31595
31596 # The HP-UX ksh and POSIX shell print the target directory to stdout
31597 # if CDPATH is set.
31598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31599
31600 sed_quote_subst='$sed_quote_subst'
31601 double_quote_subst='$double_quote_subst'
31602 delay_variable_subst='$delay_variable_subst'
31603 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31604 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31605 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31606 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31607 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31608 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31609 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31610 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31611 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31612 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31613 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31614 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31615 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31616 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31617 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31618 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31619 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31620 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31621 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31622 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31623 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31624 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31625 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31626 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31627 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31628 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31629 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31630 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31631 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31632 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31633 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31634 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31635 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31636 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31637 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31638 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31639 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31640 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31641 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31642 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31643 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31644 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31645 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31646 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31647 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31648 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31649 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31650 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31651 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31652 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31653 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31654 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31655 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31656 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31657 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31659 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"`'
31660 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31661 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31662 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31663 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31664 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31665 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31666 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31667 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31668 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31669 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31670 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31671 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31672 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31673 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31674 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31675 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31676 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31677 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31678 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31679 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31680 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31681 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31682 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31683 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31684 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31685 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31686 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31687 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31688 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31689 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31690 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31691 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31692 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31693 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31694 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31695 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31696 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31697 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31698 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31699 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31700 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31701 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31702 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31703 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31704 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31705 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31706 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31707 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31708 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31709 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31710 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31711 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31712 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31713 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31714 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31715 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31716 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31717 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31718 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31719 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31720 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31721 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31722 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31723 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31724 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31725 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31726 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31727 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31728 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31729 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31730 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31731 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31732 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31733 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31734 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31735 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31736 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31737 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31738 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31739 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31740 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31741 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31742 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31743 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31744 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31745 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31746 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31747 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31748 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31750 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31751 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31752 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31753 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31754 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31755 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31756 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31757 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31758 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31759 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31762 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31763 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31764 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31765 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31766 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31767 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31771 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31772 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31773 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31774 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31775 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31776 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31777 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31778 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31779 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31780 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31781 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31782 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31783 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31784 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31785 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31787
31788 LTCC='$LTCC'
31789 LTCFLAGS='$LTCFLAGS'
31790 compiler='$compiler_DEFAULT'
31791
31792 # A function that is used when there is no print builtin or printf.
31793 func_fallback_echo ()
31794 {
31795   eval 'cat <<_LTECHO_EOF
31796 \$1
31797 _LTECHO_EOF'
31798 }
31799
31800 # Quote evaled strings.
31801 for var in SHELL \
31802 ECHO \
31803 PATH_SEPARATOR \
31804 SED \
31805 GREP \
31806 EGREP \
31807 FGREP \
31808 LD \
31809 NM \
31810 LN_S \
31811 lt_SP2NL \
31812 lt_NL2SP \
31813 reload_flag \
31814 OBJDUMP \
31815 deplibs_check_method \
31816 file_magic_cmd \
31817 file_magic_glob \
31818 want_nocaseglob \
31819 DLLTOOL \
31820 sharedlib_from_linklib_cmd \
31821 AR \
31822 AR_FLAGS \
31823 archiver_list_spec \
31824 STRIP \
31825 RANLIB \
31826 CC \
31827 CFLAGS \
31828 compiler \
31829 lt_cv_sys_global_symbol_pipe \
31830 lt_cv_sys_global_symbol_to_cdecl \
31831 lt_cv_sys_global_symbol_to_c_name_address \
31832 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31833 nm_file_list_spec \
31834 lt_prog_compiler_no_builtin_flag \
31835 lt_prog_compiler_pic \
31836 lt_prog_compiler_wl \
31837 lt_prog_compiler_static \
31838 lt_cv_prog_compiler_c_o \
31839 need_locks \
31840 MANIFEST_TOOL \
31841 DSYMUTIL \
31842 NMEDIT \
31843 LIPO \
31844 OTOOL \
31845 OTOOL64 \
31846 shrext_cmds \
31847 export_dynamic_flag_spec \
31848 whole_archive_flag_spec \
31849 compiler_needs_object \
31850 with_gnu_ld \
31851 allow_undefined_flag \
31852 no_undefined_flag \
31853 hardcode_libdir_flag_spec \
31854 hardcode_libdir_separator \
31855 exclude_expsyms \
31856 include_expsyms \
31857 file_list_spec \
31858 variables_saved_for_relink \
31859 libname_spec \
31860 library_names_spec \
31861 soname_spec \
31862 install_override_mode \
31863 finish_eval \
31864 old_striplib \
31865 striplib \
31866 compiler_lib_search_dirs \
31867 predep_objects \
31868 postdep_objects \
31869 predeps \
31870 postdeps \
31871 compiler_lib_search_path \
31872 LD_CXX \
31873 reload_flag_CXX \
31874 compiler_CXX \
31875 lt_prog_compiler_no_builtin_flag_CXX \
31876 lt_prog_compiler_pic_CXX \
31877 lt_prog_compiler_wl_CXX \
31878 lt_prog_compiler_static_CXX \
31879 lt_cv_prog_compiler_c_o_CXX \
31880 export_dynamic_flag_spec_CXX \
31881 whole_archive_flag_spec_CXX \
31882 compiler_needs_object_CXX \
31883 with_gnu_ld_CXX \
31884 allow_undefined_flag_CXX \
31885 no_undefined_flag_CXX \
31886 hardcode_libdir_flag_spec_CXX \
31887 hardcode_libdir_separator_CXX \
31888 exclude_expsyms_CXX \
31889 include_expsyms_CXX \
31890 file_list_spec_CXX \
31891 compiler_lib_search_dirs_CXX \
31892 predep_objects_CXX \
31893 postdep_objects_CXX \
31894 predeps_CXX \
31895 postdeps_CXX \
31896 compiler_lib_search_path_CXX; do
31897     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31898     *[\\\\\\\`\\"\\\$]*)
31899       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31900       ;;
31901     *)
31902       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31903       ;;
31904     esac
31905 done
31906
31907 # Double-quote double-evaled strings.
31908 for var in reload_cmds \
31909 old_postinstall_cmds \
31910 old_postuninstall_cmds \
31911 old_archive_cmds \
31912 extract_expsyms_cmds \
31913 old_archive_from_new_cmds \
31914 old_archive_from_expsyms_cmds \
31915 archive_cmds \
31916 archive_expsym_cmds \
31917 module_cmds \
31918 module_expsym_cmds \
31919 export_symbols_cmds \
31920 prelink_cmds \
31921 postlink_cmds \
31922 postinstall_cmds \
31923 postuninstall_cmds \
31924 finish_cmds \
31925 sys_lib_search_path_spec \
31926 sys_lib_dlsearch_path_spec \
31927 reload_cmds_CXX \
31928 old_archive_cmds_CXX \
31929 old_archive_from_new_cmds_CXX \
31930 old_archive_from_expsyms_cmds_CXX \
31931 archive_cmds_CXX \
31932 archive_expsym_cmds_CXX \
31933 module_cmds_CXX \
31934 module_expsym_cmds_CXX \
31935 export_symbols_cmds_CXX \
31936 prelink_cmds_CXX \
31937 postlink_cmds_CXX; do
31938     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31939     *[\\\\\\\`\\"\\\$]*)
31940       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31941       ;;
31942     *)
31943       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31944       ;;
31945     esac
31946 done
31947
31948 ac_aux_dir='$ac_aux_dir'
31949 xsi_shell='$xsi_shell'
31950 lt_shell_append='$lt_shell_append'
31951
31952 # See if we are running on zsh, and set the options which allow our
31953 # commands through without removal of \ escapes INIT.
31954 if test -n "\${ZSH_VERSION+set}" ; then
31955    setopt NO_GLOB_SUBST
31956 fi
31957
31958
31959     PACKAGE='$PACKAGE'
31960     VERSION='$VERSION'
31961     TIMESTAMP='$TIMESTAMP'
31962     RM='$RM'
31963     ofile='$ofile'
31964
31965
31966
31967
31968
31969 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31970     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31971     # from automake.
31972     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31973     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31974     LINGUAS="${LINGUAS-%UNSET%}"
31975
31976
31977 _ACEOF
31978
31979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31980
31981 # Handling of arguments.
31982 for ac_config_target in $ac_config_targets
31983 do
31984   case $ac_config_target in
31985     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31986     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31987     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31988     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31989     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31990     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31991     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31992     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31993     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31994     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31995     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31996     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31997     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31998     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31999     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32000     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32001     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32002     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32003     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32004     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32005     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32006     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32007     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32008     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32009     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32010     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32011     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32012     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32013     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32014     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32015     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32016     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32017     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32018     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32019     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32020     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32021     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32022     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32023     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32024     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32025     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32026     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32027     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32028     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32029     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32030     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32031     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32032     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32033     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32034     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32035     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32036     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32037     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32038     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32039     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32040     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32041     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32042     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32043     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32044     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32045     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32046     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32047     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32048     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32049     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32050     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32051     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32052     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32053     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32054     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32055     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32056     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32057     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32058     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32059     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32060     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32061     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32062     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32063     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32064     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32065     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32066     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32067     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32068     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32069     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32070     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32071     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32072     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32073     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32074     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32075     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32076     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32077     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32078     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32079     "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32080     "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32081     "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32082     "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32083     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32084     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32085     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32086     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32087     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32088     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32089     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32090     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32091     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32092     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32093     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32094
32095   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32096   esac
32097 done
32098
32099
32100 # If the user did not use the arguments to specify the items to instantiate,
32101 # then the envvar interface is used.  Set only those that are not.
32102 # We use the long form for the default assignment because of an extremely
32103 # bizarre bug on SunOS 4.1.3.
32104 if $ac_need_defaults; then
32105   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32106   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32107   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32108 fi
32109
32110 # Have a temporary directory for convenience.  Make it in the build tree
32111 # simply because there is no reason against having it here, and in addition,
32112 # creating and moving files from /tmp can sometimes cause problems.
32113 # Hook for its removal unless debugging.
32114 # Note that there is a small window in which the directory will not be cleaned:
32115 # after its creation but before its name has been assigned to `$tmp'.
32116 $debug ||
32117 {
32118   tmp= ac_tmp=
32119   trap 'exit_status=$?
32120   : "${ac_tmp:=$tmp}"
32121   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32122 ' 0
32123   trap 'as_fn_exit 1' 1 2 13 15
32124 }
32125 # Create a (secure) tmp directory for tmp files.
32126
32127 {
32128   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32129   test -d "$tmp"
32130 }  ||
32131 {
32132   tmp=./conf$$-$RANDOM
32133   (umask 077 && mkdir "$tmp")
32134 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32135 ac_tmp=$tmp
32136
32137 # Set up the scripts for CONFIG_FILES section.
32138 # No need to generate them if there are no CONFIG_FILES.
32139 # This happens for instance with `./config.status config.h'.
32140 if test -n "$CONFIG_FILES"; then
32141
32142 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32143   ac_cs_awk_getline=:
32144   ac_cs_awk_pipe_init=
32145   ac_cs_awk_read_file='
32146       while ((getline aline < (F[key])) > 0)
32147         print(aline)
32148       close(F[key])'
32149   ac_cs_awk_pipe_fini=
32150 else
32151   ac_cs_awk_getline=false
32152   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32153   ac_cs_awk_read_file='
32154       print "|#_!!_#|"
32155       print "cat " F[key] " &&"
32156       '$ac_cs_awk_pipe_init
32157   # The final `:' finishes the AND list.
32158   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32159 fi
32160 ac_cr=`echo X | tr X '\015'`
32161 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32162 # But we know of no other shell where ac_cr would be empty at this
32163 # point, so we can use a bashism as a fallback.
32164 if test "x$ac_cr" = x; then
32165   eval ac_cr=\$\'\\r\'
32166 fi
32167 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32168 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32169   ac_cs_awk_cr='\\r'
32170 else
32171   ac_cs_awk_cr=$ac_cr
32172 fi
32173
32174 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32175 _ACEOF
32176
32177 # Create commands to substitute file output variables.
32178 {
32179   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32180   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32181   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32182   echo "_ACAWK" &&
32183   echo "_ACEOF"
32184 } >conf$$files.sh &&
32185 . ./conf$$files.sh ||
32186   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32187 rm -f conf$$files.sh
32188
32189 {
32190   echo "cat >conf$$subs.awk <<_ACEOF" &&
32191   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32192   echo "_ACEOF"
32193 } >conf$$subs.sh ||
32194   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32195 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32196 ac_delim='%!_!# '
32197 for ac_last_try in false false false false false :; do
32198   . ./conf$$subs.sh ||
32199     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32200
32201   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32202   if test $ac_delim_n = $ac_delim_num; then
32203     break
32204   elif $ac_last_try; then
32205     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32206   else
32207     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32208   fi
32209 done
32210 rm -f conf$$subs.sh
32211
32212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32213 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32214 _ACEOF
32215 sed -n '
32216 h
32217 s/^/S["/; s/!.*/"]=/
32218 p
32219 g
32220 s/^[^!]*!//
32221 :repl
32222 t repl
32223 s/'"$ac_delim"'$//
32224 t delim
32225 :nl
32226 h
32227 s/\(.\{148\}\)..*/\1/
32228 t more1
32229 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32230 p
32231 n
32232 b repl
32233 :more1
32234 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32235 p
32236 g
32237 s/.\{148\}//
32238 t nl
32239 :delim
32240 h
32241 s/\(.\{148\}\)..*/\1/
32242 t more2
32243 s/["\\]/\\&/g; s/^/"/; s/$/"/
32244 p
32245 b
32246 :more2
32247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32248 p
32249 g
32250 s/.\{148\}//
32251 t delim
32252 ' <conf$$subs.awk | sed '
32253 /^[^""]/{
32254   N
32255   s/\n//
32256 }
32257 ' >>$CONFIG_STATUS || ac_write_fail=1
32258 rm -f conf$$subs.awk
32259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32260 _ACAWK
32261 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32262   for (key in S) S_is_set[key] = 1
32263   FS = "\a"
32264   \$ac_cs_awk_pipe_init
32265 }
32266 {
32267   line = $ 0
32268   nfields = split(line, field, "@")
32269   substed = 0
32270   len = length(field[1])
32271   for (i = 2; i < nfields; i++) {
32272     key = field[i]
32273     keylen = length(key)
32274     if (S_is_set[key]) {
32275       value = S[key]
32276       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32277       len += length(value) + length(field[++i])
32278       substed = 1
32279     } else
32280       len += 1 + keylen
32281   }
32282   if (nfields == 3 && !substed) {
32283     key = field[2]
32284     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32285       \$ac_cs_awk_read_file
32286       next
32287     }
32288   }
32289   print line
32290 }
32291 \$ac_cs_awk_pipe_fini
32292 _ACAWK
32293 _ACEOF
32294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32296   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32297 else
32298   cat
32299 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32300   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32301 _ACEOF
32302
32303 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32304 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32305 # trailing colons and then remove the whole line if VPATH becomes empty
32306 # (actually we leave an empty line to preserve line numbers).
32307 if test "x$srcdir" = x.; then
32308   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32309 h
32310 s///
32311 s/^/:/
32312 s/[      ]*$/:/
32313 s/:\$(srcdir):/:/g
32314 s/:\${srcdir}:/:/g
32315 s/:@srcdir@:/:/g
32316 s/^:*//
32317 s/:*$//
32318 x
32319 s/\(=[   ]*\).*/\1/
32320 G
32321 s/\n//
32322 s/^[^=]*=[       ]*$//
32323 }'
32324 fi
32325
32326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32327 fi # test -n "$CONFIG_FILES"
32328
32329 # Set up the scripts for CONFIG_HEADERS section.
32330 # No need to generate them if there are no CONFIG_HEADERS.
32331 # This happens for instance with `./config.status Makefile'.
32332 if test -n "$CONFIG_HEADERS"; then
32333 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32334 BEGIN {
32335 _ACEOF
32336
32337 # Transform confdefs.h into an awk script `defines.awk', embedded as
32338 # here-document in config.status, that substitutes the proper values into
32339 # config.h.in to produce config.h.
32340
32341 # Create a delimiter string that does not exist in confdefs.h, to ease
32342 # handling of long lines.
32343 ac_delim='%!_!# '
32344 for ac_last_try in false false :; do
32345   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32346   if test -z "$ac_tt"; then
32347     break
32348   elif $ac_last_try; then
32349     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32350   else
32351     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32352   fi
32353 done
32354
32355 # For the awk script, D is an array of macro values keyed by name,
32356 # likewise P contains macro parameters if any.  Preserve backslash
32357 # newline sequences.
32358
32359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32360 sed -n '
32361 s/.\{148\}/&'"$ac_delim"'/g
32362 t rset
32363 :rset
32364 s/^[     ]*#[    ]*define[       ][      ]*/ /
32365 t def
32366 d
32367 :def
32368 s/\\$//
32369 t bsnl
32370 s/["\\]/\\&/g
32371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32372 D["\1"]=" \3"/p
32373 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32374 d
32375 :bsnl
32376 s/["\\]/\\&/g
32377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32378 D["\1"]=" \3\\\\\\n"\\/p
32379 t cont
32380 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32381 t cont
32382 d
32383 :cont
32384 n
32385 s/.\{148\}/&'"$ac_delim"'/g
32386 t clear
32387 :clear
32388 s/\\$//
32389 t bsnlc
32390 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32391 d
32392 :bsnlc
32393 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32394 b cont
32395 ' <confdefs.h | sed '
32396 s/'"$ac_delim"'/"\\\
32397 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32398
32399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32400   for (key in D) D_is_set[key] = 1
32401   FS = "\a"
32402 }
32403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32404   line = \$ 0
32405   split(line, arg, " ")
32406   if (arg[1] == "#") {
32407     defundef = arg[2]
32408     mac1 = arg[3]
32409   } else {
32410     defundef = substr(arg[1], 2)
32411     mac1 = arg[2]
32412   }
32413   split(mac1, mac2, "(") #)
32414   macro = mac2[1]
32415   prefix = substr(line, 1, index(line, defundef) - 1)
32416   if (D_is_set[macro]) {
32417     # Preserve the white space surrounding the "#".
32418     print prefix "define", macro P[macro] D[macro]
32419     next
32420   } else {
32421     # Replace #undef with comments.  This is necessary, for example,
32422     # in the case of _POSIX_SOURCE, which is predefined and required
32423     # on some systems where configure will not decide to define it.
32424     if (defundef == "undef") {
32425       print "/*", prefix defundef, macro, "*/"
32426       next
32427     }
32428   }
32429 }
32430 { print }
32431 _ACAWK
32432 _ACEOF
32433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32434   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32435 fi # test -n "$CONFIG_HEADERS"
32436
32437
32438 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32439 shift
32440 for ac_tag
32441 do
32442   case $ac_tag in
32443   :[FHLC]) ac_mode=$ac_tag; continue;;
32444   esac
32445   case $ac_mode$ac_tag in
32446   :[FHL]*:*);;
32447   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32448   :[FH]-) ac_tag=-:-;;
32449   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32450   esac
32451   ac_save_IFS=$IFS
32452   IFS=:
32453   set x $ac_tag
32454   IFS=$ac_save_IFS
32455   shift
32456   ac_file=$1
32457   shift
32458
32459   case $ac_mode in
32460   :L) ac_source=$1;;
32461   :[FH])
32462     ac_file_inputs=
32463     for ac_f
32464     do
32465       case $ac_f in
32466       -) ac_f="$ac_tmp/stdin";;
32467       *) # Look for the file first in the build tree, then in the source tree
32468          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32469          # because $ac_f cannot contain `:'.
32470          test -f "$ac_f" ||
32471            case $ac_f in
32472            [\\/$]*) false;;
32473            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32474            esac ||
32475            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32476       esac
32477       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32478       as_fn_append ac_file_inputs " '$ac_f'"
32479     done
32480
32481     # Let's still pretend it is `configure' which instantiates (i.e., don't
32482     # use $as_me), people would be surprised to read:
32483     #    /* config.h.  Generated by config.status.  */
32484     configure_input='Generated from '`
32485           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32486         `' by configure.'
32487     if test x"$ac_file" != x-; then
32488       configure_input="$ac_file.  $configure_input"
32489       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32490 $as_echo "$as_me: creating $ac_file" >&6;}
32491     fi
32492     # Neutralize special characters interpreted by sed in replacement strings.
32493     case $configure_input in #(
32494     *\&* | *\|* | *\\* )
32495        ac_sed_conf_input=`$as_echo "$configure_input" |
32496        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32497     *) ac_sed_conf_input=$configure_input;;
32498     esac
32499
32500     case $ac_tag in
32501     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32502       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32503     esac
32504     ;;
32505   esac
32506
32507   ac_dir=`$as_dirname -- "$ac_file" ||
32508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32509          X"$ac_file" : 'X\(//\)[^/]' \| \
32510          X"$ac_file" : 'X\(//\)$' \| \
32511          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32512 $as_echo X"$ac_file" |
32513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32514             s//\1/
32515             q
32516           }
32517           /^X\(\/\/\)[^/].*/{
32518             s//\1/
32519             q
32520           }
32521           /^X\(\/\/\)$/{
32522             s//\1/
32523             q
32524           }
32525           /^X\(\/\).*/{
32526             s//\1/
32527             q
32528           }
32529           s/.*/./; q'`
32530   as_dir="$ac_dir"; as_fn_mkdir_p
32531   ac_builddir=.
32532
32533 case "$ac_dir" in
32534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32535 *)
32536   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32537   # A ".." for each directory in $ac_dir_suffix.
32538   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32539   case $ac_top_builddir_sub in
32540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32542   esac ;;
32543 esac
32544 ac_abs_top_builddir=$ac_pwd
32545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32546 # for backward compatibility:
32547 ac_top_builddir=$ac_top_build_prefix
32548
32549 case $srcdir in
32550   .)  # We are building in place.
32551     ac_srcdir=.
32552     ac_top_srcdir=$ac_top_builddir_sub
32553     ac_abs_top_srcdir=$ac_pwd ;;
32554   [\\/]* | ?:[\\/]* )  # Absolute name.
32555     ac_srcdir=$srcdir$ac_dir_suffix;
32556     ac_top_srcdir=$srcdir
32557     ac_abs_top_srcdir=$srcdir ;;
32558   *) # Relative name.
32559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32560     ac_top_srcdir=$ac_top_build_prefix$srcdir
32561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32562 esac
32563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32564
32565
32566   case $ac_mode in
32567   :F)
32568   #
32569   # CONFIG_FILE
32570   #
32571
32572   case $INSTALL in
32573   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32574   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32575   esac
32576 _ACEOF
32577
32578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32579 # If the template does not know about datarootdir, expand it.
32580 # FIXME: This hack should be removed a few years after 2.60.
32581 ac_datarootdir_hack=; ac_datarootdir_seen=
32582 ac_sed_dataroot='
32583 /datarootdir/ {
32584   p
32585   q
32586 }
32587 /@datadir@/p
32588 /@docdir@/p
32589 /@infodir@/p
32590 /@localedir@/p
32591 /@mandir@/p'
32592 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32593 *datarootdir*) ac_datarootdir_seen=yes;;
32594 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32596 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32597 _ACEOF
32598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32599   ac_datarootdir_hack='
32600   s&@datadir@&$datadir&g
32601   s&@docdir@&$docdir&g
32602   s&@infodir@&$infodir&g
32603   s&@localedir@&$localedir&g
32604   s&@mandir@&$mandir&g
32605   s&\\\${datarootdir}&$datarootdir&g' ;;
32606 esac
32607 _ACEOF
32608
32609 # Neutralize VPATH when `$srcdir' = `.'.
32610 # Shell code in configure.ac might set extrasub.
32611 # FIXME: do we really want to maintain this feature?
32612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32613 ac_sed_extra="$ac_vpsub
32614 $extrasub
32615 _ACEOF
32616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32617 :t
32618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32619 s|@configure_input@|$ac_sed_conf_input|;t t
32620 s&@top_builddir@&$ac_top_builddir_sub&;t t
32621 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32622 s&@srcdir@&$ac_srcdir&;t t
32623 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32624 s&@top_srcdir@&$ac_top_srcdir&;t t
32625 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32626 s&@builddir@&$ac_builddir&;t t
32627 s&@abs_builddir@&$ac_abs_builddir&;t t
32628 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32629 s&@INSTALL@&$ac_INSTALL&;t t
32630 $ac_datarootdir_hack
32631 "
32632 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32633 if $ac_cs_awk_getline; then
32634   $AWK -f "$ac_tmp/subs.awk"
32635 else
32636   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32637 fi \
32638   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32639
32640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32641   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32642   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32643       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32644   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32645 which seems to be undefined.  Please make sure it is defined" >&5
32646 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32647 which seems to be undefined.  Please make sure it is defined" >&2;}
32648
32649   rm -f "$ac_tmp/stdin"
32650   case $ac_file in
32651   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32652   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32653   esac \
32654   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32655  ;;
32656   :H)
32657   #
32658   # CONFIG_HEADER
32659   #
32660   if test x"$ac_file" != x-; then
32661     {
32662       $as_echo "/* $configure_input  */" \
32663       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32664     } >"$ac_tmp/config.h" \
32665       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32666     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32667       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32668 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32669     else
32670       rm -f "$ac_file"
32671       mv "$ac_tmp/config.h" "$ac_file" \
32672         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32673     fi
32674   else
32675     $as_echo "/* $configure_input  */" \
32676       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32677       || as_fn_error $? "could not create -" "$LINENO" 5
32678   fi
32679  ;;
32680
32681   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32682 $as_echo "$as_me: executing $ac_file commands" >&6;}
32683  ;;
32684   esac
32685
32686
32687   case $ac_file$ac_mode in
32688     "libtool":C)
32689
32690     # See if we are running on zsh, and set the options which allow our
32691     # commands through without removal of \ escapes.
32692     if test -n "${ZSH_VERSION+set}" ; then
32693       setopt NO_GLOB_SUBST
32694     fi
32695
32696     cfgfile="${ofile}T"
32697     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32698     $RM "$cfgfile"
32699
32700     cat <<_LT_EOF >> "$cfgfile"
32701 #! $SHELL
32702
32703 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32704 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32707 #
32708 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32709 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32710 #                 Foundation, Inc.
32711 #   Written by Gordon Matzigkeit, 1996
32712 #
32713 #   This file is part of GNU Libtool.
32714 #
32715 # GNU Libtool is free software; you can redistribute it and/or
32716 # modify it under the terms of the GNU General Public License as
32717 # published by the Free Software Foundation; either version 2 of
32718 # the License, or (at your option) any later version.
32719 #
32720 # As a special exception to the GNU General Public License,
32721 # if you distribute this file as part of a program or library that
32722 # is built using GNU Libtool, you may include this file under the
32723 # same distribution terms that you use for the rest of that program.
32724 #
32725 # GNU Libtool is distributed in the hope that it will be useful,
32726 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32727 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32728 # GNU General Public License for more details.
32729 #
32730 # You should have received a copy of the GNU General Public License
32731 # along with GNU Libtool; see the file COPYING.  If not, a copy
32732 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32733 # obtained by writing to the Free Software Foundation, Inc.,
32734 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32735
32736
32737 # The names of the tagged configurations supported by this script.
32738 available_tags="CXX "
32739
32740 # ### BEGIN LIBTOOL CONFIG
32741
32742 # Which release of libtool.m4 was used?
32743 macro_version=$macro_version
32744 macro_revision=$macro_revision
32745
32746 # Whether or not to build shared libraries.
32747 build_libtool_libs=$enable_shared
32748
32749 # Whether or not to build static libraries.
32750 build_old_libs=$enable_static
32751
32752 # What type of objects to build.
32753 pic_mode=$pic_mode
32754
32755 # Whether or not to optimize for fast installation.
32756 fast_install=$enable_fast_install
32757
32758 # Shell to use when invoking shell scripts.
32759 SHELL=$lt_SHELL
32760
32761 # An echo program that protects backslashes.
32762 ECHO=$lt_ECHO
32763
32764 # The PATH separator for the build system.
32765 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32766
32767 # The host system.
32768 host_alias=$host_alias
32769 host=$host
32770 host_os=$host_os
32771
32772 # The build system.
32773 build_alias=$build_alias
32774 build=$build
32775 build_os=$build_os
32776
32777 # A sed program that does not truncate output.
32778 SED=$lt_SED
32779
32780 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32781 Xsed="\$SED -e 1s/^X//"
32782
32783 # A grep program that handles long lines.
32784 GREP=$lt_GREP
32785
32786 # An ERE matcher.
32787 EGREP=$lt_EGREP
32788
32789 # A literal string matcher.
32790 FGREP=$lt_FGREP
32791
32792 # A BSD- or MS-compatible name lister.
32793 NM=$lt_NM
32794
32795 # Whether we need soft or hard links.
32796 LN_S=$lt_LN_S
32797
32798 # What is the maximum length of a command?
32799 max_cmd_len=$max_cmd_len
32800
32801 # Object file suffix (normally "o").
32802 objext=$ac_objext
32803
32804 # Executable file suffix (normally "").
32805 exeext=$exeext
32806
32807 # whether the shell understands "unset".
32808 lt_unset=$lt_unset
32809
32810 # turn spaces into newlines.
32811 SP2NL=$lt_lt_SP2NL
32812
32813 # turn newlines into spaces.
32814 NL2SP=$lt_lt_NL2SP
32815
32816 # convert \$build file names to \$host format.
32817 to_host_file_cmd=$lt_cv_to_host_file_cmd
32818
32819 # convert \$build files to toolchain format.
32820 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32821
32822 # An object symbol dumper.
32823 OBJDUMP=$lt_OBJDUMP
32824
32825 # Method to check whether dependent libraries are shared objects.
32826 deplibs_check_method=$lt_deplibs_check_method
32827
32828 # Command to use when deplibs_check_method = "file_magic".
32829 file_magic_cmd=$lt_file_magic_cmd
32830
32831 # How to find potential files when deplibs_check_method = "file_magic".
32832 file_magic_glob=$lt_file_magic_glob
32833
32834 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32835 want_nocaseglob=$lt_want_nocaseglob
32836
32837 # DLL creation program.
32838 DLLTOOL=$lt_DLLTOOL
32839
32840 # Command to associate shared and link libraries.
32841 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32842
32843 # The archiver.
32844 AR=$lt_AR
32845
32846 # Flags to create an archive.
32847 AR_FLAGS=$lt_AR_FLAGS
32848
32849 # How to feed a file listing to the archiver.
32850 archiver_list_spec=$lt_archiver_list_spec
32851
32852 # A symbol stripping program.
32853 STRIP=$lt_STRIP
32854
32855 # Commands used to install an old-style archive.
32856 RANLIB=$lt_RANLIB
32857 old_postinstall_cmds=$lt_old_postinstall_cmds
32858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32859
32860 # Whether to use a lock for old archive extraction.
32861 lock_old_archive_extraction=$lock_old_archive_extraction
32862
32863 # A C compiler.
32864 LTCC=$lt_CC
32865
32866 # LTCC compiler flags.
32867 LTCFLAGS=$lt_CFLAGS
32868
32869 # Take the output of nm and produce a listing of raw symbols and C names.
32870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32871
32872 # Transform the output of nm in a proper C declaration.
32873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32874
32875 # Transform the output of nm in a C name address pair.
32876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32877
32878 # Transform the output of nm in a C name address pair when lib prefix is needed.
32879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32880
32881 # Specify filename containing input files for \$NM.
32882 nm_file_list_spec=$lt_nm_file_list_spec
32883
32884 # The root where to search for dependent libraries,and in which our libraries should be installed.
32885 lt_sysroot=$lt_sysroot
32886
32887 # The name of the directory that contains temporary libtool files.
32888 objdir=$objdir
32889
32890 # Used to examine libraries when file_magic_cmd begins with "file".
32891 MAGIC_CMD=$MAGIC_CMD
32892
32893 # Must we lock files when doing compilation?
32894 need_locks=$lt_need_locks
32895
32896 # Manifest tool.
32897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32898
32899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32900 DSYMUTIL=$lt_DSYMUTIL
32901
32902 # Tool to change global to local symbols on Mac OS X.
32903 NMEDIT=$lt_NMEDIT
32904
32905 # Tool to manipulate fat objects and archives on Mac OS X.
32906 LIPO=$lt_LIPO
32907
32908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32909 OTOOL=$lt_OTOOL
32910
32911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32912 OTOOL64=$lt_OTOOL64
32913
32914 # Old archive suffix (normally "a").
32915 libext=$libext
32916
32917 # Shared library suffix (normally ".so").
32918 shrext_cmds=$lt_shrext_cmds
32919
32920 # The commands to extract the exported symbol list from a shared archive.
32921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32922
32923 # Variables whose values should be saved in libtool wrapper scripts and
32924 # restored at link time.
32925 variables_saved_for_relink=$lt_variables_saved_for_relink
32926
32927 # Do we need the "lib" prefix for modules?
32928 need_lib_prefix=$need_lib_prefix
32929
32930 # Do we need a version for libraries?
32931 need_version=$need_version
32932
32933 # Library versioning type.
32934 version_type=$version_type
32935
32936 # Shared library runtime path variable.
32937 runpath_var=$runpath_var
32938
32939 # Shared library path variable.
32940 shlibpath_var=$shlibpath_var
32941
32942 # Is shlibpath searched before the hard-coded library search path?
32943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32944
32945 # Format of library name prefix.
32946 libname_spec=$lt_libname_spec
32947
32948 # List of archive names.  First name is the real one, the rest are links.
32949 # The last name is the one that the linker finds with -lNAME
32950 library_names_spec=$lt_library_names_spec
32951
32952 # The coded name of the library, if different from the real name.
32953 soname_spec=$lt_soname_spec
32954
32955 # Permission mode override for installation of shared libraries.
32956 install_override_mode=$lt_install_override_mode
32957
32958 # Command to use after installation of a shared archive.
32959 postinstall_cmds=$lt_postinstall_cmds
32960
32961 # Command to use after uninstallation of a shared archive.
32962 postuninstall_cmds=$lt_postuninstall_cmds
32963
32964 # Commands used to finish a libtool library installation in a directory.
32965 finish_cmds=$lt_finish_cmds
32966
32967 # As "finish_cmds", except a single script fragment to be evaled but
32968 # not shown.
32969 finish_eval=$lt_finish_eval
32970
32971 # Whether we should hardcode library paths into libraries.
32972 hardcode_into_libs=$hardcode_into_libs
32973
32974 # Compile-time system search path for libraries.
32975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32976
32977 # Run-time system search path for libraries.
32978 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32979
32980 # Whether dlopen is supported.
32981 dlopen_support=$enable_dlopen
32982
32983 # Whether dlopen of programs is supported.
32984 dlopen_self=$enable_dlopen_self
32985
32986 # Whether dlopen of statically linked programs is supported.
32987 dlopen_self_static=$enable_dlopen_self_static
32988
32989 # Commands to strip libraries.
32990 old_striplib=$lt_old_striplib
32991 striplib=$lt_striplib
32992
32993
32994 # The linker used to build libraries.
32995 LD=$lt_LD
32996
32997 # How to create reloadable object files.
32998 reload_flag=$lt_reload_flag
32999 reload_cmds=$lt_reload_cmds
33000
33001 # Commands used to build an old-style archive.
33002 old_archive_cmds=$lt_old_archive_cmds
33003
33004 # A language specific compiler.
33005 CC=$lt_compiler
33006
33007 # Is the compiler the GNU compiler?
33008 with_gcc=$GCC
33009
33010 # Compiler flag to turn off builtin functions.
33011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33012
33013 # Additional compiler flags for building library objects.
33014 pic_flag=$lt_lt_prog_compiler_pic
33015
33016 # How to pass a linker flag through the compiler.
33017 wl=$lt_lt_prog_compiler_wl
33018
33019 # Compiler flag to prevent dynamic linking.
33020 link_static_flag=$lt_lt_prog_compiler_static
33021
33022 # Does compiler simultaneously support -c and -o options?
33023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33024
33025 # Whether or not to add -lc for building shared libraries.
33026 build_libtool_need_lc=$archive_cmds_need_lc
33027
33028 # Whether or not to disallow shared libs when runtime libs are static.
33029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33030
33031 # Compiler flag to allow reflexive dlopens.
33032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33033
33034 # Compiler flag to generate shared objects directly from archives.
33035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33036
33037 # Whether the compiler copes with passing no objects directly.
33038 compiler_needs_object=$lt_compiler_needs_object
33039
33040 # Create an old-style archive from a shared archive.
33041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33042
33043 # Create a temporary old-style archive to link instead of a shared archive.
33044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33045
33046 # Commands used to build a shared archive.
33047 archive_cmds=$lt_archive_cmds
33048 archive_expsym_cmds=$lt_archive_expsym_cmds
33049
33050 # Commands used to build a loadable module if different from building
33051 # a shared archive.
33052 module_cmds=$lt_module_cmds
33053 module_expsym_cmds=$lt_module_expsym_cmds
33054
33055 # Whether we are building with GNU ld or not.
33056 with_gnu_ld=$lt_with_gnu_ld
33057
33058 # Flag that allows shared libraries with undefined symbols to be built.
33059 allow_undefined_flag=$lt_allow_undefined_flag
33060
33061 # Flag that enforces no undefined symbols.
33062 no_undefined_flag=$lt_no_undefined_flag
33063
33064 # Flag to hardcode \$libdir into a binary during linking.
33065 # This must work even if \$libdir does not exist
33066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33067
33068 # Whether we need a single "-rpath" flag with a separated argument.
33069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33070
33071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33072 # DIR into the resulting binary.
33073 hardcode_direct=$hardcode_direct
33074
33075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33076 # DIR into the resulting binary and the resulting library dependency is
33077 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33078 # library is relocated.
33079 hardcode_direct_absolute=$hardcode_direct_absolute
33080
33081 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33082 # into the resulting binary.
33083 hardcode_minus_L=$hardcode_minus_L
33084
33085 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33086 # into the resulting binary.
33087 hardcode_shlibpath_var=$hardcode_shlibpath_var
33088
33089 # Set to "yes" if building a shared library automatically hardcodes DIR
33090 # into the library and all subsequent libraries and executables linked
33091 # against it.
33092 hardcode_automatic=$hardcode_automatic
33093
33094 # Set to yes if linker adds runtime paths of dependent libraries
33095 # to runtime path list.
33096 inherit_rpath=$inherit_rpath
33097
33098 # Whether libtool must link a program against all its dependency libraries.
33099 link_all_deplibs=$link_all_deplibs
33100
33101 # Set to "yes" if exported symbols are required.
33102 always_export_symbols=$always_export_symbols
33103
33104 # The commands to list exported symbols.
33105 export_symbols_cmds=$lt_export_symbols_cmds
33106
33107 # Symbols that should not be listed in the preloaded symbols.
33108 exclude_expsyms=$lt_exclude_expsyms
33109
33110 # Symbols that must always be exported.
33111 include_expsyms=$lt_include_expsyms
33112
33113 # Commands necessary for linking programs (against libraries) with templates.
33114 prelink_cmds=$lt_prelink_cmds
33115
33116 # Commands necessary for finishing linking programs.
33117 postlink_cmds=$lt_postlink_cmds
33118
33119 # Specify filename containing input files.
33120 file_list_spec=$lt_file_list_spec
33121
33122 # How to hardcode a shared library path into an executable.
33123 hardcode_action=$hardcode_action
33124
33125 # The directories searched by this compiler when creating a shared library.
33126 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33127
33128 # Dependencies to place before and after the objects being linked to
33129 # create a shared library.
33130 predep_objects=$lt_predep_objects
33131 postdep_objects=$lt_postdep_objects
33132 predeps=$lt_predeps
33133 postdeps=$lt_postdeps
33134
33135 # The library search path used internally by the compiler when linking
33136 # a shared library.
33137 compiler_lib_search_path=$lt_compiler_lib_search_path
33138
33139 # ### END LIBTOOL CONFIG
33140
33141 _LT_EOF
33142
33143   case $host_os in
33144   aix3*)
33145     cat <<\_LT_EOF >> "$cfgfile"
33146 # AIX sometimes has problems with the GCC collect2 program.  For some
33147 # reason, if we set the COLLECT_NAMES environment variable, the problems
33148 # vanish in a puff of smoke.
33149 if test "X${COLLECT_NAMES+set}" != Xset; then
33150   COLLECT_NAMES=
33151   export COLLECT_NAMES
33152 fi
33153 _LT_EOF
33154     ;;
33155   esac
33156
33157
33158 ltmain="$ac_aux_dir/ltmain.sh"
33159
33160
33161   # We use sed instead of cat because bash on DJGPP gets confused if
33162   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33163   # text mode, it properly converts lines to CR/LF.  This bash problem
33164   # is reportedly fixed, but why not run on old versions too?
33165   sed '$q' "$ltmain" >> "$cfgfile" \
33166      || (rm -f "$cfgfile"; exit 1)
33167
33168   if test x"$xsi_shell" = xyes; then
33169   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33170 func_dirname ()\
33171 {\
33172 \    case ${1} in\
33173 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33174 \      *  ) func_dirname_result="${3}" ;;\
33175 \    esac\
33176 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33177   && mv -f "$cfgfile.tmp" "$cfgfile" \
33178     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33179 test 0 -eq $? || _lt_function_replace_fail=:
33180
33181
33182   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33183 func_basename ()\
33184 {\
33185 \    func_basename_result="${1##*/}"\
33186 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33187   && mv -f "$cfgfile.tmp" "$cfgfile" \
33188     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33189 test 0 -eq $? || _lt_function_replace_fail=:
33190
33191
33192   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33193 func_dirname_and_basename ()\
33194 {\
33195 \    case ${1} in\
33196 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33197 \      *  ) func_dirname_result="${3}" ;;\
33198 \    esac\
33199 \    func_basename_result="${1##*/}"\
33200 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33201   && mv -f "$cfgfile.tmp" "$cfgfile" \
33202     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33203 test 0 -eq $? || _lt_function_replace_fail=:
33204
33205
33206   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33207 func_stripname ()\
33208 {\
33209 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33210 \    # positional parameters, so assign one to ordinary parameter first.\
33211 \    func_stripname_result=${3}\
33212 \    func_stripname_result=${func_stripname_result#"${1}"}\
33213 \    func_stripname_result=${func_stripname_result%"${2}"}\
33214 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33215   && mv -f "$cfgfile.tmp" "$cfgfile" \
33216     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33217 test 0 -eq $? || _lt_function_replace_fail=:
33218
33219
33220   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33221 func_split_long_opt ()\
33222 {\
33223 \    func_split_long_opt_name=${1%%=*}\
33224 \    func_split_long_opt_arg=${1#*=}\
33225 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33226   && mv -f "$cfgfile.tmp" "$cfgfile" \
33227     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33228 test 0 -eq $? || _lt_function_replace_fail=:
33229
33230
33231   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33232 func_split_short_opt ()\
33233 {\
33234 \    func_split_short_opt_arg=${1#??}\
33235 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33236 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33237   && mv -f "$cfgfile.tmp" "$cfgfile" \
33238     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33239 test 0 -eq $? || _lt_function_replace_fail=:
33240
33241
33242   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33243 func_lo2o ()\
33244 {\
33245 \    case ${1} in\
33246 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33247 \      *)    func_lo2o_result=${1} ;;\
33248 \    esac\
33249 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33250   && mv -f "$cfgfile.tmp" "$cfgfile" \
33251     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33252 test 0 -eq $? || _lt_function_replace_fail=:
33253
33254
33255   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33256 func_xform ()\
33257 {\
33258     func_xform_result=${1%.*}.lo\
33259 } # Extended-shell func_xform 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_arith ()$/,/^} # func_arith /c\
33266 func_arith ()\
33267 {\
33268     func_arith_result=$(( $* ))\
33269 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33270   && mv -f "$cfgfile.tmp" "$cfgfile" \
33271     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33272 test 0 -eq $? || _lt_function_replace_fail=:
33273
33274
33275   sed -e '/^func_len ()$/,/^} # func_len /c\
33276 func_len ()\
33277 {\
33278     func_len_result=${#1}\
33279 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33280   && mv -f "$cfgfile.tmp" "$cfgfile" \
33281     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33282 test 0 -eq $? || _lt_function_replace_fail=:
33283
33284 fi
33285
33286 if test x"$lt_shell_append" = xyes; then
33287   sed -e '/^func_append ()$/,/^} # func_append /c\
33288 func_append ()\
33289 {\
33290     eval "${1}+=\\${2}"\
33291 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33292   && mv -f "$cfgfile.tmp" "$cfgfile" \
33293     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33294 test 0 -eq $? || _lt_function_replace_fail=:
33295
33296
33297   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33298 func_append_quoted ()\
33299 {\
33300 \    func_quote_for_eval "${2}"\
33301 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33302 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33303   && mv -f "$cfgfile.tmp" "$cfgfile" \
33304     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33305 test 0 -eq $? || _lt_function_replace_fail=:
33306
33307
33308   # Save a `func_append' function call where possible by direct use of '+='
33309   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33310     && mv -f "$cfgfile.tmp" "$cfgfile" \
33311       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33312   test 0 -eq $? || _lt_function_replace_fail=:
33313 else
33314   # Save a `func_append' function call even when '+=' is not available
33315   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33316     && mv -f "$cfgfile.tmp" "$cfgfile" \
33317       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33318   test 0 -eq $? || _lt_function_replace_fail=:
33319 fi
33320
33321 if test x"$_lt_function_replace_fail" = x":"; then
33322   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33323 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33324 fi
33325
33326
33327    mv -f "$cfgfile" "$ofile" ||
33328     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33329   chmod +x "$ofile"
33330
33331
33332     cat <<_LT_EOF >> "$ofile"
33333
33334 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33335
33336 # The linker used to build libraries.
33337 LD=$lt_LD_CXX
33338
33339 # How to create reloadable object files.
33340 reload_flag=$lt_reload_flag_CXX
33341 reload_cmds=$lt_reload_cmds_CXX
33342
33343 # Commands used to build an old-style archive.
33344 old_archive_cmds=$lt_old_archive_cmds_CXX
33345
33346 # A language specific compiler.
33347 CC=$lt_compiler_CXX
33348
33349 # Is the compiler the GNU compiler?
33350 with_gcc=$GCC_CXX
33351
33352 # Compiler flag to turn off builtin functions.
33353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33354
33355 # Additional compiler flags for building library objects.
33356 pic_flag=$lt_lt_prog_compiler_pic_CXX
33357
33358 # How to pass a linker flag through the compiler.
33359 wl=$lt_lt_prog_compiler_wl_CXX
33360
33361 # Compiler flag to prevent dynamic linking.
33362 link_static_flag=$lt_lt_prog_compiler_static_CXX
33363
33364 # Does compiler simultaneously support -c and -o options?
33365 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33366
33367 # Whether or not to add -lc for building shared libraries.
33368 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33369
33370 # Whether or not to disallow shared libs when runtime libs are static.
33371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33372
33373 # Compiler flag to allow reflexive dlopens.
33374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33375
33376 # Compiler flag to generate shared objects directly from archives.
33377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33378
33379 # Whether the compiler copes with passing no objects directly.
33380 compiler_needs_object=$lt_compiler_needs_object_CXX
33381
33382 # Create an old-style archive from a shared archive.
33383 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33384
33385 # Create a temporary old-style archive to link instead of a shared archive.
33386 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33387
33388 # Commands used to build a shared archive.
33389 archive_cmds=$lt_archive_cmds_CXX
33390 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33391
33392 # Commands used to build a loadable module if different from building
33393 # a shared archive.
33394 module_cmds=$lt_module_cmds_CXX
33395 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33396
33397 # Whether we are building with GNU ld or not.
33398 with_gnu_ld=$lt_with_gnu_ld_CXX
33399
33400 # Flag that allows shared libraries with undefined symbols to be built.
33401 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33402
33403 # Flag that enforces no undefined symbols.
33404 no_undefined_flag=$lt_no_undefined_flag_CXX
33405
33406 # Flag to hardcode \$libdir into a binary during linking.
33407 # This must work even if \$libdir does not exist
33408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33409
33410 # Whether we need a single "-rpath" flag with a separated argument.
33411 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33412
33413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33414 # DIR into the resulting binary.
33415 hardcode_direct=$hardcode_direct_CXX
33416
33417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33418 # DIR into the resulting binary and the resulting library dependency is
33419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33420 # library is relocated.
33421 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33422
33423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33424 # into the resulting binary.
33425 hardcode_minus_L=$hardcode_minus_L_CXX
33426
33427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33428 # into the resulting binary.
33429 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33430
33431 # Set to "yes" if building a shared library automatically hardcodes DIR
33432 # into the library and all subsequent libraries and executables linked
33433 # against it.
33434 hardcode_automatic=$hardcode_automatic_CXX
33435
33436 # Set to yes if linker adds runtime paths of dependent libraries
33437 # to runtime path list.
33438 inherit_rpath=$inherit_rpath_CXX
33439
33440 # Whether libtool must link a program against all its dependency libraries.
33441 link_all_deplibs=$link_all_deplibs_CXX
33442
33443 # Set to "yes" if exported symbols are required.
33444 always_export_symbols=$always_export_symbols_CXX
33445
33446 # The commands to list exported symbols.
33447 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33448
33449 # Symbols that should not be listed in the preloaded symbols.
33450 exclude_expsyms=$lt_exclude_expsyms_CXX
33451
33452 # Symbols that must always be exported.
33453 include_expsyms=$lt_include_expsyms_CXX
33454
33455 # Commands necessary for linking programs (against libraries) with templates.
33456 prelink_cmds=$lt_prelink_cmds_CXX
33457
33458 # Commands necessary for finishing linking programs.
33459 postlink_cmds=$lt_postlink_cmds_CXX
33460
33461 # Specify filename containing input files.
33462 file_list_spec=$lt_file_list_spec_CXX
33463
33464 # How to hardcode a shared library path into an executable.
33465 hardcode_action=$hardcode_action_CXX
33466
33467 # The directories searched by this compiler when creating a shared library.
33468 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33469
33470 # Dependencies to place before and after the objects being linked to
33471 # create a shared library.
33472 predep_objects=$lt_predep_objects_CXX
33473 postdep_objects=$lt_postdep_objects_CXX
33474 predeps=$lt_predeps_CXX
33475 postdeps=$lt_postdeps_CXX
33476
33477 # The library search path used internally by the compiler when linking
33478 # a shared library.
33479 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33480
33481 # ### END LIBTOOL TAG CONFIG: CXX
33482 _LT_EOF
33483
33484  ;;
33485     "default-1":C)
33486     for ac_file in $CONFIG_FILES; do
33487       # Support "outfile[:infile[:infile...]]"
33488       case "$ac_file" in
33489         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33490       esac
33491       # PO directories have a Makefile.in generated from Makefile.in.in.
33492       case "$ac_file" in */Makefile.in)
33493         # Adjust a relative srcdir.
33494         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33495         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33496         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33497         # In autoconf-2.13 it is called $ac_given_srcdir.
33498         # In autoconf-2.50 it is called $srcdir.
33499         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33500         case "$ac_given_srcdir" in
33501           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33502           /*) top_srcdir="$ac_given_srcdir" ;;
33503           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33504         esac
33505         # Treat a directory as a PO directory if and only if it has a
33506         # POTFILES.in file. This allows packages to have multiple PO
33507         # directories under different names or in different locations.
33508         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33509           rm -f "$ac_dir/POTFILES"
33510           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33511           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33512           POMAKEFILEDEPS="POTFILES.in"
33513           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33514           # on $ac_dir but don't depend on user-specified configuration
33515           # parameters.
33516           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33517             # The LINGUAS file contains the set of available languages.
33518             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33519               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33520             fi
33521             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33522             # Hide the ALL_LINGUAS assigment from automake.
33523             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33524             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33525           else
33526             # The set of available languages was given in configure.in.
33527             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33528           fi
33529           # Compute POFILES
33530           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33531           # Compute UPDATEPOFILES
33532           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33533           # Compute DUMMYPOFILES
33534           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33535           # Compute GMOFILES
33536           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33537           case "$ac_given_srcdir" in
33538             .) srcdirpre= ;;
33539             *) srcdirpre='$(srcdir)/' ;;
33540           esac
33541           POFILES=
33542           UPDATEPOFILES=
33543           DUMMYPOFILES=
33544           GMOFILES=
33545           for lang in $ALL_LINGUAS; do
33546             POFILES="$POFILES $srcdirpre$lang.po"
33547             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33548             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33549             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33550           done
33551           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33552           # environment variable.
33553           INST_LINGUAS=
33554           if test -n "$ALL_LINGUAS"; then
33555             for presentlang in $ALL_LINGUAS; do
33556               useit=no
33557               if test "%UNSET%" != "$LINGUAS"; then
33558                 desiredlanguages="$LINGUAS"
33559               else
33560                 desiredlanguages="$ALL_LINGUAS"
33561               fi
33562               for desiredlang in $desiredlanguages; do
33563                 # Use the presentlang catalog if desiredlang is
33564                 #   a. equal to presentlang, or
33565                 #   b. a variant of presentlang (because in this case,
33566                 #      presentlang can be used as a fallback for messages
33567                 #      which are not translated in the desiredlang catalog).
33568                 case "$desiredlang" in
33569                   "$presentlang"*) useit=yes;;
33570                 esac
33571               done
33572               if test $useit = yes; then
33573                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33574               fi
33575             done
33576           fi
33577           CATALOGS=
33578           if test -n "$INST_LINGUAS"; then
33579             for lang in $INST_LINGUAS; do
33580               CATALOGS="$CATALOGS $lang.gmo"
33581             done
33582           fi
33583           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33584           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"
33585           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33586             if test -f "$f"; then
33587               case "$f" in
33588                 *.orig | *.bak | *~) ;;
33589                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33590               esac
33591             fi
33592           done
33593         fi
33594         ;;
33595       esac
33596     done ;;
33597     "default":C)
33598  ;;
33599
33600   esac
33601 done # for ac_tag
33602
33603
33604 as_fn_exit 0
33605 _ACEOF
33606 ac_clean_files=$ac_clean_files_save
33607
33608 test $ac_write_fail = 0 ||
33609   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33610
33611
33612 # configure is writing to config.log, and then calls config.status.
33613 # config.status does its own redirection, appending to config.log.
33614 # Unfortunately, on DOS this fails, as config.log is still kept open
33615 # by configure, so config.status won't be able to write to it; its
33616 # output is simply discarded.  So we exec the FD to /dev/null,
33617 # effectively closing config.log, so it can be properly (re)opened and
33618 # appended to by config.status.  When coming back to configure, we
33619 # need to make the FD available again.
33620 if test "$no_create" != yes; then
33621   ac_cs_success=:
33622   ac_config_status_args=
33623   test "$silent" = yes &&
33624     ac_config_status_args="$ac_config_status_args --quiet"
33625   exec 5>/dev/null
33626   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33627   exec 5>>config.log
33628   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33629   # would make configure fail if this is the last instruction.
33630   $ac_cs_success || as_fn_exit 1
33631 fi
33632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33633   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33635 fi
33636
33637
33638 if test "${support_bat}" = "yes" ; then
33639    if test "x$QMAKE" = "xnone"; then
33640       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33641    fi
33642
33643    cd src/qt-console
33644    echo "Creating bat Makefile"
33645    touch bat
33646    chmod 755 bat
33647    rm -f Makefile
33648    rm -rf moc32 obj32
33649    $QMAKE
33650    ${MAKE:-make} clean
33651    cd ${BUILD_DIR}
33652 fi
33653
33654 if test X"$GCC" = "Xyes" ; then
33655   echo "Doing make of dependencies"
33656   ${MAKE:-make} depend
33657 fi
33658
33659 cd src/qt-console
33660 chmod 755 install_conf_file build-depkgs-qt-console
33661 cd ${BUILD_DIR}
33662
33663 cd scripts
33664 chmod 755 bacula btraceback mtx-changer
33665 chmod 755 dvd-handler dvd-simulator
33666 chmod 755 bconsole disk-changer devel_bacula logrotate
33667 cd ..
33668
33669 c=updatedb
33670 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33671 chmod 755 $c/update_postgresql_tables_10_to_11
33672 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33673 chmod 755 $c/update_postgresql_tables_11_to_12
33674
33675
33676 c=src/cats
33677
33678 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33679 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33680
33681 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33682 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33683
33684 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33685 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33686
33687 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33688 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33689
33690 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33691 chmod 755 $c/sqlite
33692 chmod 755 $c/mysql
33693
33694 chmod 755 $c/install-default-backend
33695
33696 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33697    largefile_support="yes"
33698 fi
33699
33700 if test X"$GCC" = "Xyes" ; then
33701                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33702    if test "x${CCVERSION}" = "x" ; then
33703       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33704    fi
33705    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33706    if test x"${CXXVERSION}" = x ; then
33707       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33708    fi
33709 fi
33710
33711 # clean up any old junk
33712 echo " "
33713 echo "Cleaning up"
33714 echo " "
33715 ${MAKE:-make} clean
33716
33717 echo "
33718 Configuration on `date`:
33719
33720    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33721    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33722    Source code location:     ${srcdir}
33723    Install binaries:         ${sbindir}
33724    Install libraries:        ${libdir}
33725    Install config files:     ${sysconfdir}
33726    Scripts directory:        ${scriptdir}
33727    Archive directory:        ${archivedir}
33728    Working directory:        ${working_dir}
33729    PID directory:            ${piddir}
33730    Subsys directory:         ${subsysdir}
33731    Man directory:            ${mandir}
33732    Data directory:           ${datarootdir}
33733    Plugin directory:         ${plugindir}
33734    C Compiler:               ${CC} ${CCVERSION}
33735    C++ Compiler:             ${CXX} ${CXXVERSION}
33736    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33737    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33738    Libraries:                ${LIBS}
33739    Statically Linked Tools:  ${support_static_tools}
33740    Statically Linked FD:     ${support_static_fd}
33741    Statically Linked SD:     ${support_static_sd}
33742    Statically Linked DIR:    ${support_static_dir}
33743    Statically Linked CONS:   ${support_static_cons}
33744    Database backends:        ${db_backends}
33745    Database port:            ${db_port}
33746    Database name:            ${db_name}
33747    Database user:            ${db_user}
33748    Database SSL options:     ${db_ssl_options}
33749
33750    Job Output Email:         ${job_email}
33751    Traceback Email:          ${dump_email}
33752    SMTP Host Address:        ${smtp_host}
33753
33754    Director Port:            ${dir_port}
33755    File daemon Port:         ${fd_port}
33756    Storage daemon Port:      ${sd_port}
33757
33758    Director User:            ${dir_user}
33759    Director Group:           ${dir_group}
33760    Storage Daemon User:      ${sd_user}
33761    Storage DaemonGroup:      ${sd_group}
33762    File Daemon User:         ${fd_user}
33763    File Daemon Group:        ${fd_group}
33764
33765    Large file support:       $largefile_support
33766    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33767    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33768    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33769    TLS support:              ${support_tls}
33770    Encryption support:       ${support_crypto}
33771    ZLIB support:             ${have_zlib}
33772    LZO support:              ${have_lzo}
33773    enable-smartalloc:        ${support_smartalloc}
33774    enable-lockmgr:           ${support_lockmgr}
33775    bat support:              ${support_bat}
33776    client-only:              ${build_client_only}
33777    build-dird:               ${build_dird}
33778    build-stored:             ${build_stored}
33779    Plugin support:           ${have_plugins}
33780    AFS support:              ${have_afs}
33781    ACL support:              ${have_acl}
33782    XATTR support:            ${have_xattr}
33783    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33784    Batch insert enabled:     ${batch_insert_db_backends}
33785
33786   " > config.out
33787
33788 # create a small shell script useful for support with
33789 # configure options and config.out info
33790 cat > scripts/bacula_config << EOF
33791 #!/bin/sh
33792 cat << __EOC__
33793 $ $0 $ac_configure_args
33794 EOF
33795 cat config.out >> scripts/bacula_config
33796 echo __EOC__ >> scripts/bacula_config
33797 chmod 755 scripts/bacula_config
33798
33799 cat config.out