]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak recompile configure.in
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 7.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 mon_sd_password
689 mon_fd_password
690 mon_dir_password
691 sd_password
692 fd_password
693 dir_password
694 sd_port
695 fd_port
696 dir_port
697 baseport
698 subsysdir
699 piddir
700 smtp_host
701 job_email
702 dump_email
703 plugindir
704 logdir
705 bsrdir
706 scriptdir
707 hostname
708 basename
709 archivedir
710 working_dir
711 OPENSSL_INC
712 OPENSSL_LIBS
713 READLINE_SRC
714 CONS_LDFLAGS
715 CONS_LIBS
716 CONS_SRC
717 CONS_OBJ
718 CONS_INC
719 STORED_DIR
720 DIR_TOOLS
721 DIRD_DIR
722 ALL_DIRS
723 STATIC_CONS
724 STATIC_DIR
725 STATIC_SD
726 STATIC_FD
727 TTOOL_LDFLAGS
728 QWT
729 QWT_LIB
730 QWT_LDFLAGS
731 QWT_INC
732 BAT_DIR
733 INTL_LIBTOOL_SUFFIX_PREFIX
734 INTLOBJS
735 GENCAT
736 INSTOBJEXT
737 DATADIRNAME
738 CATOBJEXT
739 USE_INCLUDED_LIBINTL
740 BUILD_INCLUDED_LIBINTL
741 INTLBISON
742 HAVE_WPRINTF
743 HAVE_SNPRINTF
744 HAVE_ASPRINTF
745 HAVE_POSIX_PRINTF
746 GLIBC21
747 ALLOCA
748 GLIBC2
749 POSUB
750 LTLIBINTL
751 LIBINTL
752 INTLLIBS
753 LTLIBICONV
754 LIBICONV
755 INTL_MACOSX_LIBS
756 MSGMERGE
757 XGETTEXT
758 GMSGFMT
759 MSGFMT
760 USE_NLS
761 MKINSTALLDIRS
762 SET_MAKE
763 HAVE_DARWIN_OS_FALSE
764 HAVE_DARWIN_OS_TRUE
765 HAVE_IRIX_OS_FALSE
766 HAVE_IRIX_OS_TRUE
767 HAVE_SGI_OS_FALSE
768 HAVE_SGI_OS_TRUE
769 HAVE_BSDI_OS_FALSE
770 HAVE_BSDI_OS_TRUE
771 HAVE_OPENBSD_OS_FALSE
772 HAVE_OPENBSD_OS_TRUE
773 HAVE_NETBSD_OS_FALSE
774 HAVE_NETBSD_OS_TRUE
775 HAVE_FREEBSD_OS_FALSE
776 HAVE_FREEBSD_OS_TRUE
777 HAVE_LINUX_OS_FALSE
778 HAVE_LINUX_OS_TRUE
779 HAVE_HPUX_OS_FALSE
780 HAVE_HPUX_OS_TRUE
781 HAVE_AIX_OS_FALSE
782 HAVE_AIX_OS_TRUE
783 HAVE_OSF1_OS_FALSE
784 HAVE_OSF1_OS_TRUE
785 HAVE_HURD_OS_FALSE
786 HAVE_HURD_OS_TRUE
787 HAVE_SUN_OS_FALSE
788 HAVE_SUN_OS_TRUE
789 INCLUDE_UNINSTALL_TARGET
790 INCLUDE_INSTALL_TARGET
791 FD_PLUGIN_DIR
792 QMAKE_LIBTOOL
793 LIBTOOL_CLEAN_TARGET
794 LIBTOOL_UNINSTALL_TARGET
795 LIBTOOL_INSTALL_TARGET
796 DEFAULT_SHARED_OBJECT_TYPE
797 DEFAULT_ARCHIVE_TYPE
798 DEFAULT_OBJECT_TYPE
799 LIBADD_DL
800 LT_DLPREOPEN
801 LIBADD_DLD_LINK
802 LIBADD_SHL_LOAD
803 LIBADD_DLOPEN
804 LT_DLLOADERS
805 CXXCPP
806 OTOOL64
807 OTOOL
808 LIPO
809 NMEDIT
810 DSYMUTIL
811 MANIFEST_TOOL
812 RANLIB
813 STRIP
814 ac_ct_AR
815 DLLTOOL
816 OBJDUMP
817 LN_S
818 NM
819 ac_ct_DUMPBIN
820 DUMPBIN
821 LD
822 FGREP
823 host_os
824 host_vendor
825 host_cpu
826 host
827 build_os
828 build_vendor
829 build_cpu
830 build
831 LIBTOOL
832 LOCAL_DEFS
833 LOCAL_LDFLAGS
834 LOCAL_CFLAGS
835 LOCAL_LIBS
836 MAKE_SHELL
837 ARFLAGS
838 AWK
839 PIDOF
840 GMAKE
841 QMAKE
842 PKGCONFIG
843 DVDRWFORMAT
844 DVDRWMEDIAINFO
845 GROWISOFS
846 PYTHON
847 MKISOFS
848 DD
849 MTX
850 OPENSSL
851 AR
852 TBL
853 CMP
854 ECHO
855 SED
856 CP
857 REMOVE
858 MV
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 EGREP
863 GREP
864 CPP
865 ac_ct_CXX
866 CXXFLAGS
867 CXX
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
874 CC
875 LIBBACFIND_LT_RELEASE
876 LIBBACCATS_LT_RELEASE
877 LIBBACSQL_LT_RELEASE
878 LIBBACCFG_LT_RELEASE
879 LIBBAC_LT_RELEASE
880 BQT4_VERSION
881 DEPKGS_VERSION
882 DEPKGS_QT_VERSION
883 BDB_VERSION
884 post_host
885 BACULA
886 LSMDATE
887 DATE
888 VERSION
889 FALSEPRG
890 TRUEPRG
891 TOP_DIR
892 BUILD_DIR
893 target_alias
894 host_alias
895 build_alias
896 LIBS
897 ECHO_T
898 ECHO_N
899 ECHO_C
900 DEFS
901 mandir
902 localedir
903 libdir
904 psdir
905 pdfdir
906 dvidir
907 htmldir
908 infodir
909 docdir
910 oldincludedir
911 includedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_URL
924 PACKAGE_BUGREPORT
925 PACKAGE_STRING
926 PACKAGE_VERSION
927 PACKAGE_TARNAME
928 PACKAGE_NAME
929 PATH_SEPARATOR
930 SHELL'
931 ac_subst_files='MCOMMON'
932 ac_user_opts='
933 enable_option_checking
934 enable_libtool
935 enable_shared
936 enable_static
937 with_pic
938 enable_fast_install
939 with_gnu_ld
940 with_sysroot
941 enable_libtool_lock
942 enable_includes
943 enable_nls
944 enable_rpath
945 with_libiconv_prefix
946 with_libintl_prefix
947 with_included_gettext
948 enable_bat
949 enable_smartalloc
950 enable_lockmgr
951 enable_static_tools
952 enable_static_fd
953 enable_static_sd
954 enable_static_dir
955 enable_static_cons
956 enable_client_only
957 enable_build_dird
958 enable_build_stored
959 enable_conio
960 enable_ipv6
961 enable_readline
962 with_readline
963 with_tcp_wrappers
964 with_openssl
965 with_working_dir
966 with_archivedir
967 with_basename
968 with_hostname
969 with_scriptdir
970 with_bsrdir
971 with_logdir
972 with_plugindir
973 with_dump_email
974 with_job_email
975 with_smtp_host
976 with_pid_dir
977 with_subsys_dir
978 with_baseport
979 with_dir_password
980 with_fd_password
981 with_sd_password
982 with_mon_dir_password
983 with_mon_fd_password
984 with_mon_sd_password
985 with_db_name
986 with_db_user
987 with_db_password
988 with_db_port
989 with_dir_user
990 with_dir_group
991 with_sd_user
992 with_sd_group
993 with_fd_user
994 with_fd_group
995 with_sbin_perm
996 enable_batch_insert
997 with_postgresql
998 with_mysql
999 with_embedded_mysql
1000 with_sqlite3
1001 enable_largefile
1002 with_x
1003 enable_afs
1004 with_afsdir
1005 enable_lzo
1006 with_lzo
1007 enable_acl
1008 enable_xattr
1009 with_systemd
1010 '
1011       ac_precious_vars='build_alias
1012 host_alias
1013 target_alias
1014 CC
1015 CFLAGS
1016 LDFLAGS
1017 LIBS
1018 CPPFLAGS
1019 CXX
1020 CXXFLAGS
1021 CCC
1022 CPP
1023 CXXCPP
1024 XMKMF'
1025
1026
1027 # Initialize some variables set by options.
1028 ac_init_help=
1029 ac_init_version=false
1030 ac_unrecognized_opts=
1031 ac_unrecognized_sep=
1032 # The variables have the same names as the options, with
1033 # dashes changed to underlines.
1034 cache_file=/dev/null
1035 exec_prefix=NONE
1036 no_create=
1037 no_recursion=
1038 prefix=NONE
1039 program_prefix=NONE
1040 program_suffix=NONE
1041 program_transform_name=s,x,x,
1042 silent=
1043 site=
1044 srcdir=
1045 verbose=
1046 x_includes=NONE
1047 x_libraries=NONE
1048
1049 # Installation directory options.
1050 # These are left unexpanded so users can "make install exec_prefix=/foo"
1051 # and all the variables that are supposed to be based on exec_prefix
1052 # by default will actually change.
1053 # Use braces instead of parens because sh, perl, etc. also accept them.
1054 # (The list follows the same order as the GNU Coding Standards.)
1055 bindir='${exec_prefix}/bin'
1056 sbindir='${exec_prefix}/sbin'
1057 libexecdir='${exec_prefix}/libexec'
1058 datarootdir='${prefix}/share'
1059 datadir='${datarootdir}'
1060 sysconfdir='${prefix}/etc'
1061 sharedstatedir='${prefix}/com'
1062 localstatedir='${prefix}/var'
1063 includedir='${prefix}/include'
1064 oldincludedir='/usr/include'
1065 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1066 infodir='${datarootdir}/info'
1067 htmldir='${docdir}'
1068 dvidir='${docdir}'
1069 pdfdir='${docdir}'
1070 psdir='${docdir}'
1071 libdir='${exec_prefix}/lib'
1072 localedir='${datarootdir}/locale'
1073 mandir='${datarootdir}/man'
1074
1075 ac_prev=
1076 ac_dashdash=
1077 for ac_option
1078 do
1079   # If the previous option needs an argument, assign it.
1080   if test -n "$ac_prev"; then
1081     eval $ac_prev=\$ac_option
1082     ac_prev=
1083     continue
1084   fi
1085
1086   case $ac_option in
1087   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1088   *=)   ac_optarg= ;;
1089   *)    ac_optarg=yes ;;
1090   esac
1091
1092   # Accept the important Cygnus configure options, so we can diagnose typos.
1093
1094   case $ac_dashdash$ac_option in
1095   --)
1096     ac_dashdash=yes ;;
1097
1098   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1099     ac_prev=bindir ;;
1100   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1101     bindir=$ac_optarg ;;
1102
1103   -build | --build | --buil | --bui | --bu)
1104     ac_prev=build_alias ;;
1105   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1106     build_alias=$ac_optarg ;;
1107
1108   -cache-file | --cache-file | --cache-fil | --cache-fi \
1109   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1110     ac_prev=cache_file ;;
1111   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1112   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1113     cache_file=$ac_optarg ;;
1114
1115   --config-cache | -C)
1116     cache_file=config.cache ;;
1117
1118   -datadir | --datadir | --datadi | --datad)
1119     ac_prev=datadir ;;
1120   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1121     datadir=$ac_optarg ;;
1122
1123   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1124   | --dataroo | --dataro | --datar)
1125     ac_prev=datarootdir ;;
1126   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1127   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1128     datarootdir=$ac_optarg ;;
1129
1130   -disable-* | --disable-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       as_fn_error $? "invalid feature name: $ac_useropt"
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "enable_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval enable_$ac_useropt=no ;;
1145
1146   -docdir | --docdir | --docdi | --doc | --do)
1147     ac_prev=docdir ;;
1148   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1149     docdir=$ac_optarg ;;
1150
1151   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1152     ac_prev=dvidir ;;
1153   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1154     dvidir=$ac_optarg ;;
1155
1156   -enable-* | --enable-*)
1157     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160       as_fn_error $? "invalid feature name: $ac_useropt"
1161     ac_useropt_orig=$ac_useropt
1162     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163     case $ac_user_opts in
1164       *"
1165 "enable_$ac_useropt"
1166 "*) ;;
1167       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1168          ac_unrecognized_sep=', ';;
1169     esac
1170     eval enable_$ac_useropt=\$ac_optarg ;;
1171
1172   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1173   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1174   | --exec | --exe | --ex)
1175     ac_prev=exec_prefix ;;
1176   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1177   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1178   | --exec=* | --exe=* | --ex=*)
1179     exec_prefix=$ac_optarg ;;
1180
1181   -gas | --gas | --ga | --g)
1182     # Obsolete; use --with-gas.
1183     with_gas=yes ;;
1184
1185   -help | --help | --hel | --he | -h)
1186     ac_init_help=long ;;
1187   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1188     ac_init_help=recursive ;;
1189   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1190     ac_init_help=short ;;
1191
1192   -host | --host | --hos | --ho)
1193     ac_prev=host_alias ;;
1194   -host=* | --host=* | --hos=* | --ho=*)
1195     host_alias=$ac_optarg ;;
1196
1197   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1198     ac_prev=htmldir ;;
1199   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1200   | --ht=*)
1201     htmldir=$ac_optarg ;;
1202
1203   -includedir | --includedir | --includedi | --included | --include \
1204   | --includ | --inclu | --incl | --inc)
1205     ac_prev=includedir ;;
1206   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1207   | --includ=* | --inclu=* | --incl=* | --inc=*)
1208     includedir=$ac_optarg ;;
1209
1210   -infodir | --infodir | --infodi | --infod | --info | --inf)
1211     ac_prev=infodir ;;
1212   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1213     infodir=$ac_optarg ;;
1214
1215   -libdir | --libdir | --libdi | --libd)
1216     ac_prev=libdir ;;
1217   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1218     libdir=$ac_optarg ;;
1219
1220   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1221   | --libexe | --libex | --libe)
1222     ac_prev=libexecdir ;;
1223   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1224   | --libexe=* | --libex=* | --libe=*)
1225     libexecdir=$ac_optarg ;;
1226
1227   -localedir | --localedir | --localedi | --localed | --locale)
1228     ac_prev=localedir ;;
1229   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1230     localedir=$ac_optarg ;;
1231
1232   -localstatedir | --localstatedir | --localstatedi | --localstated \
1233   | --localstate | --localstat | --localsta | --localst | --locals)
1234     ac_prev=localstatedir ;;
1235   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1236   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1237     localstatedir=$ac_optarg ;;
1238
1239   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1240     ac_prev=mandir ;;
1241   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1242     mandir=$ac_optarg ;;
1243
1244   -nfp | --nfp | --nf)
1245     # Obsolete; use --without-fp.
1246     with_fp=no ;;
1247
1248   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1249   | --no-cr | --no-c | -n)
1250     no_create=yes ;;
1251
1252   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1253   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1254     no_recursion=yes ;;
1255
1256   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1257   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1258   | --oldin | --oldi | --old | --ol | --o)
1259     ac_prev=oldincludedir ;;
1260   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1261   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1262   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1263     oldincludedir=$ac_optarg ;;
1264
1265   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1266     ac_prev=prefix ;;
1267   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1268     prefix=$ac_optarg ;;
1269
1270   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1271   | --program-pre | --program-pr | --program-p)
1272     ac_prev=program_prefix ;;
1273   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1274   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1275     program_prefix=$ac_optarg ;;
1276
1277   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1278   | --program-suf | --program-su | --program-s)
1279     ac_prev=program_suffix ;;
1280   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1281   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1282     program_suffix=$ac_optarg ;;
1283
1284   -program-transform-name | --program-transform-name \
1285   | --program-transform-nam | --program-transform-na \
1286   | --program-transform-n | --program-transform- \
1287   | --program-transform | --program-transfor \
1288   | --program-transfo | --program-transf \
1289   | --program-trans | --program-tran \
1290   | --progr-tra | --program-tr | --program-t)
1291     ac_prev=program_transform_name ;;
1292   -program-transform-name=* | --program-transform-name=* \
1293   | --program-transform-nam=* | --program-transform-na=* \
1294   | --program-transform-n=* | --program-transform-=* \
1295   | --program-transform=* | --program-transfor=* \
1296   | --program-transfo=* | --program-transf=* \
1297   | --program-trans=* | --program-tran=* \
1298   | --progr-tra=* | --program-tr=* | --program-t=*)
1299     program_transform_name=$ac_optarg ;;
1300
1301   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1302     ac_prev=pdfdir ;;
1303   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1304     pdfdir=$ac_optarg ;;
1305
1306   -psdir | --psdir | --psdi | --psd | --ps)
1307     ac_prev=psdir ;;
1308   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1309     psdir=$ac_optarg ;;
1310
1311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312   | -silent | --silent | --silen | --sile | --sil)
1313     silent=yes ;;
1314
1315   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1316     ac_prev=sbindir ;;
1317   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1318   | --sbi=* | --sb=*)
1319     sbindir=$ac_optarg ;;
1320
1321   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1322   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1323   | --sharedst | --shareds | --shared | --share | --shar \
1324   | --sha | --sh)
1325     ac_prev=sharedstatedir ;;
1326   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1327   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1328   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1329   | --sha=* | --sh=*)
1330     sharedstatedir=$ac_optarg ;;
1331
1332   -site | --site | --sit)
1333     ac_prev=site ;;
1334   -site=* | --site=* | --sit=*)
1335     site=$ac_optarg ;;
1336
1337   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1338     ac_prev=srcdir ;;
1339   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1340     srcdir=$ac_optarg ;;
1341
1342   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1343   | --syscon | --sysco | --sysc | --sys | --sy)
1344     ac_prev=sysconfdir ;;
1345   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1346   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1347     sysconfdir=$ac_optarg ;;
1348
1349   -target | --target | --targe | --targ | --tar | --ta | --t)
1350     ac_prev=target_alias ;;
1351   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1352     target_alias=$ac_optarg ;;
1353
1354   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1355     verbose=yes ;;
1356
1357   -version | --version | --versio | --versi | --vers | -V)
1358     ac_init_version=: ;;
1359
1360   -with-* | --with-*)
1361     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1362     # Reject names that are not valid shell variable names.
1363     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364       as_fn_error $? "invalid package name: $ac_useropt"
1365     ac_useropt_orig=$ac_useropt
1366     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367     case $ac_user_opts in
1368       *"
1369 "with_$ac_useropt"
1370 "*) ;;
1371       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1372          ac_unrecognized_sep=', ';;
1373     esac
1374     eval with_$ac_useropt=\$ac_optarg ;;
1375
1376   -without-* | --without-*)
1377     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1378     # Reject names that are not valid shell variable names.
1379     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380       as_fn_error $? "invalid package name: $ac_useropt"
1381     ac_useropt_orig=$ac_useropt
1382     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1383     case $ac_user_opts in
1384       *"
1385 "with_$ac_useropt"
1386 "*) ;;
1387       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1388          ac_unrecognized_sep=', ';;
1389     esac
1390     eval with_$ac_useropt=no ;;
1391
1392   --x)
1393     # Obsolete; use --with-x.
1394     with_x=yes ;;
1395
1396   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1397   | --x-incl | --x-inc | --x-in | --x-i)
1398     ac_prev=x_includes ;;
1399   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1400   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1401     x_includes=$ac_optarg ;;
1402
1403   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1404   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1405     ac_prev=x_libraries ;;
1406   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1407   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1408     x_libraries=$ac_optarg ;;
1409
1410   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1411 Try \`$0 --help' for more information"
1412     ;;
1413
1414   *=*)
1415     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1416     # Reject names that are not valid shell variable names.
1417     case $ac_envvar in #(
1418       '' | [0-9]* | *[!_$as_cr_alnum]* )
1419       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1420     esac
1421     eval $ac_envvar=\$ac_optarg
1422     export $ac_envvar ;;
1423
1424   *)
1425     # FIXME: should be removed in autoconf 3.0.
1426     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1427     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1428       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1429     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1430     ;;
1431
1432   esac
1433 done
1434
1435 if test -n "$ac_prev"; then
1436   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1437   as_fn_error $? "missing argument to $ac_option"
1438 fi
1439
1440 if test -n "$ac_unrecognized_opts"; then
1441   case $enable_option_checking in
1442     no) ;;
1443     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1444     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1445   esac
1446 fi
1447
1448 # Check all directory arguments for consistency.
1449 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1450                 datadir sysconfdir sharedstatedir localstatedir includedir \
1451                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1452                 libdir localedir mandir
1453 do
1454   eval ac_val=\$$ac_var
1455   # Remove trailing slashes.
1456   case $ac_val in
1457     */ )
1458       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1459       eval $ac_var=\$ac_val;;
1460   esac
1461   # Be sure to have absolute directory names.
1462   case $ac_val in
1463     [\\/$]* | ?:[\\/]* )  continue;;
1464     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1465   esac
1466   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1467 done
1468
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1472 build=$build_alias
1473 host=$host_alias
1474 target=$target_alias
1475
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478   if test "x$build_alias" = x; then
1479     cross_compiling=maybe
1480   elif test "x$build_alias" != "x$host_alias"; then
1481     cross_compiling=yes
1482   fi
1483 fi
1484
1485 ac_tool_prefix=
1486 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487
1488 test "$silent" = yes && exec 6>/dev/null
1489
1490
1491 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1492 ac_ls_di=`ls -di .` &&
1493 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1494   as_fn_error $? "working directory cannot be determined"
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   as_fn_error $? "pwd does not report name of working directory"
1497
1498
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501   ac_srcdir_defaulted=yes
1502   # Try the directory containing this script, then the parent directory.
1503   ac_confdir=`$as_dirname -- "$as_myself" ||
1504 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505          X"$as_myself" : 'X\(//\)[^/]' \| \
1506          X"$as_myself" : 'X\(//\)$' \| \
1507          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1508 $as_echo X"$as_myself" |
1509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)[^/].*/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\).*/{
1522             s//\1/
1523             q
1524           }
1525           s/.*/./; q'`
1526   srcdir=$ac_confdir
1527   if test ! -r "$srcdir/$ac_unique_file"; then
1528     srcdir=..
1529   fi
1530 else
1531   ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1536 fi
1537 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1538 ac_abs_confdir=`(
1539         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1540         pwd)`
1541 # When building in place, set srcdir=.
1542 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543   srcdir=.
1544 fi
1545 # Remove unnecessary trailing slashes from srcdir.
1546 # Double slashes in file names in object file debugging info
1547 # mess up M-x gdb in Emacs.
1548 case $srcdir in
1549 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 esac
1551 for ac_var in $ac_precious_vars; do
1552   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1553   eval ac_env_${ac_var}_value=\$${ac_var}
1554   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 done
1557
1558 #
1559 # Report the --help message.
1560 #
1561 if test "$ac_init_help" = "long"; then
1562   # Omit some internal or obsolete options to make the list less imposing.
1563   # This message is too long to be a string in the A/UX 3.1 sh.
1564   cat <<_ACEOF
1565 \`configure' configures bacula 7.2.0 to adapt to many kinds of systems.
1566
1567 Usage: $0 [OPTION]... [VAR=VALUE]...
1568
1569 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1570 VAR=VALUE.  See below for descriptions of some of the useful variables.
1571
1572 Defaults for the options are specified in brackets.
1573
1574 Configuration:
1575   -h, --help              display this help and exit
1576       --help=short        display options specific to this package
1577       --help=recursive    display the short help of all the included packages
1578   -V, --version           display version information and exit
1579   -q, --quiet, --silent   do not print \`checking ...' messages
1580       --cache-file=FILE   cache test results in FILE [disabled]
1581   -C, --config-cache      alias for \`--cache-file=config.cache'
1582   -n, --no-create         do not create output files
1583       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1584
1585 Installation directories:
1586   --prefix=PREFIX         install architecture-independent files in PREFIX
1587                           [$ac_default_prefix]
1588   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1589                           [PREFIX]
1590
1591 By default, \`make install' will install all the files in
1592 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1593 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1594 for instance \`--prefix=\$HOME'.
1595
1596 For better control, use the options below.
1597
1598 Fine tuning of the installation directories:
1599   --bindir=DIR            user executables [EPREFIX/bin]
1600   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1601   --libexecdir=DIR        program executables [EPREFIX/libexec]
1602   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1603   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1604   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1605   --libdir=DIR            object code libraries [EPREFIX/lib]
1606   --includedir=DIR        C header files [PREFIX/include]
1607   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1608   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1609   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1610   --infodir=DIR           info documentation [DATAROOTDIR/info]
1611   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1612   --mandir=DIR            man documentation [DATAROOTDIR/man]
1613   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1614   --htmldir=DIR           html documentation [DOCDIR]
1615   --dvidir=DIR            dvi documentation [DOCDIR]
1616   --pdfdir=DIR            pdf documentation [DOCDIR]
1617   --psdir=DIR             ps documentation [DOCDIR]
1618 _ACEOF
1619
1620   cat <<\_ACEOF
1621
1622 X features:
1623   --x-includes=DIR    X include files are in DIR
1624   --x-libraries=DIR   X library files are in DIR
1625
1626 System types:
1627   --build=BUILD     configure for building on BUILD [guessed]
1628   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1629 _ACEOF
1630 fi
1631
1632 if test -n "$ac_init_help"; then
1633   case $ac_init_help in
1634      short | recursive ) echo "Configuration of bacula 7.2.0:";;
1635    esac
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-option-checking  ignore unrecognized --enable/--with options
1640   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1641   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1642   --enable-libtool        enable building using GNU libtool [default=yes]
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=no]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --enable-includes       enable installing of include files [default=no]
1649   --disable-nls           do not use Native Language Support
1650   --disable-rpath         do not hardcode runtime library paths
1651   --enable-bat            enable build of bat Qt4 GUI [default=no]
1652   --enable-smartalloc     enable smartalloc debugging support [default=no]
1653   --enable-lockmgr        enable lock manager support [default=no]
1654   --enable-static-tools   enable static tape tools [default=no]
1655   --enable-static-fd      enable static File daemon [default=no]
1656   --enable-static-sd      enable static Storage daemon [default=no]
1657   --enable-static-dir     enable static Director [default=no]
1658   --enable-static-cons    enable static Console [default=no]
1659   --enable-client-only    build client (File daemon) only [default=no]
1660   --enable-build-dird     enable building of dird (Director) [default=yes]
1661   --enable-build-stored   enable building of stored (Storage daemon)
1662                           [default=yes]
1663   --disable-conio         disable conio support [default=no]
1664   --enable-ipv6           enable ipv6 support [default=yes]
1665   --disable-readline      disable readline support [default=yes]
1666   --enable-batch-insert   enable the DB batch insert code [default=yes]
1667   --disable-largefile     omit support for large files
1668   --disable-afs           disable afs support [default=auto]
1669   --disable-lzo           disable lzo support [default=yes]
1670   --disable-acl           disable acl support [default=auto]
1671   --disable-xattr         disable xattr support [default=auto]
1672
1673 Optional Packages:
1674   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1675   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1676   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1677                           both]
1678   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1679   --with-sysroot=DIR Search for dependent libraries within DIR
1680                         (or the compiler's sysroot if not specified).
1681   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1682   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1683   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1684   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1685   --without-libintl-prefix     don't search for libintl in includedir and libdir
1686   --with-included-gettext use the GNU gettext library included here
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-tcp-wrappers[=DIR]
1689                           enable tcpwrappers support
1690   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1691   --with-working-dir=PATH specify path of Bacula working directory
1692   --with-archivedir=PATH  specify path of SD archive directory
1693   --with-basename=RESNAME specify base resource name for daemons
1694   --with-hostname=RESNAME specify host name for daemons
1695   --with-scriptdir=PATH   specify path of Bacula scripts directory
1696   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1697   --with-logdir=PATH      specify path of Bacula logs directory
1698   --with-plugindir=PATH   specify path of Bacula plugins directory
1699   --with-dump-email=EMAIL dump email address
1700   --with-job-email=EMAIL  job output email address
1701   --with-smtp-host=HOST   SMTP mail host address
1702   --with-pid-dir=PATH     specify location of Bacula pid files
1703   --with-subsys-dir=PATH  specify location of Bacula subsys file
1704   --with-baseport=PORT    specify base port address for daemons
1705   --with-dir-password=PASSWORD
1706                           specify Director's password
1707   --with-fd-password=PASSWORD
1708                           specify Client's password
1709   --with-sd-password=PASSWORD
1710                           specify Storage daemon's password
1711   --with-mon-dir-password=PASSWORD
1712                           specify Director's password used by the monitor
1713   --with-mon-fd-password=PASSWORD
1714                           specify Client's password used by the monitor
1715   --with-mon-sd-password=PASSWORD
1716                           specify Storage daemon's password used by the
1717                           monitor
1718   --with-db-name=DBNAME   specify database name [default=bacula]
1719   --with-db-user=UNAME    specify database user [default=bacula]
1720   --with-db-password=PWD  specify database password [default=*none*]
1721   --with-db-port=DBPORT   specify a database port [default=null]
1722   --with-dir-user=USER    specify user for Director daemon
1723   --with-dir-group=GROUP  specify group for Director daemon
1724   --with-sd-user=USER     specify user for Storage daemon
1725   --with-sd-group=GROUP   specify group for Storage daemon
1726   --with-fd-user=USER     specify user for File daemon
1727   --with-fd-group=GROUP   specify group for File daemon
1728   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1729   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1730                           base install directory, [default=/usr/local/pgsql]
1731   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1732                           directory, default is to search through a number of
1733                           common places for the MySQL files.
1734   --with-embedded-mysql[=DIR]
1735                           Include MySQL support. DIR is the MySQL base install
1736                           directory, default is to search through a number of
1737                           common places for the MySQL files.
1738   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1739                           install directory, default is to search through a
1740                           number of common places for the SQLite3 files.
1741   --with-x                use the X Window System
1742   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1743   --with-lzo[=DIR]        specify lzo library directory
1744   --with-systemd[=UNITDIR]
1745                           Include systemd support. UNITDIR is where systemd
1746                           system .service files are located, default is to ask
1747                           systemctl.
1748
1749 Some influential environment variables:
1750   CC          C compiler command
1751   CFLAGS      C compiler flags
1752   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1753               nonstandard directory <lib dir>
1754   LIBS        libraries to pass to the linker, e.g. -l<library>
1755   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1756               you have headers in a nonstandard directory <include dir>
1757   CXX         C++ compiler command
1758   CXXFLAGS    C++ compiler flags
1759   CPP         C preprocessor
1760   CXXCPP      C++ preprocessor
1761   XMKMF       Path to xmkmf, Makefile generator for X Window System
1762
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1765
1766 Report bugs to the package provider.
1767 _ACEOF
1768 ac_status=$?
1769 fi
1770
1771 if test "$ac_init_help" = "recursive"; then
1772   # If there are subdirs, report their specific --help.
1773   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774     test -d "$ac_dir" ||
1775       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776       continue
1777     ac_builddir=.
1778
1779 case "$ac_dir" in
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 *)
1782   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783   # A ".." for each directory in $ac_dir_suffix.
1784   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785   case $ac_top_builddir_sub in
1786   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788   esac ;;
1789 esac
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1794
1795 case $srcdir in
1796   .)  # We are building in place.
1797     ac_srcdir=.
1798     ac_top_srcdir=$ac_top_builddir_sub
1799     ac_abs_top_srcdir=$ac_pwd ;;
1800   [\\/]* | ?:[\\/]* )  # Absolute name.
1801     ac_srcdir=$srcdir$ac_dir_suffix;
1802     ac_top_srcdir=$srcdir
1803     ac_abs_top_srcdir=$srcdir ;;
1804   *) # Relative name.
1805     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806     ac_top_srcdir=$ac_top_build_prefix$srcdir
1807     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 esac
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810
1811     cd "$ac_dir" || { ac_status=$?; continue; }
1812     # Check for guested configure.
1813     if test -f "$ac_srcdir/configure.gnu"; then
1814       echo &&
1815       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816     elif test -f "$ac_srcdir/configure"; then
1817       echo &&
1818       $SHELL "$ac_srcdir/configure" --help=recursive
1819     else
1820       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821     fi || ac_status=$?
1822     cd "$ac_pwd" || { ac_status=$?; break; }
1823   done
1824 fi
1825
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1828   cat <<\_ACEOF
1829 bacula configure 7.2.0
1830 generated by GNU Autoconf 2.69
1831
1832 Copyright (C) 2012 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1835 _ACEOF
1836   exit
1837 fi
1838
1839 ## ------------------------ ##
1840 ## Autoconf initialization. ##
1841 ## ------------------------ ##
1842
1843 # ac_fn_c_try_compile LINENO
1844 # --------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_compile ()
1847 {
1848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849   rm -f conftest.$ac_objext
1850   if { { ac_try="$ac_compile"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_compile") 2>conftest.err
1858   ac_status=$?
1859   if test -s conftest.err; then
1860     grep -v '^ *+' conftest.err >conftest.er1
1861     cat conftest.er1 >&5
1862     mv -f conftest.er1 conftest.err
1863   fi
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; } && {
1866          test -z "$ac_c_werror_flag" ||
1867          test ! -s conftest.err
1868        } && test -s conftest.$ac_objext; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874         ac_retval=1
1875 fi
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877   as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_compile
1880
1881 # ac_fn_cxx_try_compile LINENO
1882 # ----------------------------
1883 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_compile ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   rm -f conftest.$ac_objext
1888   if { { ac_try="$ac_compile"
1889 case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_compile") 2>conftest.err
1896   ac_status=$?
1897   if test -s conftest.err; then
1898     grep -v '^ *+' conftest.err >conftest.er1
1899     cat conftest.er1 >&5
1900     mv -f conftest.er1 conftest.err
1901   fi
1902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903   test $ac_status = 0; } && {
1904          test -z "$ac_cxx_werror_flag" ||
1905          test ! -s conftest.err
1906        } && test -s conftest.$ac_objext; then :
1907   ac_retval=0
1908 else
1909   $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912         ac_retval=1
1913 fi
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915   as_fn_set_status $ac_retval
1916
1917 } # ac_fn_cxx_try_compile
1918
1919 # ac_fn_c_try_cpp LINENO
1920 # ----------------------
1921 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_c_try_cpp ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   if { { ac_try="$ac_cpp conftest.$ac_ext"
1926 case "(($ac_try" in
1927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928   *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1933   ac_status=$?
1934   if test -s conftest.err; then
1935     grep -v '^ *+' conftest.err >conftest.er1
1936     cat conftest.er1 >&5
1937     mv -f conftest.er1 conftest.err
1938   fi
1939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940   test $ac_status = 0; } > conftest.i && {
1941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1942          test ! -s conftest.err
1943        }; then :
1944   ac_retval=0
1945 else
1946   $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949     ac_retval=1
1950 fi
1951   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952   as_fn_set_status $ac_retval
1953
1954 } # ac_fn_c_try_cpp
1955
1956 # ac_fn_c_try_link LINENO
1957 # -----------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_c_try_link ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   rm -f conftest.$ac_objext conftest$ac_exeext
1963   if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966   *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970   (eval "$ac_link") 2>conftest.err
1971   ac_status=$?
1972   if test -s conftest.err; then
1973     grep -v '^ *+' conftest.err >conftest.er1
1974     cat conftest.er1 >&5
1975     mv -f conftest.er1 conftest.err
1976   fi
1977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978   test $ac_status = 0; } && {
1979          test -z "$ac_c_werror_flag" ||
1980          test ! -s conftest.err
1981        } && test -s conftest$ac_exeext && {
1982          test "$cross_compiling" = yes ||
1983          test -x conftest$ac_exeext
1984        }; then :
1985   ac_retval=0
1986 else
1987   $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990         ac_retval=1
1991 fi
1992   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994   # interfere with the next link command; also delete a directory that is
1995   # left behind by Apple's compiler.  We do this before executing the actions.
1996   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998   as_fn_set_status $ac_retval
1999
2000 } # ac_fn_c_try_link
2001
2002 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists and can be compiled using the include files in
2005 # INCLUDES, setting the cache variable VAR accordingly.
2006 ac_fn_c_check_header_compile ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020   eval "$3=yes"
2021 else
2022   eval "$3=no"
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 fi
2026 eval ac_res=\$$3
2027                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031 } # ac_fn_c_check_header_compile
2032
2033 # ac_fn_c_try_run LINENO
2034 # ----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2036 # that executables *can* be run.
2037 ac_fn_c_try_run ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   if { { ac_try="$ac_link"
2041 case "(($ac_try" in
2042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043   *) ac_try_echo=$ac_try;;
2044 esac
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047   (eval "$ac_link") 2>&5
2048   ac_status=$?
2049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2051   { { case "(($ac_try" in
2052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053   *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057   (eval "$ac_try") 2>&5
2058   ac_status=$?
2059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060   test $ac_status = 0; }; }; then :
2061   ac_retval=0
2062 else
2063   $as_echo "$as_me: program exited with status $ac_status" >&5
2064        $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067        ac_retval=$ac_status
2068 fi
2069   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071   as_fn_set_status $ac_retval
2072
2073 } # ac_fn_c_try_run
2074
2075 # ac_fn_c_check_func LINENO FUNC VAR
2076 # ----------------------------------
2077 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2078 ac_fn_c_check_func ()
2079 {
2080   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084   $as_echo_n "(cached) " >&6
2085 else
2086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h.  */
2088 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2090 #define $2 innocuous_$2
2091
2092 /* System header to define __stub macros and hopefully few prototypes,
2093     which can conflict with char $2 (); below.
2094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2095     <limits.h> exists even on freestanding compilers.  */
2096
2097 #ifdef __STDC__
2098 # include <limits.h>
2099 #else
2100 # include <assert.h>
2101 #endif
2102
2103 #undef $2
2104
2105 /* Override any GCC internal prototype to avoid an error.
2106    Use char because int might match the return type of a GCC
2107    builtin and then its argument prototype would still apply.  */
2108 #ifdef __cplusplus
2109 extern "C"
2110 #endif
2111 char $2 ();
2112 /* The GNU C library defines this for functions which it implements
2113     to always fail with ENOSYS.  Some functions are actually named
2114     something starting with __ and the normal name is an alias.  */
2115 #if defined __stub_$2 || defined __stub___$2
2116 choke me
2117 #endif
2118
2119 int
2120 main ()
2121 {
2122 return $2 ();
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_link "$LINENO"; then :
2128   eval "$3=yes"
2129 else
2130   eval "$3=no"
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext \
2133     conftest$ac_exeext conftest.$ac_ext
2134 fi
2135 eval ac_res=\$$3
2136                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139
2140 } # ac_fn_c_check_func
2141
2142 # ac_fn_cxx_try_cpp LINENO
2143 # ------------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_cxx_try_cpp ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   if { { ac_try="$ac_cpp conftest.$ac_ext"
2149 case "(($ac_try" in
2150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151   *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2156   ac_status=$?
2157   if test -s conftest.err; then
2158     grep -v '^ *+' conftest.err >conftest.er1
2159     cat conftest.er1 >&5
2160     mv -f conftest.er1 conftest.err
2161   fi
2162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163   test $ac_status = 0; } > conftest.i && {
2164          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2165          test ! -s conftest.err
2166        }; then :
2167   ac_retval=0
2168 else
2169   $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172     ac_retval=1
2173 fi
2174   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175   as_fn_set_status $ac_retval
2176
2177 } # ac_fn_cxx_try_cpp
2178
2179 # ac_fn_cxx_try_link LINENO
2180 # -------------------------
2181 # Try to link conftest.$ac_ext, and return whether this succeeded.
2182 ac_fn_cxx_try_link ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   rm -f conftest.$ac_objext conftest$ac_exeext
2186   if { { ac_try="$ac_link"
2187 case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193   (eval "$ac_link") 2>conftest.err
2194   ac_status=$?
2195   if test -s conftest.err; then
2196     grep -v '^ *+' conftest.err >conftest.er1
2197     cat conftest.er1 >&5
2198     mv -f conftest.er1 conftest.err
2199   fi
2200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201   test $ac_status = 0; } && {
2202          test -z "$ac_cxx_werror_flag" ||
2203          test ! -s conftest.err
2204        } && test -s conftest$ac_exeext && {
2205          test "$cross_compiling" = yes ||
2206          test -x conftest$ac_exeext
2207        }; then :
2208   ac_retval=0
2209 else
2210   $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213         ac_retval=1
2214 fi
2215   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2216   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2217   # interfere with the next link command; also delete a directory that is
2218   # left behind by Apple's compiler.  We do this before executing the actions.
2219   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221   as_fn_set_status $ac_retval
2222
2223 } # ac_fn_cxx_try_link
2224
2225 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2226 # ---------------------------------------------
2227 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2228 # accordingly.
2229 ac_fn_c_check_decl ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   as_decl_name=`echo $2|sed 's/ *(.*//'`
2233   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2235 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2236 if eval \${$3+:} false; then :
2237   $as_echo_n "(cached) " >&6
2238 else
2239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $4
2242 int
2243 main ()
2244 {
2245 #ifndef $as_decl_name
2246 #ifdef __cplusplus
2247   (void) $as_decl_use;
2248 #else
2249   (void) $as_decl_name;
2250 #endif
2251 #endif
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258   eval "$3=yes"
2259 else
2260   eval "$3=no"
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268
2269 } # ac_fn_c_check_decl
2270
2271 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2272 # -------------------------------------------
2273 # Tests whether TYPE exists after having included INCLUDES, setting cache
2274 # variable VAR accordingly.
2275 ac_fn_c_check_type ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   eval "$3=no"
2284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h.  */
2286 $4
2287 int
2288 main ()
2289 {
2290 if (sizeof ($2))
2291          return 0;
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h.  */
2299 $4
2300 int
2301 main ()
2302 {
2303 if (sizeof (($2)))
2304             return 0;
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310
2311 else
2312   eval "$3=yes"
2313 fi
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 fi
2318 eval ac_res=\$$3
2319                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322
2323 } # ac_fn_c_check_type
2324
2325 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2326 # -------------------------------------------------------
2327 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2328 # the include files in INCLUDES and setting the cache variable VAR
2329 # accordingly.
2330 ac_fn_c_check_header_mongrel ()
2331 {
2332   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333   if eval \${$3+:} false; then :
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if eval \${$3+:} false; then :
2337   $as_echo_n "(cached) " >&6
2338 fi
2339 eval ac_res=\$$3
2340                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341 $as_echo "$ac_res" >&6; }
2342 else
2343   # Is the header compilable?
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2345 $as_echo_n "checking $2 usability... " >&6; }
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348 $4
2349 #include <$2>
2350 _ACEOF
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352   ac_header_compiler=yes
2353 else
2354   ac_header_compiler=no
2355 fi
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2358 $as_echo "$ac_header_compiler" >&6; }
2359
2360 # Is the header present?
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2362 $as_echo_n "checking $2 presence... " >&6; }
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h.  */
2365 #include <$2>
2366 _ACEOF
2367 if ac_fn_c_try_cpp "$LINENO"; then :
2368   ac_header_preproc=yes
2369 else
2370   ac_header_preproc=no
2371 fi
2372 rm -f conftest.err conftest.i conftest.$ac_ext
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2374 $as_echo "$ac_header_preproc" >&6; }
2375
2376 # So?  What about this header?
2377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2378   yes:no: )
2379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2380 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2382 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2383     ;;
2384   no:yes:* )
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2386 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2388 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2390 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2392 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2394 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2395     ;;
2396 esac
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if eval \${$3+:} false; then :
2400   $as_echo_n "(cached) " >&6
2401 else
2402   eval "$3=\$ac_header_compiler"
2403 fi
2404 eval ac_res=\$$3
2405                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 fi
2408   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410 } # ac_fn_c_check_header_mongrel
2411
2412 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2413 # --------------------------------------------
2414 # Tries to find the compile-time value of EXPR in a program that includes
2415 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2416 # computed
2417 ac_fn_c_compute_int ()
2418 {
2419   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420   if test "$cross_compiling" = yes; then
2421     # Depending upon the size, compute the lo and hi bounds.
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h.  */
2424 $4
2425 int
2426 main ()
2427 {
2428 static int test_array [1 - 2 * !(($2) >= 0)];
2429 test_array [0] = 0;
2430 return test_array [0];
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 if ac_fn_c_try_compile "$LINENO"; then :
2437   ac_lo=0 ac_mid=0
2438   while :; do
2439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441 $4
2442 int
2443 main ()
2444 {
2445 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2446 test_array [0] = 0;
2447 return test_array [0];
2448
2449   ;
2450   return 0;
2451 }
2452 _ACEOF
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454   ac_hi=$ac_mid; break
2455 else
2456   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2457                         if test $ac_lo -le $ac_mid; then
2458                           ac_lo= ac_hi=
2459                           break
2460                         fi
2461                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2462 fi
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464   done
2465 else
2466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h.  */
2468 $4
2469 int
2470 main ()
2471 {
2472 static int test_array [1 - 2 * !(($2) < 0)];
2473 test_array [0] = 0;
2474 return test_array [0];
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481   ac_hi=-1 ac_mid=-1
2482   while :; do
2483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h.  */
2485 $4
2486 int
2487 main ()
2488 {
2489 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2490 test_array [0] = 0;
2491 return test_array [0];
2492
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498   ac_lo=$ac_mid; break
2499 else
2500   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2501                         if test $ac_mid -le $ac_hi; then
2502                           ac_lo= ac_hi=
2503                           break
2504                         fi
2505                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508   done
2509 else
2510   ac_lo= ac_hi=
2511 fi
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 fi
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 # Binary search between lo and hi bounds.
2516 while test "x$ac_lo" != "x$ac_hi"; do
2517   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h.  */
2520 $4
2521 int
2522 main ()
2523 {
2524 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2525 test_array [0] = 0;
2526 return test_array [0];
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533   ac_hi=$ac_mid
2534 else
2535   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2536 fi
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 done
2539 case $ac_lo in #((
2540 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2541 '') ac_retval=1 ;;
2542 esac
2543   else
2544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 static long int longval () { return $2; }
2548 static unsigned long int ulongval () { return $2; }
2549 #include <stdio.h>
2550 #include <stdlib.h>
2551 int
2552 main ()
2553 {
2554
2555   FILE *f = fopen ("conftest.val", "w");
2556   if (! f)
2557     return 1;
2558   if (($2) < 0)
2559     {
2560       long int i = longval ();
2561       if (i != ($2))
2562         return 1;
2563       fprintf (f, "%ld", i);
2564     }
2565   else
2566     {
2567       unsigned long int i = ulongval ();
2568       if (i != ($2))
2569         return 1;
2570       fprintf (f, "%lu", i);
2571     }
2572   /* Do not output a trailing newline, as this causes \r\n confusion
2573      on some platforms.  */
2574   return ferror (f) || fclose (f) != 0;
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 if ac_fn_c_try_run "$LINENO"; then :
2581   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2582 else
2583   ac_retval=1
2584 fi
2585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2586   conftest.$ac_objext conftest.beam conftest.$ac_ext
2587 rm -f conftest.val
2588
2589   fi
2590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591   as_fn_set_status $ac_retval
2592
2593 } # ac_fn_c_compute_int
2594
2595 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2596 # ----------------------------------------------------
2597 # Tries to find if the field MEMBER exists in type AGGR, after including
2598 # INCLUDES, setting cache variable VAR accordingly.
2599 ac_fn_c_check_member ()
2600 {
2601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2603 $as_echo_n "checking for $2.$3... " >&6; }
2604 if eval \${$4+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h.  */
2609 $5
2610 int
2611 main ()
2612 {
2613 static $2 ac_aggr;
2614 if (ac_aggr.$3)
2615 return 0;
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621   eval "$4=yes"
2622 else
2623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h.  */
2625 $5
2626 int
2627 main ()
2628 {
2629 static $2 ac_aggr;
2630 if (sizeof ac_aggr.$3)
2631 return 0;
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 if ac_fn_c_try_compile "$LINENO"; then :
2637   eval "$4=yes"
2638 else
2639   eval "$4=no"
2640 fi
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645 eval ac_res=\$$4
2646                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649
2650 } # ac_fn_c_check_member
2651
2652 # ac_fn_cxx_try_run LINENO
2653 # ------------------------
2654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2655 # that executables *can* be run.
2656 ac_fn_cxx_try_run ()
2657 {
2658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659   if { { ac_try="$ac_link"
2660 case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666   (eval "$ac_link") 2>&5
2667   ac_status=$?
2668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2670   { { case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676   (eval "$ac_try") 2>&5
2677   ac_status=$?
2678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679   test $ac_status = 0; }; }; then :
2680   ac_retval=0
2681 else
2682   $as_echo "$as_me: program exited with status $ac_status" >&5
2683        $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686        ac_retval=$ac_status
2687 fi
2688   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690   as_fn_set_status $ac_retval
2691
2692 } # ac_fn_cxx_try_run
2693
2694 # ac_fn_cxx_check_func LINENO FUNC VAR
2695 # ------------------------------------
2696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2697 ac_fn_cxx_check_func ()
2698 {
2699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if eval \${$3+:} false; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h.  */
2707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2709 #define $2 innocuous_$2
2710
2711 /* System header to define __stub macros and hopefully few prototypes,
2712     which can conflict with char $2 (); below.
2713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2714     <limits.h> exists even on freestanding compilers.  */
2715
2716 #ifdef __STDC__
2717 # include <limits.h>
2718 #else
2719 # include <assert.h>
2720 #endif
2721
2722 #undef $2
2723
2724 /* Override any GCC internal prototype to avoid an error.
2725    Use char because int might match the return type of a GCC
2726    builtin and then its argument prototype would still apply.  */
2727 #ifdef __cplusplus
2728 extern "C"
2729 #endif
2730 char $2 ();
2731 /* The GNU C library defines this for functions which it implements
2732     to always fail with ENOSYS.  Some functions are actually named
2733     something starting with __ and the normal name is an alias.  */
2734 #if defined __stub_$2 || defined __stub___$2
2735 choke me
2736 #endif
2737
2738 int
2739 main ()
2740 {
2741 return $2 ();
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 if ac_fn_cxx_try_link "$LINENO"; then :
2747   eval "$3=yes"
2748 else
2749   eval "$3=no"
2750 fi
2751 rm -f core conftest.err conftest.$ac_objext \
2752     conftest$ac_exeext conftest.$ac_ext
2753 fi
2754 eval ac_res=\$$3
2755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2758
2759 } # ac_fn_cxx_check_func
2760 cat >config.log <<_ACEOF
2761 This file contains any messages produced by compilers while
2762 running configure, to aid debugging if configure makes a mistake.
2763
2764 It was created by bacula $as_me 7.2.0, which was
2765 generated by GNU Autoconf 2.69.  Invocation command line was
2766
2767   $ $0 $@
2768
2769 _ACEOF
2770 exec 5>>config.log
2771 {
2772 cat <<_ASUNAME
2773 ## --------- ##
2774 ## Platform. ##
2775 ## --------- ##
2776
2777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2782
2783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2785
2786 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2787 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2790 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2791 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2792 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2793
2794 _ASUNAME
2795
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801     $as_echo "PATH: $as_dir"
2802   done
2803 IFS=$as_save_IFS
2804
2805 } >&5
2806
2807 cat >&5 <<_ACEOF
2808
2809
2810 ## ----------- ##
2811 ## Core tests. ##
2812 ## ----------- ##
2813
2814 _ACEOF
2815
2816
2817 # Keep a trace of the command line.
2818 # Strip out --no-create and --no-recursion so they do not pile up.
2819 # Strip out --silent because we don't want to record it for future runs.
2820 # Also quote any args containing shell meta-characters.
2821 # Make two passes to allow for proper duplicate-argument suppression.
2822 ac_configure_args=
2823 ac_configure_args0=
2824 ac_configure_args1=
2825 ac_must_keep_next=false
2826 for ac_pass in 1 2
2827 do
2828   for ac_arg
2829   do
2830     case $ac_arg in
2831     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833     | -silent | --silent | --silen | --sile | --sil)
2834       continue ;;
2835     *\'*)
2836       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2837     esac
2838     case $ac_pass in
2839     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2840     2)
2841       as_fn_append ac_configure_args1 " '$ac_arg'"
2842       if test $ac_must_keep_next = true; then
2843         ac_must_keep_next=false # Got value, back to normal.
2844       else
2845         case $ac_arg in
2846           *=* | --config-cache | -C | -disable-* | --disable-* \
2847           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849           | -with-* | --with-* | -without-* | --without-* | --x)
2850             case "$ac_configure_args0 " in
2851               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2852             esac
2853             ;;
2854           -* ) ac_must_keep_next=true ;;
2855         esac
2856       fi
2857       as_fn_append ac_configure_args " '$ac_arg'"
2858       ;;
2859     esac
2860   done
2861 done
2862 { ac_configure_args0=; unset ac_configure_args0;}
2863 { ac_configure_args1=; unset ac_configure_args1;}
2864
2865 # When interrupted or exit'd, cleanup temporary files, and complete
2866 # config.log.  We remove comments because anyway the quotes in there
2867 # would cause problems or look ugly.
2868 # WARNING: Use '\'' to represent an apostrophe within the trap.
2869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870 trap 'exit_status=$?
2871   # Save into config.log some information that might help in debugging.
2872   {
2873     echo
2874
2875     $as_echo "## ---------------- ##
2876 ## Cache variables. ##
2877 ## ---------------- ##"
2878     echo
2879     # The following way of writing the cache mishandles newlines in values,
2880 (
2881   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882     eval ac_val=\$$ac_var
2883     case $ac_val in #(
2884     *${as_nl}*)
2885       case $ac_var in #(
2886       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2888       esac
2889       case $ac_var in #(
2890       _ | IFS | as_nl) ;; #(
2891       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892       *) { eval $ac_var=; unset $ac_var;} ;;
2893       esac ;;
2894     esac
2895   done
2896   (set) 2>&1 |
2897     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898     *${as_nl}ac_space=\ *)
2899       sed -n \
2900         "s/'\''/'\''\\\\'\'''\''/g;
2901           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2902       ;; #(
2903     *)
2904       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2905       ;;
2906     esac |
2907     sort
2908 )
2909     echo
2910
2911     $as_echo "## ----------------- ##
2912 ## Output variables. ##
2913 ## ----------------- ##"
2914     echo
2915     for ac_var in $ac_subst_vars
2916     do
2917       eval ac_val=\$$ac_var
2918       case $ac_val in
2919       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920       esac
2921       $as_echo "$ac_var='\''$ac_val'\''"
2922     done | sort
2923     echo
2924
2925     if test -n "$ac_subst_files"; then
2926       $as_echo "## ------------------- ##
2927 ## File substitutions. ##
2928 ## ------------------- ##"
2929       echo
2930       for ac_var in $ac_subst_files
2931       do
2932         eval ac_val=\$$ac_var
2933         case $ac_val in
2934         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2935         esac
2936         $as_echo "$ac_var='\''$ac_val'\''"
2937       done | sort
2938       echo
2939     fi
2940
2941     if test -s confdefs.h; then
2942       $as_echo "## ----------- ##
2943 ## confdefs.h. ##
2944 ## ----------- ##"
2945       echo
2946       cat confdefs.h
2947       echo
2948     fi
2949     test "$ac_signal" != 0 &&
2950       $as_echo "$as_me: caught signal $ac_signal"
2951     $as_echo "$as_me: exit $exit_status"
2952   } >&5
2953   rm -f core *.core core.conftest.* &&
2954     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2955     exit $exit_status
2956 ' 0
2957 for ac_signal in 1 2 13 15; do
2958   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2959 done
2960 ac_signal=0
2961
2962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2963 rm -f -r conftest* confdefs.h
2964
2965 $as_echo "/* confdefs.h */" > confdefs.h
2966
2967 # Predefined preprocessor variables.
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_NAME "$PACKAGE_NAME"
2971 _ACEOF
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2975 _ACEOF
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2979 _ACEOF
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_STRING "$PACKAGE_STRING"
2983 _ACEOF
2984
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2987 _ACEOF
2988
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_URL "$PACKAGE_URL"
2991 _ACEOF
2992
2993
2994 # Let the site file select an alternate cache file if it wants to.
2995 # Prefer an explicitly selected file to automatically selected ones.
2996 ac_site_file1=NONE
2997 ac_site_file2=NONE
2998 if test -n "$CONFIG_SITE"; then
2999   # We do not want a PATH search for config.site.
3000   case $CONFIG_SITE in #((
3001     -*)  ac_site_file1=./$CONFIG_SITE;;
3002     */*) ac_site_file1=$CONFIG_SITE;;
3003     *)   ac_site_file1=./$CONFIG_SITE;;
3004   esac
3005 elif test "x$prefix" != xNONE; then
3006   ac_site_file1=$prefix/share/config.site
3007   ac_site_file2=$prefix/etc/config.site
3008 else
3009   ac_site_file1=$ac_default_prefix/share/config.site
3010   ac_site_file2=$ac_default_prefix/etc/config.site
3011 fi
3012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3013 do
3014   test "x$ac_site_file" = xNONE && continue
3015   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018     sed 's/^/| /' "$ac_site_file" >&5
3019     . "$ac_site_file" \
3020       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "failed to load site script $ac_site_file
3023 See \`config.log' for more details" "$LINENO" 5; }
3024   fi
3025 done
3026
3027 if test -r "$cache_file"; then
3028   # Some versions of bash will fail to source /dev/null (special files
3029   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3030   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032 $as_echo "$as_me: loading cache $cache_file" >&6;}
3033     case $cache_file in
3034       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035       *)                      . "./$cache_file";;
3036     esac
3037   fi
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040 $as_echo "$as_me: creating cache $cache_file" >&6;}
3041   >$cache_file
3042 fi
3043
3044 as_fn_append ac_header_list " stdlib.h"
3045 as_fn_append ac_header_list " unistd.h"
3046 as_fn_append ac_header_list " sys/param.h"
3047 # Check that the precious variables saved in the cache have kept the same
3048 # value.
3049 ac_cache_corrupted=false
3050 for ac_var in $ac_precious_vars; do
3051   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3052   eval ac_new_set=\$ac_env_${ac_var}_set
3053   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3054   eval ac_new_val=\$ac_env_${ac_var}_value
3055   case $ac_old_set,$ac_new_set in
3056     set,)
3057       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3059       ac_cache_corrupted=: ;;
3060     ,set)
3061       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3063       ac_cache_corrupted=: ;;
3064     ,);;
3065     *)
3066       if test "x$ac_old_val" != "x$ac_new_val"; then
3067         # differences in whitespace do not lead to failure.
3068         ac_old_val_w=`echo x $ac_old_val`
3069         ac_new_val_w=`echo x $ac_new_val`
3070         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3071           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3073           ac_cache_corrupted=:
3074         else
3075           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3077           eval $ac_var=\$ac_old_val
3078         fi
3079         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3080 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3081         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3082 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3083       fi;;
3084   esac
3085   # Pass precious variables to config.status.
3086   if test "$ac_new_set" = set; then
3087     case $ac_new_val in
3088     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3089     *) ac_arg=$ac_var=$ac_new_val ;;
3090     esac
3091     case " $ac_configure_args " in
3092       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3093       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3094     esac
3095   fi
3096 done
3097 if $ac_cache_corrupted; then
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3102   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3103 fi
3104 ## -------------------- ##
3105 ## Main body of script. ##
3106 ## -------------------- ##
3107
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113
3114
3115
3116
3117 BUILD_DIR=`pwd`
3118 cd ..
3119 TOP_DIR=`pwd`
3120 cd ${BUILD_DIR}
3121
3122
3123 ac_aux_dir=
3124 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3125   if test -f "$ac_dir/install-sh"; then
3126     ac_aux_dir=$ac_dir
3127     ac_install_sh="$ac_aux_dir/install-sh -c"
3128     break
3129   elif test -f "$ac_dir/install.sh"; then
3130     ac_aux_dir=$ac_dir
3131     ac_install_sh="$ac_aux_dir/install.sh -c"
3132     break
3133   elif test -f "$ac_dir/shtool"; then
3134     ac_aux_dir=$ac_dir
3135     ac_install_sh="$ac_aux_dir/shtool install -c"
3136     break
3137   fi
3138 done
3139 if test -z "$ac_aux_dir"; then
3140   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3141 fi
3142
3143 # These three variables are undocumented and unsupported,
3144 # and are intended to be withdrawn in a future Autoconf release.
3145 # They can cause serious problems if a builder's source tree is in a directory
3146 # whose full name contains unusual characters.
3147 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3148 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3149 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3150
3151
3152 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3153
3154
3155 for ac_prog in true
3156 do
3157   # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_path_TRUEPRG+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   case $TRUEPRG in
3165   [\\/]* | ?:[\\/]*)
3166   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3167   ;;
3168   *)
3169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174     for ac_exec_ext in '' $ac_executable_extensions; do
3175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184   ;;
3185 esac
3186 fi
3187 TRUEPRG=$ac_cv_path_TRUEPRG
3188 if test -n "$TRUEPRG"; then
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3190 $as_echo "$TRUEPRG" >&6; }
3191 else
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197   test -n "$TRUEPRG" && break
3198 done
3199 test -n "$TRUEPRG" || TRUEPRG=":"
3200
3201 for ac_prog in false
3202 do
3203   # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_path_FALSEPRG+:} false; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   case $FALSEPRG in
3211   [\\/]* | ?:[\\/]*)
3212   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3213   ;;
3214   *)
3215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220     for ac_exec_ext in '' $ac_executable_extensions; do
3221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224     break 2
3225   fi
3226 done
3227   done
3228 IFS=$as_save_IFS
3229
3230   ;;
3231 esac
3232 fi
3233 FALSEPRG=$ac_cv_path_FALSEPRG
3234 if test -n "$FALSEPRG"; then
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3236 $as_echo "$FALSEPRG" >&6; }
3237 else
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243   test -n "$FALSEPRG" && break
3244 done
3245 test -n "$FALSEPRG" || FALSEPRG=":"
3246
3247
3248
3249 post_host=
3250 if test "x$BACULA" != x; then
3251    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3252 fi
3253 BACULA=${BACULA:-Bacula}
3254 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3255 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3259 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3260 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3261 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262
3263 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266
3267 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3268 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3269
3270
3271 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3273
3274 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3275 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3276
3277
3278 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279
3280 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3281
3282
3283
3284 PFILES="platforms/Makefile"
3285
3286 echo "configuring for ${BACULA} $VERSION ($DATE)"
3287
3288
3289
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 if test -n "$ac_tool_prefix"; then
3296   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3297 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_CC+:} false; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   if test -n "$CC"; then
3304   ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311     for ac_exec_ext in '' $ac_executable_extensions; do
3312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318   done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3327 else
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332
3333 fi
3334 if test -z "$ac_cv_prog_CC"; then
3335   ac_ct_CC=$CC
3336   # Extract the first word of "gcc", so it can be a program name with args.
3337 set dummy gcc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$ac_ct_CC"; then
3344   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351     for ac_exec_ext in '' $ac_executable_extensions; do
3352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_prog_ac_ct_CC="gcc"
3354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358   done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364 if test -n "$ac_ct_CC"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366 $as_echo "$ac_ct_CC" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372   if test "x$ac_ct_CC" = x; then
3373     CC=""
3374   else
3375     case $cross_compiling:$ac_tool_warned in
3376 yes:)
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3379 ac_tool_warned=yes ;;
3380 esac
3381     CC=$ac_ct_CC
3382   fi
3383 else
3384   CC="$ac_cv_prog_CC"
3385 fi
3386
3387 if test -z "$CC"; then
3388           if test -n "$ac_tool_prefix"; then
3389     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   if test -n "$CC"; then
3397   ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404     for ac_exec_ext in '' $ac_executable_extensions; do
3405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406     ac_cv_prog_CC="${ac_tool_prefix}cc"
3407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411   done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3420 else
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425
3426   fi
3427 fi
3428 if test -z "$CC"; then
3429   # Extract the first word of "cc", so it can be a program name with args.
3430 set dummy cc; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_CC+:} false; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   if test -n "$CC"; then
3437   ac_cv_prog_CC="$CC" # Let the user override the test.
3438 else
3439   ac_prog_rejected=no
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445     for ac_exec_ext in '' $ac_executable_extensions; do
3446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3448        ac_prog_rejected=yes
3449        continue
3450      fi
3451     ac_cv_prog_CC="cc"
3452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453     break 2
3454   fi
3455 done
3456   done
3457 IFS=$as_save_IFS
3458
3459 if test $ac_prog_rejected = yes; then
3460   # We found a bogon in the path, so make sure we never use it.
3461   set dummy $ac_cv_prog_CC
3462   shift
3463   if test $# != 0; then
3464     # We chose a different compiler from the bogus one.
3465     # However, it has the same basename, so the bogon will be chosen
3466     # first if we set CC to just the basename; use the full file name.
3467     shift
3468     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3469   fi
3470 fi
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3477 else
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 fi
3481
3482
3483 fi
3484 if test -z "$CC"; then
3485   if test -n "$ac_tool_prefix"; then
3486   for ac_prog in cl.exe
3487   do
3488     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491 $as_echo_n "checking for $ac_word... " >&6; }
3492 if ${ac_cv_prog_CC+:} false; then :
3493   $as_echo_n "(cached) " >&6
3494 else
3495   if test -n "$CC"; then
3496   ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501   IFS=$as_save_IFS
3502   test -z "$as_dir" && as_dir=.
3503     for ac_exec_ext in '' $ac_executable_extensions; do
3504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510   done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525     test -n "$CC" && break
3526   done
3527 fi
3528 if test -z "$CC"; then
3529   ac_ct_CC=$CC
3530   for ac_prog in cl.exe
3531 do
3532   # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3537   $as_echo_n "(cached) " >&6
3538 else
3539   if test -n "$ac_ct_CC"; then
3540   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545   IFS=$as_save_IFS
3546   test -z "$as_dir" && as_dir=.
3547     for ac_exec_ext in '' $ac_executable_extensions; do
3548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549     ac_cv_prog_ac_ct_CC="$ac_prog"
3550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551     break 2
3552   fi
3553 done
3554   done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3563 else
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 fi
3567
3568
3569   test -n "$ac_ct_CC" && break
3570 done
3571
3572   if test "x$ac_ct_CC" = x; then
3573     CC=""
3574   else
3575     case $cross_compiling:$ac_tool_warned in
3576 yes:)
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned=yes ;;
3580 esac
3581     CC=$ac_ct_CC
3582   fi
3583 fi
3584
3585 fi
3586
3587
3588 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "no acceptable C compiler found in \$PATH
3591 See \`config.log' for more details" "$LINENO" 5; }
3592
3593 # Provide some information about the compiler.
3594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3595 set X $ac_compile
3596 ac_compiler=$2
3597 for ac_option in --version -v -V -qversion; do
3598   { { ac_try="$ac_compiler $ac_option >&5"
3599 case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3606   ac_status=$?
3607   if test -s conftest.err; then
3608     sed '10a\
3609 ... rest of stderr output deleted ...
3610          10q' conftest.err >conftest.er1
3611     cat conftest.er1 >&5
3612   fi
3613   rm -f conftest.er1 conftest.err
3614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615   test $ac_status = 0; }
3616 done
3617
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h.  */
3620
3621 int
3622 main ()
3623 {
3624
3625   ;
3626   return 0;
3627 }
3628 _ACEOF
3629 ac_clean_files_save=$ac_clean_files
3630 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3631 # Try to create an executable without -o first, disregard a.out.
3632 # It will help us diagnose broken compilers, and finding out an intuition
3633 # of exeext.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3635 $as_echo_n "checking whether the C compiler works... " >&6; }
3636 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3637
3638 # The possible output files:
3639 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3640
3641 ac_rmfiles=
3642 for ac_file in $ac_files
3643 do
3644   case $ac_file in
3645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3646     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3647   esac
3648 done
3649 rm -f $ac_rmfiles
3650
3651 if { { ac_try="$ac_link_default"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658   (eval "$ac_link_default") 2>&5
3659   ac_status=$?
3660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661   test $ac_status = 0; }; then :
3662   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3663 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3664 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3665 # so that the user can short-circuit this test for compilers unknown to
3666 # Autoconf.
3667 for ac_file in $ac_files ''
3668 do
3669   test -f "$ac_file" || continue
3670   case $ac_file in
3671     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3672         ;;
3673     [ab].out )
3674         # We found the default executable, but exeext='' is most
3675         # certainly right.
3676         break;;
3677     *.* )
3678         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3679         then :; else
3680            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3681         fi
3682         # We set ac_cv_exeext here because the later test for it is not
3683         # safe: cross compilers may not add the suffix if given an `-o'
3684         # argument, so we may need to know it at that point already.
3685         # Even if this section looks crufty: it has the advantage of
3686         # actually working.
3687         break;;
3688     * )
3689         break;;
3690   esac
3691 done
3692 test "$ac_cv_exeext" = no && ac_cv_exeext=
3693
3694 else
3695   ac_file=''
3696 fi
3697 if test -z "$ac_file"; then :
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700 $as_echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error 77 "C compiler cannot create executables
3706 See \`config.log' for more details" "$LINENO" 5; }
3707 else
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3709 $as_echo "yes" >&6; }
3710 fi
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3712 $as_echo_n "checking for C compiler default output file name... " >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3714 $as_echo "$ac_file" >&6; }
3715 ac_exeext=$ac_cv_exeext
3716
3717 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3718 ac_clean_files=$ac_clean_files_save
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3720 $as_echo_n "checking for suffix of executables... " >&6; }
3721 if { { ac_try="$ac_link"
3722 case "(($ac_try" in
3723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724   *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728   (eval "$ac_link") 2>&5
3729   ac_status=$?
3730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731   test $ac_status = 0; }; then :
3732   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3733 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3734 # work properly (i.e., refer to `conftest.exe'), while it won't with
3735 # `rm'.
3736 for ac_file in conftest.exe conftest conftest.*; do
3737   test -f "$ac_file" || continue
3738   case $ac_file in
3739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3741           break;;
3742     * ) break;;
3743   esac
3744 done
3745 else
3746   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3749 See \`config.log' for more details" "$LINENO" 5; }
3750 fi
3751 rm -f conftest conftest$ac_cv_exeext
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3753 $as_echo "$ac_cv_exeext" >&6; }
3754
3755 rm -f conftest.$ac_ext
3756 EXEEXT=$ac_cv_exeext
3757 ac_exeext=$EXEEXT
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760 #include <stdio.h>
3761 int
3762 main ()
3763 {
3764 FILE *f = fopen ("conftest.out", "w");
3765  return ferror (f) || fclose (f) != 0;
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 ac_clean_files="$ac_clean_files conftest.out"
3772 # Check that the compiler produces executables we can run.  If not, either
3773 # the compiler is broken, or we cross compile.
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3775 $as_echo_n "checking whether we are cross compiling... " >&6; }
3776 if test "$cross_compiling" != yes; then
3777   { { ac_try="$ac_link"
3778 case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_link") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }
3788   if { ac_try='./conftest$ac_cv_exeext'
3789   { { case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795   (eval "$ac_try") 2>&5
3796   ac_status=$?
3797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798   test $ac_status = 0; }; }; then
3799     cross_compiling=no
3800   else
3801     if test "$cross_compiling" = maybe; then
3802         cross_compiling=yes
3803     else
3804         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error $? "cannot run C compiled programs.
3807 If you meant to cross compile, use \`--host'.
3808 See \`config.log' for more details" "$LINENO" 5; }
3809     fi
3810   fi
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3813 $as_echo "$cross_compiling" >&6; }
3814
3815 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3816 ac_clean_files=$ac_clean_files_save
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3818 $as_echo_n "checking for suffix of object files... " >&6; }
3819 if ${ac_cv_objext+:} false; then :
3820   $as_echo_n "(cached) " >&6
3821 else
3822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h.  */
3824
3825 int
3826 main ()
3827 {
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.o conftest.obj
3834 if { { ac_try="$ac_compile"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841   (eval "$ac_compile") 2>&5
3842   ac_status=$?
3843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844   test $ac_status = 0; }; then :
3845   for ac_file in conftest.o conftest.obj conftest.*; do
3846   test -f "$ac_file" || continue;
3847   case $ac_file in
3848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3849     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3850        break;;
3851   esac
3852 done
3853 else
3854   $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error $? "cannot compute suffix of object files: cannot compile
3860 See \`config.log' for more details" "$LINENO" 5; }
3861 fi
3862 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3865 $as_echo "$ac_cv_objext" >&6; }
3866 OBJEXT=$ac_cv_objext
3867 ac_objext=$OBJEXT
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3870 if ${ac_cv_c_compiler_gnu+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879 #ifndef __GNUC__
3880        choke me
3881 #endif
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888   ac_compiler_gnu=yes
3889 else
3890   ac_compiler_gnu=no
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3894
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3898 if test $ac_compiler_gnu = yes; then
3899   GCC=yes
3900 else
3901   GCC=
3902 fi
3903 ac_test_CFLAGS=${CFLAGS+set}
3904 ac_save_CFLAGS=$CFLAGS
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3907 if ${ac_cv_prog_cc_g+:} false; then :
3908   $as_echo_n "(cached) " >&6
3909 else
3910   ac_save_c_werror_flag=$ac_c_werror_flag
3911    ac_c_werror_flag=yes
3912    ac_cv_prog_cc_g=no
3913    CFLAGS="-g"
3914    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926   ac_cv_prog_cc_g=yes
3927 else
3928   CFLAGS=""
3929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941
3942 else
3943   ac_c_werror_flag=$ac_save_c_werror_flag
3944          CFLAGS="-g"
3945          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957   ac_cv_prog_cc_g=yes
3958 fi
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3967 $as_echo "$ac_cv_prog_cc_g" >&6; }
3968 if test "$ac_test_CFLAGS" = set; then
3969   CFLAGS=$ac_save_CFLAGS
3970 elif test $ac_cv_prog_cc_g = yes; then
3971   if test "$GCC" = yes; then
3972     CFLAGS="-g -O2"
3973   else
3974     CFLAGS="-g"
3975   fi
3976 else
3977   if test "$GCC" = yes; then
3978     CFLAGS="-O2"
3979   else
3980     CFLAGS=
3981   fi
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3985 if ${ac_cv_prog_cc_c89+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   ac_cv_prog_cc_c89=no
3989 ac_save_CC=$CC
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h.  */
3992 #include <stdarg.h>
3993 #include <stdio.h>
3994 struct stat;
3995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3996 struct buf { int x; };
3997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3998 static char *e (p, i)
3999      char **p;
4000      int i;
4001 {
4002   return p[i];
4003 }
4004 static char *f (char * (*g) (char **, int), char **p, ...)
4005 {
4006   char *s;
4007   va_list v;
4008   va_start (v,p);
4009   s = g (p, va_arg (v,int));
4010   va_end (v);
4011   return s;
4012 }
4013
4014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4015    function prototypes and stuff, but not '\xHH' hex character constants.
4016    These don't provoke an error unfortunately, instead are silently treated
4017    as 'x'.  The following induces an error, until -std is added to get
4018    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4019    array size at least.  It's necessary to write '\x00'==0 to get something
4020    that's true only with -std.  */
4021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4022
4023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4024    inside strings and character constants.  */
4025 #define FOO(x) 'x'
4026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4027
4028 int test (int i, double x);
4029 struct s1 {int (*f) (int a);};
4030 struct s2 {int (*f) (double a);};
4031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032 int argc;
4033 char **argv;
4034 int
4035 main ()
4036 {
4037 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4043         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4044 do
4045   CC="$ac_save_CC $ac_arg"
4046   if ac_fn_c_try_compile "$LINENO"; then :
4047   ac_cv_prog_cc_c89=$ac_arg
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext
4050   test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 done
4052 rm -f conftest.$ac_ext
4053 CC=$ac_save_CC
4054
4055 fi
4056 # AC_CACHE_VAL
4057 case "x$ac_cv_prog_cc_c89" in
4058   x)
4059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4061   xno)
4062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4064   *)
4065     CC="$CC $ac_cv_prog_cc_c89"
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068 esac
4069 if test "x$ac_cv_prog_cc_c89" != xno; then :
4070
4071 fi
4072
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
4079 ac_ext=cpp
4080 ac_cpp='$CXXCPP $CPPFLAGS'
4081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4084 if test -z "$CXX"; then
4085   if test -n "$CCC"; then
4086     CXX=$CCC
4087   else
4088     if test -n "$ac_tool_prefix"; then
4089   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4090   do
4091     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if ${ac_cv_prog_CXX+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   if test -n "$CXX"; then
4099   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104   IFS=$as_save_IFS
4105   test -z "$as_dir" && as_dir=.
4106     for ac_exec_ext in '' $ac_executable_extensions; do
4107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110     break 2
4111   fi
4112 done
4113   done
4114 IFS=$as_save_IFS
4115
4116 fi
4117 fi
4118 CXX=$ac_cv_prog_CXX
4119 if test -n "$CXX"; then
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4121 $as_echo "$CXX" >&6; }
4122 else
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 fi
4126
4127
4128     test -n "$CXX" && break
4129   done
4130 fi
4131 if test -z "$CXX"; then
4132   ac_ct_CXX=$CXX
4133   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4134 do
4135   # Extract the first word of "$ac_prog", so it can be a program name with args.
4136 set dummy $ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   if test -n "$ac_ct_CXX"; then
4143   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150     for ac_exec_ext in '' $ac_executable_extensions; do
4151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152     ac_cv_prog_ac_ct_CXX="$ac_prog"
4153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154     break 2
4155   fi
4156 done
4157   done
4158 IFS=$as_save_IFS
4159
4160 fi
4161 fi
4162 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4163 if test -n "$ac_ct_CXX"; then
4164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4165 $as_echo "$ac_ct_CXX" >&6; }
4166 else
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 fi
4170
4171
4172   test -n "$ac_ct_CXX" && break
4173 done
4174
4175   if test "x$ac_ct_CXX" = x; then
4176     CXX="g++"
4177   else
4178     case $cross_compiling:$ac_tool_warned in
4179 yes:)
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182 ac_tool_warned=yes ;;
4183 esac
4184     CXX=$ac_ct_CXX
4185   fi
4186 fi
4187
4188   fi
4189 fi
4190 # Provide some information about the compiler.
4191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4192 set X $ac_compile
4193 ac_compiler=$2
4194 for ac_option in --version -v -V -qversion; do
4195   { { ac_try="$ac_compiler $ac_option >&5"
4196 case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4203   ac_status=$?
4204   if test -s conftest.err; then
4205     sed '10a\
4206 ... rest of stderr output deleted ...
4207          10q' conftest.err >conftest.er1
4208     cat conftest.er1 >&5
4209   fi
4210   rm -f conftest.er1 conftest.err
4211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212   test $ac_status = 0; }
4213 done
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4216 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4217 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222
4223 int
4224 main ()
4225 {
4226 #ifndef __GNUC__
4227        choke me
4228 #endif
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_cxx_try_compile "$LINENO"; then :
4235   ac_compiler_gnu=yes
4236 else
4237   ac_compiler_gnu=no
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4241
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4244 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4245 if test $ac_compiler_gnu = yes; then
4246   GXX=yes
4247 else
4248   GXX=
4249 fi
4250 ac_test_CXXFLAGS=${CXXFLAGS+set}
4251 ac_save_CXXFLAGS=$CXXFLAGS
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4253 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4254 if ${ac_cv_prog_cxx_g+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4258    ac_cxx_werror_flag=yes
4259    ac_cv_prog_cxx_g=no
4260    CXXFLAGS="-g"
4261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h.  */
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_cxx_try_compile "$LINENO"; then :
4273   ac_cv_prog_cxx_g=yes
4274 else
4275   CXXFLAGS=""
4276       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h.  */
4278
4279 int
4280 main ()
4281 {
4282
4283   ;
4284   return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_cxx_try_compile "$LINENO"; then :
4288
4289 else
4290   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4291          CXXFLAGS="-g"
4292          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h.  */
4294
4295 int
4296 main ()
4297 {
4298
4299   ;
4300   return 0;
4301 }
4302 _ACEOF
4303 if ac_fn_cxx_try_compile "$LINENO"; then :
4304   ac_cv_prog_cxx_g=yes
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4314 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4315 if test "$ac_test_CXXFLAGS" = set; then
4316   CXXFLAGS=$ac_save_CXXFLAGS
4317 elif test $ac_cv_prog_cxx_g = yes; then
4318   if test "$GXX" = yes; then
4319     CXXFLAGS="-g -O2"
4320   else
4321     CXXFLAGS="-g"
4322   fi
4323 else
4324   if test "$GXX" = yes; then
4325     CXXFLAGS="-O2"
4326   else
4327     CXXFLAGS=
4328   fi
4329 fi
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335
4336 if test "x$CC" != xcc; then
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4338 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4339 else
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4341 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4342 fi
4343 set dummy $CC; ac_cc=`$as_echo "$2" |
4344                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4345 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350
4351 int
4352 main ()
4353 {
4354
4355   ;
4356   return 0;
4357 }
4358 _ACEOF
4359 # Make sure it works both with $CC and with simple cc.
4360 # We do the test twice because some compilers refuse to overwrite an
4361 # existing .o file with -o, though they will create one.
4362 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4363 rm -f conftest2.*
4364 if { { case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370   (eval "$ac_try") 2>&5
4371   ac_status=$?
4372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373   test $ac_status = 0; } &&
4374    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380   (eval "$ac_try") 2>&5
4381   ac_status=$?
4382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383   test $ac_status = 0; };
4384 then
4385   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4386   if test "x$CC" != xcc; then
4387     # Test first that cc exists at all.
4388     if { ac_try='cc -c conftest.$ac_ext >&5'
4389   { { case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394 $as_echo "$ac_try_echo"; } >&5
4395   (eval "$ac_try") 2>&5
4396   ac_status=$?
4397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398   test $ac_status = 0; }; }; then
4399       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4400       rm -f conftest2.*
4401       if { { case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406 $as_echo "$ac_try_echo"; } >&5
4407   (eval "$ac_try") 2>&5
4408   ac_status=$?
4409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410   test $ac_status = 0; } &&
4411          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413   *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417   (eval "$ac_try") 2>&5
4418   ac_status=$?
4419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420   test $ac_status = 0; };
4421       then
4422         # cc works too.
4423         :
4424       else
4425         # cc exists but doesn't like -o.
4426         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4427       fi
4428     fi
4429   fi
4430 else
4431   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4432 fi
4433 rm -f core conftest*
4434
4435 fi
4436 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438 $as_echo "yes" >&6; }
4439 else
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442
4443 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4444
4445 fi
4446
4447 ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4454 # On Suns, sometimes $CPP names a directory.
4455 if test -n "$CPP" && test -d "$CPP"; then
4456   CPP=
4457 fi
4458 if test -z "$CPP"; then
4459   if ${ac_cv_prog_CPP+:} false; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462       # Double quotes because CPP needs to be expanded
4463     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4464     do
4465       ac_preproc_ok=false
4466 for ac_c_preproc_warn_flag in '' yes
4467 do
4468   # Use a header file that comes with gcc, so configuring glibc
4469   # with a fresh cross-compiler works.
4470   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4471   # <limits.h> exists even on freestanding compilers.
4472   # On the NeXT, cc -E runs the code through the compiler's parser,
4473   # not just through cpp. "Syntax error" is here to catch this case.
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476 #ifdef __STDC__
4477 # include <limits.h>
4478 #else
4479 # include <assert.h>
4480 #endif
4481                      Syntax error
4482 _ACEOF
4483 if ac_fn_c_try_cpp "$LINENO"; then :
4484
4485 else
4486   # Broken: fails on valid input.
4487 continue
4488 fi
4489 rm -f conftest.err conftest.i conftest.$ac_ext
4490
4491   # OK, works on sane cases.  Now check whether nonexistent headers
4492   # can be detected and how.
4493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495 #include <ac_nonexistent.h>
4496 _ACEOF
4497 if ac_fn_c_try_cpp "$LINENO"; then :
4498   # Broken: success on invalid input.
4499 continue
4500 else
4501   # Passes both tests.
4502 ac_preproc_ok=:
4503 break
4504 fi
4505 rm -f conftest.err conftest.i conftest.$ac_ext
4506
4507 done
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.i conftest.err conftest.$ac_ext
4510 if $ac_preproc_ok; then :
4511   break
4512 fi
4513
4514     done
4515     ac_cv_prog_CPP=$CPP
4516
4517 fi
4518   CPP=$ac_cv_prog_CPP
4519 else
4520   ac_cv_prog_CPP=$CPP
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4523 $as_echo "$CPP" >&6; }
4524 ac_preproc_ok=false
4525 for ac_c_preproc_warn_flag in '' yes
4526 do
4527   # Use a header file that comes with gcc, so configuring glibc
4528   # with a fresh cross-compiler works.
4529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530   # <limits.h> exists even on freestanding compilers.
4531   # On the NeXT, cc -E runs the code through the compiler's parser,
4532   # not just through cpp. "Syntax error" is here to catch this case.
4533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535 #ifdef __STDC__
4536 # include <limits.h>
4537 #else
4538 # include <assert.h>
4539 #endif
4540                      Syntax error
4541 _ACEOF
4542 if ac_fn_c_try_cpp "$LINENO"; then :
4543
4544 else
4545   # Broken: fails on valid input.
4546 continue
4547 fi
4548 rm -f conftest.err conftest.i conftest.$ac_ext
4549
4550   # OK, works on sane cases.  Now check whether nonexistent headers
4551   # can be detected and how.
4552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h.  */
4554 #include <ac_nonexistent.h>
4555 _ACEOF
4556 if ac_fn_c_try_cpp "$LINENO"; then :
4557   # Broken: success on invalid input.
4558 continue
4559 else
4560   # Passes both tests.
4561 ac_preproc_ok=:
4562 break
4563 fi
4564 rm -f conftest.err conftest.i conftest.$ac_ext
4565
4566 done
4567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4568 rm -f conftest.i conftest.err conftest.$ac_ext
4569 if $ac_preproc_ok; then :
4570
4571 else
4572   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4575 See \`config.log' for more details" "$LINENO" 5; }
4576 fi
4577
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if ${ac_cv_path_GREP+:} false; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590   if test -z "$GREP"; then
4591   ac_path_GREP_found=false
4592   # Loop through the user's path and test for each of PROGNAME-LIST
4593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598     for ac_prog in grep ggrep; do
4599     for ac_exec_ext in '' $ac_executable_extensions; do
4600       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601       as_fn_executable_p "$ac_path_GREP" || continue
4602 # Check for GNU ac_path_GREP and select it if it is found.
4603   # Check for GNU $ac_path_GREP
4604 case `"$ac_path_GREP" --version 2>&1` in
4605 *GNU*)
4606   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4607 *)
4608   ac_count=0
4609   $as_echo_n 0123456789 >"conftest.in"
4610   while :
4611   do
4612     cat "conftest.in" "conftest.in" >"conftest.tmp"
4613     mv "conftest.tmp" "conftest.in"
4614     cp "conftest.in" "conftest.nl"
4615     $as_echo 'GREP' >> "conftest.nl"
4616     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618     as_fn_arith $ac_count + 1 && ac_count=$as_val
4619     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620       # Best one so far, save it but keep looking for a better one
4621       ac_cv_path_GREP="$ac_path_GREP"
4622       ac_path_GREP_max=$ac_count
4623     fi
4624     # 10*(2^10) chars as input seems more than enough
4625     test $ac_count -gt 10 && break
4626   done
4627   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4629
4630       $ac_path_GREP_found && break 3
4631     done
4632   done
4633   done
4634 IFS=$as_save_IFS
4635   if test -z "$ac_cv_path_GREP"; then
4636     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4637   fi
4638 else
4639   ac_cv_path_GREP=$GREP
4640 fi
4641
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4644 $as_echo "$ac_cv_path_GREP" >&6; }
4645  GREP="$ac_cv_path_GREP"
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4649 $as_echo_n "checking for egrep... " >&6; }
4650 if ${ac_cv_path_EGREP+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4654    then ac_cv_path_EGREP="$GREP -E"
4655    else
4656      if test -z "$EGREP"; then
4657   ac_path_EGREP_found=false
4658   # Loop through the user's path and test for each of PROGNAME-LIST
4659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664     for ac_prog in egrep; do
4665     for ac_exec_ext in '' $ac_executable_extensions; do
4666       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4667       as_fn_executable_p "$ac_path_EGREP" || continue
4668 # Check for GNU ac_path_EGREP and select it if it is found.
4669   # Check for GNU $ac_path_EGREP
4670 case `"$ac_path_EGREP" --version 2>&1` in
4671 *GNU*)
4672   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4673 *)
4674   ac_count=0
4675   $as_echo_n 0123456789 >"conftest.in"
4676   while :
4677   do
4678     cat "conftest.in" "conftest.in" >"conftest.tmp"
4679     mv "conftest.tmp" "conftest.in"
4680     cp "conftest.in" "conftest.nl"
4681     $as_echo 'EGREP' >> "conftest.nl"
4682     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684     as_fn_arith $ac_count + 1 && ac_count=$as_val
4685     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4686       # Best one so far, save it but keep looking for a better one
4687       ac_cv_path_EGREP="$ac_path_EGREP"
4688       ac_path_EGREP_max=$ac_count
4689     fi
4690     # 10*(2^10) chars as input seems more than enough
4691     test $ac_count -gt 10 && break
4692   done
4693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4695
4696       $ac_path_EGREP_found && break 3
4697     done
4698   done
4699   done
4700 IFS=$as_save_IFS
4701   if test -z "$ac_cv_path_EGREP"; then
4702     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703   fi
4704 else
4705   ac_cv_path_EGREP=$EGREP
4706 fi
4707
4708    fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4711 $as_echo "$ac_cv_path_EGREP" >&6; }
4712  EGREP="$ac_cv_path_EGREP"
4713
4714
4715 if test $ac_cv_c_compiler_gnu = yes; then
4716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4717 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4718 if ${ac_cv_prog_gcc_traditional+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721     ac_pattern="Autoconf.*'x'"
4722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h.  */
4724 #include <sgtty.h>
4725 Autoconf TIOCGETP
4726 _ACEOF
4727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4729   ac_cv_prog_gcc_traditional=yes
4730 else
4731   ac_cv_prog_gcc_traditional=no
4732 fi
4733 rm -f conftest*
4734
4735
4736   if test $ac_cv_prog_gcc_traditional = no; then
4737     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h.  */
4739 #include <termio.h>
4740 Autoconf TCGETA
4741 _ACEOF
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4744   ac_cv_prog_gcc_traditional=yes
4745 fi
4746 rm -f conftest*
4747
4748   fi
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4751 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4752   if test $ac_cv_prog_gcc_traditional = yes; then
4753     CC="$CC -traditional"
4754   fi
4755 fi
4756
4757 BASECC=`basename $CC`
4758 have_gcc=no
4759 if test "x$BASECC" = xgcc; then
4760    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4761
4762    have_gcc=yes
4763 fi
4764 # Extract the first word of "$CXX", so it can be a program name with args.
4765 set dummy $CXX; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_path_CXX+:} false; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   case $CXX in
4772   [\\/]* | ?:[\\/]*)
4773   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4774   ;;
4775   *)
4776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781     for ac_exec_ext in '' $ac_executable_extensions; do
4782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788   done
4789 IFS=$as_save_IFS
4790
4791   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4792   ;;
4793 esac
4794 fi
4795 CXX=$ac_cv_path_CXX
4796 if test -n "$CXX"; then
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4798 $as_echo "$CXX" >&6; }
4799 else
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804
4805 if test ! -e $CXX; then
4806    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4807 fi
4808
4809 # Find a good install program.  We prefer a C program (faster),
4810 # so one script is as good as another.  But avoid the broken or
4811 # incompatible versions:
4812 # SysV /etc/install, /usr/sbin/install
4813 # SunOS /usr/etc/install
4814 # IRIX /sbin/install
4815 # AIX /bin/install
4816 # AmigaOS /C/install, which installs bootblocks on floppy discs
4817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4820 # OS/2's system install, which has a completely different semantic
4821 # ./install, which can be erroneously created by make from ./install.sh.
4822 # Reject install programs that cannot install multiple files.
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4824 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4825 if test -z "$INSTALL"; then
4826 if ${ac_cv_path_install+:} false; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834     # Account for people who put trailing slashes in PATH elements.
4835 case $as_dir/ in #((
4836   ./ | .// | /[cC]/* | \
4837   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4838   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4839   /usr/ucb/* ) ;;
4840   *)
4841     # OSF1 and SCO ODT 3.0 have their own names for install.
4842     # Don't use installbsd from OSF since it installs stuff as root
4843     # by default.
4844     for ac_prog in ginstall scoinst install; do
4845       for ac_exec_ext in '' $ac_executable_extensions; do
4846         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4847           if test $ac_prog = install &&
4848             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4849             # AIX install.  It has an incompatible calling convention.
4850             :
4851           elif test $ac_prog = install &&
4852             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853             # program-specific install script used by HP pwplus--don't use.
4854             :
4855           else
4856             rm -rf conftest.one conftest.two conftest.dir
4857             echo one > conftest.one
4858             echo two > conftest.two
4859             mkdir conftest.dir
4860             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4861               test -s conftest.one && test -s conftest.two &&
4862               test -s conftest.dir/conftest.one &&
4863               test -s conftest.dir/conftest.two
4864             then
4865               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4866               break 3
4867             fi
4868           fi
4869         fi
4870       done
4871     done
4872     ;;
4873 esac
4874
4875   done
4876 IFS=$as_save_IFS
4877
4878 rm -rf conftest.one conftest.two conftest.dir
4879
4880 fi
4881   if test "${ac_cv_path_install+set}" = set; then
4882     INSTALL=$ac_cv_path_install
4883   else
4884     # As a last resort, use the slow shell script.  Don't cache a
4885     # value for INSTALL within a source directory, because that will
4886     # break other packages using the cache if that directory is
4887     # removed, or if the value is a relative name.
4888     INSTALL=$ac_install_sh
4889   fi
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4892 $as_echo "$INSTALL" >&6; }
4893
4894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4895 # It thinks the first close brace ends the variable substitution.
4896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4897
4898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4899
4900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4901
4902 # Extract the first word of "mv", so it can be a program name with args.
4903 set dummy mv; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_path_MV+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   case $MV in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919     for ac_exec_ext in '' $ac_executable_extensions; do
4920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926   done
4927 IFS=$as_save_IFS
4928
4929   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4930   ;;
4931 esac
4932 fi
4933 MV=$ac_cv_path_MV
4934 if test -n "$MV"; then
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4936 $as_echo "$MV" >&6; }
4937 else
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942
4943 # Extract the first word of "rm", so it can be a program name with args.
4944 set dummy rm; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_path_REMOVE+:} false; then :
4948   $as_echo_n "(cached) " >&6
4949 else
4950   case $REMOVE in
4951   [\\/]* | ?:[\\/]*)
4952   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4953   ;;
4954   *)
4955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4971   ;;
4972 esac
4973 fi
4974 REMOVE=$ac_cv_path_REMOVE
4975 if test -n "$REMOVE"; then
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4977 $as_echo "$REMOVE" >&6; }
4978 else
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983
4984 # Extract the first word of "cp", so it can be a program name with args.
4985 set dummy cp; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_CP+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   case $CP in
4992   [\\/]* | ?:[\\/]*)
4993   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4994   ;;
4995   *)
4996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010
5011   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5012   ;;
5013 esac
5014 fi
5015 CP=$ac_cv_path_CP
5016 if test -n "$CP"; then
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5018 $as_echo "$CP" >&6; }
5019 else
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 # Extract the first word of "sed", so it can be a program name with args.
5026 set dummy sed; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if ${ac_cv_path_SED+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   case $SED in
5033   [\\/]* | ?:[\\/]*)
5034   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5035   ;;
5036   *)
5037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042     for ac_exec_ext in '' $ac_executable_extensions; do
5043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049   done
5050 IFS=$as_save_IFS
5051
5052   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5053   ;;
5054 esac
5055 fi
5056 SED=$ac_cv_path_SED
5057 if test -n "$SED"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5059 $as_echo "$SED" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066 # Extract the first word of "echo", so it can be a program name with args.
5067 set dummy echo; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_ECHO+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   case $ECHO in
5074   [\\/]* | ?:[\\/]*)
5075   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5076   ;;
5077   *)
5078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083     for ac_exec_ext in '' $ac_executable_extensions; do
5084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090   done
5091 IFS=$as_save_IFS
5092
5093   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5094   ;;
5095 esac
5096 fi
5097 ECHO=$ac_cv_path_ECHO
5098 if test -n "$ECHO"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5100 $as_echo "$ECHO" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106
5107 # Extract the first word of "cmp", so it can be a program name with args.
5108 set dummy cmp; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_path_CMP+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   case $CMP in
5115   [\\/]* | ?:[\\/]*)
5116   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5117   ;;
5118   *)
5119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122   IFS=$as_save_IFS
5123   test -z "$as_dir" && as_dir=.
5124     for ac_exec_ext in '' $ac_executable_extensions; do
5125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128     break 2
5129   fi
5130 done
5131   done
5132 IFS=$as_save_IFS
5133
5134   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5135   ;;
5136 esac
5137 fi
5138 CMP=$ac_cv_path_CMP
5139 if test -n "$CMP"; then
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5141 $as_echo "$CMP" >&6; }
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148 # Extract the first word of "tbl", so it can be a program name with args.
5149 set dummy tbl; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_path_TBL+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   case $TBL in
5156   [\\/]* | ?:[\\/]*)
5157   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5158   ;;
5159   *)
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_exec_ext in '' $ac_executable_extensions; do
5166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172   done
5173 IFS=$as_save_IFS
5174
5175   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5176   ;;
5177 esac
5178 fi
5179 TBL=$ac_cv_path_TBL
5180 if test -n "$TBL"; then
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5182 $as_echo "$TBL" >&6; }
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189 # Extract the first word of "ar", so it can be a program name with args.
5190 set dummy ar; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_path_AR+:} false; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   case $AR in
5197   [\\/]* | ?:[\\/]*)
5198   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5199   ;;
5200   *)
5201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206     for ac_exec_ext in '' $ac_executable_extensions; do
5207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213   done
5214 IFS=$as_save_IFS
5215
5216   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5217   ;;
5218 esac
5219 fi
5220 AR=$ac_cv_path_AR
5221 if test -n "$AR"; then
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5223 $as_echo "$AR" >&6; }
5224 else
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229
5230 # Extract the first word of "openssl", so it can be a program name with args.
5231 set dummy openssl; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_path_OPENSSL+:} false; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   case $OPENSSL in
5238   [\\/]* | ?:[\\/]*)
5239   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5240   ;;
5241   *)
5242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247     for ac_exec_ext in '' $ac_executable_extensions; do
5248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254   done
5255 IFS=$as_save_IFS
5256
5257   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5258   ;;
5259 esac
5260 fi
5261 OPENSSL=$ac_cv_path_OPENSSL
5262 if test -n "$OPENSSL"; then
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5264 $as_echo "$OPENSSL" >&6; }
5265 else
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 # Extract the first word of "mtx", so it can be a program name with args.
5272 set dummy mtx; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_path_MTX+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   case $MTX in
5279   [\\/]* | ?:[\\/]*)
5280   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5281   ;;
5282   *)
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_exec_ext in '' $ac_executable_extensions; do
5289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295   done
5296 IFS=$as_save_IFS
5297
5298   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5299   ;;
5300 esac
5301 fi
5302 MTX=$ac_cv_path_MTX
5303 if test -n "$MTX"; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5305 $as_echo "$MTX" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 # Extract the first word of "dd", so it can be a program name with args.
5313 set dummy dd; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_path_DD+:} false; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   case $DD in
5320   [\\/]* | ?:[\\/]*)
5321   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5322   ;;
5323   *)
5324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327   IFS=$as_save_IFS
5328   test -z "$as_dir" && as_dir=.
5329     for ac_exec_ext in '' $ac_executable_extensions; do
5330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333     break 2
5334   fi
5335 done
5336   done
5337 IFS=$as_save_IFS
5338
5339   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5340   ;;
5341 esac
5342 fi
5343 DD=$ac_cv_path_DD
5344 if test -n "$DD"; then
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5346 $as_echo "$DD" >&6; }
5347 else
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 # Extract the first word of "mkisofs", so it can be a program name with args.
5354 set dummy mkisofs; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_path_MKISOFS+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   case $MKISOFS in
5361   [\\/]* | ?:[\\/]*)
5362   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5363   ;;
5364   *)
5365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370     for ac_exec_ext in '' $ac_executable_extensions; do
5371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374     break 2
5375   fi
5376 done
5377   done
5378 IFS=$as_save_IFS
5379
5380   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5381   ;;
5382 esac
5383 fi
5384 MKISOFS=$ac_cv_path_MKISOFS
5385 if test -n "$MKISOFS"; then
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5387 $as_echo "$MKISOFS" >&6; }
5388 else
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 # Extract the first word of "python", so it can be a program name with args.
5395 set dummy python; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_path_PYTHON+:} false; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   case $PYTHON in
5402   [\\/]* | ?:[\\/]*)
5403   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5404   ;;
5405   *)
5406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5422   ;;
5423 esac
5424 fi
5425 PYTHON=$ac_cv_path_PYTHON
5426 if test -n "$PYTHON"; then
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5428 $as_echo "$PYTHON" >&6; }
5429 else
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433
5434
5435 # Extract the first word of "growisofs", so it can be a program name with args.
5436 set dummy growisofs; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_GROWISOFS+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   case $GROWISOFS in
5443   [\\/]* | ?:[\\/]*)
5444   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5445   ;;
5446   *)
5447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5463   ;;
5464 esac
5465 fi
5466 GROWISOFS=$ac_cv_path_GROWISOFS
5467 if test -n "$GROWISOFS"; then
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5469 $as_echo "$GROWISOFS" >&6; }
5470 else
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475
5476 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5477 set dummy dvd+rw-mediainfo; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   case $DVDRWMEDIAINFO in
5484   [\\/]* | ?:[\\/]*)
5485   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5486   ;;
5487   *)
5488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502
5503   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5504   ;;
5505 esac
5506 fi
5507 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5508 if test -n "$DVDRWMEDIAINFO"; then
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5510 $as_echo "$DVDRWMEDIAINFO" >&6; }
5511 else
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 fi
5515
5516
5517 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5518 set dummy dvd+rw-format; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   case $DVDRWFORMAT in
5525   [\\/]* | ?:[\\/]*)
5526   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5527   ;;
5528   *)
5529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5545   ;;
5546 esac
5547 fi
5548 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5549 if test -n "$DVDRWFORMAT"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5551 $as_echo "$DVDRWFORMAT" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 # Extract the first word of "pkg-config", so it can be a program name with args.
5559 set dummy pkg-config; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_path_PKGCONFIG+:} false; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   case $PKGCONFIG in
5566   [\\/]* | ?:[\\/]*)
5567   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5568   ;;
5569   *)
5570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575     for ac_exec_ext in '' $ac_executable_extensions; do
5576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579     break 2
5580   fi
5581 done
5582   done
5583 IFS=$as_save_IFS
5584
5585   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5586   ;;
5587 esac
5588 fi
5589 PKGCONFIG=$ac_cv_path_PKGCONFIG
5590 if test -n "$PKGCONFIG"; then
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5592 $as_echo "$PKGCONFIG" >&6; }
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 # Extract the first word of "qmake", so it can be a program name with args.
5600 set dummy qmake; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_path_QMAKE+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   case $QMAKE in
5607   [\\/]* | ?:[\\/]*)
5608   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5609   ;;
5610   *)
5611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614   IFS=$as_save_IFS
5615   test -z "$as_dir" && as_dir=.
5616     for ac_exec_ext in '' $ac_executable_extensions; do
5617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620     break 2
5621   fi
5622 done
5623   done
5624 IFS=$as_save_IFS
5625
5626   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5627   ;;
5628 esac
5629 fi
5630 QMAKE=$ac_cv_path_QMAKE
5631 if test -n "$QMAKE"; then
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5633 $as_echo "$QMAKE" >&6; }
5634 else
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640 # Extract the first word of "gmake", so it can be a program name with args.
5641 set dummy gmake; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_path_GMAKE+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   case $GMAKE in
5648   [\\/]* | ?:[\\/]*)
5649   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5650   ;;
5651   *)
5652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657     for ac_exec_ext in '' $ac_executable_extensions; do
5658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664   done
5665 IFS=$as_save_IFS
5666
5667   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5668   ;;
5669 esac
5670 fi
5671 GMAKE=$ac_cv_path_GMAKE
5672 if test -n "$GMAKE"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5674 $as_echo "$GMAKE" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680
5681 # Extract the first word of "pidof", so it can be a program name with args.
5682 set dummy pidof; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_PIDOF+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   case $PIDOF in
5689   [\\/]* | ?:[\\/]*)
5690   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5691   ;;
5692   *)
5693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5709   ;;
5710 esac
5711 fi
5712 PIDOF=$ac_cv_path_PIDOF
5713 if test -n "$PIDOF"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5715 $as_echo "$PIDOF" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721
5722 for ac_prog in gawk mawk nawk awk
5723 do
5724   # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_AWK+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   if test -n "$AWK"; then
5732   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739     for ac_exec_ext in '' $ac_executable_extensions; do
5740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_prog_AWK="$ac_prog"
5742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746   done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 AWK=$ac_cv_prog_AWK
5752 if test -n "$AWK"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5754 $as_echo "$AWK" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761   test -n "$AWK" && break
5762 done
5763
5764 # Some AWK programs fail, so test it and warn the user
5765 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5766       { if ((prog == $2) || (("(" prog ")") == $2) ||
5767       (("" prog "") == $2) ||
5768       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5769 else
5770   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5771    The regex engine of $AWK is too broken to be used you
5772    might want to install GNU AWK.
5773    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5774 fi
5775 THE_AWK=$AWK
5776 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5777 set dummy $THE_AWK; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_path_AWK+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   case $AWK in
5784   [\\/]* | ?:[\\/]*)
5785   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5786   ;;
5787   *)
5788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793     for ac_exec_ext in '' $ac_executable_extensions; do
5794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800   done
5801 IFS=$as_save_IFS
5802
5803   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5804   ;;
5805 esac
5806 fi
5807 AWK=$ac_cv_path_AWK
5808 if test -n "$AWK"; then
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5810 $as_echo "$AWK" >&6; }
5811 else
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5814 fi
5815
5816
5817
5818
5819 test -n "$ARFLAG" || ARFLAGS="cr"
5820
5821
5822 MAKE_SHELL=/bin/sh
5823
5824
5825
5826
5827
5828
5829
5830 use_libtool=yes
5831 # Check whether --enable-libtool was given.
5832 if test "${enable_libtool+set}" = set; then :
5833   enableval=$enable_libtool;
5834        if test x$enableval = xno; then
5835           use_libtool=no
5836        fi
5837
5838
5839 fi
5840
5841 case `pwd` in
5842   *\ * | *\     *)
5843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5844 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5845 esac
5846
5847
5848
5849 macro_version='2.4.2'
5850 macro_revision='1.3337'
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 ltmain="$ac_aux_dir/ltmain.sh"
5865
5866 # Make sure we can run config.sub.
5867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5868   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5871 $as_echo_n "checking build system type... " >&6; }
5872 if ${ac_cv_build+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   ac_build_alias=$build_alias
5876 test "x$ac_build_alias" = x &&
5877   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5878 test "x$ac_build_alias" = x &&
5879   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5881   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5882
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5885 $as_echo "$ac_cv_build" >&6; }
5886 case $ac_cv_build in
5887 *-*-*) ;;
5888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5889 esac
5890 build=$ac_cv_build
5891 ac_save_IFS=$IFS; IFS='-'
5892 set x $ac_cv_build
5893 shift
5894 build_cpu=$1
5895 build_vendor=$2
5896 shift; shift
5897 # Remember, the first character of IFS is used to create $*,
5898 # except with old shells:
5899 build_os=$*
5900 IFS=$ac_save_IFS
5901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5902
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5905 $as_echo_n "checking host system type... " >&6; }
5906 if ${ac_cv_host+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   if test "x$host_alias" = x; then
5910   ac_cv_host=$ac_cv_build
5911 else
5912   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5913     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5914 fi
5915
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5918 $as_echo "$ac_cv_host" >&6; }
5919 case $ac_cv_host in
5920 *-*-*) ;;
5921 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5922 esac
5923 host=$ac_cv_host
5924 ac_save_IFS=$IFS; IFS='-'
5925 set x $ac_cv_host
5926 shift
5927 host_cpu=$1
5928 host_vendor=$2
5929 shift; shift
5930 # Remember, the first character of IFS is used to create $*,
5931 # except with old shells:
5932 host_os=$*
5933 IFS=$ac_save_IFS
5934 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5935
5936
5937 # Backslashify metacharacters that are still active within
5938 # double-quoted strings.
5939 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5940
5941 # Same as above, but do not quote variable references.
5942 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5943
5944 # Sed substitution to delay expansion of an escaped shell variable in a
5945 # double_quote_subst'ed string.
5946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5947
5948 # Sed substitution to delay expansion of an escaped single quote.
5949 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5950
5951 # Sed substitution to avoid accidental globbing in evaled expressions
5952 no_glob_subst='s/\*/\\\*/g'
5953
5954 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5957
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5959 $as_echo_n "checking how to print strings... " >&6; }
5960 # Test print first, because it will be a builtin if present.
5961 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5962    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5963   ECHO='print -r --'
5964 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5965   ECHO='printf %s\n'
5966 else
5967   # Use this function as a fallback that always works.
5968   func_fallback_echo ()
5969   {
5970     eval 'cat <<_LTECHO_EOF
5971 $1
5972 _LTECHO_EOF'
5973   }
5974   ECHO='func_fallback_echo'
5975 fi
5976
5977 # func_echo_all arg...
5978 # Invoke $ECHO with all args, space-separated.
5979 func_echo_all ()
5980 {
5981     $ECHO ""
5982 }
5983
5984 case "$ECHO" in
5985   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5986 $as_echo "printf" >&6; } ;;
5987   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5988 $as_echo "print -r" >&6; } ;;
5989   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5990 $as_echo "cat" >&6; } ;;
5991 esac
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6007 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6008 if ${ac_cv_path_SED+:} false; then :
6009   $as_echo_n "(cached) " >&6
6010 else
6011             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6012      for ac_i in 1 2 3 4 5 6 7; do
6013        ac_script="$ac_script$as_nl$ac_script"
6014      done
6015      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6016      { ac_script=; unset ac_script;}
6017      if test -z "$SED"; then
6018   ac_path_SED_found=false
6019   # Loop through the user's path and test for each of PROGNAME-LIST
6020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025     for ac_prog in sed gsed; do
6026     for ac_exec_ext in '' $ac_executable_extensions; do
6027       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6028       as_fn_executable_p "$ac_path_SED" || continue
6029 # Check for GNU ac_path_SED and select it if it is found.
6030   # Check for GNU $ac_path_SED
6031 case `"$ac_path_SED" --version 2>&1` in
6032 *GNU*)
6033   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6034 *)
6035   ac_count=0
6036   $as_echo_n 0123456789 >"conftest.in"
6037   while :
6038   do
6039     cat "conftest.in" "conftest.in" >"conftest.tmp"
6040     mv "conftest.tmp" "conftest.in"
6041     cp "conftest.in" "conftest.nl"
6042     $as_echo '' >> "conftest.nl"
6043     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6045     as_fn_arith $ac_count + 1 && ac_count=$as_val
6046     if test $ac_count -gt ${ac_path_SED_max-0}; then
6047       # Best one so far, save it but keep looking for a better one
6048       ac_cv_path_SED="$ac_path_SED"
6049       ac_path_SED_max=$ac_count
6050     fi
6051     # 10*(2^10) chars as input seems more than enough
6052     test $ac_count -gt 10 && break
6053   done
6054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6055 esac
6056
6057       $ac_path_SED_found && break 3
6058     done
6059   done
6060   done
6061 IFS=$as_save_IFS
6062   if test -z "$ac_cv_path_SED"; then
6063     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6064   fi
6065 else
6066   ac_cv_path_SED=$SED
6067 fi
6068
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6071 $as_echo "$ac_cv_path_SED" >&6; }
6072  SED="$ac_cv_path_SED"
6073   rm -f conftest.sed
6074
6075 test -z "$SED" && SED=sed
6076 Xsed="$SED -e 1s/^X//"
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6089 $as_echo_n "checking for fgrep... " >&6; }
6090 if ${ac_cv_path_FGREP+:} false; then :
6091   $as_echo_n "(cached) " >&6
6092 else
6093   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6094    then ac_cv_path_FGREP="$GREP -F"
6095    else
6096      if test -z "$FGREP"; then
6097   ac_path_FGREP_found=false
6098   # Loop through the user's path and test for each of PROGNAME-LIST
6099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104     for ac_prog in fgrep; do
6105     for ac_exec_ext in '' $ac_executable_extensions; do
6106       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6107       as_fn_executable_p "$ac_path_FGREP" || continue
6108 # Check for GNU ac_path_FGREP and select it if it is found.
6109   # Check for GNU $ac_path_FGREP
6110 case `"$ac_path_FGREP" --version 2>&1` in
6111 *GNU*)
6112   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6113 *)
6114   ac_count=0
6115   $as_echo_n 0123456789 >"conftest.in"
6116   while :
6117   do
6118     cat "conftest.in" "conftest.in" >"conftest.tmp"
6119     mv "conftest.tmp" "conftest.in"
6120     cp "conftest.in" "conftest.nl"
6121     $as_echo 'FGREP' >> "conftest.nl"
6122     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6124     as_fn_arith $ac_count + 1 && ac_count=$as_val
6125     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6126       # Best one so far, save it but keep looking for a better one
6127       ac_cv_path_FGREP="$ac_path_FGREP"
6128       ac_path_FGREP_max=$ac_count
6129     fi
6130     # 10*(2^10) chars as input seems more than enough
6131     test $ac_count -gt 10 && break
6132   done
6133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6134 esac
6135
6136       $ac_path_FGREP_found && break 3
6137     done
6138   done
6139   done
6140 IFS=$as_save_IFS
6141   if test -z "$ac_cv_path_FGREP"; then
6142     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6143   fi
6144 else
6145   ac_cv_path_FGREP=$FGREP
6146 fi
6147
6148    fi
6149 fi
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6151 $as_echo "$ac_cv_path_FGREP" >&6; }
6152  FGREP="$ac_cv_path_FGREP"
6153
6154
6155 test -z "$GREP" && GREP=grep
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 # Check whether --with-gnu-ld was given.
6176 if test "${with_gnu_ld+set}" = set; then :
6177   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6178 else
6179   with_gnu_ld=no
6180 fi
6181
6182 ac_prog=ld
6183 if test "$GCC" = yes; then
6184   # Check if gcc -print-prog-name=ld gives a path.
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6186 $as_echo_n "checking for ld used by $CC... " >&6; }
6187   case $host in
6188   *-*-mingw*)
6189     # gcc leaves a trailing carriage return which upsets mingw
6190     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6191   *)
6192     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6193   esac
6194   case $ac_prog in
6195     # Accept absolute paths.
6196     [\\/]* | ?:[\\/]*)
6197       re_direlt='/[^/][^/]*/\.\./'
6198       # Canonicalize the pathname of ld
6199       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6200       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6201         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6202       done
6203       test -z "$LD" && LD="$ac_prog"
6204       ;;
6205   "")
6206     # If it fails, then pretend we aren't using GCC.
6207     ac_prog=ld
6208     ;;
6209   *)
6210     # If it is relative, then search for the first ld in PATH.
6211     with_gnu_ld=unknown
6212     ;;
6213   esac
6214 elif test "$with_gnu_ld" = yes; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6216 $as_echo_n "checking for GNU ld... " >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6219 $as_echo_n "checking for non-GNU ld... " >&6; }
6220 fi
6221 if ${lt_cv_path_LD+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   if test -z "$LD"; then
6225   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6226   for ac_dir in $PATH; do
6227     IFS="$lt_save_ifs"
6228     test -z "$ac_dir" && ac_dir=.
6229     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6230       lt_cv_path_LD="$ac_dir/$ac_prog"
6231       # Check to see if the program is GNU ld.  I'd rather use --version,
6232       # but apparently some variants of GNU ld only accept -v.
6233       # Break only if it was the GNU/non-GNU ld that we prefer.
6234       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6235       *GNU* | *'with BFD'*)
6236         test "$with_gnu_ld" != no && break
6237         ;;
6238       *)
6239         test "$with_gnu_ld" != yes && break
6240         ;;
6241       esac
6242     fi
6243   done
6244   IFS="$lt_save_ifs"
6245 else
6246   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6247 fi
6248 fi
6249
6250 LD="$lt_cv_path_LD"
6251 if test -n "$LD"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6253 $as_echo "$LD" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6261 if ${lt_cv_prog_gnu_ld+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6265 case `$LD -v 2>&1 </dev/null` in
6266 *GNU* | *'with BFD'*)
6267   lt_cv_prog_gnu_ld=yes
6268   ;;
6269 *)
6270   lt_cv_prog_gnu_ld=no
6271   ;;
6272 esac
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6276 with_gnu_ld=$lt_cv_prog_gnu_ld
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6288 if ${lt_cv_path_NM+:} false; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291   if test -n "$NM"; then
6292   # Let the user override the test.
6293   lt_cv_path_NM="$NM"
6294 else
6295   lt_nm_to_check="${ac_tool_prefix}nm"
6296   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6297     lt_nm_to_check="$lt_nm_to_check nm"
6298   fi
6299   for lt_tmp_nm in $lt_nm_to_check; do
6300     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6301     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6302       IFS="$lt_save_ifs"
6303       test -z "$ac_dir" && ac_dir=.
6304       tmp_nm="$ac_dir/$lt_tmp_nm"
6305       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6306         # Check to see if the nm accepts a BSD-compat flag.
6307         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6308         #   nm: unknown option "B" ignored
6309         # Tru64's nm complains that /dev/null is an invalid object file
6310         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6311         */dev/null* | *'Invalid file or object type'*)
6312           lt_cv_path_NM="$tmp_nm -B"
6313           break
6314           ;;
6315         *)
6316           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6317           */dev/null*)
6318             lt_cv_path_NM="$tmp_nm -p"
6319             break
6320             ;;
6321           *)
6322             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6323             continue # so that we can try to find one that supports BSD flags
6324             ;;
6325           esac
6326           ;;
6327         esac
6328       fi
6329     done
6330     IFS="$lt_save_ifs"
6331   done
6332   : ${lt_cv_path_NM=no}
6333 fi
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6336 $as_echo "$lt_cv_path_NM" >&6; }
6337 if test "$lt_cv_path_NM" != "no"; then
6338   NM="$lt_cv_path_NM"
6339 else
6340   # Didn't find any BSD compatible name lister, look for dumpbin.
6341   if test -n "$DUMPBIN"; then :
6342     # Let the user override the test.
6343   else
6344     if test -n "$ac_tool_prefix"; then
6345   for ac_prog in dumpbin "link -dump"
6346   do
6347     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_DUMPBIN+:} false; then :
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$DUMPBIN"; then
6355   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362     for ac_exec_ext in '' $ac_executable_extensions; do
6363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366     break 2
6367   fi
6368 done
6369   done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 DUMPBIN=$ac_cv_prog_DUMPBIN
6375 if test -n "$DUMPBIN"; then
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6377 $as_echo "$DUMPBIN" >&6; }
6378 else
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383
6384     test -n "$DUMPBIN" && break
6385   done
6386 fi
6387 if test -z "$DUMPBIN"; then
6388   ac_ct_DUMPBIN=$DUMPBIN
6389   for ac_prog in dumpbin "link -dump"
6390 do
6391   # Extract the first word of "$ac_prog", so it can be a program name with args.
6392 set dummy $ac_prog; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6396   $as_echo_n "(cached) " >&6
6397 else
6398   if test -n "$ac_ct_DUMPBIN"; then
6399   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406     for ac_exec_ext in '' $ac_executable_extensions; do
6407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413   done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6419 if test -n "$ac_ct_DUMPBIN"; then
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6421 $as_echo "$ac_ct_DUMPBIN" >&6; }
6422 else
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6425 fi
6426
6427
6428   test -n "$ac_ct_DUMPBIN" && break
6429 done
6430
6431   if test "x$ac_ct_DUMPBIN" = x; then
6432     DUMPBIN=":"
6433   else
6434     case $cross_compiling:$ac_tool_warned in
6435 yes:)
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440     DUMPBIN=$ac_ct_DUMPBIN
6441   fi
6442 fi
6443
6444     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6445     *COFF*)
6446       DUMPBIN="$DUMPBIN -symbols"
6447       ;;
6448     *)
6449       DUMPBIN=:
6450       ;;
6451     esac
6452   fi
6453
6454   if test "$DUMPBIN" != ":"; then
6455     NM="$DUMPBIN"
6456   fi
6457 fi
6458 test -z "$NM" && NM=nm
6459
6460
6461
6462
6463
6464
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6466 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6467 if ${lt_cv_nm_interface+:} false; then :
6468   $as_echo_n "(cached) " >&6
6469 else
6470   lt_cv_nm_interface="BSD nm"
6471   echo "int some_variable = 0;" > conftest.$ac_ext
6472   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6473   (eval "$ac_compile" 2>conftest.err)
6474   cat conftest.err >&5
6475   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6476   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6477   cat conftest.err >&5
6478   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6479   cat conftest.out >&5
6480   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6481     lt_cv_nm_interface="MS dumpbin"
6482   fi
6483   rm -f conftest*
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6486 $as_echo "$lt_cv_nm_interface" >&6; }
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6489 $as_echo_n "checking whether ln -s works... " >&6; }
6490 LN_S=$as_ln_s
6491 if test "$LN_S" = "ln -s"; then
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6493 $as_echo "yes" >&6; }
6494 else
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6496 $as_echo "no, using $LN_S" >&6; }
6497 fi
6498
6499 # find the maximum length of command line arguments
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6501 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6502 if ${lt_cv_sys_max_cmd_len+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505     i=0
6506   teststring="ABCD"
6507
6508   case $build_os in
6509   msdosdjgpp*)
6510     # On DJGPP, this test can blow up pretty badly due to problems in libc
6511     # (any single argument exceeding 2000 bytes causes a buffer overrun
6512     # during glob expansion).  Even if it were fixed, the result of this
6513     # check would be larger than it should be.
6514     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6515     ;;
6516
6517   gnu*)
6518     # Under GNU Hurd, this test is not required because there is
6519     # no limit to the length of command line arguments.
6520     # Libtool will interpret -1 as no limit whatsoever
6521     lt_cv_sys_max_cmd_len=-1;
6522     ;;
6523
6524   cygwin* | mingw* | cegcc*)
6525     # On Win9x/ME, this test blows up -- it succeeds, but takes
6526     # about 5 minutes as the teststring grows exponentially.
6527     # Worse, since 9x/ME are not pre-emptively multitasking,
6528     # you end up with a "frozen" computer, even though with patience
6529     # the test eventually succeeds (with a max line length of 256k).
6530     # Instead, let's just punt: use the minimum linelength reported by
6531     # all of the supported platforms: 8192 (on NT/2K/XP).
6532     lt_cv_sys_max_cmd_len=8192;
6533     ;;
6534
6535   mint*)
6536     # On MiNT this can take a long time and run out of memory.
6537     lt_cv_sys_max_cmd_len=8192;
6538     ;;
6539
6540   amigaos*)
6541     # On AmigaOS with pdksh, this test takes hours, literally.
6542     # So we just punt and use a minimum line length of 8192.
6543     lt_cv_sys_max_cmd_len=8192;
6544     ;;
6545
6546   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6547     # This has been around since 386BSD, at least.  Likely further.
6548     if test -x /sbin/sysctl; then
6549       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6550     elif test -x /usr/sbin/sysctl; then
6551       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6552     else
6553       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6554     fi
6555     # And add a safety zone
6556     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6557     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6558     ;;
6559
6560   interix*)
6561     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6562     lt_cv_sys_max_cmd_len=196608
6563     ;;
6564
6565   os2*)
6566     # The test takes a long time on OS/2.
6567     lt_cv_sys_max_cmd_len=8192
6568     ;;
6569
6570   osf*)
6571     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6572     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6573     # nice to cause kernel panics so lets avoid the loop below.
6574     # First set a reasonable default.
6575     lt_cv_sys_max_cmd_len=16384
6576     #
6577     if test -x /sbin/sysconfig; then
6578       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6579         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6580       esac
6581     fi
6582     ;;
6583   sco3.2v5*)
6584     lt_cv_sys_max_cmd_len=102400
6585     ;;
6586   sysv5* | sco5v6* | sysv4.2uw2*)
6587     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6588     if test -n "$kargmax"; then
6589       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6590     else
6591       lt_cv_sys_max_cmd_len=32768
6592     fi
6593     ;;
6594   *)
6595     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6596     if test -n "$lt_cv_sys_max_cmd_len" && \
6597         test undefined != "$lt_cv_sys_max_cmd_len"; then
6598       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6599       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6600     else
6601       # Make teststring a little bigger before we do anything with it.
6602       # a 1K string should be a reasonable start.
6603       for i in 1 2 3 4 5 6 7 8 ; do
6604         teststring=$teststring$teststring
6605       done
6606       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6607       # If test is not a shell built-in, we'll probably end up computing a
6608       # maximum length that is only half of the actual maximum length, but
6609       # we can't tell.
6610       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6611                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6612               test $i != 17 # 1/2 MB should be enough
6613       do
6614         i=`expr $i + 1`
6615         teststring=$teststring$teststring
6616       done
6617       # Only check the string length outside the loop.
6618       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6619       teststring=
6620       # Add a significant safety factor because C++ compilers can tack on
6621       # massive amounts of additional arguments before passing them to the
6622       # linker.  It appears as though 1/2 is a usable value.
6623       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6624     fi
6625     ;;
6626   esac
6627
6628 fi
6629
6630 if test -n $lt_cv_sys_max_cmd_len ; then
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6632 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6633 else
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6635 $as_echo "none" >&6; }
6636 fi
6637 max_cmd_len=$lt_cv_sys_max_cmd_len
6638
6639
6640
6641
6642
6643
6644 : ${CP="cp -f"}
6645 : ${MV="mv -f"}
6646 : ${RM="rm -f"}
6647
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6649 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6650 # Try some XSI features
6651 xsi_shell=no
6652 ( _lt_dummy="a/b/c"
6653   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6654       = c,a/b,b/c, \
6655     && eval 'test $(( 1 + 1 )) -eq 2 \
6656     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6657   && xsi_shell=yes
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6659 $as_echo "$xsi_shell" >&6; }
6660
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6663 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6664 lt_shell_append=no
6665 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6666     >/dev/null 2>&1 \
6667   && lt_shell_append=yes
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6669 $as_echo "$lt_shell_append" >&6; }
6670
6671
6672 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6673   lt_unset=unset
6674 else
6675   lt_unset=false
6676 fi
6677
6678
6679
6680
6681
6682 # test EBCDIC or ASCII
6683 case `echo X|tr X '\101'` in
6684  A) # ASCII based system
6685     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6686   lt_SP2NL='tr \040 \012'
6687   lt_NL2SP='tr \015\012 \040\040'
6688   ;;
6689  *) # EBCDIC based system
6690   lt_SP2NL='tr \100 \n'
6691   lt_NL2SP='tr \r\n \100\100'
6692   ;;
6693 esac
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6704 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6705 if ${lt_cv_to_host_file_cmd+:} false; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   case $host in
6709   *-*-mingw* )
6710     case $build in
6711       *-*-mingw* ) # actually msys
6712         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6713         ;;
6714       *-*-cygwin* )
6715         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6716         ;;
6717       * ) # otherwise, assume *nix
6718         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6719         ;;
6720     esac
6721     ;;
6722   *-*-cygwin* )
6723     case $build in
6724       *-*-mingw* ) # actually msys
6725         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6726         ;;
6727       *-*-cygwin* )
6728         lt_cv_to_host_file_cmd=func_convert_file_noop
6729         ;;
6730       * ) # otherwise, assume *nix
6731         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6732         ;;
6733     esac
6734     ;;
6735   * ) # unhandled hosts (and "normal" native builds)
6736     lt_cv_to_host_file_cmd=func_convert_file_noop
6737     ;;
6738 esac
6739
6740 fi
6741
6742 to_host_file_cmd=$lt_cv_to_host_file_cmd
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6744 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6745
6746
6747
6748
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6751 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6752 if ${lt_cv_to_tool_file_cmd+:} false; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   #assume ordinary cross tools, or native build.
6756 lt_cv_to_tool_file_cmd=func_convert_file_noop
6757 case $host in
6758   *-*-mingw* )
6759     case $build in
6760       *-*-mingw* ) # actually msys
6761         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6762         ;;
6763     esac
6764     ;;
6765 esac
6766
6767 fi
6768
6769 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6771 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6772
6773
6774
6775
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6778 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6779 if ${lt_cv_ld_reload_flag+:} false; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   lt_cv_ld_reload_flag='-r'
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6785 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6786 reload_flag=$lt_cv_ld_reload_flag
6787 case $reload_flag in
6788 "" | " "*) ;;
6789 *) reload_flag=" $reload_flag" ;;
6790 esac
6791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6792 case $host_os in
6793   cygwin* | mingw* | pw32* | cegcc*)
6794     if test "$GCC" != yes; then
6795       reload_cmds=false
6796     fi
6797     ;;
6798   darwin*)
6799     if test "$GCC" = yes; then
6800       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6801     else
6802       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6803     fi
6804     ;;
6805 esac
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 if test -n "$ac_tool_prefix"; then
6816   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_OBJDUMP+:} false; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   if test -n "$OBJDUMP"; then
6824   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831     for ac_exec_ext in '' $ac_executable_extensions; do
6832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838   done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 OBJDUMP=$ac_cv_prog_OBJDUMP
6844 if test -n "$OBJDUMP"; then
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6846 $as_echo "$OBJDUMP" >&6; }
6847 else
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_OBJDUMP"; then
6855   ac_ct_OBJDUMP=$OBJDUMP
6856   # Extract the first word of "objdump", so it can be a program name with args.
6857 set dummy objdump; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6861   $as_echo_n "(cached) " >&6
6862 else
6863   if test -n "$ac_ct_OBJDUMP"; then
6864   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871     for ac_exec_ext in '' $ac_executable_extensions; do
6872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875     break 2
6876   fi
6877 done
6878   done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6884 if test -n "$ac_ct_OBJDUMP"; then
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6886 $as_echo "$ac_ct_OBJDUMP" >&6; }
6887 else
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892   if test "x$ac_ct_OBJDUMP" = x; then
6893     OBJDUMP="false"
6894   else
6895     case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901     OBJDUMP=$ac_ct_OBJDUMP
6902   fi
6903 else
6904   OBJDUMP="$ac_cv_prog_OBJDUMP"
6905 fi
6906
6907 test -z "$OBJDUMP" && OBJDUMP=objdump
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6918 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6919 if ${lt_cv_deplibs_check_method+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   lt_cv_file_magic_cmd='$MAGIC_CMD'
6923 lt_cv_file_magic_test_file=
6924 lt_cv_deplibs_check_method='unknown'
6925 # Need to set the preceding variable on all platforms that support
6926 # interlibrary dependencies.
6927 # 'none' -- dependencies not supported.
6928 # `unknown' -- same as none, but documents that we really don't know.
6929 # 'pass_all' -- all dependencies passed with no checks.
6930 # 'test_compile' -- check by making test program.
6931 # 'file_magic [[regex]]' -- check by looking for files in library path
6932 # which responds to the $file_magic_cmd with a given extended regex.
6933 # If you have `file' or equivalent on your system and you're not sure
6934 # whether `pass_all' will *always* work, you probably want this one.
6935
6936 case $host_os in
6937 aix[4-9]*)
6938   lt_cv_deplibs_check_method=pass_all
6939   ;;
6940
6941 beos*)
6942   lt_cv_deplibs_check_method=pass_all
6943   ;;
6944
6945 bsdi[45]*)
6946   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6947   lt_cv_file_magic_cmd='/usr/bin/file -L'
6948   lt_cv_file_magic_test_file=/shlib/libc.so
6949   ;;
6950
6951 cygwin*)
6952   # func_win32_libid is a shell function defined in ltmain.sh
6953   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6954   lt_cv_file_magic_cmd='func_win32_libid'
6955   ;;
6956
6957 mingw* | pw32*)
6958   # Base MSYS/MinGW do not provide the 'file' command needed by
6959   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6960   # unless we find 'file', for example because we are cross-compiling.
6961   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6962   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6963     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6964     lt_cv_file_magic_cmd='func_win32_libid'
6965   else
6966     # Keep this pattern in sync with the one in func_win32_libid.
6967     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6968     lt_cv_file_magic_cmd='$OBJDUMP -f'
6969   fi
6970   ;;
6971
6972 cegcc*)
6973   # use the weaker test based on 'objdump'. See mingw*.
6974   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6975   lt_cv_file_magic_cmd='$OBJDUMP -f'
6976   ;;
6977
6978 darwin* | rhapsody*)
6979   lt_cv_deplibs_check_method=pass_all
6980   ;;
6981
6982 freebsd* | dragonfly*)
6983   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6984     case $host_cpu in
6985     i*86 )
6986       # Not sure whether the presence of OpenBSD here was a mistake.
6987       # Let's accept both of them until this is cleared up.
6988       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6989       lt_cv_file_magic_cmd=/usr/bin/file
6990       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6991       ;;
6992     esac
6993   else
6994     lt_cv_deplibs_check_method=pass_all
6995   fi
6996   ;;
6997
6998 haiku*)
6999   lt_cv_deplibs_check_method=pass_all
7000   ;;
7001
7002 hpux10.20* | hpux11*)
7003   lt_cv_file_magic_cmd=/usr/bin/file
7004   case $host_cpu in
7005   ia64*)
7006     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7007     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7008     ;;
7009   hppa*64*)
7010     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]'
7011     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7012     ;;
7013   *)
7014     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7015     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7016     ;;
7017   esac
7018   ;;
7019
7020 interix[3-9]*)
7021   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7022   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7023   ;;
7024
7025 irix5* | irix6* | nonstopux*)
7026   case $LD in
7027   *-32|*"-32 ") libmagic=32-bit;;
7028   *-n32|*"-n32 ") libmagic=N32;;
7029   *-64|*"-64 ") libmagic=64-bit;;
7030   *) libmagic=never-match;;
7031   esac
7032   lt_cv_deplibs_check_method=pass_all
7033   ;;
7034
7035 # This must be glibc/ELF.
7036 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7037   lt_cv_deplibs_check_method=pass_all
7038   ;;
7039
7040 netbsd* | netbsdelf*-gnu)
7041   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7042     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7043   else
7044     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7045   fi
7046   ;;
7047
7048 newos6*)
7049   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7050   lt_cv_file_magic_cmd=/usr/bin/file
7051   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7052   ;;
7053
7054 *nto* | *qnx*)
7055   lt_cv_deplibs_check_method=pass_all
7056   ;;
7057
7058 openbsd*)
7059   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7060     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7061   else
7062     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7063   fi
7064   ;;
7065
7066 osf3* | osf4* | osf5*)
7067   lt_cv_deplibs_check_method=pass_all
7068   ;;
7069
7070 rdos*)
7071   lt_cv_deplibs_check_method=pass_all
7072   ;;
7073
7074 solaris*)
7075   lt_cv_deplibs_check_method=pass_all
7076   ;;
7077
7078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7079   lt_cv_deplibs_check_method=pass_all
7080   ;;
7081
7082 sysv4 | sysv4.3*)
7083   case $host_vendor in
7084   motorola)
7085     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]'
7086     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7087     ;;
7088   ncr)
7089     lt_cv_deplibs_check_method=pass_all
7090     ;;
7091   sequent)
7092     lt_cv_file_magic_cmd='/bin/file'
7093     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7094     ;;
7095   sni)
7096     lt_cv_file_magic_cmd='/bin/file'
7097     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7098     lt_cv_file_magic_test_file=/lib/libc.so
7099     ;;
7100   siemens)
7101     lt_cv_deplibs_check_method=pass_all
7102     ;;
7103   pc)
7104     lt_cv_deplibs_check_method=pass_all
7105     ;;
7106   esac
7107   ;;
7108
7109 tpf*)
7110   lt_cv_deplibs_check_method=pass_all
7111   ;;
7112 esac
7113
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7116 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7117
7118 file_magic_glob=
7119 want_nocaseglob=no
7120 if test "$build" = "$host"; then
7121   case $host_os in
7122   mingw* | pw32*)
7123     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7124       want_nocaseglob=yes
7125     else
7126       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7127     fi
7128     ;;
7129   esac
7130 fi
7131
7132 file_magic_cmd=$lt_cv_file_magic_cmd
7133 deplibs_check_method=$lt_cv_deplibs_check_method
7134 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157 if test -n "$ac_tool_prefix"; then
7158   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_DLLTOOL+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   if test -n "$DLLTOOL"; then
7166   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 DLLTOOL=$ac_cv_prog_DLLTOOL
7186 if test -n "$DLLTOOL"; then
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7188 $as_echo "$DLLTOOL" >&6; }
7189 else
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194
7195 fi
7196 if test -z "$ac_cv_prog_DLLTOOL"; then
7197   ac_ct_DLLTOOL=$DLLTOOL
7198   # Extract the first word of "dlltool", so it can be a program name with args.
7199 set dummy dlltool; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7203   $as_echo_n "(cached) " >&6
7204 else
7205   if test -n "$ac_ct_DLLTOOL"; then
7206   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213     for ac_exec_ext in '' $ac_executable_extensions; do
7214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220   done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7226 if test -n "$ac_ct_DLLTOOL"; then
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7228 $as_echo "$ac_ct_DLLTOOL" >&6; }
7229 else
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234   if test "x$ac_ct_DLLTOOL" = x; then
7235     DLLTOOL="false"
7236   else
7237     case $cross_compiling:$ac_tool_warned in
7238 yes:)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243     DLLTOOL=$ac_ct_DLLTOOL
7244   fi
7245 else
7246   DLLTOOL="$ac_cv_prog_DLLTOOL"
7247 fi
7248
7249 test -z "$DLLTOOL" && DLLTOOL=dlltool
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7261 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7262 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   lt_cv_sharedlib_from_linklib_cmd='unknown'
7266
7267 case $host_os in
7268 cygwin* | mingw* | pw32* | cegcc*)
7269   # two different shell functions defined in ltmain.sh
7270   # decide which to use based on capabilities of $DLLTOOL
7271   case `$DLLTOOL --help 2>&1` in
7272   *--identify-strict*)
7273     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7274     ;;
7275   *)
7276     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7277     ;;
7278   esac
7279   ;;
7280 *)
7281   # fallback: assume linklib IS sharedlib
7282   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7283   ;;
7284 esac
7285
7286 fi
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7288 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7289 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7290 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7291
7292
7293
7294
7295
7296
7297
7298 if test -n "$ac_tool_prefix"; then
7299   for ac_prog in ar
7300   do
7301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_AR+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$AR"; then
7309   ac_cv_prog_AR="$AR" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 AR=$ac_cv_prog_AR
7329 if test -n "$AR"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7331 $as_echo "$AR" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337
7338     test -n "$AR" && break
7339   done
7340 fi
7341 if test -z "$AR"; then
7342   ac_ct_AR=$AR
7343   for ac_prog in ar
7344 do
7345   # Extract the first word of "$ac_prog", so it can be a program name with args.
7346 set dummy $ac_prog; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   if test -n "$ac_ct_AR"; then
7353   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360     for ac_exec_ext in '' $ac_executable_extensions; do
7361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362     ac_cv_prog_ac_ct_AR="$ac_prog"
7363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367   done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7373 if test -n "$ac_ct_AR"; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7375 $as_echo "$ac_ct_AR" >&6; }
7376 else
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381
7382   test -n "$ac_ct_AR" && break
7383 done
7384
7385   if test "x$ac_ct_AR" = x; then
7386     AR="false"
7387   else
7388     case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394     AR=$ac_ct_AR
7395   fi
7396 fi
7397
7398 : ${AR=ar}
7399 : ${AR_FLAGS=cru}
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7412 $as_echo_n "checking for archiver @FILE support... " >&6; }
7413 if ${lt_cv_ar_at_file+:} false; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   lt_cv_ar_at_file=no
7417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h.  */
7419
7420 int
7421 main ()
7422 {
7423
7424   ;
7425   return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429   echo conftest.$ac_objext > conftest.lst
7430       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7431       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7432   (eval $lt_ar_try) 2>&5
7433   ac_status=$?
7434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7435   test $ac_status = 0; }
7436       if test "$ac_status" -eq 0; then
7437         # Ensure the archiver fails upon bogus file names.
7438         rm -f conftest.$ac_objext libconftest.a
7439         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7440   (eval $lt_ar_try) 2>&5
7441   ac_status=$?
7442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443   test $ac_status = 0; }
7444         if test "$ac_status" -ne 0; then
7445           lt_cv_ar_at_file=@
7446         fi
7447       fi
7448       rm -f conftest.* libconftest.a
7449
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7455 $as_echo "$lt_cv_ar_at_file" >&6; }
7456
7457 if test "x$lt_cv_ar_at_file" = xno; then
7458   archiver_list_spec=
7459 else
7460   archiver_list_spec=$lt_cv_ar_at_file
7461 fi
7462
7463
7464
7465
7466
7467
7468
7469 if test -n "$ac_tool_prefix"; then
7470   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}strip; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_STRIP+:} false; then :
7475   $as_echo_n "(cached) " >&6
7476 else
7477   if test -n "$STRIP"; then
7478   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485     for ac_exec_ext in '' $ac_executable_extensions; do
7486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492   done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 STRIP=$ac_cv_prog_STRIP
7498 if test -n "$STRIP"; then
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7500 $as_echo "$STRIP" >&6; }
7501 else
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506
7507 fi
7508 if test -z "$ac_cv_prog_STRIP"; then
7509   ac_ct_STRIP=$STRIP
7510   # Extract the first word of "strip", so it can be a program name with args.
7511 set dummy strip; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7515   $as_echo_n "(cached) " >&6
7516 else
7517   if test -n "$ac_ct_STRIP"; then
7518   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525     for ac_exec_ext in '' $ac_executable_extensions; do
7526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527     ac_cv_prog_ac_ct_STRIP="strip"
7528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532   done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7538 if test -n "$ac_ct_STRIP"; then
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7540 $as_echo "$ac_ct_STRIP" >&6; }
7541 else
7542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546   if test "x$ac_ct_STRIP" = x; then
7547     STRIP=":"
7548   else
7549     case $cross_compiling:$ac_tool_warned in
7550 yes:)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7554 esac
7555     STRIP=$ac_ct_STRIP
7556   fi
7557 else
7558   STRIP="$ac_cv_prog_STRIP"
7559 fi
7560
7561 test -z "$STRIP" && STRIP=:
7562
7563
7564
7565
7566
7567
7568 if test -n "$ac_tool_prefix"; then
7569   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_RANLIB+:} false; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -n "$RANLIB"; then
7577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 RANLIB=$ac_cv_prog_RANLIB
7597 if test -n "$RANLIB"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7599 $as_echo "$RANLIB" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605
7606 fi
7607 if test -z "$ac_cv_prog_RANLIB"; then
7608   ac_ct_RANLIB=$RANLIB
7609   # Extract the first word of "ranlib", so it can be a program name with args.
7610 set dummy ranlib; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   if test -n "$ac_ct_RANLIB"; then
7617   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624     for ac_exec_ext in '' $ac_executable_extensions; do
7625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626     ac_cv_prog_ac_ct_RANLIB="ranlib"
7627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631   done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7637 if test -n "$ac_ct_RANLIB"; then
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7639 $as_echo "$ac_ct_RANLIB" >&6; }
7640 else
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645   if test "x$ac_ct_RANLIB" = x; then
7646     RANLIB=":"
7647   else
7648     case $cross_compiling:$ac_tool_warned in
7649 yes:)
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned=yes ;;
7653 esac
7654     RANLIB=$ac_ct_RANLIB
7655   fi
7656 else
7657   RANLIB="$ac_cv_prog_RANLIB"
7658 fi
7659
7660 test -z "$RANLIB" && RANLIB=:
7661
7662
7663
7664
7665
7666
7667 # Determine commands to create old-style static archives.
7668 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7669 old_postinstall_cmds='chmod 644 $oldlib'
7670 old_postuninstall_cmds=
7671
7672 if test -n "$RANLIB"; then
7673   case $host_os in
7674   openbsd*)
7675     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7676     ;;
7677   *)
7678     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7679     ;;
7680   esac
7681   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7682 fi
7683
7684 case $host_os in
7685   darwin*)
7686     lock_old_archive_extraction=yes ;;
7687   *)
7688     lock_old_archive_extraction=no ;;
7689 esac
7690
7691
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 # If no C compiler was specified, use CC.
7730 LTCC=${LTCC-"$CC"}
7731
7732 # If no C compiler flags were specified, use CFLAGS.
7733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7734
7735 # Allow CC to be a program name with arguments.
7736 compiler=$CC
7737
7738
7739 # Check for command to grab the raw symbol name followed by C symbol from nm.
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7741 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7742 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745
7746 # These are sane defaults that work on at least a few old systems.
7747 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7748
7749 # Character class describing NM global symbol codes.
7750 symcode='[BCDEGRST]'
7751
7752 # Regexp to match symbols that can be accessed directly from C.
7753 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7754
7755 # Define system-specific variables.
7756 case $host_os in
7757 aix*)
7758   symcode='[BCDT]'
7759   ;;
7760 cygwin* | mingw* | pw32* | cegcc*)
7761   symcode='[ABCDGISTW]'
7762   ;;
7763 hpux*)
7764   if test "$host_cpu" = ia64; then
7765     symcode='[ABCDEGRST]'
7766   fi
7767   ;;
7768 irix* | nonstopux*)
7769   symcode='[BCDEGRST]'
7770   ;;
7771 osf*)
7772   symcode='[BCDEGQRST]'
7773   ;;
7774 solaris*)
7775   symcode='[BDRT]'
7776   ;;
7777 sco3.2v5*)
7778   symcode='[DT]'
7779   ;;
7780 sysv4.2uw2*)
7781   symcode='[DT]'
7782   ;;
7783 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7784   symcode='[ABDT]'
7785   ;;
7786 sysv4)
7787   symcode='[DFNSTU]'
7788   ;;
7789 esac
7790
7791 # If we're using GNU nm, then use its standard symbol codes.
7792 case `$NM -V 2>&1` in
7793 *GNU* | *'with BFD'*)
7794   symcode='[ABCDGIRSTW]' ;;
7795 esac
7796
7797 # Transform an extracted symbol line into a proper C declaration.
7798 # Some systems (esp. on ia64) link data and code symbols differently,
7799 # so use this general approach.
7800 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7801
7802 # Transform an extracted symbol line into symbol name and symbol address
7803 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7804 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'"
7805
7806 # Handle CRLF in mingw tool chain
7807 opt_cr=
7808 case $build_os in
7809 mingw*)
7810   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7811   ;;
7812 esac
7813
7814 # Try without a prefix underscore, then with it.
7815 for ac_symprfx in "" "_"; do
7816
7817   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7818   symxfrm="\\1 $ac_symprfx\\2 \\2"
7819
7820   # Write the raw and C identifiers.
7821   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7822     # Fake it for dumpbin and say T for any non-static function
7823     # and D for any global variable.
7824     # Also find C++ and __fastcall symbols from MSVC++,
7825     # which start with @ or ?.
7826     lt_cv_sys_global_symbol_pipe="$AWK '"\
7827 "     {last_section=section; section=\$ 3};"\
7828 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7829 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7830 "     \$ 0!~/External *\|/{next};"\
7831 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7832 "     {if(hide[section]) next};"\
7833 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7834 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7835 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7836 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7837 "     ' prfx=^$ac_symprfx"
7838   else
7839     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7840   fi
7841   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7842
7843   # Check to see that the pipe works correctly.
7844   pipe_works=no
7845
7846   rm -f conftest*
7847   cat > conftest.$ac_ext <<_LT_EOF
7848 #ifdef __cplusplus
7849 extern "C" {
7850 #endif
7851 char nm_test_var;
7852 void nm_test_func(void);
7853 void nm_test_func(void){}
7854 #ifdef __cplusplus
7855 }
7856 #endif
7857 int main(){nm_test_var='a';nm_test_func();return(0);}
7858 _LT_EOF
7859
7860   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7861   (eval $ac_compile) 2>&5
7862   ac_status=$?
7863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864   test $ac_status = 0; }; then
7865     # Now try to grab the symbols.
7866     nlist=conftest.nm
7867     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7868   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7869   ac_status=$?
7870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871   test $ac_status = 0; } && test -s "$nlist"; then
7872       # Try sorting and uniquifying the output.
7873       if sort "$nlist" | uniq > "$nlist"T; then
7874         mv -f "$nlist"T "$nlist"
7875       else
7876         rm -f "$nlist"T
7877       fi
7878
7879       # Make sure that we snagged all the symbols we need.
7880       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7881         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7882           cat <<_LT_EOF > conftest.$ac_ext
7883 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7884 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7885 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7886    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7887 # define LT_DLSYM_CONST
7888 #elif defined(__osf__)
7889 /* This system does not cope well with relocations in const data.  */
7890 # define LT_DLSYM_CONST
7891 #else
7892 # define LT_DLSYM_CONST const
7893 #endif
7894
7895 #ifdef __cplusplus
7896 extern "C" {
7897 #endif
7898
7899 _LT_EOF
7900           # Now generate the symbol file.
7901           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7902
7903           cat <<_LT_EOF >> conftest.$ac_ext
7904
7905 /* The mapping between symbol names and symbols.  */
7906 LT_DLSYM_CONST struct {
7907   const char *name;
7908   void       *address;
7909 }
7910 lt__PROGRAM__LTX_preloaded_symbols[] =
7911 {
7912   { "@PROGRAM@", (void *) 0 },
7913 _LT_EOF
7914           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7915           cat <<\_LT_EOF >> conftest.$ac_ext
7916   {0, (void *) 0}
7917 };
7918
7919 /* This works around a problem in FreeBSD linker */
7920 #ifdef FREEBSD_WORKAROUND
7921 static const void *lt_preloaded_setup() {
7922   return lt__PROGRAM__LTX_preloaded_symbols;
7923 }
7924 #endif
7925
7926 #ifdef __cplusplus
7927 }
7928 #endif
7929 _LT_EOF
7930           # Now try linking the two files.
7931           mv conftest.$ac_objext conftstm.$ac_objext
7932           lt_globsym_save_LIBS=$LIBS
7933           lt_globsym_save_CFLAGS=$CFLAGS
7934           LIBS="conftstm.$ac_objext"
7935           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7936           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7937   (eval $ac_link) 2>&5
7938   ac_status=$?
7939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7941             pipe_works=yes
7942           fi
7943           LIBS=$lt_globsym_save_LIBS
7944           CFLAGS=$lt_globsym_save_CFLAGS
7945         else
7946           echo "cannot find nm_test_func in $nlist" >&5
7947         fi
7948       else
7949         echo "cannot find nm_test_var in $nlist" >&5
7950       fi
7951     else
7952       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7953     fi
7954   else
7955     echo "$progname: failed program was:" >&5
7956     cat conftest.$ac_ext >&5
7957   fi
7958   rm -rf conftest* conftst*
7959
7960   # Do not use the global_symbol_pipe unless it works.
7961   if test "$pipe_works" = yes; then
7962     break
7963   else
7964     lt_cv_sys_global_symbol_pipe=
7965   fi
7966 done
7967
7968 fi
7969
7970 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7971   lt_cv_sys_global_symbol_to_cdecl=
7972 fi
7973 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7975 $as_echo "failed" >&6; }
7976 else
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7978 $as_echo "ok" >&6; }
7979 fi
7980
7981 # Response file support.
7982 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7983   nm_file_list_spec='@'
7984 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7985   nm_file_list_spec='@'
7986 fi
7987
7988
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8015 $as_echo_n "checking for sysroot... " >&6; }
8016
8017 # Check whether --with-sysroot was given.
8018 if test "${with_sysroot+set}" = set; then :
8019   withval=$with_sysroot;
8020 else
8021   with_sysroot=no
8022 fi
8023
8024
8025 lt_sysroot=
8026 case ${with_sysroot} in #(
8027  yes)
8028    if test "$GCC" = yes; then
8029      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8030    fi
8031    ;; #(
8032  /*)
8033    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8034    ;; #(
8035  no|'')
8036    ;; #(
8037  *)
8038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8039 $as_echo "${with_sysroot}" >&6; }
8040    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8041    ;;
8042 esac
8043
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8045 $as_echo "${lt_sysroot:-no}" >&6; }
8046
8047
8048
8049
8050
8051 # Check whether --enable-libtool-lock was given.
8052 if test "${enable_libtool_lock+set}" = set; then :
8053   enableval=$enable_libtool_lock;
8054 fi
8055
8056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8057
8058 # Some flags need to be propagated to the compiler or linker for good
8059 # libtool support.
8060 case $host in
8061 ia64-*-hpux*)
8062   # Find out which ABI we are using.
8063   echo 'int i;' > conftest.$ac_ext
8064   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8065   (eval $ac_compile) 2>&5
8066   ac_status=$?
8067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8068   test $ac_status = 0; }; then
8069     case `/usr/bin/file conftest.$ac_objext` in
8070       *ELF-32*)
8071         HPUX_IA64_MODE="32"
8072         ;;
8073       *ELF-64*)
8074         HPUX_IA64_MODE="64"
8075         ;;
8076     esac
8077   fi
8078   rm -rf conftest*
8079   ;;
8080 *-*-irix6*)
8081   # Find out which ABI we are using.
8082   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8083   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8084   (eval $ac_compile) 2>&5
8085   ac_status=$?
8086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087   test $ac_status = 0; }; then
8088     if test "$lt_cv_prog_gnu_ld" = yes; then
8089       case `/usr/bin/file conftest.$ac_objext` in
8090         *32-bit*)
8091           LD="${LD-ld} -melf32bsmip"
8092           ;;
8093         *N32*)
8094           LD="${LD-ld} -melf32bmipn32"
8095           ;;
8096         *64-bit*)
8097           LD="${LD-ld} -melf64bmip"
8098         ;;
8099       esac
8100     else
8101       case `/usr/bin/file conftest.$ac_objext` in
8102         *32-bit*)
8103           LD="${LD-ld} -32"
8104           ;;
8105         *N32*)
8106           LD="${LD-ld} -n32"
8107           ;;
8108         *64-bit*)
8109           LD="${LD-ld} -64"
8110           ;;
8111       esac
8112     fi
8113   fi
8114   rm -rf conftest*
8115   ;;
8116
8117 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8118 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8119   # Find out which ABI we are using.
8120   echo 'int i;' > conftest.$ac_ext
8121   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8122   (eval $ac_compile) 2>&5
8123   ac_status=$?
8124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8125   test $ac_status = 0; }; then
8126     case `/usr/bin/file conftest.o` in
8127       *32-bit*)
8128         case $host in
8129           x86_64-*kfreebsd*-gnu)
8130             LD="${LD-ld} -m elf_i386_fbsd"
8131             ;;
8132           x86_64-*linux*)
8133             case `/usr/bin/file conftest.o` in
8134               *x86-64*)
8135                 LD="${LD-ld} -m elf32_x86_64"
8136                 ;;
8137               *)
8138                 LD="${LD-ld} -m elf_i386"
8139                 ;;
8140             esac
8141             ;;
8142           powerpc64le-*)
8143             LD="${LD-ld} -m elf32lppclinux"
8144             ;;
8145           powerpc64-*)
8146             LD="${LD-ld} -m elf32ppclinux"
8147             ;;
8148           s390x-*linux*)
8149             LD="${LD-ld} -m elf_s390"
8150             ;;
8151           sparc64-*linux*)
8152             LD="${LD-ld} -m elf32_sparc"
8153             ;;
8154         esac
8155         ;;
8156       *64-bit*)
8157         case $host in
8158           x86_64-*kfreebsd*-gnu)
8159             LD="${LD-ld} -m elf_x86_64_fbsd"
8160             ;;
8161           x86_64-*linux*)
8162             LD="${LD-ld} -m elf_x86_64"
8163             ;;
8164           powerpcle-*)
8165             LD="${LD-ld} -m elf64lppc"
8166             ;;
8167           powerpc-*)
8168             LD="${LD-ld} -m elf64ppc"
8169             ;;
8170           s390*-*linux*|s390*-*tpf*)
8171             LD="${LD-ld} -m elf64_s390"
8172             ;;
8173           sparc*-*linux*)
8174             LD="${LD-ld} -m elf64_sparc"
8175             ;;
8176         esac
8177         ;;
8178     esac
8179   fi
8180   rm -rf conftest*
8181   ;;
8182
8183 *-*-sco3.2v5*)
8184   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8185   SAVE_CFLAGS="$CFLAGS"
8186   CFLAGS="$CFLAGS -belf"
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8188 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8189 if ${lt_cv_cc_needs_belf+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   ac_ext=c
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197
8198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h.  */
8200
8201 int
8202 main ()
8203 {
8204
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 if ac_fn_c_try_link "$LINENO"; then :
8210   lt_cv_cc_needs_belf=yes
8211 else
8212   lt_cv_cc_needs_belf=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext \
8215     conftest$ac_exeext conftest.$ac_ext
8216      ac_ext=c
8217 ac_cpp='$CPP $CPPFLAGS'
8218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8221
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8224 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8225   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8226     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8227     CFLAGS="$SAVE_CFLAGS"
8228   fi
8229   ;;
8230 *-*solaris*)
8231   # Find out which ABI we are using.
8232   echo 'int i;' > conftest.$ac_ext
8233   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8234   (eval $ac_compile) 2>&5
8235   ac_status=$?
8236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8237   test $ac_status = 0; }; then
8238     case `/usr/bin/file conftest.o` in
8239     *64-bit*)
8240       case $lt_cv_prog_gnu_ld in
8241       yes*)
8242         case $host in
8243         i?86-*-solaris*)
8244           LD="${LD-ld} -m elf_x86_64"
8245           ;;
8246         sparc*-*-solaris*)
8247           LD="${LD-ld} -m elf64_sparc"
8248           ;;
8249         esac
8250         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8251         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8252           LD="${LD-ld}_sol2"
8253         fi
8254         ;;
8255       *)
8256         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8257           LD="${LD-ld} -64"
8258         fi
8259         ;;
8260       esac
8261       ;;
8262     esac
8263   fi
8264   rm -rf conftest*
8265   ;;
8266 esac
8267
8268 need_locks="$enable_libtool_lock"
8269
8270 if test -n "$ac_tool_prefix"; then
8271   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8272 set dummy ${ac_tool_prefix}mt; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   if test -n "$MANIFEST_TOOL"; then
8279   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8299 if test -n "$MANIFEST_TOOL"; then
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8301 $as_echo "$MANIFEST_TOOL" >&6; }
8302 else
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307
8308 fi
8309 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8310   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8311   # Extract the first word of "mt", so it can be a program name with args.
8312 set dummy mt; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   if test -n "$ac_ct_MANIFEST_TOOL"; then
8319   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324   IFS=$as_save_IFS
8325   test -z "$as_dir" && as_dir=.
8326     for ac_exec_ext in '' $ac_executable_extensions; do
8327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330     break 2
8331   fi
8332 done
8333   done
8334 IFS=$as_save_IFS
8335
8336 fi
8337 fi
8338 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8339 if test -n "$ac_ct_MANIFEST_TOOL"; then
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8341 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8342 else
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 fi
8346
8347   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8348     MANIFEST_TOOL=":"
8349   else
8350     case $cross_compiling:$ac_tool_warned in
8351 yes:)
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8354 ac_tool_warned=yes ;;
8355 esac
8356     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8357   fi
8358 else
8359   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8360 fi
8361
8362 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8364 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8365 if ${lt_cv_path_mainfest_tool+:} false; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   lt_cv_path_mainfest_tool=no
8369   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8370   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8371   cat conftest.err >&5
8372   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8373     lt_cv_path_mainfest_tool=yes
8374   fi
8375   rm -f conftest*
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8378 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8379 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8380   MANIFEST_TOOL=:
8381 fi
8382
8383
8384
8385
8386
8387
8388   case $host_os in
8389     rhapsody* | darwin*)
8390     if test -n "$ac_tool_prefix"; then
8391   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   if test -n "$DSYMUTIL"; then
8399   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404   IFS=$as_save_IFS
8405   test -z "$as_dir" && as_dir=.
8406     for ac_exec_ext in '' $ac_executable_extensions; do
8407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410     break 2
8411   fi
8412 done
8413   done
8414 IFS=$as_save_IFS
8415
8416 fi
8417 fi
8418 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8419 if test -n "$DSYMUTIL"; then
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8421 $as_echo "$DSYMUTIL" >&6; }
8422 else
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427
8428 fi
8429 if test -z "$ac_cv_prog_DSYMUTIL"; then
8430   ac_ct_DSYMUTIL=$DSYMUTIL
8431   # Extract the first word of "dsymutil", so it can be a program name with args.
8432 set dummy dsymutil; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   if test -n "$ac_ct_DSYMUTIL"; then
8439   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444   IFS=$as_save_IFS
8445   test -z "$as_dir" && as_dir=.
8446     for ac_exec_ext in '' $ac_executable_extensions; do
8447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453   done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8459 if test -n "$ac_ct_DSYMUTIL"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8461 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467   if test "x$ac_ct_DSYMUTIL" = x; then
8468     DSYMUTIL=":"
8469   else
8470     case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476     DSYMUTIL=$ac_ct_DSYMUTIL
8477   fi
8478 else
8479   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8480 fi
8481
8482     if test -n "$ac_tool_prefix"; then
8483   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_NMEDIT+:} false; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   if test -n "$NMEDIT"; then
8491   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 NMEDIT=$ac_cv_prog_NMEDIT
8511 if test -n "$NMEDIT"; then
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8513 $as_echo "$NMEDIT" >&6; }
8514 else
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 if test -z "$ac_cv_prog_NMEDIT"; then
8522   ac_ct_NMEDIT=$NMEDIT
8523   # Extract the first word of "nmedit", so it can be a program name with args.
8524 set dummy nmedit; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   if test -n "$ac_ct_NMEDIT"; then
8531   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536   IFS=$as_save_IFS
8537   test -z "$as_dir" && as_dir=.
8538     for ac_exec_ext in '' $ac_executable_extensions; do
8539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542     break 2
8543   fi
8544 done
8545   done
8546 IFS=$as_save_IFS
8547
8548 fi
8549 fi
8550 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8551 if test -n "$ac_ct_NMEDIT"; then
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8553 $as_echo "$ac_ct_NMEDIT" >&6; }
8554 else
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559   if test "x$ac_ct_NMEDIT" = x; then
8560     NMEDIT=":"
8561   else
8562     case $cross_compiling:$ac_tool_warned in
8563 yes:)
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8567 esac
8568     NMEDIT=$ac_ct_NMEDIT
8569   fi
8570 else
8571   NMEDIT="$ac_cv_prog_NMEDIT"
8572 fi
8573
8574     if test -n "$ac_tool_prefix"; then
8575   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_LIPO+:} false; then :
8580   $as_echo_n "(cached) " >&6
8581 else
8582   if test -n "$LIPO"; then
8583   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588   IFS=$as_save_IFS
8589   test -z "$as_dir" && as_dir=.
8590     for ac_exec_ext in '' $ac_executable_extensions; do
8591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594     break 2
8595   fi
8596 done
8597   done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 LIPO=$ac_cv_prog_LIPO
8603 if test -n "$LIPO"; then
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8605 $as_echo "$LIPO" >&6; }
8606 else
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610
8611
8612 fi
8613 if test -z "$ac_cv_prog_LIPO"; then
8614   ac_ct_LIPO=$LIPO
8615   # Extract the first word of "lipo", so it can be a program name with args.
8616 set dummy lipo; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   if test -n "$ac_ct_LIPO"; then
8623   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628   IFS=$as_save_IFS
8629   test -z "$as_dir" && as_dir=.
8630     for ac_exec_ext in '' $ac_executable_extensions; do
8631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632     ac_cv_prog_ac_ct_LIPO="lipo"
8633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634     break 2
8635   fi
8636 done
8637   done
8638 IFS=$as_save_IFS
8639
8640 fi
8641 fi
8642 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8643 if test -n "$ac_ct_LIPO"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8645 $as_echo "$ac_ct_LIPO" >&6; }
8646 else
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651   if test "x$ac_ct_LIPO" = x; then
8652     LIPO=":"
8653   else
8654     case $cross_compiling:$ac_tool_warned in
8655 yes:)
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8659 esac
8660     LIPO=$ac_ct_LIPO
8661   fi
8662 else
8663   LIPO="$ac_cv_prog_LIPO"
8664 fi
8665
8666     if test -n "$ac_tool_prefix"; then
8667   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8668 set dummy ${ac_tool_prefix}otool; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if ${ac_cv_prog_OTOOL+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   if test -n "$OTOOL"; then
8675   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8676 else
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8679 do
8680   IFS=$as_save_IFS
8681   test -z "$as_dir" && as_dir=.
8682     for ac_exec_ext in '' $ac_executable_extensions; do
8683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686     break 2
8687   fi
8688 done
8689   done
8690 IFS=$as_save_IFS
8691
8692 fi
8693 fi
8694 OTOOL=$ac_cv_prog_OTOOL
8695 if test -n "$OTOOL"; then
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8697 $as_echo "$OTOOL" >&6; }
8698 else
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8701 fi
8702
8703
8704 fi
8705 if test -z "$ac_cv_prog_OTOOL"; then
8706   ac_ct_OTOOL=$OTOOL
8707   # Extract the first word of "otool", so it can be a program name with args.
8708 set dummy otool; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 $as_echo_n "checking for $ac_word... " >&6; }
8711 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8712   $as_echo_n "(cached) " >&6
8713 else
8714   if test -n "$ac_ct_OTOOL"; then
8715   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8716 else
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8719 do
8720   IFS=$as_save_IFS
8721   test -z "$as_dir" && as_dir=.
8722     for ac_exec_ext in '' $ac_executable_extensions; do
8723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8724     ac_cv_prog_ac_ct_OTOOL="otool"
8725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8726     break 2
8727   fi
8728 done
8729   done
8730 IFS=$as_save_IFS
8731
8732 fi
8733 fi
8734 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8735 if test -n "$ac_ct_OTOOL"; then
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8737 $as_echo "$ac_ct_OTOOL" >&6; }
8738 else
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8741 fi
8742
8743   if test "x$ac_ct_OTOOL" = x; then
8744     OTOOL=":"
8745   else
8746     case $cross_compiling:$ac_tool_warned in
8747 yes:)
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8750 ac_tool_warned=yes ;;
8751 esac
8752     OTOOL=$ac_ct_OTOOL
8753   fi
8754 else
8755   OTOOL="$ac_cv_prog_OTOOL"
8756 fi
8757
8758     if test -n "$ac_tool_prefix"; then
8759   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8760 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_prog_OTOOL64+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   if test -n "$OTOOL64"; then
8767   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8768 else
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in $PATH
8771 do
8772   IFS=$as_save_IFS
8773   test -z "$as_dir" && as_dir=.
8774     for ac_exec_ext in '' $ac_executable_extensions; do
8775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778     break 2
8779   fi
8780 done
8781   done
8782 IFS=$as_save_IFS
8783
8784 fi
8785 fi
8786 OTOOL64=$ac_cv_prog_OTOOL64
8787 if test -n "$OTOOL64"; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8789 $as_echo "$OTOOL64" >&6; }
8790 else
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8793 fi
8794
8795
8796 fi
8797 if test -z "$ac_cv_prog_OTOOL64"; then
8798   ac_ct_OTOOL64=$OTOOL64
8799   # Extract the first word of "otool64", so it can be a program name with args.
8800 set dummy otool64; ac_word=$2
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802 $as_echo_n "checking for $ac_word... " >&6; }
8803 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   if test -n "$ac_ct_OTOOL64"; then
8807   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8808 else
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8811 do
8812   IFS=$as_save_IFS
8813   test -z "$as_dir" && as_dir=.
8814     for ac_exec_ext in '' $ac_executable_extensions; do
8815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8816     ac_cv_prog_ac_ct_OTOOL64="otool64"
8817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818     break 2
8819   fi
8820 done
8821   done
8822 IFS=$as_save_IFS
8823
8824 fi
8825 fi
8826 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8827 if test -n "$ac_ct_OTOOL64"; then
8828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8829 $as_echo "$ac_ct_OTOOL64" >&6; }
8830 else
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8833 fi
8834
8835   if test "x$ac_ct_OTOOL64" = x; then
8836     OTOOL64=":"
8837   else
8838     case $cross_compiling:$ac_tool_warned in
8839 yes:)
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8842 ac_tool_warned=yes ;;
8843 esac
8844     OTOOL64=$ac_ct_OTOOL64
8845   fi
8846 else
8847   OTOOL64="$ac_cv_prog_OTOOL64"
8848 fi
8849
8850
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8877 $as_echo_n "checking for -single_module linker flag... " >&6; }
8878 if ${lt_cv_apple_cc_single_mod+:} false; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   lt_cv_apple_cc_single_mod=no
8882       if test -z "${LT_MULTI_MODULE}"; then
8883         # By default we will add the -single_module flag. You can override
8884         # by either setting the environment variable LT_MULTI_MODULE
8885         # non-empty at configure time, or by adding -multi_module to the
8886         # link flags.
8887         rm -rf libconftest.dylib*
8888         echo "int foo(void){return 1;}" > conftest.c
8889         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8890 -dynamiclib -Wl,-single_module conftest.c" >&5
8891         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8892           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8893         _lt_result=$?
8894         # If there is a non-empty error log, and "single_module"
8895         # appears in it, assume the flag caused a linker warning
8896         if test -s conftest.err && $GREP single_module conftest.err; then
8897           cat conftest.err >&5
8898         # Otherwise, if the output was created with a 0 exit code from
8899         # the compiler, it worked.
8900         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8901           lt_cv_apple_cc_single_mod=yes
8902         else
8903           cat conftest.err >&5
8904         fi
8905         rm -rf libconftest.dylib*
8906         rm -f conftest.*
8907       fi
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8910 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8911
8912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8913 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8914 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8915   $as_echo_n "(cached) " >&6
8916 else
8917   lt_cv_ld_exported_symbols_list=no
8918       save_LDFLAGS=$LDFLAGS
8919       echo "_main" > conftest.sym
8920       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8921       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h.  */
8923
8924 int
8925 main ()
8926 {
8927
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 if ac_fn_c_try_link "$LINENO"; then :
8933   lt_cv_ld_exported_symbols_list=yes
8934 else
8935   lt_cv_ld_exported_symbols_list=no
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext \
8938     conftest$ac_exeext conftest.$ac_ext
8939         LDFLAGS="$save_LDFLAGS"
8940
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8943 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8944
8945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8946 $as_echo_n "checking for -force_load linker flag... " >&6; }
8947 if ${lt_cv_ld_force_load+:} false; then :
8948   $as_echo_n "(cached) " >&6
8949 else
8950   lt_cv_ld_force_load=no
8951       cat > conftest.c << _LT_EOF
8952 int forced_loaded() { return 2;}
8953 _LT_EOF
8954       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8955       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8956       echo "$AR cru libconftest.a conftest.o" >&5
8957       $AR cru libconftest.a conftest.o 2>&5
8958       echo "$RANLIB libconftest.a" >&5
8959       $RANLIB libconftest.a 2>&5
8960       cat > conftest.c << _LT_EOF
8961 int main() { return 0;}
8962 _LT_EOF
8963       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8964       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8965       _lt_result=$?
8966       if test -s conftest.err && $GREP force_load conftest.err; then
8967         cat conftest.err >&5
8968       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8969         lt_cv_ld_force_load=yes
8970       else
8971         cat conftest.err >&5
8972       fi
8973         rm -f conftest.err libconftest.a conftest conftest.c
8974         rm -rf conftest.dSYM
8975
8976 fi
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8978 $as_echo "$lt_cv_ld_force_load" >&6; }
8979     case $host_os in
8980     rhapsody* | darwin1.[012])
8981       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8982     darwin1.*)
8983       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8984     darwin*) # darwin 5.x on
8985       # if running on 10.5 or later, the deployment target defaults
8986       # to the OS version, if on x86, and 10.4, the deployment
8987       # target defaults to 10.4. Don't you love it?
8988       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8989         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8990           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8991         10.[012]*)
8992           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8993         10.*)
8994           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8995       esac
8996     ;;
8997   esac
8998     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8999       _lt_dar_single_mod='$single_module'
9000     fi
9001     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9002       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9003     else
9004       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9005     fi
9006     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9007       _lt_dsymutil='~$DSYMUTIL $lib || :'
9008     else
9009       _lt_dsymutil=
9010     fi
9011     ;;
9012   esac
9013
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9015 $as_echo_n "checking for ANSI C header files... " >&6; }
9016 if ${ac_cv_header_stdc+:} false; then :
9017   $as_echo_n "(cached) " >&6
9018 else
9019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h.  */
9021 #include <stdlib.h>
9022 #include <stdarg.h>
9023 #include <string.h>
9024 #include <float.h>
9025
9026 int
9027 main ()
9028 {
9029
9030   ;
9031   return 0;
9032 }
9033 _ACEOF
9034 if ac_fn_c_try_compile "$LINENO"; then :
9035   ac_cv_header_stdc=yes
9036 else
9037   ac_cv_header_stdc=no
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040
9041 if test $ac_cv_header_stdc = yes; then
9042   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045 #include <string.h>
9046
9047 _ACEOF
9048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9049   $EGREP "memchr" >/dev/null 2>&1; then :
9050
9051 else
9052   ac_cv_header_stdc=no
9053 fi
9054 rm -f conftest*
9055
9056 fi
9057
9058 if test $ac_cv_header_stdc = yes; then
9059   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h.  */
9062 #include <stdlib.h>
9063
9064 _ACEOF
9065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9066   $EGREP "free" >/dev/null 2>&1; then :
9067
9068 else
9069   ac_cv_header_stdc=no
9070 fi
9071 rm -f conftest*
9072
9073 fi
9074
9075 if test $ac_cv_header_stdc = yes; then
9076   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9077   if test "$cross_compiling" = yes; then :
9078   :
9079 else
9080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h.  */
9082 #include <ctype.h>
9083 #include <stdlib.h>
9084 #if ((' ' & 0x0FF) == 0x020)
9085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9087 #else
9088 # define ISLOWER(c) \
9089                    (('a' <= (c) && (c) <= 'i') \
9090                      || ('j' <= (c) && (c) <= 'r') \
9091                      || ('s' <= (c) && (c) <= 'z'))
9092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9093 #endif
9094
9095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9096 int
9097 main ()
9098 {
9099   int i;
9100   for (i = 0; i < 256; i++)
9101     if (XOR (islower (i), ISLOWER (i))
9102         || toupper (i) != TOUPPER (i))
9103       return 2;
9104   return 0;
9105 }
9106 _ACEOF
9107 if ac_fn_c_try_run "$LINENO"; then :
9108
9109 else
9110   ac_cv_header_stdc=no
9111 fi
9112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9113   conftest.$ac_objext conftest.beam conftest.$ac_ext
9114 fi
9115
9116 fi
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9119 $as_echo "$ac_cv_header_stdc" >&6; }
9120 if test $ac_cv_header_stdc = yes; then
9121
9122 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9123
9124 fi
9125
9126 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9127 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9128                   inttypes.h stdint.h unistd.h
9129 do :
9130   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9131 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9132 "
9133 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9134   cat >>confdefs.h <<_ACEOF
9135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9136 _ACEOF
9137
9138 fi
9139
9140 done
9141
9142
9143 for ac_header in dlfcn.h
9144 do :
9145   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9146 "
9147 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9148   cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DLFCN_H 1
9150 _ACEOF
9151
9152 fi
9153
9154 done
9155
9156
9157
9158
9159 func_stripname_cnf ()
9160 {
9161   case ${2} in
9162   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9163   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9164   esac
9165 } # func_stripname_cnf
9166
9167
9168
9169
9170
9171 # Set options
9172 # Check whether --enable-shared was given.
9173 if test "${enable_shared+set}" = set; then :
9174   enableval=$enable_shared; p=${PACKAGE-default}
9175     case $enableval in
9176     yes) enable_shared=yes ;;
9177     no) enable_shared=no ;;
9178     *)
9179       enable_shared=no
9180       # Look at the argument we got.  We use all the common list separators.
9181       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9182       for pkg in $enableval; do
9183         IFS="$lt_save_ifs"
9184         if test "X$pkg" = "X$p"; then
9185           enable_shared=yes
9186         fi
9187       done
9188       IFS="$lt_save_ifs"
9189       ;;
9190     esac
9191 else
9192   enable_shared=yes
9193 fi
9194
9195
9196
9197
9198
9199
9200
9201 # Check whether --enable-static was given.
9202 if test "${enable_static+set}" = set; then :
9203   enableval=$enable_static; p=${PACKAGE-default}
9204     case $enableval in
9205     yes) enable_static=yes ;;
9206     no) enable_static=no ;;
9207     *)
9208      enable_static=no
9209       # Look at the argument we got.  We use all the common list separators.
9210       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9211       for pkg in $enableval; do
9212         IFS="$lt_save_ifs"
9213         if test "X$pkg" = "X$p"; then
9214           enable_static=yes
9215         fi
9216       done
9217       IFS="$lt_save_ifs"
9218       ;;
9219     esac
9220 else
9221   enable_static=no
9222 fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233         enable_dlopen=no
9234
9235
9236   enable_win32_dll=no
9237
9238
9239
9240
9241
9242 # Check whether --with-pic was given.
9243 if test "${with_pic+set}" = set; then :
9244   withval=$with_pic; lt_p=${PACKAGE-default}
9245     case $withval in
9246     yes|no) pic_mode=$withval ;;
9247     *)
9248       pic_mode=default
9249       # Look at the argument we got.  We use all the common list separators.
9250       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9251       for lt_pkg in $withval; do
9252         IFS="$lt_save_ifs"
9253         if test "X$lt_pkg" = "X$lt_p"; then
9254           pic_mode=yes
9255         fi
9256       done
9257       IFS="$lt_save_ifs"
9258       ;;
9259     esac
9260 else
9261   pic_mode=default
9262 fi
9263
9264
9265 test -z "$pic_mode" && pic_mode=default
9266
9267
9268
9269
9270
9271
9272
9273   # Check whether --enable-fast-install was given.
9274 if test "${enable_fast_install+set}" = set; then :
9275   enableval=$enable_fast_install; p=${PACKAGE-default}
9276     case $enableval in
9277     yes) enable_fast_install=yes ;;
9278     no) enable_fast_install=no ;;
9279     *)
9280       enable_fast_install=no
9281       # Look at the argument we got.  We use all the common list separators.
9282       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9283       for pkg in $enableval; do
9284         IFS="$lt_save_ifs"
9285         if test "X$pkg" = "X$p"; then
9286           enable_fast_install=yes
9287         fi
9288       done
9289       IFS="$lt_save_ifs"
9290       ;;
9291     esac
9292 else
9293   enable_fast_install=yes
9294 fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306 # This can be used to rebuild libtool when needed
9307 LIBTOOL_DEPS="$ltmain"
9308
9309 # Always use our own libtool.
9310 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9311
9312
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 test -z "$LN_S" && LN_S="ln -s"
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 if test -n "${ZSH_VERSION+set}" ; then
9357    setopt NO_GLOB_SUBST
9358 fi
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9361 $as_echo_n "checking for objdir... " >&6; }
9362 if ${lt_cv_objdir+:} false; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   rm -f .libs 2>/dev/null
9366 mkdir .libs 2>/dev/null
9367 if test -d .libs; then
9368   lt_cv_objdir=.libs
9369 else
9370   # MS-DOS does not allow filenames that begin with a dot.
9371   lt_cv_objdir=_libs
9372 fi
9373 rmdir .libs 2>/dev/null
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9376 $as_echo "$lt_cv_objdir" >&6; }
9377 objdir=$lt_cv_objdir
9378
9379
9380
9381
9382
9383 cat >>confdefs.h <<_ACEOF
9384 #define LT_OBJDIR "$lt_cv_objdir/"
9385 _ACEOF
9386
9387
9388
9389
9390 case $host_os in
9391 aix3*)
9392   # AIX sometimes has problems with the GCC collect2 program.  For some
9393   # reason, if we set the COLLECT_NAMES environment variable, the problems
9394   # vanish in a puff of smoke.
9395   if test "X${COLLECT_NAMES+set}" != Xset; then
9396     COLLECT_NAMES=
9397     export COLLECT_NAMES
9398   fi
9399   ;;
9400 esac
9401
9402 # Global variables:
9403 ofile=libtool
9404 can_build_shared=yes
9405
9406 # All known linkers require a `.a' archive for static linking (except MSVC,
9407 # which needs '.lib').
9408 libext=a
9409
9410 with_gnu_ld="$lt_cv_prog_gnu_ld"
9411
9412 old_CC="$CC"
9413 old_CFLAGS="$CFLAGS"
9414
9415 # Set sane defaults for various variables
9416 test -z "$CC" && CC=cc
9417 test -z "$LTCC" && LTCC=$CC
9418 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9419 test -z "$LD" && LD=ld
9420 test -z "$ac_objext" && ac_objext=o
9421
9422 for cc_temp in $compiler""; do
9423   case $cc_temp in
9424     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9425     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9426     \-*) ;;
9427     *) break;;
9428   esac
9429 done
9430 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9431
9432
9433 # Only perform the check for file, if the check method requires it
9434 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9435 case $deplibs_check_method in
9436 file_magic*)
9437   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9439 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9440 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9441   $as_echo_n "(cached) " >&6
9442 else
9443   case $MAGIC_CMD in
9444 [\\/*] |  ?:[\\/]*)
9445   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9446   ;;
9447 *)
9448   lt_save_MAGIC_CMD="$MAGIC_CMD"
9449   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9450   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9451   for ac_dir in $ac_dummy; do
9452     IFS="$lt_save_ifs"
9453     test -z "$ac_dir" && ac_dir=.
9454     if test -f $ac_dir/${ac_tool_prefix}file; then
9455       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9456       if test -n "$file_magic_test_file"; then
9457         case $deplibs_check_method in
9458         "file_magic "*)
9459           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9460           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9461           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9462             $EGREP "$file_magic_regex" > /dev/null; then
9463             :
9464           else
9465             cat <<_LT_EOF 1>&2
9466
9467 *** Warning: the command libtool uses to detect shared libraries,
9468 *** $file_magic_cmd, produces output that libtool cannot recognize.
9469 *** The result is that libtool may fail to recognize shared libraries
9470 *** as such.  This will affect the creation of libtool libraries that
9471 *** depend on shared libraries, but programs linked with such libtool
9472 *** libraries will work regardless of this problem.  Nevertheless, you
9473 *** may want to report the problem to your system manager and/or to
9474 *** bug-libtool@gnu.org
9475
9476 _LT_EOF
9477           fi ;;
9478         esac
9479       fi
9480       break
9481     fi
9482   done
9483   IFS="$lt_save_ifs"
9484   MAGIC_CMD="$lt_save_MAGIC_CMD"
9485   ;;
9486 esac
9487 fi
9488
9489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9490 if test -n "$MAGIC_CMD"; then
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9492 $as_echo "$MAGIC_CMD" >&6; }
9493 else
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 fi
9497
9498
9499
9500
9501
9502 if test -z "$lt_cv_path_MAGIC_CMD"; then
9503   if test -n "$ac_tool_prefix"; then
9504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9505 $as_echo_n "checking for file... " >&6; }
9506 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   case $MAGIC_CMD in
9510 [\\/*] |  ?:[\\/]*)
9511   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9512   ;;
9513 *)
9514   lt_save_MAGIC_CMD="$MAGIC_CMD"
9515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9516   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9517   for ac_dir in $ac_dummy; do
9518     IFS="$lt_save_ifs"
9519     test -z "$ac_dir" && ac_dir=.
9520     if test -f $ac_dir/file; then
9521       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9522       if test -n "$file_magic_test_file"; then
9523         case $deplibs_check_method in
9524         "file_magic "*)
9525           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9526           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9527           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9528             $EGREP "$file_magic_regex" > /dev/null; then
9529             :
9530           else
9531             cat <<_LT_EOF 1>&2
9532
9533 *** Warning: the command libtool uses to detect shared libraries,
9534 *** $file_magic_cmd, produces output that libtool cannot recognize.
9535 *** The result is that libtool may fail to recognize shared libraries
9536 *** as such.  This will affect the creation of libtool libraries that
9537 *** depend on shared libraries, but programs linked with such libtool
9538 *** libraries will work regardless of this problem.  Nevertheless, you
9539 *** may want to report the problem to your system manager and/or to
9540 *** bug-libtool@gnu.org
9541
9542 _LT_EOF
9543           fi ;;
9544         esac
9545       fi
9546       break
9547     fi
9548   done
9549   IFS="$lt_save_ifs"
9550   MAGIC_CMD="$lt_save_MAGIC_CMD"
9551   ;;
9552 esac
9553 fi
9554
9555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9556 if test -n "$MAGIC_CMD"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9558 $as_echo "$MAGIC_CMD" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563
9564
9565   else
9566     MAGIC_CMD=:
9567   fi
9568 fi
9569
9570   fi
9571   ;;
9572 esac
9573
9574 # Use C for the default configuration in the libtool script
9575
9576 lt_save_CC="$CC"
9577 ac_ext=c
9578 ac_cpp='$CPP $CPPFLAGS'
9579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9582
9583
9584 # Source file extension for C test sources.
9585 ac_ext=c
9586
9587 # Object file extension for compiled C test sources.
9588 objext=o
9589 objext=$objext
9590
9591 # Code to be used in simple compile tests
9592 lt_simple_compile_test_code="int some_variable = 0;"
9593
9594 # Code to be used in simple link tests
9595 lt_simple_link_test_code='int main(){return(0);}'
9596
9597
9598
9599
9600
9601
9602
9603 # If no C compiler was specified, use CC.
9604 LTCC=${LTCC-"$CC"}
9605
9606 # If no C compiler flags were specified, use CFLAGS.
9607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9608
9609 # Allow CC to be a program name with arguments.
9610 compiler=$CC
9611
9612 # Save the default compiler, since it gets overwritten when the other
9613 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9614 compiler_DEFAULT=$CC
9615
9616 # save warnings/boilerplate of simple test code
9617 ac_outfile=conftest.$ac_objext
9618 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9620 _lt_compiler_boilerplate=`cat conftest.err`
9621 $RM conftest*
9622
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_linker_boilerplate=`cat conftest.err`
9627 $RM -r conftest*
9628
9629
9630 ## CAVEAT EMPTOR:
9631 ## There is no encapsulation within the following macros, do not change
9632 ## the running order or otherwise move them around unless you know exactly
9633 ## what you are doing...
9634 if test -n "$compiler"; then
9635
9636 lt_prog_compiler_no_builtin_flag=
9637
9638 if test "$GCC" = yes; then
9639   case $cc_basename in
9640   nvcc*)
9641     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9642   *)
9643     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9644   esac
9645
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9647 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9648 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9649   $as_echo_n "(cached) " >&6
9650 else
9651   lt_cv_prog_compiler_rtti_exceptions=no
9652    ac_outfile=conftest.$ac_objext
9653    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654    lt_compiler_flag="-fno-rtti -fno-exceptions"
9655    # Insert the option either (1) after the last *FLAGS variable, or
9656    # (2) before a word containing "conftest.", or (3) at the end.
9657    # Note that $ac_compile itself does not contain backslashes and begins
9658    # with a dollar sign (not a hyphen), so the echo should work correctly.
9659    # The option is referenced via a variable to avoid confusing sed.
9660    lt_compile=`echo "$ac_compile" | $SED \
9661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663    -e 's:$: $lt_compiler_flag:'`
9664    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665    (eval "$lt_compile" 2>conftest.err)
9666    ac_status=$?
9667    cat conftest.err >&5
9668    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669    if (exit $ac_status) && test -s "$ac_outfile"; then
9670      # The compiler can only warn and ignore the option if not recognized
9671      # So say no if there are warnings other than the usual output.
9672      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9673      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9675        lt_cv_prog_compiler_rtti_exceptions=yes
9676      fi
9677    fi
9678    $RM conftest*
9679
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9682 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9683
9684 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9685     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9686 else
9687     :
9688 fi
9689
9690 fi
9691
9692
9693
9694
9695
9696
9697   lt_prog_compiler_wl=
9698 lt_prog_compiler_pic=
9699 lt_prog_compiler_static=
9700
9701
9702   if test "$GCC" = yes; then
9703     lt_prog_compiler_wl='-Wl,'
9704     lt_prog_compiler_static='-static'
9705
9706     case $host_os in
9707       aix*)
9708       # All AIX code is PIC.
9709       if test "$host_cpu" = ia64; then
9710         # AIX 5 now supports IA64 processor
9711         lt_prog_compiler_static='-Bstatic'
9712       fi
9713       ;;
9714
9715     amigaos*)
9716       case $host_cpu in
9717       powerpc)
9718             # see comment about AmigaOS4 .so support
9719             lt_prog_compiler_pic='-fPIC'
9720         ;;
9721       m68k)
9722             # FIXME: we need at least 68020 code to build shared libraries, but
9723             # adding the `-m68020' flag to GCC prevents building anything better,
9724             # like `-m68040'.
9725             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9726         ;;
9727       esac
9728       ;;
9729
9730     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9731       # PIC is the default for these OSes.
9732       ;;
9733
9734     mingw* | cygwin* | pw32* | os2* | cegcc*)
9735       # This hack is so that the source file can tell whether it is being
9736       # built for inclusion in a dll (and should export symbols for example).
9737       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9738       # (--disable-auto-import) libraries
9739       lt_prog_compiler_pic='-DDLL_EXPORT'
9740       ;;
9741
9742     darwin* | rhapsody*)
9743       # PIC is the default on this platform
9744       # Common symbols not allowed in MH_DYLIB files
9745       lt_prog_compiler_pic='-fno-common'
9746       ;;
9747
9748     haiku*)
9749       # PIC is the default for Haiku.
9750       # The "-static" flag exists, but is broken.
9751       lt_prog_compiler_static=
9752       ;;
9753
9754     hpux*)
9755       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9756       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9757       # sets the default TLS model and affects inlining.
9758       case $host_cpu in
9759       hppa*64*)
9760         # +Z the default
9761         ;;
9762       *)
9763         lt_prog_compiler_pic='-fPIC'
9764         ;;
9765       esac
9766       ;;
9767
9768     interix[3-9]*)
9769       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9770       # Instead, we relocate shared libraries at runtime.
9771       ;;
9772
9773     msdosdjgpp*)
9774       # Just because we use GCC doesn't mean we suddenly get shared libraries
9775       # on systems that don't support them.
9776       lt_prog_compiler_can_build_shared=no
9777       enable_shared=no
9778       ;;
9779
9780     *nto* | *qnx*)
9781       # QNX uses GNU C++, but need to define -shared option too, otherwise
9782       # it will coredump.
9783       lt_prog_compiler_pic='-fPIC -shared'
9784       ;;
9785
9786     sysv4*MP*)
9787       if test -d /usr/nec; then
9788         lt_prog_compiler_pic=-Kconform_pic
9789       fi
9790       ;;
9791
9792     *)
9793       lt_prog_compiler_pic='-fPIC'
9794       ;;
9795     esac
9796
9797     case $cc_basename in
9798     nvcc*) # Cuda Compiler Driver 2.2
9799       lt_prog_compiler_wl='-Xlinker '
9800       if test -n "$lt_prog_compiler_pic"; then
9801         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9802       fi
9803       ;;
9804     esac
9805   else
9806     # PORTME Check for flag to pass linker flags through the system compiler.
9807     case $host_os in
9808     aix*)
9809       lt_prog_compiler_wl='-Wl,'
9810       if test "$host_cpu" = ia64; then
9811         # AIX 5 now supports IA64 processor
9812         lt_prog_compiler_static='-Bstatic'
9813       else
9814         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9815       fi
9816       ;;
9817
9818     mingw* | cygwin* | pw32* | os2* | cegcc*)
9819       # This hack is so that the source file can tell whether it is being
9820       # built for inclusion in a dll (and should export symbols for example).
9821       lt_prog_compiler_pic='-DDLL_EXPORT'
9822       ;;
9823
9824     hpux9* | hpux10* | hpux11*)
9825       lt_prog_compiler_wl='-Wl,'
9826       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9827       # not for PA HP-UX.
9828       case $host_cpu in
9829       hppa*64*|ia64*)
9830         # +Z the default
9831         ;;
9832       *)
9833         lt_prog_compiler_pic='+Z'
9834         ;;
9835       esac
9836       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9837       lt_prog_compiler_static='${wl}-a ${wl}archive'
9838       ;;
9839
9840     irix5* | irix6* | nonstopux*)
9841       lt_prog_compiler_wl='-Wl,'
9842       # PIC (with -KPIC) is the default.
9843       lt_prog_compiler_static='-non_shared'
9844       ;;
9845
9846     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9847       case $cc_basename in
9848       # old Intel for x86_64 which still supported -KPIC.
9849       ecc*)
9850         lt_prog_compiler_wl='-Wl,'
9851         lt_prog_compiler_pic='-KPIC'
9852         lt_prog_compiler_static='-static'
9853         ;;
9854       # icc used to be incompatible with GCC.
9855       # ICC 10 doesn't accept -KPIC any more.
9856       icc* | ifort*)
9857         lt_prog_compiler_wl='-Wl,'
9858         lt_prog_compiler_pic='-fPIC'
9859         lt_prog_compiler_static='-static'
9860         ;;
9861       # Lahey Fortran 8.1.
9862       lf95*)
9863         lt_prog_compiler_wl='-Wl,'
9864         lt_prog_compiler_pic='--shared'
9865         lt_prog_compiler_static='--static'
9866         ;;
9867       nagfor*)
9868         # NAG Fortran compiler
9869         lt_prog_compiler_wl='-Wl,-Wl,,'
9870         lt_prog_compiler_pic='-PIC'
9871         lt_prog_compiler_static='-Bstatic'
9872         ;;
9873       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9874         # Portland Group compilers (*not* the Pentium gcc compiler,
9875         # which looks to be a dead project)
9876         lt_prog_compiler_wl='-Wl,'
9877         lt_prog_compiler_pic='-fpic'
9878         lt_prog_compiler_static='-Bstatic'
9879         ;;
9880       ccc*)
9881         lt_prog_compiler_wl='-Wl,'
9882         # All Alpha code is PIC.
9883         lt_prog_compiler_static='-non_shared'
9884         ;;
9885       xl* | bgxl* | bgf* | mpixl*)
9886         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9887         lt_prog_compiler_wl='-Wl,'
9888         lt_prog_compiler_pic='-qpic'
9889         lt_prog_compiler_static='-qstaticlink'
9890         ;;
9891       *)
9892         case `$CC -V 2>&1 | sed 5q` in
9893         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9894           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9895           lt_prog_compiler_pic='-KPIC'
9896           lt_prog_compiler_static='-Bstatic'
9897           lt_prog_compiler_wl=''
9898           ;;
9899         *Sun\ F* | *Sun*Fortran*)
9900           lt_prog_compiler_pic='-KPIC'
9901           lt_prog_compiler_static='-Bstatic'
9902           lt_prog_compiler_wl='-Qoption ld '
9903           ;;
9904         *Sun\ C*)
9905           # Sun C 5.9
9906           lt_prog_compiler_pic='-KPIC'
9907           lt_prog_compiler_static='-Bstatic'
9908           lt_prog_compiler_wl='-Wl,'
9909           ;;
9910         *Intel*\ [CF]*Compiler*)
9911           lt_prog_compiler_wl='-Wl,'
9912           lt_prog_compiler_pic='-fPIC'
9913           lt_prog_compiler_static='-static'
9914           ;;
9915         *Portland\ Group*)
9916           lt_prog_compiler_wl='-Wl,'
9917           lt_prog_compiler_pic='-fpic'
9918           lt_prog_compiler_static='-Bstatic'
9919           ;;
9920         esac
9921         ;;
9922       esac
9923       ;;
9924
9925     newsos6)
9926       lt_prog_compiler_pic='-KPIC'
9927       lt_prog_compiler_static='-Bstatic'
9928       ;;
9929
9930     *nto* | *qnx*)
9931       # QNX uses GNU C++, but need to define -shared option too, otherwise
9932       # it will coredump.
9933       lt_prog_compiler_pic='-fPIC -shared'
9934       ;;
9935
9936     osf3* | osf4* | osf5*)
9937       lt_prog_compiler_wl='-Wl,'
9938       # All OSF/1 code is PIC.
9939       lt_prog_compiler_static='-non_shared'
9940       ;;
9941
9942     rdos*)
9943       lt_prog_compiler_static='-non_shared'
9944       ;;
9945
9946     solaris*)
9947       lt_prog_compiler_pic='-KPIC'
9948       lt_prog_compiler_static='-Bstatic'
9949       case $cc_basename in
9950       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9951         lt_prog_compiler_wl='-Qoption ld ';;
9952       *)
9953         lt_prog_compiler_wl='-Wl,';;
9954       esac
9955       ;;
9956
9957     sunos4*)
9958       lt_prog_compiler_wl='-Qoption ld '
9959       lt_prog_compiler_pic='-PIC'
9960       lt_prog_compiler_static='-Bstatic'
9961       ;;
9962
9963     sysv4 | sysv4.2uw2* | sysv4.3*)
9964       lt_prog_compiler_wl='-Wl,'
9965       lt_prog_compiler_pic='-KPIC'
9966       lt_prog_compiler_static='-Bstatic'
9967       ;;
9968
9969     sysv4*MP*)
9970       if test -d /usr/nec ;then
9971         lt_prog_compiler_pic='-Kconform_pic'
9972         lt_prog_compiler_static='-Bstatic'
9973       fi
9974       ;;
9975
9976     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9977       lt_prog_compiler_wl='-Wl,'
9978       lt_prog_compiler_pic='-KPIC'
9979       lt_prog_compiler_static='-Bstatic'
9980       ;;
9981
9982     unicos*)
9983       lt_prog_compiler_wl='-Wl,'
9984       lt_prog_compiler_can_build_shared=no
9985       ;;
9986
9987     uts4*)
9988       lt_prog_compiler_pic='-pic'
9989       lt_prog_compiler_static='-Bstatic'
9990       ;;
9991
9992     *)
9993       lt_prog_compiler_can_build_shared=no
9994       ;;
9995     esac
9996   fi
9997
9998 case $host_os in
9999   # For platforms which do not support PIC, -DPIC is meaningless:
10000   *djgpp*)
10001     lt_prog_compiler_pic=
10002     ;;
10003   *)
10004     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10005     ;;
10006 esac
10007
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10009 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10010 if ${lt_cv_prog_compiler_pic+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10016 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10017 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10018
10019 #
10020 # Check to make sure the PIC flag actually works.
10021 #
10022 if test -n "$lt_prog_compiler_pic"; then
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10024 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10025 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10026   $as_echo_n "(cached) " >&6
10027 else
10028   lt_cv_prog_compiler_pic_works=no
10029    ac_outfile=conftest.$ac_objext
10030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10031    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10032    # Insert the option either (1) after the last *FLAGS variable, or
10033    # (2) before a word containing "conftest.", or (3) at the end.
10034    # Note that $ac_compile itself does not contain backslashes and begins
10035    # with a dollar sign (not a hyphen), so the echo should work correctly.
10036    # The option is referenced via a variable to avoid confusing sed.
10037    lt_compile=`echo "$ac_compile" | $SED \
10038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10040    -e 's:$: $lt_compiler_flag:'`
10041    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10042    (eval "$lt_compile" 2>conftest.err)
10043    ac_status=$?
10044    cat conftest.err >&5
10045    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046    if (exit $ac_status) && test -s "$ac_outfile"; then
10047      # The compiler can only warn and ignore the option if not recognized
10048      # So say no if there are warnings other than the usual output.
10049      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10050      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10051      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10052        lt_cv_prog_compiler_pic_works=yes
10053      fi
10054    fi
10055    $RM conftest*
10056
10057 fi
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10059 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10060
10061 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10062     case $lt_prog_compiler_pic in
10063      "" | " "*) ;;
10064      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10065      esac
10066 else
10067     lt_prog_compiler_pic=
10068      lt_prog_compiler_can_build_shared=no
10069 fi
10070
10071 fi
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 #
10084 # Check to make sure the static flag actually works.
10085 #
10086 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10088 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10089 if ${lt_cv_prog_compiler_static_works+:} false; then :
10090   $as_echo_n "(cached) " >&6
10091 else
10092   lt_cv_prog_compiler_static_works=no
10093    save_LDFLAGS="$LDFLAGS"
10094    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10095    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10096    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10097      # The linker can only warn and ignore the option if not recognized
10098      # So say no if there are warnings
10099      if test -s conftest.err; then
10100        # Append any errors to the config.log.
10101        cat conftest.err 1>&5
10102        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10103        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10104        if diff conftest.exp conftest.er2 >/dev/null; then
10105          lt_cv_prog_compiler_static_works=yes
10106        fi
10107      else
10108        lt_cv_prog_compiler_static_works=yes
10109      fi
10110    fi
10111    $RM -r conftest*
10112    LDFLAGS="$save_LDFLAGS"
10113
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10116 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10117
10118 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10119     :
10120 else
10121     lt_prog_compiler_static=
10122 fi
10123
10124
10125
10126
10127
10128
10129
10130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10131 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10132 if ${lt_cv_prog_compiler_c_o+:} false; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   lt_cv_prog_compiler_c_o=no
10136    $RM -r conftest 2>/dev/null
10137    mkdir conftest
10138    cd conftest
10139    mkdir out
10140    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10141
10142    lt_compiler_flag="-o out/conftest2.$ac_objext"
10143    # Insert the option either (1) after the last *FLAGS variable, or
10144    # (2) before a word containing "conftest.", or (3) at the end.
10145    # Note that $ac_compile itself does not contain backslashes and begins
10146    # with a dollar sign (not a hyphen), so the echo should work correctly.
10147    lt_compile=`echo "$ac_compile" | $SED \
10148    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10149    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10150    -e 's:$: $lt_compiler_flag:'`
10151    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10152    (eval "$lt_compile" 2>out/conftest.err)
10153    ac_status=$?
10154    cat out/conftest.err >&5
10155    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10157    then
10158      # The compiler can only warn and ignore the option if not recognized
10159      # So say no if there are warnings
10160      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10161      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10162      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10163        lt_cv_prog_compiler_c_o=yes
10164      fi
10165    fi
10166    chmod u+w . 2>&5
10167    $RM conftest*
10168    # SGI C++ compiler will create directory out/ii_files/ for
10169    # template instantiation
10170    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10171    $RM out/* && rmdir out
10172    cd ..
10173    $RM -r conftest
10174    $RM conftest*
10175
10176 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10178 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10179
10180
10181
10182
10183
10184
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10187 if ${lt_cv_prog_compiler_c_o+:} false; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190   lt_cv_prog_compiler_c_o=no
10191    $RM -r conftest 2>/dev/null
10192    mkdir conftest
10193    cd conftest
10194    mkdir out
10195    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196
10197    lt_compiler_flag="-o out/conftest2.$ac_objext"
10198    # Insert the option either (1) after the last *FLAGS variable, or
10199    # (2) before a word containing "conftest.", or (3) at the end.
10200    # Note that $ac_compile itself does not contain backslashes and begins
10201    # with a dollar sign (not a hyphen), so the echo should work correctly.
10202    lt_compile=`echo "$ac_compile" | $SED \
10203    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10204    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10205    -e 's:$: $lt_compiler_flag:'`
10206    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10207    (eval "$lt_compile" 2>out/conftest.err)
10208    ac_status=$?
10209    cat out/conftest.err >&5
10210    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10212    then
10213      # The compiler can only warn and ignore the option if not recognized
10214      # So say no if there are warnings
10215      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10216      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10217      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10218        lt_cv_prog_compiler_c_o=yes
10219      fi
10220    fi
10221    chmod u+w . 2>&5
10222    $RM conftest*
10223    # SGI C++ compiler will create directory out/ii_files/ for
10224    # template instantiation
10225    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10226    $RM out/* && rmdir out
10227    cd ..
10228    $RM -r conftest
10229    $RM conftest*
10230
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10233 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10234
10235
10236
10237
10238 hard_links="nottested"
10239 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10240   # do not overwrite the value of need_locks provided by the user
10241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10242 $as_echo_n "checking if we can lock with hard links... " >&6; }
10243   hard_links=yes
10244   $RM conftest*
10245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10246   touch conftest.a
10247   ln conftest.a conftest.b 2>&5 || hard_links=no
10248   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10250 $as_echo "$hard_links" >&6; }
10251   if test "$hard_links" = no; then
10252     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10254     need_locks=warn
10255   fi
10256 else
10257   need_locks=no
10258 fi
10259
10260
10261
10262
10263
10264
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10266 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10267
10268   runpath_var=
10269   allow_undefined_flag=
10270   always_export_symbols=no
10271   archive_cmds=
10272   archive_expsym_cmds=
10273   compiler_needs_object=no
10274   enable_shared_with_static_runtimes=no
10275   export_dynamic_flag_spec=
10276   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10277   hardcode_automatic=no
10278   hardcode_direct=no
10279   hardcode_direct_absolute=no
10280   hardcode_libdir_flag_spec=
10281   hardcode_libdir_separator=
10282   hardcode_minus_L=no
10283   hardcode_shlibpath_var=unsupported
10284   inherit_rpath=no
10285   link_all_deplibs=unknown
10286   module_cmds=
10287   module_expsym_cmds=
10288   old_archive_from_new_cmds=
10289   old_archive_from_expsyms_cmds=
10290   thread_safe_flag_spec=
10291   whole_archive_flag_spec=
10292   # include_expsyms should be a list of space-separated symbols to be *always*
10293   # included in the symbol list
10294   include_expsyms=
10295   # exclude_expsyms can be an extended regexp of symbols to exclude
10296   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10297   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10298   # as well as any symbol that contains `d'.
10299   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10300   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10301   # platforms (ab)use it in PIC code, but their linkers get confused if
10302   # the symbol is explicitly referenced.  Since portable code cannot
10303   # rely on this symbol name, it's probably fine to never include it in
10304   # preloaded symbol tables.
10305   # Exclude shared library initialization/finalization symbols.
10306   extract_expsyms_cmds=
10307
10308   case $host_os in
10309   cygwin* | mingw* | pw32* | cegcc*)
10310     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10311     # When not using gcc, we currently assume that we are using
10312     # Microsoft Visual C++.
10313     if test "$GCC" != yes; then
10314       with_gnu_ld=no
10315     fi
10316     ;;
10317   interix*)
10318     # we just hope/assume this is gcc and not c89 (= MSVC++)
10319     with_gnu_ld=yes
10320     ;;
10321   openbsd*)
10322     with_gnu_ld=no
10323     ;;
10324   linux* | k*bsd*-gnu | gnu*)
10325     link_all_deplibs=no
10326     ;;
10327   esac
10328
10329   ld_shlibs=yes
10330
10331   # On some targets, GNU ld is compatible enough with the native linker
10332   # that we're better off using the native interface for both.
10333   lt_use_gnu_ld_interface=no
10334   if test "$with_gnu_ld" = yes; then
10335     case $host_os in
10336       aix*)
10337         # The AIX port of GNU ld has always aspired to compatibility
10338         # with the native linker.  However, as the warning in the GNU ld
10339         # block says, versions before 2.19.5* couldn't really create working
10340         # shared libraries, regardless of the interface used.
10341         case `$LD -v 2>&1` in
10342           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10343           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10344           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10345           *)
10346             lt_use_gnu_ld_interface=yes
10347             ;;
10348         esac
10349         ;;
10350       *)
10351         lt_use_gnu_ld_interface=yes
10352         ;;
10353     esac
10354   fi
10355
10356   if test "$lt_use_gnu_ld_interface" = yes; then
10357     # If archive_cmds runs LD, not CC, wlarc should be empty
10358     wlarc='${wl}'
10359
10360     # Set some defaults for GNU ld with shared library support. These
10361     # are reset later if shared libraries are not supported. Putting them
10362     # here allows them to be overridden if necessary.
10363     runpath_var=LD_RUN_PATH
10364     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365     export_dynamic_flag_spec='${wl}--export-dynamic'
10366     # ancient GNU ld didn't support --whole-archive et. al.
10367     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10368       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10369     else
10370       whole_archive_flag_spec=
10371     fi
10372     supports_anon_versioning=no
10373     case `$LD -v 2>&1` in
10374       *GNU\ gold*) supports_anon_versioning=yes ;;
10375       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10376       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10377       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10378       *\ 2.11.*) ;; # other 2.11 versions
10379       *) supports_anon_versioning=yes ;;
10380     esac
10381
10382     # See if GNU ld supports shared libraries.
10383     case $host_os in
10384     aix[3-9]*)
10385       # On AIX/PPC, the GNU linker is very broken
10386       if test "$host_cpu" != ia64; then
10387         ld_shlibs=no
10388         cat <<_LT_EOF 1>&2
10389
10390 *** Warning: the GNU linker, at least up to release 2.19, is reported
10391 *** to be unable to reliably create shared libraries on AIX.
10392 *** Therefore, libtool is disabling shared libraries support.  If you
10393 *** really care for shared libraries, you may want to install binutils
10394 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10395 *** You will then need to restart the configuration process.
10396
10397 _LT_EOF
10398       fi
10399       ;;
10400
10401     amigaos*)
10402       case $host_cpu in
10403       powerpc)
10404             # see comment about AmigaOS4 .so support
10405             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10406             archive_expsym_cmds=''
10407         ;;
10408       m68k)
10409             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)'
10410             hardcode_libdir_flag_spec='-L$libdir'
10411             hardcode_minus_L=yes
10412         ;;
10413       esac
10414       ;;
10415
10416     beos*)
10417       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418         allow_undefined_flag=unsupported
10419         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10420         # support --undefined.  This deserves some investigation.  FIXME
10421         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422       else
10423         ld_shlibs=no
10424       fi
10425       ;;
10426
10427     cygwin* | mingw* | pw32* | cegcc*)
10428       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10429       # as there is no search path for DLLs.
10430       hardcode_libdir_flag_spec='-L$libdir'
10431       export_dynamic_flag_spec='${wl}--export-all-symbols'
10432       allow_undefined_flag=unsupported
10433       always_export_symbols=no
10434       enable_shared_with_static_runtimes=yes
10435       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'
10436       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10437
10438       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10439         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10440         # If the export-symbols file already is a .def file (1st line
10441         # is EXPORTS), use it as is; otherwise, prepend...
10442         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10443           cp $export_symbols $output_objdir/$soname.def;
10444         else
10445           echo EXPORTS > $output_objdir/$soname.def;
10446           cat $export_symbols >> $output_objdir/$soname.def;
10447         fi~
10448         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10449       else
10450         ld_shlibs=no
10451       fi
10452       ;;
10453
10454     haiku*)
10455       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456       link_all_deplibs=yes
10457       ;;
10458
10459     interix[3-9]*)
10460       hardcode_direct=no
10461       hardcode_shlibpath_var=no
10462       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10463       export_dynamic_flag_spec='${wl}-E'
10464       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10465       # Instead, shared libraries are loaded at an image base (0x10000000 by
10466       # default) and relocated if they conflict, which is a slow very memory
10467       # consuming and fragmenting process.  To avoid this, we pick a random,
10468       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10469       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10470       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10471       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'
10472       ;;
10473
10474     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10475       tmp_diet=no
10476       if test "$host_os" = linux-dietlibc; then
10477         case $cc_basename in
10478           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10479         esac
10480       fi
10481       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10482          && test "$tmp_diet" = no
10483       then
10484         tmp_addflag=' $pic_flag'
10485         tmp_sharedflag='-shared'
10486         case $cc_basename,$host_cpu in
10487         pgcc*)                          # Portland Group C compiler
10488           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'
10489           tmp_addflag=' $pic_flag'
10490           ;;
10491         pgf77* | pgf90* | pgf95* | pgfortran*)
10492                                         # Portland Group f77 and f90 compilers
10493           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'
10494           tmp_addflag=' $pic_flag -Mnomain' ;;
10495         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10496           tmp_addflag=' -i_dynamic' ;;
10497         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10498           tmp_addflag=' -i_dynamic -nofor_main' ;;
10499         ifc* | ifort*)                  # Intel Fortran compiler
10500           tmp_addflag=' -nofor_main' ;;
10501         lf95*)                          # Lahey Fortran 8.1
10502           whole_archive_flag_spec=
10503           tmp_sharedflag='--shared' ;;
10504         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10505           tmp_sharedflag='-qmkshrobj'
10506           tmp_addflag= ;;
10507         nvcc*)  # Cuda Compiler Driver 2.2
10508           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'
10509           compiler_needs_object=yes
10510           ;;
10511         esac
10512         case `$CC -V 2>&1 | sed 5q` in
10513         *Sun\ C*)                       # Sun C 5.9
10514           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'
10515           compiler_needs_object=yes
10516           tmp_sharedflag='-G' ;;
10517         *Sun\ F*)                       # Sun Fortran 8.3
10518           tmp_sharedflag='-G' ;;
10519         esac
10520         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521
10522         if test "x$supports_anon_versioning" = xyes; then
10523           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10524             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10525             echo "local: *; };" >> $output_objdir/$libname.ver~
10526             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10527         fi
10528
10529         case $cc_basename in
10530         xlf* | bgf* | bgxlf* | mpixlf*)
10531           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10532           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10533           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10535           if test "x$supports_anon_versioning" = xyes; then
10536             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10537               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10538               echo "local: *; };" >> $output_objdir/$libname.ver~
10539               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10540           fi
10541           ;;
10542         esac
10543       else
10544         ld_shlibs=no
10545       fi
10546       ;;
10547
10548     netbsd* | netbsdelf*-gnu)
10549       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10550         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10551         wlarc=
10552       else
10553         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10555       fi
10556       ;;
10557
10558     solaris*)
10559       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10560         ld_shlibs=no
10561         cat <<_LT_EOF 1>&2
10562
10563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10564 *** create shared libraries on Solaris systems.  Therefore, libtool
10565 *** is disabling shared libraries support.  We urge you to upgrade GNU
10566 *** binutils to release 2.9.1 or newer.  Another option is to modify
10567 *** your PATH or compiler configuration so that the native linker is
10568 *** used, and then restart.
10569
10570 _LT_EOF
10571       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10572         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10574       else
10575         ld_shlibs=no
10576       fi
10577       ;;
10578
10579     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10580       case `$LD -v 2>&1` in
10581         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10582         ld_shlibs=no
10583         cat <<_LT_EOF 1>&2
10584
10585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10586 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10587 *** is disabling shared libraries support.  We urge you to upgrade GNU
10588 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10589 *** your PATH or compiler configuration so that the native linker is
10590 *** used, and then restart.
10591
10592 _LT_EOF
10593         ;;
10594         *)
10595           # For security reasons, it is highly recommended that you always
10596           # use absolute paths for naming shared libraries, and exclude the
10597           # DT_RUNPATH tag from executables and libraries.  But doing so
10598           # requires that you compile everything twice, which is a pain.
10599           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10600             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10603           else
10604             ld_shlibs=no
10605           fi
10606         ;;
10607       esac
10608       ;;
10609
10610     sunos4*)
10611       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10612       wlarc=
10613       hardcode_direct=yes
10614       hardcode_shlibpath_var=no
10615       ;;
10616
10617     *)
10618       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10619         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10620         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10621       else
10622         ld_shlibs=no
10623       fi
10624       ;;
10625     esac
10626
10627     if test "$ld_shlibs" = no; then
10628       runpath_var=
10629       hardcode_libdir_flag_spec=
10630       export_dynamic_flag_spec=
10631       whole_archive_flag_spec=
10632     fi
10633   else
10634     # PORTME fill in a description of your system's linker (not GNU ld)
10635     case $host_os in
10636     aix3*)
10637       allow_undefined_flag=unsupported
10638       always_export_symbols=yes
10639       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'
10640       # Note: this linker hardcodes the directories in LIBPATH if there
10641       # are no directories specified by -L.
10642       hardcode_minus_L=yes
10643       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10644         # Neither direct hardcoding nor static linking is supported with a
10645         # broken collect2.
10646         hardcode_direct=unsupported
10647       fi
10648       ;;
10649
10650     aix[4-9]*)
10651       if test "$host_cpu" = ia64; then
10652         # On IA64, the linker does run time linking by default, so we don't
10653         # have to do anything special.
10654         aix_use_runtimelinking=no
10655         exp_sym_flag='-Bexport'
10656         no_entry_flag=""
10657       else
10658         # If we're using GNU nm, then we don't want the "-C" option.
10659         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10660         # Also, AIX nm treats weak defined symbols like other global
10661         # defined symbols, whereas GNU nm marks them as "W".
10662         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10663           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'
10664         else
10665           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'
10666         fi
10667         aix_use_runtimelinking=no
10668
10669         # Test if we are trying to use run time linking or normal
10670         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10671         # need to do runtime linking.
10672         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10673           for ld_flag in $LDFLAGS; do
10674           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10675             aix_use_runtimelinking=yes
10676             break
10677           fi
10678           done
10679           ;;
10680         esac
10681
10682         exp_sym_flag='-bexport'
10683         no_entry_flag='-bnoentry'
10684       fi
10685
10686       # When large executables or shared objects are built, AIX ld can
10687       # have problems creating the table of contents.  If linking a library
10688       # or program results in "error TOC overflow" add -mminimal-toc to
10689       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10690       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10691
10692       archive_cmds=''
10693       hardcode_direct=yes
10694       hardcode_direct_absolute=yes
10695       hardcode_libdir_separator=':'
10696       link_all_deplibs=yes
10697       file_list_spec='${wl}-f,'
10698
10699       if test "$GCC" = yes; then
10700         case $host_os in aix4.[012]|aix4.[012].*)
10701         # We only want to do this on AIX 4.2 and lower, the check
10702         # below for broken collect2 doesn't work under 4.3+
10703           collect2name=`${CC} -print-prog-name=collect2`
10704           if test -f "$collect2name" &&
10705            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10706           then
10707           # We have reworked collect2
10708           :
10709           else
10710           # We have old collect2
10711           hardcode_direct=unsupported
10712           # It fails to find uninstalled libraries when the uninstalled
10713           # path is not listed in the libpath.  Setting hardcode_minus_L
10714           # to unsupported forces relinking
10715           hardcode_minus_L=yes
10716           hardcode_libdir_flag_spec='-L$libdir'
10717           hardcode_libdir_separator=
10718           fi
10719           ;;
10720         esac
10721         shared_flag='-shared'
10722         if test "$aix_use_runtimelinking" = yes; then
10723           shared_flag="$shared_flag "'${wl}-G'
10724         fi
10725         link_all_deplibs=no
10726       else
10727         # not using gcc
10728         if test "$host_cpu" = ia64; then
10729         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10730         # chokes on -Wl,-G. The following line is correct:
10731           shared_flag='-G'
10732         else
10733           if test "$aix_use_runtimelinking" = yes; then
10734             shared_flag='${wl}-G'
10735           else
10736             shared_flag='${wl}-bM:SRE'
10737           fi
10738         fi
10739       fi
10740
10741       export_dynamic_flag_spec='${wl}-bexpall'
10742       # It seems that -bexpall does not export symbols beginning with
10743       # underscore (_), so it is better to generate a list of symbols to export.
10744       always_export_symbols=yes
10745       if test "$aix_use_runtimelinking" = yes; then
10746         # Warning - without using the other runtime loading flags (-brtl),
10747         # -berok will link without error, but may produce a broken library.
10748         allow_undefined_flag='-berok'
10749         # Determine the default libpath from the value encoded in an
10750         # empty executable.
10751         if test "${lt_cv_aix_libpath+set}" = set; then
10752   aix_libpath=$lt_cv_aix_libpath
10753 else
10754   if ${lt_cv_aix_libpath_+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760 int
10761 main ()
10762 {
10763
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769
10770   lt_aix_libpath_sed='
10771       /Import File Strings/,/^$/ {
10772           /^0/ {
10773               s/^0  *\([^ ]*\) *$/\1/
10774               p
10775           }
10776       }'
10777   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10778   # Check for a 64-bit object if we didn't find anything.
10779   if test -z "$lt_cv_aix_libpath_"; then
10780     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10781   fi
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785   if test -z "$lt_cv_aix_libpath_"; then
10786     lt_cv_aix_libpath_="/usr/lib:/lib"
10787   fi
10788
10789 fi
10790
10791   aix_libpath=$lt_cv_aix_libpath_
10792 fi
10793
10794         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795         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"
10796       else
10797         if test "$host_cpu" = ia64; then
10798           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10799           allow_undefined_flag="-z nodefs"
10800           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"
10801         else
10802          # Determine the default libpath from the value encoded in an
10803          # empty executable.
10804          if test "${lt_cv_aix_libpath+set}" = set; then
10805   aix_libpath=$lt_cv_aix_libpath
10806 else
10807   if ${lt_cv_aix_libpath_+:} false; then :
10808   $as_echo_n "(cached) " >&6
10809 else
10810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h.  */
10812
10813 int
10814 main ()
10815 {
10816
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_link "$LINENO"; then :
10822
10823   lt_aix_libpath_sed='
10824       /Import File Strings/,/^$/ {
10825           /^0/ {
10826               s/^0  *\([^ ]*\) *$/\1/
10827               p
10828           }
10829       }'
10830   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10831   # Check for a 64-bit object if we didn't find anything.
10832   if test -z "$lt_cv_aix_libpath_"; then
10833     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10834   fi
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837     conftest$ac_exeext conftest.$ac_ext
10838   if test -z "$lt_cv_aix_libpath_"; then
10839     lt_cv_aix_libpath_="/usr/lib:/lib"
10840   fi
10841
10842 fi
10843
10844   aix_libpath=$lt_cv_aix_libpath_
10845 fi
10846
10847          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10848           # Warning - without using the other run time loading flags,
10849           # -berok will link without error, but may produce a broken library.
10850           no_undefined_flag=' ${wl}-bernotok'
10851           allow_undefined_flag=' ${wl}-berok'
10852           if test "$with_gnu_ld" = yes; then
10853             # We only use this code for GNU lds that support --whole-archive.
10854             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10855           else
10856             # Exported symbols can be pulled into shared objects from archives
10857             whole_archive_flag_spec='$convenience'
10858           fi
10859           archive_cmds_need_lc=yes
10860           # This is similar to how AIX traditionally builds its shared libraries.
10861           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'
10862         fi
10863       fi
10864       ;;
10865
10866     amigaos*)
10867       case $host_cpu in
10868       powerpc)
10869             # see comment about AmigaOS4 .so support
10870             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871             archive_expsym_cmds=''
10872         ;;
10873       m68k)
10874             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)'
10875             hardcode_libdir_flag_spec='-L$libdir'
10876             hardcode_minus_L=yes
10877         ;;
10878       esac
10879       ;;
10880
10881     bsdi[45]*)
10882       export_dynamic_flag_spec=-rdynamic
10883       ;;
10884
10885     cygwin* | mingw* | pw32* | cegcc*)
10886       # When not using gcc, we currently assume that we are using
10887       # Microsoft Visual C++.
10888       # hardcode_libdir_flag_spec is actually meaningless, as there is
10889       # no search path for DLLs.
10890       case $cc_basename in
10891       cl*)
10892         # Native MSVC
10893         hardcode_libdir_flag_spec=' '
10894         allow_undefined_flag=unsupported
10895         always_export_symbols=yes
10896         file_list_spec='@'
10897         # Tell ltmain to make .lib files, not .a files.
10898         libext=lib
10899         # Tell ltmain to make .dll files, not .so files.
10900         shrext_cmds=".dll"
10901         # FIXME: Setting linknames here is a bad hack.
10902         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10903         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10904             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10905           else
10906             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10907           fi~
10908           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10909           linknames='
10910         # The linker will not automatically build a static lib if we build a DLL.
10911         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10912         enable_shared_with_static_runtimes=yes
10913         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10914         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10915         # Don't use ranlib
10916         old_postinstall_cmds='chmod 644 $oldlib'
10917         postlink_cmds='lt_outputfile="@OUTPUT@"~
10918           lt_tool_outputfile="@TOOL_OUTPUT@"~
10919           case $lt_outputfile in
10920             *.exe|*.EXE) ;;
10921             *)
10922               lt_outputfile="$lt_outputfile.exe"
10923               lt_tool_outputfile="$lt_tool_outputfile.exe"
10924               ;;
10925           esac~
10926           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10927             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10928             $RM "$lt_outputfile.manifest";
10929           fi'
10930         ;;
10931       *)
10932         # Assume MSVC wrapper
10933         hardcode_libdir_flag_spec=' '
10934         allow_undefined_flag=unsupported
10935         # Tell ltmain to make .lib files, not .a files.
10936         libext=lib
10937         # Tell ltmain to make .dll files, not .so files.
10938         shrext_cmds=".dll"
10939         # FIXME: Setting linknames here is a bad hack.
10940         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10941         # The linker will automatically build a .lib file if we build a DLL.
10942         old_archive_from_new_cmds='true'
10943         # FIXME: Should let the user specify the lib program.
10944         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10945         enable_shared_with_static_runtimes=yes
10946         ;;
10947       esac
10948       ;;
10949
10950     darwin* | rhapsody*)
10951
10952
10953   archive_cmds_need_lc=no
10954   hardcode_direct=no
10955   hardcode_automatic=yes
10956   hardcode_shlibpath_var=unsupported
10957   if test "$lt_cv_ld_force_load" = "yes"; then
10958     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\"`'
10959
10960   else
10961     whole_archive_flag_spec=''
10962   fi
10963   link_all_deplibs=yes
10964   allow_undefined_flag="$_lt_dar_allow_undefined"
10965   case $cc_basename in
10966      ifort*) _lt_dar_can_shared=yes ;;
10967      *) _lt_dar_can_shared=$GCC ;;
10968   esac
10969   if test "$_lt_dar_can_shared" = "yes"; then
10970     output_verbose_link_cmd=func_echo_all
10971     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10972     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10973     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}"
10974     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}"
10975
10976   else
10977   ld_shlibs=no
10978   fi
10979
10980       ;;
10981
10982     dgux*)
10983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984       hardcode_libdir_flag_spec='-L$libdir'
10985       hardcode_shlibpath_var=no
10986       ;;
10987
10988     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10989     # support.  Future versions do this automatically, but an explicit c++rt0.o
10990     # does not break anything, and helps significantly (at the cost of a little
10991     # extra space).
10992     freebsd2.2*)
10993       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10994       hardcode_libdir_flag_spec='-R$libdir'
10995       hardcode_direct=yes
10996       hardcode_shlibpath_var=no
10997       ;;
10998
10999     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11000     freebsd2.*)
11001       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11002       hardcode_direct=yes
11003       hardcode_minus_L=yes
11004       hardcode_shlibpath_var=no
11005       ;;
11006
11007     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11008     freebsd* | dragonfly*)
11009       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11010       hardcode_libdir_flag_spec='-R$libdir'
11011       hardcode_direct=yes
11012       hardcode_shlibpath_var=no
11013       ;;
11014
11015     hpux9*)
11016       if test "$GCC" = yes; then
11017         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'
11018       else
11019         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'
11020       fi
11021       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11022       hardcode_libdir_separator=:
11023       hardcode_direct=yes
11024
11025       # hardcode_minus_L: Not really in the search PATH,
11026       # but as the default location of the library.
11027       hardcode_minus_L=yes
11028       export_dynamic_flag_spec='${wl}-E'
11029       ;;
11030
11031     hpux10*)
11032       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11033         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11034       else
11035         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11036       fi
11037       if test "$with_gnu_ld" = no; then
11038         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11039         hardcode_libdir_separator=:
11040         hardcode_direct=yes
11041         hardcode_direct_absolute=yes
11042         export_dynamic_flag_spec='${wl}-E'
11043         # hardcode_minus_L: Not really in the search PATH,
11044         # but as the default location of the library.
11045         hardcode_minus_L=yes
11046       fi
11047       ;;
11048
11049     hpux11*)
11050       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11051         case $host_cpu in
11052         hppa*64*)
11053           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11054           ;;
11055         ia64*)
11056           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11057           ;;
11058         *)
11059           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11060           ;;
11061         esac
11062       else
11063         case $host_cpu in
11064         hppa*64*)
11065           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11066           ;;
11067         ia64*)
11068           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11069           ;;
11070         *)
11071
11072           # Older versions of the 11.00 compiler do not understand -b yet
11073           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11074           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11075 $as_echo_n "checking if $CC understands -b... " >&6; }
11076 if ${lt_cv_prog_compiler__b+:} false; then :
11077   $as_echo_n "(cached) " >&6
11078 else
11079   lt_cv_prog_compiler__b=no
11080    save_LDFLAGS="$LDFLAGS"
11081    LDFLAGS="$LDFLAGS -b"
11082    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11083    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11084      # The linker can only warn and ignore the option if not recognized
11085      # So say no if there are warnings
11086      if test -s conftest.err; then
11087        # Append any errors to the config.log.
11088        cat conftest.err 1>&5
11089        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11090        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11091        if diff conftest.exp conftest.er2 >/dev/null; then
11092          lt_cv_prog_compiler__b=yes
11093        fi
11094      else
11095        lt_cv_prog_compiler__b=yes
11096      fi
11097    fi
11098    $RM -r conftest*
11099    LDFLAGS="$save_LDFLAGS"
11100
11101 fi
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11103 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11104
11105 if test x"$lt_cv_prog_compiler__b" = xyes; then
11106     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11107 else
11108     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11109 fi
11110
11111           ;;
11112         esac
11113       fi
11114       if test "$with_gnu_ld" = no; then
11115         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11116         hardcode_libdir_separator=:
11117
11118         case $host_cpu in
11119         hppa*64*|ia64*)
11120           hardcode_direct=no
11121           hardcode_shlibpath_var=no
11122           ;;
11123         *)
11124           hardcode_direct=yes
11125           hardcode_direct_absolute=yes
11126           export_dynamic_flag_spec='${wl}-E'
11127
11128           # hardcode_minus_L: Not really in the search PATH,
11129           # but as the default location of the library.
11130           hardcode_minus_L=yes
11131           ;;
11132         esac
11133       fi
11134       ;;
11135
11136     irix5* | irix6* | nonstopux*)
11137       if test "$GCC" = yes; then
11138         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'
11139         # Try to use the -exported_symbol ld option, if it does not
11140         # work, assume that -exports_file does not work either and
11141         # implicitly export all symbols.
11142         # This should be the same for all languages, so no per-tag cache variable.
11143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11144 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11145 if ${lt_cv_irix_exported_symbol+:} false; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   save_LDFLAGS="$LDFLAGS"
11149            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11150            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h.  */
11152 int foo (void) { return 0; }
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155   lt_cv_irix_exported_symbol=yes
11156 else
11157   lt_cv_irix_exported_symbol=no
11158 fi
11159 rm -f core conftest.err conftest.$ac_objext \
11160     conftest$ac_exeext conftest.$ac_ext
11161            LDFLAGS="$save_LDFLAGS"
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11164 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11165         if test "$lt_cv_irix_exported_symbol" = yes; then
11166           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'
11167         fi
11168       else
11169         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'
11170         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'
11171       fi
11172       archive_cmds_need_lc='no'
11173       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11174       hardcode_libdir_separator=:
11175       inherit_rpath=yes
11176       link_all_deplibs=yes
11177       ;;
11178
11179     netbsd* | netbsdelf*-gnu)
11180       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11181         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11182       else
11183         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11184       fi
11185       hardcode_libdir_flag_spec='-R$libdir'
11186       hardcode_direct=yes
11187       hardcode_shlibpath_var=no
11188       ;;
11189
11190     newsos6)
11191       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11192       hardcode_direct=yes
11193       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11194       hardcode_libdir_separator=:
11195       hardcode_shlibpath_var=no
11196       ;;
11197
11198     *nto* | *qnx*)
11199       ;;
11200
11201     openbsd*)
11202       if test -f /usr/libexec/ld.so; then
11203         hardcode_direct=yes
11204         hardcode_shlibpath_var=no
11205         hardcode_direct_absolute=yes
11206         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11207           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11208           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11209           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11210           export_dynamic_flag_spec='${wl}-E'
11211         else
11212           case $host_os in
11213            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11214              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11215              hardcode_libdir_flag_spec='-R$libdir'
11216              ;;
11217            *)
11218              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11219              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11220              ;;
11221           esac
11222         fi
11223       else
11224         ld_shlibs=no
11225       fi
11226       ;;
11227
11228     os2*)
11229       hardcode_libdir_flag_spec='-L$libdir'
11230       hardcode_minus_L=yes
11231       allow_undefined_flag=unsupported
11232       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'
11233       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11234       ;;
11235
11236     osf3*)
11237       if test "$GCC" = yes; then
11238         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11239         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'
11240       else
11241         allow_undefined_flag=' -expect_unresolved \*'
11242         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'
11243       fi
11244       archive_cmds_need_lc='no'
11245       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11246       hardcode_libdir_separator=:
11247       ;;
11248
11249     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11250       if test "$GCC" = yes; then
11251         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11252         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'
11253         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11254       else
11255         allow_undefined_flag=' -expect_unresolved \*'
11256         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'
11257         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~
11258         $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'
11259
11260         # Both c and cxx compiler support -rpath directly
11261         hardcode_libdir_flag_spec='-rpath $libdir'
11262       fi
11263       archive_cmds_need_lc='no'
11264       hardcode_libdir_separator=:
11265       ;;
11266
11267     solaris*)
11268       no_undefined_flag=' -z defs'
11269       if test "$GCC" = yes; then
11270         wlarc='${wl}'
11271         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11272         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11273           $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'
11274       else
11275         case `$CC -V 2>&1` in
11276         *"Compilers 5.0"*)
11277           wlarc=''
11278           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11280           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11281           ;;
11282         *)
11283           wlarc='${wl}'
11284           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11285           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11286           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11287           ;;
11288         esac
11289       fi
11290       hardcode_libdir_flag_spec='-R$libdir'
11291       hardcode_shlibpath_var=no
11292       case $host_os in
11293       solaris2.[0-5] | solaris2.[0-5].*) ;;
11294       *)
11295         # The compiler driver will combine and reorder linker options,
11296         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11297         # but is careful enough not to reorder.
11298         # Supported since Solaris 2.6 (maybe 2.5.1?)
11299         if test "$GCC" = yes; then
11300           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11301         else
11302           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11303         fi
11304         ;;
11305       esac
11306       link_all_deplibs=yes
11307       ;;
11308
11309     sunos4*)
11310       if test "x$host_vendor" = xsequent; then
11311         # Use $CC to link under sequent, because it throws in some extra .o
11312         # files that make .init and .fini sections work.
11313         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11314       else
11315         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11316       fi
11317       hardcode_libdir_flag_spec='-L$libdir'
11318       hardcode_direct=yes
11319       hardcode_minus_L=yes
11320       hardcode_shlibpath_var=no
11321       ;;
11322
11323     sysv4)
11324       case $host_vendor in
11325         sni)
11326           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11327           hardcode_direct=yes # is this really true???
11328         ;;
11329         siemens)
11330           ## LD is ld it makes a PLAMLIB
11331           ## CC just makes a GrossModule.
11332           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11333           reload_cmds='$CC -r -o $output$reload_objs'
11334           hardcode_direct=no
11335         ;;
11336         motorola)
11337           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11339         ;;
11340       esac
11341       runpath_var='LD_RUN_PATH'
11342       hardcode_shlibpath_var=no
11343       ;;
11344
11345     sysv4.3*)
11346       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347       hardcode_shlibpath_var=no
11348       export_dynamic_flag_spec='-Bexport'
11349       ;;
11350
11351     sysv4*MP*)
11352       if test -d /usr/nec; then
11353         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354         hardcode_shlibpath_var=no
11355         runpath_var=LD_RUN_PATH
11356         hardcode_runpath_var=yes
11357         ld_shlibs=yes
11358       fi
11359       ;;
11360
11361     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11362       no_undefined_flag='${wl}-z,text'
11363       archive_cmds_need_lc=no
11364       hardcode_shlibpath_var=no
11365       runpath_var='LD_RUN_PATH'
11366
11367       if test "$GCC" = yes; then
11368         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11369         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11370       else
11371         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11373       fi
11374       ;;
11375
11376     sysv5* | sco3.2v5* | sco5v6*)
11377       # Note: We can NOT use -z defs as we might desire, because we do not
11378       # link with -lc, and that would cause any symbols used from libc to
11379       # always be unresolved, which means just about no library would
11380       # ever link correctly.  If we're not using GNU ld we use -z text
11381       # though, which does catch some bad symbols but isn't as heavy-handed
11382       # as -z defs.
11383       no_undefined_flag='${wl}-z,text'
11384       allow_undefined_flag='${wl}-z,nodefs'
11385       archive_cmds_need_lc=no
11386       hardcode_shlibpath_var=no
11387       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11388       hardcode_libdir_separator=':'
11389       link_all_deplibs=yes
11390       export_dynamic_flag_spec='${wl}-Bexport'
11391       runpath_var='LD_RUN_PATH'
11392
11393       if test "$GCC" = yes; then
11394         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11396       else
11397         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399       fi
11400       ;;
11401
11402     uts4*)
11403       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11404       hardcode_libdir_flag_spec='-L$libdir'
11405       hardcode_shlibpath_var=no
11406       ;;
11407
11408     *)
11409       ld_shlibs=no
11410       ;;
11411     esac
11412
11413     if test x$host_vendor = xsni; then
11414       case $host in
11415       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11416         export_dynamic_flag_spec='${wl}-Blargedynsym'
11417         ;;
11418       esac
11419     fi
11420   fi
11421
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11423 $as_echo "$ld_shlibs" >&6; }
11424 test "$ld_shlibs" = no && can_build_shared=no
11425
11426 with_gnu_ld=$with_gnu_ld
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442 #
11443 # Do we need to explicitly link libc?
11444 #
11445 case "x$archive_cmds_need_lc" in
11446 x|xyes)
11447   # Assume -lc should be added
11448   archive_cmds_need_lc=yes
11449
11450   if test "$enable_shared" = yes && test "$GCC" = yes; then
11451     case $archive_cmds in
11452     *'~'*)
11453       # FIXME: we may have to deal with multi-command sequences.
11454       ;;
11455     '$CC '*)
11456       # Test whether the compiler implicitly links with -lc since on some
11457       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11458       # to ld, don't add -lc before -lgcc.
11459       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11460 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11461 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   $RM conftest*
11465         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11466
11467         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11468   (eval $ac_compile) 2>&5
11469   ac_status=$?
11470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471   test $ac_status = 0; } 2>conftest.err; then
11472           soname=conftest
11473           lib=conftest
11474           libobjs=conftest.$ac_objext
11475           deplibs=
11476           wl=$lt_prog_compiler_wl
11477           pic_flag=$lt_prog_compiler_pic
11478           compiler_flags=-v
11479           linker_flags=-v
11480           verstring=
11481           output_objdir=.
11482           libname=conftest
11483           lt_save_allow_undefined_flag=$allow_undefined_flag
11484           allow_undefined_flag=
11485           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11486   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11487   ac_status=$?
11488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489   test $ac_status = 0; }
11490           then
11491             lt_cv_archive_cmds_need_lc=no
11492           else
11493             lt_cv_archive_cmds_need_lc=yes
11494           fi
11495           allow_undefined_flag=$lt_save_allow_undefined_flag
11496         else
11497           cat conftest.err 1>&5
11498         fi
11499         $RM conftest*
11500
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11503 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11504       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11505       ;;
11506     esac
11507   fi
11508   ;;
11509 esac
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11664
11665 if test "$GCC" = yes; then
11666   case $host_os in
11667     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11668     *) lt_awk_arg="/^libraries:/" ;;
11669   esac
11670   case $host_os in
11671     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11672     *) lt_sed_strip_eq="s,=/,/,g" ;;
11673   esac
11674   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11675   case $lt_search_path_spec in
11676   *\;*)
11677     # if the path contains ";" then we assume it to be the separator
11678     # otherwise default to the standard path separator (i.e. ":") - it is
11679     # assumed that no part of a normal pathname contains ";" but that should
11680     # okay in the real world where ";" in dirpaths is itself problematic.
11681     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11682     ;;
11683   *)
11684     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11685     ;;
11686   esac
11687   # Ok, now we have the path, separated by spaces, we can step through it
11688   # and add multilib dir if necessary.
11689   lt_tmp_lt_search_path_spec=
11690   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11691   for lt_sys_path in $lt_search_path_spec; do
11692     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11693       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11694     else
11695       test -d "$lt_sys_path" && \
11696         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11697     fi
11698   done
11699   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11700 BEGIN {RS=" "; FS="/|\n";} {
11701   lt_foo="";
11702   lt_count=0;
11703   for (lt_i = NF; lt_i > 0; lt_i--) {
11704     if ($lt_i != "" && $lt_i != ".") {
11705       if ($lt_i == "..") {
11706         lt_count++;
11707       } else {
11708         if (lt_count == 0) {
11709           lt_foo="/" $lt_i lt_foo;
11710         } else {
11711           lt_count--;
11712         }
11713       }
11714     }
11715   }
11716   if (lt_foo != "") { lt_freq[lt_foo]++; }
11717   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11718 }'`
11719   # AWK program above erroneously prepends '/' to C:/dos/paths
11720   # for these hosts.
11721   case $host_os in
11722     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11723       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11724   esac
11725   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11726 else
11727   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11728 fi
11729 library_names_spec=
11730 libname_spec='lib$name'
11731 soname_spec=
11732 shrext_cmds=".so"
11733 postinstall_cmds=
11734 postuninstall_cmds=
11735 finish_cmds=
11736 finish_eval=
11737 shlibpath_var=
11738 shlibpath_overrides_runpath=unknown
11739 version_type=none
11740 dynamic_linker="$host_os ld.so"
11741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11742 need_lib_prefix=unknown
11743 hardcode_into_libs=no
11744
11745 # when you set need_version to no, make sure it does not cause -set_version
11746 # flags to be left without arguments
11747 need_version=unknown
11748
11749 case $host_os in
11750 aix3*)
11751   version_type=linux # correct to gnu/linux during the next big refactor
11752   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11753   shlibpath_var=LIBPATH
11754
11755   # AIX 3 has no versioning support, so we append a major version to the name.
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   ;;
11758
11759 aix[4-9]*)
11760   version_type=linux # correct to gnu/linux during the next big refactor
11761   need_lib_prefix=no
11762   need_version=no
11763   hardcode_into_libs=yes
11764   if test "$host_cpu" = ia64; then
11765     # AIX 5 supports IA64
11766     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11767     shlibpath_var=LD_LIBRARY_PATH
11768   else
11769     # With GCC up to 2.95.x, collect2 would create an import file
11770     # for dependence libraries.  The import file would start with
11771     # the line `#! .'.  This would cause the generated library to
11772     # depend on `.', always an invalid library.  This was fixed in
11773     # development snapshots of GCC prior to 3.0.
11774     case $host_os in
11775       aix4 | aix4.[01] | aix4.[01].*)
11776       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11777            echo ' yes '
11778            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11779         :
11780       else
11781         can_build_shared=no
11782       fi
11783       ;;
11784     esac
11785     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11786     # soname into executable. Probably we can add versioning support to
11787     # collect2, so additional links can be useful in future.
11788     if test "$aix_use_runtimelinking" = yes; then
11789       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11790       # instead of lib<name>.a to let people know that these are not
11791       # typical AIX shared libraries.
11792       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793     else
11794       # We preserve .a as extension for shared libraries through AIX4.2
11795       # and later when we are not doing run time linking.
11796       library_names_spec='${libname}${release}.a $libname.a'
11797       soname_spec='${libname}${release}${shared_ext}$major'
11798     fi
11799     shlibpath_var=LIBPATH
11800   fi
11801   ;;
11802
11803 amigaos*)
11804   case $host_cpu in
11805   powerpc)
11806     # Since July 2007 AmigaOS4 officially supports .so libraries.
11807     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809     ;;
11810   m68k)
11811     library_names_spec='$libname.ixlibrary $libname.a'
11812     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11813     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'
11814     ;;
11815   esac
11816   ;;
11817
11818 beos*)
11819   library_names_spec='${libname}${shared_ext}'
11820   dynamic_linker="$host_os ld.so"
11821   shlibpath_var=LIBRARY_PATH
11822   ;;
11823
11824 bsdi[45]*)
11825   version_type=linux # correct to gnu/linux during the next big refactor
11826   need_version=no
11827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828   soname_spec='${libname}${release}${shared_ext}$major'
11829   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11832   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11833   # the default ld.so.conf also contains /usr/contrib/lib and
11834   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11835   # libtool to hard-code these into programs
11836   ;;
11837
11838 cygwin* | mingw* | pw32* | cegcc*)
11839   version_type=windows
11840   shrext_cmds=".dll"
11841   need_version=no
11842   need_lib_prefix=no
11843
11844   case $GCC,$cc_basename in
11845   yes,*)
11846     # gcc
11847     library_names_spec='$libname.dll.a'
11848     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11849     postinstall_cmds='base_file=`basename \${file}`~
11850       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11851       dldir=$destdir/`dirname \$dlpath`~
11852       test -d \$dldir || mkdir -p \$dldir~
11853       $install_prog $dir/$dlname \$dldir/$dlname~
11854       chmod a+x \$dldir/$dlname~
11855       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11856         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11857       fi'
11858     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11859       dlpath=$dir/\$dldll~
11860        $RM \$dlpath'
11861     shlibpath_overrides_runpath=yes
11862
11863     case $host_os in
11864     cygwin*)
11865       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11866       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867
11868       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11869       ;;
11870     mingw* | cegcc*)
11871       # MinGW DLLs use traditional 'lib' prefix
11872       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11873       ;;
11874     pw32*)
11875       # pw32 DLLs use 'pw' prefix rather than 'lib'
11876       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11877       ;;
11878     esac
11879     dynamic_linker='Win32 ld.exe'
11880     ;;
11881
11882   *,cl*)
11883     # Native MSVC
11884     libname_spec='$name'
11885     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11886     library_names_spec='${libname}.dll.lib'
11887
11888     case $build_os in
11889     mingw*)
11890       sys_lib_search_path_spec=
11891       lt_save_ifs=$IFS
11892       IFS=';'
11893       for lt_path in $LIB
11894       do
11895         IFS=$lt_save_ifs
11896         # Let DOS variable expansion print the short 8.3 style file name.
11897         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11898         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11899       done
11900       IFS=$lt_save_ifs
11901       # Convert to MSYS style.
11902       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11903       ;;
11904     cygwin*)
11905       # Convert to unix form, then to dos form, then back to unix form
11906       # but this time dos style (no spaces!) so that the unix form looks
11907       # like /cygdrive/c/PROGRA~1:/cygdr...
11908       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11909       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11910       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11911       ;;
11912     *)
11913       sys_lib_search_path_spec="$LIB"
11914       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11915         # It is most probably a Windows format PATH.
11916         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11917       else
11918         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11919       fi
11920       # FIXME: find the short name or the path components, as spaces are
11921       # common. (e.g. "Program Files" -> "PROGRA~1")
11922       ;;
11923     esac
11924
11925     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11926     postinstall_cmds='base_file=`basename \${file}`~
11927       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11928       dldir=$destdir/`dirname \$dlpath`~
11929       test -d \$dldir || mkdir -p \$dldir~
11930       $install_prog $dir/$dlname \$dldir/$dlname'
11931     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11932       dlpath=$dir/\$dldll~
11933        $RM \$dlpath'
11934     shlibpath_overrides_runpath=yes
11935     dynamic_linker='Win32 link.exe'
11936     ;;
11937
11938   *)
11939     # Assume MSVC wrapper
11940     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11941     dynamic_linker='Win32 ld.exe'
11942     ;;
11943   esac
11944   # FIXME: first we should search . and the directory the executable is in
11945   shlibpath_var=PATH
11946   ;;
11947
11948 darwin* | rhapsody*)
11949   dynamic_linker="$host_os dyld"
11950   version_type=darwin
11951   need_lib_prefix=no
11952   need_version=no
11953   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11954   soname_spec='${libname}${release}${major}$shared_ext'
11955   shlibpath_overrides_runpath=yes
11956   shlibpath_var=DYLD_LIBRARY_PATH
11957   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11958
11959   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11960   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11961   ;;
11962
11963 dgux*)
11964   version_type=linux # correct to gnu/linux during the next big refactor
11965   need_lib_prefix=no
11966   need_version=no
11967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11968   soname_spec='${libname}${release}${shared_ext}$major'
11969   shlibpath_var=LD_LIBRARY_PATH
11970   ;;
11971
11972 freebsd* | dragonfly*)
11973   # DragonFly does not have aout.  When/if they implement a new
11974   # versioning mechanism, adjust this.
11975   if test -x /usr/bin/objformat; then
11976     objformat=`/usr/bin/objformat`
11977   else
11978     case $host_os in
11979     freebsd[23].*) objformat=aout ;;
11980     *) objformat=elf ;;
11981     esac
11982   fi
11983   version_type=freebsd-$objformat
11984   case $version_type in
11985     freebsd-elf*)
11986       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11987       need_version=no
11988       need_lib_prefix=no
11989       ;;
11990     freebsd-*)
11991       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11992       need_version=yes
11993       ;;
11994   esac
11995   shlibpath_var=LD_LIBRARY_PATH
11996   case $host_os in
11997   freebsd2.*)
11998     shlibpath_overrides_runpath=yes
11999     ;;
12000   freebsd3.[01]* | freebsdelf3.[01]*)
12001     shlibpath_overrides_runpath=yes
12002     hardcode_into_libs=yes
12003     ;;
12004   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12005   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12006     shlibpath_overrides_runpath=no
12007     hardcode_into_libs=yes
12008     ;;
12009   *) # from 4.6 on, and DragonFly
12010     shlibpath_overrides_runpath=yes
12011     hardcode_into_libs=yes
12012     ;;
12013   esac
12014   ;;
12015
12016 haiku*)
12017   version_type=linux # correct to gnu/linux during the next big refactor
12018   need_lib_prefix=no
12019   need_version=no
12020   dynamic_linker="$host_os runtime_loader"
12021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12022   soname_spec='${libname}${release}${shared_ext}$major'
12023   shlibpath_var=LIBRARY_PATH
12024   shlibpath_overrides_runpath=yes
12025   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12026   hardcode_into_libs=yes
12027   ;;
12028
12029 hpux9* | hpux10* | hpux11*)
12030   # Give a soname corresponding to the major version so that dld.sl refuses to
12031   # link against other versions.
12032   version_type=sunos
12033   need_lib_prefix=no
12034   need_version=no
12035   case $host_cpu in
12036   ia64*)
12037     shrext_cmds='.so'
12038     hardcode_into_libs=yes
12039     dynamic_linker="$host_os dld.so"
12040     shlibpath_var=LD_LIBRARY_PATH
12041     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043     soname_spec='${libname}${release}${shared_ext}$major'
12044     if test "X$HPUX_IA64_MODE" = X32; then
12045       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12046     else
12047       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12048     fi
12049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12050     ;;
12051   hppa*64*)
12052     shrext_cmds='.sl'
12053     hardcode_into_libs=yes
12054     dynamic_linker="$host_os dld.sl"
12055     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058     soname_spec='${libname}${release}${shared_ext}$major'
12059     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12060     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12061     ;;
12062   *)
12063     shrext_cmds='.sl'
12064     dynamic_linker="$host_os dld.sl"
12065     shlibpath_var=SHLIB_PATH
12066     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068     soname_spec='${libname}${release}${shared_ext}$major'
12069     ;;
12070   esac
12071   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12072   postinstall_cmds='chmod 555 $lib'
12073   # or fails outright, so override atomically:
12074   install_override_mode=555
12075   ;;
12076
12077 interix[3-9]*)
12078   version_type=linux # correct to gnu/linux during the next big refactor
12079   need_lib_prefix=no
12080   need_version=no
12081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12082   soname_spec='${libname}${release}${shared_ext}$major'
12083   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12084   shlibpath_var=LD_LIBRARY_PATH
12085   shlibpath_overrides_runpath=no
12086   hardcode_into_libs=yes
12087   ;;
12088
12089 irix5* | irix6* | nonstopux*)
12090   case $host_os in
12091     nonstopux*) version_type=nonstopux ;;
12092     *)
12093         if test "$lt_cv_prog_gnu_ld" = yes; then
12094                 version_type=linux # correct to gnu/linux during the next big refactor
12095         else
12096                 version_type=irix
12097         fi ;;
12098   esac
12099   need_lib_prefix=no
12100   need_version=no
12101   soname_spec='${libname}${release}${shared_ext}$major'
12102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12103   case $host_os in
12104   irix5* | nonstopux*)
12105     libsuff= shlibsuff=
12106     ;;
12107   *)
12108     case $LD in # libtool.m4 will add one of these switches to LD
12109     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12110       libsuff= shlibsuff= libmagic=32-bit;;
12111     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12112       libsuff=32 shlibsuff=N32 libmagic=N32;;
12113     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12114       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12115     *) libsuff= shlibsuff= libmagic=never-match;;
12116     esac
12117     ;;
12118   esac
12119   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12120   shlibpath_overrides_runpath=no
12121   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12122   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12123   hardcode_into_libs=yes
12124   ;;
12125
12126 # No shared lib support for Linux oldld, aout, or coff.
12127 linux*oldld* | linux*aout* | linux*coff*)
12128   dynamic_linker=no
12129   ;;
12130
12131 # This must be glibc/ELF.
12132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12133   version_type=linux # correct to gnu/linux during the next big refactor
12134   need_lib_prefix=no
12135   need_version=no
12136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12137   soname_spec='${libname}${release}${shared_ext}$major'
12138   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12139   shlibpath_var=LD_LIBRARY_PATH
12140   shlibpath_overrides_runpath=no
12141
12142   # Some binutils ld are patched to set DT_RUNPATH
12143   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   lt_cv_shlibpath_overrides_runpath=no
12147     save_LDFLAGS=$LDFLAGS
12148     save_libdir=$libdir
12149     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12150          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h.  */
12153
12154 int
12155 main ()
12156 {
12157
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 if ac_fn_c_try_link "$LINENO"; then :
12163   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12164   lt_cv_shlibpath_overrides_runpath=yes
12165 fi
12166 fi
12167 rm -f core conftest.err conftest.$ac_objext \
12168     conftest$ac_exeext conftest.$ac_ext
12169     LDFLAGS=$save_LDFLAGS
12170     libdir=$save_libdir
12171
12172 fi
12173
12174   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12175
12176   # This implies no fast_install, which is unacceptable.
12177   # Some rework will be needed to allow for fast_install
12178   # before this can be enabled.
12179   hardcode_into_libs=yes
12180
12181   # Append ld.so.conf contents to the search path
12182   if test -f /etc/ld.so.conf; then
12183     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' ' '`
12184     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12185   fi
12186
12187   # We used to test for /lib/ld.so.1 and disable shared libraries on
12188   # powerpc, because MkLinux only supported shared libraries with the
12189   # GNU dynamic linker.  Since this was broken with cross compilers,
12190   # most powerpc-linux boxes support dynamic linking these days and
12191   # people can always --disable-shared, the test was removed, and we
12192   # assume the GNU/Linux dynamic linker is in use.
12193   dynamic_linker='GNU/Linux ld.so'
12194   ;;
12195
12196 netbsdelf*-gnu)
12197   version_type=linux
12198   need_lib_prefix=no
12199   need_version=no
12200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201   soname_spec='${libname}${release}${shared_ext}$major'
12202   shlibpath_var=LD_LIBRARY_PATH
12203   shlibpath_overrides_runpath=no
12204   hardcode_into_libs=yes
12205   dynamic_linker='NetBSD ld.elf_so'
12206   ;;
12207
12208 netbsd*)
12209   version_type=sunos
12210   need_lib_prefix=no
12211   need_version=no
12212   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12214     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12215     dynamic_linker='NetBSD (a.out) ld.so'
12216   else
12217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12218     soname_spec='${libname}${release}${shared_ext}$major'
12219     dynamic_linker='NetBSD ld.elf_so'
12220   fi
12221   shlibpath_var=LD_LIBRARY_PATH
12222   shlibpath_overrides_runpath=yes
12223   hardcode_into_libs=yes
12224   ;;
12225
12226 newsos6)
12227   version_type=linux # correct to gnu/linux during the next big refactor
12228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229   shlibpath_var=LD_LIBRARY_PATH
12230   shlibpath_overrides_runpath=yes
12231   ;;
12232
12233 *nto* | *qnx*)
12234   version_type=qnx
12235   need_lib_prefix=no
12236   need_version=no
12237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12238   soname_spec='${libname}${release}${shared_ext}$major'
12239   shlibpath_var=LD_LIBRARY_PATH
12240   shlibpath_overrides_runpath=no
12241   hardcode_into_libs=yes
12242   dynamic_linker='ldqnx.so'
12243   ;;
12244
12245 openbsd*)
12246   version_type=sunos
12247   sys_lib_dlsearch_path_spec="/usr/lib"
12248   need_lib_prefix=no
12249   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12250   case $host_os in
12251     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12252     *)                          need_version=no  ;;
12253   esac
12254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12256   shlibpath_var=LD_LIBRARY_PATH
12257   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12258     case $host_os in
12259       openbsd2.[89] | openbsd2.[89].*)
12260         shlibpath_overrides_runpath=no
12261         ;;
12262       *)
12263         shlibpath_overrides_runpath=yes
12264         ;;
12265       esac
12266   else
12267     shlibpath_overrides_runpath=yes
12268   fi
12269   ;;
12270
12271 os2*)
12272   libname_spec='$name'
12273   shrext_cmds=".dll"
12274   need_lib_prefix=no
12275   library_names_spec='$libname${shared_ext} $libname.a'
12276   dynamic_linker='OS/2 ld.exe'
12277   shlibpath_var=LIBPATH
12278   ;;
12279
12280 osf3* | osf4* | osf5*)
12281   version_type=osf
12282   need_lib_prefix=no
12283   need_version=no
12284   soname_spec='${libname}${release}${shared_ext}$major'
12285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12286   shlibpath_var=LD_LIBRARY_PATH
12287   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12288   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12289   ;;
12290
12291 rdos*)
12292   dynamic_linker=no
12293   ;;
12294
12295 solaris*)
12296   version_type=linux # correct to gnu/linux during the next big refactor
12297   need_lib_prefix=no
12298   need_version=no
12299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12300   soname_spec='${libname}${release}${shared_ext}$major'
12301   shlibpath_var=LD_LIBRARY_PATH
12302   shlibpath_overrides_runpath=yes
12303   hardcode_into_libs=yes
12304   # ldd complains unless libraries are executable
12305   postinstall_cmds='chmod +x $lib'
12306   ;;
12307
12308 sunos4*)
12309   version_type=sunos
12310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12311   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12312   shlibpath_var=LD_LIBRARY_PATH
12313   shlibpath_overrides_runpath=yes
12314   if test "$with_gnu_ld" = yes; then
12315     need_lib_prefix=no
12316   fi
12317   need_version=yes
12318   ;;
12319
12320 sysv4 | sysv4.3*)
12321   version_type=linux # correct to gnu/linux during the next big refactor
12322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323   soname_spec='${libname}${release}${shared_ext}$major'
12324   shlibpath_var=LD_LIBRARY_PATH
12325   case $host_vendor in
12326     sni)
12327       shlibpath_overrides_runpath=no
12328       need_lib_prefix=no
12329       runpath_var=LD_RUN_PATH
12330       ;;
12331     siemens)
12332       need_lib_prefix=no
12333       ;;
12334     motorola)
12335       need_lib_prefix=no
12336       need_version=no
12337       shlibpath_overrides_runpath=no
12338       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12339       ;;
12340   esac
12341   ;;
12342
12343 sysv4*MP*)
12344   if test -d /usr/nec ;then
12345     version_type=linux # correct to gnu/linux during the next big refactor
12346     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12347     soname_spec='$libname${shared_ext}.$major'
12348     shlibpath_var=LD_LIBRARY_PATH
12349   fi
12350   ;;
12351
12352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12353   version_type=freebsd-elf
12354   need_lib_prefix=no
12355   need_version=no
12356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12357   soname_spec='${libname}${release}${shared_ext}$major'
12358   shlibpath_var=LD_LIBRARY_PATH
12359   shlibpath_overrides_runpath=yes
12360   hardcode_into_libs=yes
12361   if test "$with_gnu_ld" = yes; then
12362     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12363   else
12364     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12365     case $host_os in
12366       sco3.2v5*)
12367         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12368         ;;
12369     esac
12370   fi
12371   sys_lib_dlsearch_path_spec='/usr/lib'
12372   ;;
12373
12374 tpf*)
12375   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12376   version_type=linux # correct to gnu/linux during the next big refactor
12377   need_lib_prefix=no
12378   need_version=no
12379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380   shlibpath_var=LD_LIBRARY_PATH
12381   shlibpath_overrides_runpath=no
12382   hardcode_into_libs=yes
12383   ;;
12384
12385 uts4*)
12386   version_type=linux # correct to gnu/linux during the next big refactor
12387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388   soname_spec='${libname}${release}${shared_ext}$major'
12389   shlibpath_var=LD_LIBRARY_PATH
12390   ;;
12391
12392 *)
12393   dynamic_linker=no
12394   ;;
12395 esac
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12397 $as_echo "$dynamic_linker" >&6; }
12398 test "$dynamic_linker" = no && can_build_shared=no
12399
12400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12401 if test "$GCC" = yes; then
12402   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12403 fi
12404
12405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12406   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12407 fi
12408 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12409   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12410 fi
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12505 hardcode_action=
12506 if test -n "$hardcode_libdir_flag_spec" ||
12507    test -n "$runpath_var" ||
12508    test "X$hardcode_automatic" = "Xyes" ; then
12509
12510   # We can hardcode non-existent directories.
12511   if test "$hardcode_direct" != no &&
12512      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12513      # have to relink, otherwise we might link with an installed library
12514      # when we should be linking with a yet-to-be-installed one
12515      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12516      test "$hardcode_minus_L" != no; then
12517     # Linking always hardcodes the temporary library directory.
12518     hardcode_action=relink
12519   else
12520     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12521     hardcode_action=immediate
12522   fi
12523 else
12524   # We cannot hardcode anything, or else we can only hardcode existing
12525   # directories.
12526   hardcode_action=unsupported
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12529 $as_echo "$hardcode_action" >&6; }
12530
12531 if test "$hardcode_action" = relink ||
12532    test "$inherit_rpath" = yes; then
12533   # Fast installation is not supported
12534   enable_fast_install=no
12535 elif test "$shlibpath_overrides_runpath" = yes ||
12536      test "$enable_shared" = no; then
12537   # Fast installation is not necessary
12538   enable_fast_install=needless
12539 fi
12540
12541
12542
12543
12544
12545
12546   if test "x$enable_dlopen" != xyes; then
12547   enable_dlopen=unknown
12548   enable_dlopen_self=unknown
12549   enable_dlopen_self_static=unknown
12550 else
12551   lt_cv_dlopen=no
12552   lt_cv_dlopen_libs=
12553
12554   case $host_os in
12555   beos*)
12556     lt_cv_dlopen="load_add_on"
12557     lt_cv_dlopen_libs=
12558     lt_cv_dlopen_self=yes
12559     ;;
12560
12561   mingw* | pw32* | cegcc*)
12562     lt_cv_dlopen="LoadLibrary"
12563     lt_cv_dlopen_libs=
12564     ;;
12565
12566   cygwin*)
12567     lt_cv_dlopen="dlopen"
12568     lt_cv_dlopen_libs=
12569     ;;
12570
12571   darwin*)
12572   # if libdl is installed we need to link against it
12573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12575 if ${ac_cv_lib_dl_dlopen+:} false; then :
12576   $as_echo_n "(cached) " >&6
12577 else
12578   ac_check_lib_save_LIBS=$LIBS
12579 LIBS="-ldl  $LIBS"
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h.  */
12582
12583 /* Override any GCC internal prototype to avoid an error.
12584    Use char because int might match the return type of a GCC
12585    builtin and then its argument prototype would still apply.  */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char dlopen ();
12590 int
12591 main ()
12592 {
12593 return dlopen ();
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599   ac_cv_lib_dl_dlopen=yes
12600 else
12601   ac_cv_lib_dl_dlopen=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604     conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12606 fi
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12609 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12610   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12611 else
12612
12613     lt_cv_dlopen="dyld"
12614     lt_cv_dlopen_libs=
12615     lt_cv_dlopen_self=yes
12616
12617 fi
12618
12619     ;;
12620
12621   *)
12622     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12623 if test "x$ac_cv_func_shl_load" = xyes; then :
12624   lt_cv_dlopen="shl_load"
12625 else
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12627 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12628 if ${ac_cv_lib_dld_shl_load+:} false; then :
12629   $as_echo_n "(cached) " >&6
12630 else
12631   ac_check_lib_save_LIBS=$LIBS
12632 LIBS="-ldld  $LIBS"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char shl_load ();
12643 int
12644 main ()
12645 {
12646 return shl_load ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 if ac_fn_c_try_link "$LINENO"; then :
12652   ac_cv_lib_dld_shl_load=yes
12653 else
12654   ac_cv_lib_dld_shl_load=no
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext \
12657     conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12661 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12662 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12663   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12664 else
12665   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12666 if test "x$ac_cv_func_dlopen" = xyes; then :
12667   lt_cv_dlopen="dlopen"
12668 else
12669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12671 if ${ac_cv_lib_dl_dlopen+:} false; then :
12672   $as_echo_n "(cached) " >&6
12673 else
12674   ac_check_lib_save_LIBS=$LIBS
12675 LIBS="-ldl  $LIBS"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h.  */
12678
12679 /* Override any GCC internal prototype to avoid an error.
12680    Use char because int might match the return type of a GCC
12681    builtin and then its argument prototype would still apply.  */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char dlopen ();
12686 int
12687 main ()
12688 {
12689 return dlopen ();
12690   ;
12691   return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695   ac_cv_lib_dl_dlopen=yes
12696 else
12697   ac_cv_lib_dl_dlopen=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700     conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12705 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12706   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12707 else
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12709 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12710 if ${ac_cv_lib_svld_dlopen+:} false; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-lsvld  $LIBS"
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h.  */
12717
12718 /* Override any GCC internal prototype to avoid an error.
12719    Use char because int might match the return type of a GCC
12720    builtin and then its argument prototype would still apply.  */
12721 #ifdef __cplusplus
12722 extern "C"
12723 #endif
12724 char dlopen ();
12725 int
12726 main ()
12727 {
12728 return dlopen ();
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 if ac_fn_c_try_link "$LINENO"; then :
12734   ac_cv_lib_svld_dlopen=yes
12735 else
12736   ac_cv_lib_svld_dlopen=no
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext \
12739     conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12743 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12744 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12745   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12746 else
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12748 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12749 if ${ac_cv_lib_dld_dld_link+:} false; then :
12750   $as_echo_n "(cached) " >&6
12751 else
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-ldld  $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758    Use char because int might match the return type of a GCC
12759    builtin and then its argument prototype would still apply.  */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char dld_link ();
12764 int
12765 main ()
12766 {
12767 return dld_link ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773   ac_cv_lib_dld_dld_link=yes
12774 else
12775   ac_cv_lib_dld_dld_link=no
12776 fi
12777 rm -f core conftest.err conftest.$ac_objext \
12778     conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12782 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12783 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12784   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12785 fi
12786
12787
12788 fi
12789
12790
12791 fi
12792
12793
12794 fi
12795
12796
12797 fi
12798
12799
12800 fi
12801
12802     ;;
12803   esac
12804
12805   if test "x$lt_cv_dlopen" != xno; then
12806     enable_dlopen=yes
12807   else
12808     enable_dlopen=no
12809   fi
12810
12811   case $lt_cv_dlopen in
12812   dlopen)
12813     save_CPPFLAGS="$CPPFLAGS"
12814     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12815
12816     save_LDFLAGS="$LDFLAGS"
12817     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12818
12819     save_LIBS="$LIBS"
12820     LIBS="$lt_cv_dlopen_libs $LIBS"
12821
12822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12823 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12824 if ${lt_cv_dlopen_self+:} false; then :
12825   $as_echo_n "(cached) " >&6
12826 else
12827           if test "$cross_compiling" = yes; then :
12828   lt_cv_dlopen_self=cross
12829 else
12830   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12831   lt_status=$lt_dlunknown
12832   cat > conftest.$ac_ext <<_LT_EOF
12833 #line $LINENO "configure"
12834 #include "confdefs.h"
12835
12836 #if HAVE_DLFCN_H
12837 #include <dlfcn.h>
12838 #endif
12839
12840 #include <stdio.h>
12841
12842 #ifdef RTLD_GLOBAL
12843 #  define LT_DLGLOBAL           RTLD_GLOBAL
12844 #else
12845 #  ifdef DL_GLOBAL
12846 #    define LT_DLGLOBAL         DL_GLOBAL
12847 #  else
12848 #    define LT_DLGLOBAL         0
12849 #  endif
12850 #endif
12851
12852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12853    find out it does not work in some platform. */
12854 #ifndef LT_DLLAZY_OR_NOW
12855 #  ifdef RTLD_LAZY
12856 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12857 #  else
12858 #    ifdef DL_LAZY
12859 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12860 #    else
12861 #      ifdef RTLD_NOW
12862 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12863 #      else
12864 #        ifdef DL_NOW
12865 #          define LT_DLLAZY_OR_NOW      DL_NOW
12866 #        else
12867 #          define LT_DLLAZY_OR_NOW      0
12868 #        endif
12869 #      endif
12870 #    endif
12871 #  endif
12872 #endif
12873
12874 /* When -fvisbility=hidden is used, assume the code has been annotated
12875    correspondingly for the symbols needed.  */
12876 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12877 int fnord () __attribute__((visibility("default")));
12878 #endif
12879
12880 int fnord () { return 42; }
12881 int main ()
12882 {
12883   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12884   int status = $lt_dlunknown;
12885
12886   if (self)
12887     {
12888       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12889       else
12890         {
12891           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12892           else puts (dlerror ());
12893         }
12894       /* dlclose (self); */
12895     }
12896   else
12897     puts (dlerror ());
12898
12899   return status;
12900 }
12901 _LT_EOF
12902   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12903   (eval $ac_link) 2>&5
12904   ac_status=$?
12905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12906   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12907     (./conftest; exit; ) >&5 2>/dev/null
12908     lt_status=$?
12909     case x$lt_status in
12910       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12911       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12912       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12913     esac
12914   else :
12915     # compilation failed
12916     lt_cv_dlopen_self=no
12917   fi
12918 fi
12919 rm -fr conftest*
12920
12921
12922 fi
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12924 $as_echo "$lt_cv_dlopen_self" >&6; }
12925
12926     if test "x$lt_cv_dlopen_self" = xyes; then
12927       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12928       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12929 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12930 if ${lt_cv_dlopen_self_static+:} false; then :
12931   $as_echo_n "(cached) " >&6
12932 else
12933           if test "$cross_compiling" = yes; then :
12934   lt_cv_dlopen_self_static=cross
12935 else
12936   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12937   lt_status=$lt_dlunknown
12938   cat > conftest.$ac_ext <<_LT_EOF
12939 #line $LINENO "configure"
12940 #include "confdefs.h"
12941
12942 #if HAVE_DLFCN_H
12943 #include <dlfcn.h>
12944 #endif
12945
12946 #include <stdio.h>
12947
12948 #ifdef RTLD_GLOBAL
12949 #  define LT_DLGLOBAL           RTLD_GLOBAL
12950 #else
12951 #  ifdef DL_GLOBAL
12952 #    define LT_DLGLOBAL         DL_GLOBAL
12953 #  else
12954 #    define LT_DLGLOBAL         0
12955 #  endif
12956 #endif
12957
12958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12959    find out it does not work in some platform. */
12960 #ifndef LT_DLLAZY_OR_NOW
12961 #  ifdef RTLD_LAZY
12962 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12963 #  else
12964 #    ifdef DL_LAZY
12965 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12966 #    else
12967 #      ifdef RTLD_NOW
12968 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12969 #      else
12970 #        ifdef DL_NOW
12971 #          define LT_DLLAZY_OR_NOW      DL_NOW
12972 #        else
12973 #          define LT_DLLAZY_OR_NOW      0
12974 #        endif
12975 #      endif
12976 #    endif
12977 #  endif
12978 #endif
12979
12980 /* When -fvisbility=hidden is used, assume the code has been annotated
12981    correspondingly for the symbols needed.  */
12982 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12983 int fnord () __attribute__((visibility("default")));
12984 #endif
12985
12986 int fnord () { return 42; }
12987 int main ()
12988 {
12989   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12990   int status = $lt_dlunknown;
12991
12992   if (self)
12993     {
12994       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12995       else
12996         {
12997           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12998           else puts (dlerror ());
12999         }
13000       /* dlclose (self); */
13001     }
13002   else
13003     puts (dlerror ());
13004
13005   return status;
13006 }
13007 _LT_EOF
13008   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13009   (eval $ac_link) 2>&5
13010   ac_status=$?
13011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13012   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13013     (./conftest; exit; ) >&5 2>/dev/null
13014     lt_status=$?
13015     case x$lt_status in
13016       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13017       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13018       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13019     esac
13020   else :
13021     # compilation failed
13022     lt_cv_dlopen_self_static=no
13023   fi
13024 fi
13025 rm -fr conftest*
13026
13027
13028 fi
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13030 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13031     fi
13032
13033     CPPFLAGS="$save_CPPFLAGS"
13034     LDFLAGS="$save_LDFLAGS"
13035     LIBS="$save_LIBS"
13036     ;;
13037   esac
13038
13039   case $lt_cv_dlopen_self in
13040   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13041   *) enable_dlopen_self=unknown ;;
13042   esac
13043
13044   case $lt_cv_dlopen_self_static in
13045   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13046   *) enable_dlopen_self_static=unknown ;;
13047   esac
13048 fi
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066 striplib=
13067 old_striplib=
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13069 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13070 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13071   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13072   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074 $as_echo "yes" >&6; }
13075 else
13076 # FIXME - insert some real tests, host_os isn't really good enough
13077   case $host_os in
13078   darwin*)
13079     if test -n "$STRIP" ; then
13080       striplib="$STRIP -x"
13081       old_striplib="$STRIP -S"
13082       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13083 $as_echo "yes" >&6; }
13084     else
13085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13087     fi
13088     ;;
13089   *)
13090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13092     ;;
13093   esac
13094 fi
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107   # Report which library types will actually be built
13108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13109 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13111 $as_echo "$can_build_shared" >&6; }
13112
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13114 $as_echo_n "checking whether to build shared libraries... " >&6; }
13115   test "$can_build_shared" = "no" && enable_shared=no
13116
13117   # On AIX, shared libraries and static libraries use the same namespace, and
13118   # are all built from PIC.
13119   case $host_os in
13120   aix3*)
13121     test "$enable_shared" = yes && enable_static=no
13122     if test -n "$RANLIB"; then
13123       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13124       postinstall_cmds='$RANLIB $lib'
13125     fi
13126     ;;
13127
13128   aix[4-9]*)
13129     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13130       test "$enable_shared" = yes && enable_static=no
13131     fi
13132     ;;
13133   esac
13134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13135 $as_echo "$enable_shared" >&6; }
13136
13137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13138 $as_echo_n "checking whether to build static libraries... " >&6; }
13139   # Make sure either enable_shared or enable_static is yes.
13140   test "$enable_shared" = yes || enable_static=yes
13141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13142 $as_echo "$enable_static" >&6; }
13143
13144
13145
13146
13147 fi
13148 ac_ext=c
13149 ac_cpp='$CPP $CPPFLAGS'
13150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13153
13154 CC="$lt_save_CC"
13155
13156       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13157     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13158     (test "X$CXX" != "Xg++"))) ; then
13159   ac_ext=cpp
13160 ac_cpp='$CXXCPP $CPPFLAGS'
13161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13165 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13166 if test -z "$CXXCPP"; then
13167   if ${ac_cv_prog_CXXCPP+:} false; then :
13168   $as_echo_n "(cached) " >&6
13169 else
13170       # Double quotes because CXXCPP needs to be expanded
13171     for CXXCPP in "$CXX -E" "/lib/cpp"
13172     do
13173       ac_preproc_ok=false
13174 for ac_cxx_preproc_warn_flag in '' yes
13175 do
13176   # Use a header file that comes with gcc, so configuring glibc
13177   # with a fresh cross-compiler works.
13178   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13179   # <limits.h> exists even on freestanding compilers.
13180   # On the NeXT, cc -E runs the code through the compiler's parser,
13181   # not just through cpp. "Syntax error" is here to catch this case.
13182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h.  */
13184 #ifdef __STDC__
13185 # include <limits.h>
13186 #else
13187 # include <assert.h>
13188 #endif
13189                      Syntax error
13190 _ACEOF
13191 if ac_fn_cxx_try_cpp "$LINENO"; then :
13192
13193 else
13194   # Broken: fails on valid input.
13195 continue
13196 fi
13197 rm -f conftest.err conftest.i conftest.$ac_ext
13198
13199   # OK, works on sane cases.  Now check whether nonexistent headers
13200   # can be detected and how.
13201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h.  */
13203 #include <ac_nonexistent.h>
13204 _ACEOF
13205 if ac_fn_cxx_try_cpp "$LINENO"; then :
13206   # Broken: success on invalid input.
13207 continue
13208 else
13209   # Passes both tests.
13210 ac_preproc_ok=:
13211 break
13212 fi
13213 rm -f conftest.err conftest.i conftest.$ac_ext
13214
13215 done
13216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13217 rm -f conftest.i conftest.err conftest.$ac_ext
13218 if $ac_preproc_ok; then :
13219   break
13220 fi
13221
13222     done
13223     ac_cv_prog_CXXCPP=$CXXCPP
13224
13225 fi
13226   CXXCPP=$ac_cv_prog_CXXCPP
13227 else
13228   ac_cv_prog_CXXCPP=$CXXCPP
13229 fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13231 $as_echo "$CXXCPP" >&6; }
13232 ac_preproc_ok=false
13233 for ac_cxx_preproc_warn_flag in '' yes
13234 do
13235   # Use a header file that comes with gcc, so configuring glibc
13236   # with a fresh cross-compiler works.
13237   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13238   # <limits.h> exists even on freestanding compilers.
13239   # On the NeXT, cc -E runs the code through the compiler's parser,
13240   # not just through cpp. "Syntax error" is here to catch this case.
13241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h.  */
13243 #ifdef __STDC__
13244 # include <limits.h>
13245 #else
13246 # include <assert.h>
13247 #endif
13248                      Syntax error
13249 _ACEOF
13250 if ac_fn_cxx_try_cpp "$LINENO"; then :
13251
13252 else
13253   # Broken: fails on valid input.
13254 continue
13255 fi
13256 rm -f conftest.err conftest.i conftest.$ac_ext
13257
13258   # OK, works on sane cases.  Now check whether nonexistent headers
13259   # can be detected and how.
13260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h.  */
13262 #include <ac_nonexistent.h>
13263 _ACEOF
13264 if ac_fn_cxx_try_cpp "$LINENO"; then :
13265   # Broken: success on invalid input.
13266 continue
13267 else
13268   # Passes both tests.
13269 ac_preproc_ok=:
13270 break
13271 fi
13272 rm -f conftest.err conftest.i conftest.$ac_ext
13273
13274 done
13275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13276 rm -f conftest.i conftest.err conftest.$ac_ext
13277 if $ac_preproc_ok; then :
13278
13279 else
13280   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13282 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13283 See \`config.log' for more details" "$LINENO" 5; }
13284 fi
13285
13286 ac_ext=c
13287 ac_cpp='$CPP $CPPFLAGS'
13288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13291
13292 else
13293   _lt_caught_CXX_error=yes
13294 fi
13295
13296 ac_ext=cpp
13297 ac_cpp='$CXXCPP $CPPFLAGS'
13298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13301
13302 archive_cmds_need_lc_CXX=no
13303 allow_undefined_flag_CXX=
13304 always_export_symbols_CXX=no
13305 archive_expsym_cmds_CXX=
13306 compiler_needs_object_CXX=no
13307 export_dynamic_flag_spec_CXX=
13308 hardcode_direct_CXX=no
13309 hardcode_direct_absolute_CXX=no
13310 hardcode_libdir_flag_spec_CXX=
13311 hardcode_libdir_separator_CXX=
13312 hardcode_minus_L_CXX=no
13313 hardcode_shlibpath_var_CXX=unsupported
13314 hardcode_automatic_CXX=no
13315 inherit_rpath_CXX=no
13316 module_cmds_CXX=
13317 module_expsym_cmds_CXX=
13318 link_all_deplibs_CXX=unknown
13319 old_archive_cmds_CXX=$old_archive_cmds
13320 reload_flag_CXX=$reload_flag
13321 reload_cmds_CXX=$reload_cmds
13322 no_undefined_flag_CXX=
13323 whole_archive_flag_spec_CXX=
13324 enable_shared_with_static_runtimes_CXX=no
13325
13326 # Source file extension for C++ test sources.
13327 ac_ext=cpp
13328
13329 # Object file extension for compiled C++ test sources.
13330 objext=o
13331 objext_CXX=$objext
13332
13333 # No sense in running all these tests if we already determined that
13334 # the CXX compiler isn't working.  Some variables (like enable_shared)
13335 # are currently assumed to apply to all compilers on this platform,
13336 # and will be corrupted by setting them based on a non-working compiler.
13337 if test "$_lt_caught_CXX_error" != yes; then
13338   # Code to be used in simple compile tests
13339   lt_simple_compile_test_code="int some_variable = 0;"
13340
13341   # Code to be used in simple link tests
13342   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13343
13344   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13345
13346
13347
13348
13349
13350
13351 # If no C compiler was specified, use CC.
13352 LTCC=${LTCC-"$CC"}
13353
13354 # If no C compiler flags were specified, use CFLAGS.
13355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13356
13357 # Allow CC to be a program name with arguments.
13358 compiler=$CC
13359
13360
13361   # save warnings/boilerplate of simple test code
13362   ac_outfile=conftest.$ac_objext
13363 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13365 _lt_compiler_boilerplate=`cat conftest.err`
13366 $RM conftest*
13367
13368   ac_outfile=conftest.$ac_objext
13369 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13371 _lt_linker_boilerplate=`cat conftest.err`
13372 $RM -r conftest*
13373
13374
13375   # Allow CC to be a program name with arguments.
13376   lt_save_CC=$CC
13377   lt_save_CFLAGS=$CFLAGS
13378   lt_save_LD=$LD
13379   lt_save_GCC=$GCC
13380   GCC=$GXX
13381   lt_save_with_gnu_ld=$with_gnu_ld
13382   lt_save_path_LD=$lt_cv_path_LD
13383   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13384     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13385   else
13386     $as_unset lt_cv_prog_gnu_ld
13387   fi
13388   if test -n "${lt_cv_path_LDCXX+set}"; then
13389     lt_cv_path_LD=$lt_cv_path_LDCXX
13390   else
13391     $as_unset lt_cv_path_LD
13392   fi
13393   test -z "${LDCXX+set}" || LD=$LDCXX
13394   CC=${CXX-"c++"}
13395   CFLAGS=$CXXFLAGS
13396   compiler=$CC
13397   compiler_CXX=$CC
13398   for cc_temp in $compiler""; do
13399   case $cc_temp in
13400     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13401     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13402     \-*) ;;
13403     *) break;;
13404   esac
13405 done
13406 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13407
13408
13409   if test -n "$compiler"; then
13410     # We don't want -fno-exception when compiling C++ code, so set the
13411     # no_builtin_flag separately
13412     if test "$GXX" = yes; then
13413       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13414     else
13415       lt_prog_compiler_no_builtin_flag_CXX=
13416     fi
13417
13418     if test "$GXX" = yes; then
13419       # Set up default GNU C++ configuration
13420
13421
13422
13423 # Check whether --with-gnu-ld was given.
13424 if test "${with_gnu_ld+set}" = set; then :
13425   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13426 else
13427   with_gnu_ld=no
13428 fi
13429
13430 ac_prog=ld
13431 if test "$GCC" = yes; then
13432   # Check if gcc -print-prog-name=ld gives a path.
13433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13434 $as_echo_n "checking for ld used by $CC... " >&6; }
13435   case $host in
13436   *-*-mingw*)
13437     # gcc leaves a trailing carriage return which upsets mingw
13438     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13439   *)
13440     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13441   esac
13442   case $ac_prog in
13443     # Accept absolute paths.
13444     [\\/]* | ?:[\\/]*)
13445       re_direlt='/[^/][^/]*/\.\./'
13446       # Canonicalize the pathname of ld
13447       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13448       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13449         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13450       done
13451       test -z "$LD" && LD="$ac_prog"
13452       ;;
13453   "")
13454     # If it fails, then pretend we aren't using GCC.
13455     ac_prog=ld
13456     ;;
13457   *)
13458     # If it is relative, then search for the first ld in PATH.
13459     with_gnu_ld=unknown
13460     ;;
13461   esac
13462 elif test "$with_gnu_ld" = yes; then
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13464 $as_echo_n "checking for GNU ld... " >&6; }
13465 else
13466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13467 $as_echo_n "checking for non-GNU ld... " >&6; }
13468 fi
13469 if ${lt_cv_path_LD+:} false; then :
13470   $as_echo_n "(cached) " >&6
13471 else
13472   if test -z "$LD"; then
13473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13474   for ac_dir in $PATH; do
13475     IFS="$lt_save_ifs"
13476     test -z "$ac_dir" && ac_dir=.
13477     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13478       lt_cv_path_LD="$ac_dir/$ac_prog"
13479       # Check to see if the program is GNU ld.  I'd rather use --version,
13480       # but apparently some variants of GNU ld only accept -v.
13481       # Break only if it was the GNU/non-GNU ld that we prefer.
13482       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13483       *GNU* | *'with BFD'*)
13484         test "$with_gnu_ld" != no && break
13485         ;;
13486       *)
13487         test "$with_gnu_ld" != yes && break
13488         ;;
13489       esac
13490     fi
13491   done
13492   IFS="$lt_save_ifs"
13493 else
13494   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13495 fi
13496 fi
13497
13498 LD="$lt_cv_path_LD"
13499 if test -n "$LD"; then
13500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13501 $as_echo "$LD" >&6; }
13502 else
13503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505 fi
13506 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13508 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13509 if ${lt_cv_prog_gnu_ld+:} false; then :
13510   $as_echo_n "(cached) " >&6
13511 else
13512   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13513 case `$LD -v 2>&1 </dev/null` in
13514 *GNU* | *'with BFD'*)
13515   lt_cv_prog_gnu_ld=yes
13516   ;;
13517 *)
13518   lt_cv_prog_gnu_ld=no
13519   ;;
13520 esac
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13523 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13524 with_gnu_ld=$lt_cv_prog_gnu_ld
13525
13526
13527
13528
13529
13530
13531
13532       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13533       # archiving commands below assume that GNU ld is being used.
13534       if test "$with_gnu_ld" = yes; then
13535         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536         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'
13537
13538         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13539         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13540
13541         # If archive_cmds runs LD, not CC, wlarc should be empty
13542         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13543         #     investigate it a little bit more. (MM)
13544         wlarc='${wl}'
13545
13546         # ancient GNU ld didn't support --whole-archive et. al.
13547         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13548           $GREP 'no-whole-archive' > /dev/null; then
13549           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13550         else
13551           whole_archive_flag_spec_CXX=
13552         fi
13553       else
13554         with_gnu_ld=no
13555         wlarc=
13556
13557         # A generic and very simple default shared library creation
13558         # command for GNU C++ for the case where it uses the native
13559         # linker, instead of GNU ld.  If possible, this setting should
13560         # overridden to take advantage of the native linker features on
13561         # the platform it is being used on.
13562         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13563       fi
13564
13565       # Commands to make compiler produce verbose output that lists
13566       # what "hidden" libraries, object files and flags are used when
13567       # linking a shared library.
13568       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13569
13570     else
13571       GXX=no
13572       with_gnu_ld=no
13573       wlarc=
13574     fi
13575
13576     # PORTME: fill in a description of your system's C++ link characteristics
13577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13578 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13579     ld_shlibs_CXX=yes
13580     case $host_os in
13581       aix3*)
13582         # FIXME: insert proper C++ library support
13583         ld_shlibs_CXX=no
13584         ;;
13585       aix[4-9]*)
13586         if test "$host_cpu" = ia64; then
13587           # On IA64, the linker does run time linking by default, so we don't
13588           # have to do anything special.
13589           aix_use_runtimelinking=no
13590           exp_sym_flag='-Bexport'
13591           no_entry_flag=""
13592         else
13593           aix_use_runtimelinking=no
13594
13595           # Test if we are trying to use run time linking or normal
13596           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13597           # need to do runtime linking.
13598           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13599             for ld_flag in $LDFLAGS; do
13600               case $ld_flag in
13601               *-brtl*)
13602                 aix_use_runtimelinking=yes
13603                 break
13604                 ;;
13605               esac
13606             done
13607             ;;
13608           esac
13609
13610           exp_sym_flag='-bexport'
13611           no_entry_flag='-bnoentry'
13612         fi
13613
13614         # When large executables or shared objects are built, AIX ld can
13615         # have problems creating the table of contents.  If linking a library
13616         # or program results in "error TOC overflow" add -mminimal-toc to
13617         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13618         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13619
13620         archive_cmds_CXX=''
13621         hardcode_direct_CXX=yes
13622         hardcode_direct_absolute_CXX=yes
13623         hardcode_libdir_separator_CXX=':'
13624         link_all_deplibs_CXX=yes
13625         file_list_spec_CXX='${wl}-f,'
13626
13627         if test "$GXX" = yes; then
13628           case $host_os in aix4.[012]|aix4.[012].*)
13629           # We only want to do this on AIX 4.2 and lower, the check
13630           # below for broken collect2 doesn't work under 4.3+
13631           collect2name=`${CC} -print-prog-name=collect2`
13632           if test -f "$collect2name" &&
13633              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13634           then
13635             # We have reworked collect2
13636             :
13637           else
13638             # We have old collect2
13639             hardcode_direct_CXX=unsupported
13640             # It fails to find uninstalled libraries when the uninstalled
13641             # path is not listed in the libpath.  Setting hardcode_minus_L
13642             # to unsupported forces relinking
13643             hardcode_minus_L_CXX=yes
13644             hardcode_libdir_flag_spec_CXX='-L$libdir'
13645             hardcode_libdir_separator_CXX=
13646           fi
13647           esac
13648           shared_flag='-shared'
13649           if test "$aix_use_runtimelinking" = yes; then
13650             shared_flag="$shared_flag "'${wl}-G'
13651           fi
13652         else
13653           # not using gcc
13654           if test "$host_cpu" = ia64; then
13655           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13656           # chokes on -Wl,-G. The following line is correct:
13657           shared_flag='-G'
13658           else
13659             if test "$aix_use_runtimelinking" = yes; then
13660               shared_flag='${wl}-G'
13661             else
13662               shared_flag='${wl}-bM:SRE'
13663             fi
13664           fi
13665         fi
13666
13667         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13668         # It seems that -bexpall does not export symbols beginning with
13669         # underscore (_), so it is better to generate a list of symbols to
13670         # export.
13671         always_export_symbols_CXX=yes
13672         if test "$aix_use_runtimelinking" = yes; then
13673           # Warning - without using the other runtime loading flags (-brtl),
13674           # -berok will link without error, but may produce a broken library.
13675           allow_undefined_flag_CXX='-berok'
13676           # Determine the default libpath from the value encoded in an empty
13677           # executable.
13678           if test "${lt_cv_aix_libpath+set}" = set; then
13679   aix_libpath=$lt_cv_aix_libpath
13680 else
13681   if ${lt_cv_aix_libpath__CXX+:} false; then :
13682   $as_echo_n "(cached) " >&6
13683 else
13684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686
13687 int
13688 main ()
13689 {
13690
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 if ac_fn_cxx_try_link "$LINENO"; then :
13696
13697   lt_aix_libpath_sed='
13698       /Import File Strings/,/^$/ {
13699           /^0/ {
13700               s/^0  *\([^ ]*\) *$/\1/
13701               p
13702           }
13703       }'
13704   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13705   # Check for a 64-bit object if we didn't find anything.
13706   if test -z "$lt_cv_aix_libpath__CXX"; then
13707     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13708   fi
13709 fi
13710 rm -f core conftest.err conftest.$ac_objext \
13711     conftest$ac_exeext conftest.$ac_ext
13712   if test -z "$lt_cv_aix_libpath__CXX"; then
13713     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13714   fi
13715
13716 fi
13717
13718   aix_libpath=$lt_cv_aix_libpath__CXX
13719 fi
13720
13721           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13722
13723           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"
13724         else
13725           if test "$host_cpu" = ia64; then
13726             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13727             allow_undefined_flag_CXX="-z nodefs"
13728             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"
13729           else
13730             # Determine the default libpath from the value encoded in an
13731             # empty executable.
13732             if test "${lt_cv_aix_libpath+set}" = set; then
13733   aix_libpath=$lt_cv_aix_libpath
13734 else
13735   if ${lt_cv_aix_libpath__CXX+:} false; then :
13736   $as_echo_n "(cached) " >&6
13737 else
13738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h.  */
13740
13741 int
13742 main ()
13743 {
13744
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_cxx_try_link "$LINENO"; then :
13750
13751   lt_aix_libpath_sed='
13752       /Import File Strings/,/^$/ {
13753           /^0/ {
13754               s/^0  *\([^ ]*\) *$/\1/
13755               p
13756           }
13757       }'
13758   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13759   # Check for a 64-bit object if we didn't find anything.
13760   if test -z "$lt_cv_aix_libpath__CXX"; then
13761     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13762   fi
13763 fi
13764 rm -f core conftest.err conftest.$ac_objext \
13765     conftest$ac_exeext conftest.$ac_ext
13766   if test -z "$lt_cv_aix_libpath__CXX"; then
13767     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13768   fi
13769
13770 fi
13771
13772   aix_libpath=$lt_cv_aix_libpath__CXX
13773 fi
13774
13775             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13776             # Warning - without using the other run time loading flags,
13777             # -berok will link without error, but may produce a broken library.
13778             no_undefined_flag_CXX=' ${wl}-bernotok'
13779             allow_undefined_flag_CXX=' ${wl}-berok'
13780             if test "$with_gnu_ld" = yes; then
13781               # We only use this code for GNU lds that support --whole-archive.
13782               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13783             else
13784               # Exported symbols can be pulled into shared objects from archives
13785               whole_archive_flag_spec_CXX='$convenience'
13786             fi
13787             archive_cmds_need_lc_CXX=yes
13788             # This is similar to how AIX traditionally builds its shared
13789             # libraries.
13790             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'
13791           fi
13792         fi
13793         ;;
13794
13795       beos*)
13796         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13797           allow_undefined_flag_CXX=unsupported
13798           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13799           # support --undefined.  This deserves some investigation.  FIXME
13800           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13801         else
13802           ld_shlibs_CXX=no
13803         fi
13804         ;;
13805
13806       chorus*)
13807         case $cc_basename in
13808           *)
13809           # FIXME: insert proper C++ library support
13810           ld_shlibs_CXX=no
13811           ;;
13812         esac
13813         ;;
13814
13815       cygwin* | mingw* | pw32* | cegcc*)
13816         case $GXX,$cc_basename in
13817         ,cl* | no,cl*)
13818           # Native MSVC
13819           # hardcode_libdir_flag_spec is actually meaningless, as there is
13820           # no search path for DLLs.
13821           hardcode_libdir_flag_spec_CXX=' '
13822           allow_undefined_flag_CXX=unsupported
13823           always_export_symbols_CXX=yes
13824           file_list_spec_CXX='@'
13825           # Tell ltmain to make .lib files, not .a files.
13826           libext=lib
13827           # Tell ltmain to make .dll files, not .so files.
13828           shrext_cmds=".dll"
13829           # FIXME: Setting linknames here is a bad hack.
13830           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13831           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13832               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13833             else
13834               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13835             fi~
13836             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13837             linknames='
13838           # The linker will not automatically build a static lib if we build a DLL.
13839           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13840           enable_shared_with_static_runtimes_CXX=yes
13841           # Don't use ranlib
13842           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13843           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13844             lt_tool_outputfile="@TOOL_OUTPUT@"~
13845             case $lt_outputfile in
13846               *.exe|*.EXE) ;;
13847               *)
13848                 lt_outputfile="$lt_outputfile.exe"
13849                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13850                 ;;
13851             esac~
13852             func_to_tool_file "$lt_outputfile"~
13853             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13854               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13855               $RM "$lt_outputfile.manifest";
13856             fi'
13857           ;;
13858         *)
13859           # g++
13860           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13861           # as there is no search path for DLLs.
13862           hardcode_libdir_flag_spec_CXX='-L$libdir'
13863           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13864           allow_undefined_flag_CXX=unsupported
13865           always_export_symbols_CXX=no
13866           enable_shared_with_static_runtimes_CXX=yes
13867
13868           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13869             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'
13870             # If the export-symbols file already is a .def file (1st line
13871             # is EXPORTS), use it as is; otherwise, prepend...
13872             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13873               cp $export_symbols $output_objdir/$soname.def;
13874             else
13875               echo EXPORTS > $output_objdir/$soname.def;
13876               cat $export_symbols >> $output_objdir/$soname.def;
13877             fi~
13878             $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'
13879           else
13880             ld_shlibs_CXX=no
13881           fi
13882           ;;
13883         esac
13884         ;;
13885       darwin* | rhapsody*)
13886
13887
13888   archive_cmds_need_lc_CXX=no
13889   hardcode_direct_CXX=no
13890   hardcode_automatic_CXX=yes
13891   hardcode_shlibpath_var_CXX=unsupported
13892   if test "$lt_cv_ld_force_load" = "yes"; then
13893     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\"`'
13894
13895   else
13896     whole_archive_flag_spec_CXX=''
13897   fi
13898   link_all_deplibs_CXX=yes
13899   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13900   case $cc_basename in
13901      ifort*) _lt_dar_can_shared=yes ;;
13902      *) _lt_dar_can_shared=$GCC ;;
13903   esac
13904   if test "$_lt_dar_can_shared" = "yes"; then
13905     output_verbose_link_cmd=func_echo_all
13906     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}"
13907     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13908     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}"
13909     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}"
13910        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13911       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}"
13912       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}"
13913     fi
13914
13915   else
13916   ld_shlibs_CXX=no
13917   fi
13918
13919         ;;
13920
13921       dgux*)
13922         case $cc_basename in
13923           ec++*)
13924             # FIXME: insert proper C++ library support
13925             ld_shlibs_CXX=no
13926             ;;
13927           ghcx*)
13928             # Green Hills C++ Compiler
13929             # FIXME: insert proper C++ library support
13930             ld_shlibs_CXX=no
13931             ;;
13932           *)
13933             # FIXME: insert proper C++ library support
13934             ld_shlibs_CXX=no
13935             ;;
13936         esac
13937         ;;
13938
13939       freebsd2.*)
13940         # C++ shared libraries reported to be fairly broken before
13941         # switch to ELF
13942         ld_shlibs_CXX=no
13943         ;;
13944
13945       freebsd-elf*)
13946         archive_cmds_need_lc_CXX=no
13947         ;;
13948
13949       freebsd* | dragonfly*)
13950         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13951         # conventions
13952         ld_shlibs_CXX=yes
13953         ;;
13954
13955       haiku*)
13956         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13957         link_all_deplibs_CXX=yes
13958         ;;
13959
13960       hpux9*)
13961         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13962         hardcode_libdir_separator_CXX=:
13963         export_dynamic_flag_spec_CXX='${wl}-E'
13964         hardcode_direct_CXX=yes
13965         hardcode_minus_L_CXX=yes # Not in the search PATH,
13966                                              # but as the default
13967                                              # location of the library.
13968
13969         case $cc_basename in
13970           CC*)
13971             # FIXME: insert proper C++ library support
13972             ld_shlibs_CXX=no
13973             ;;
13974           aCC*)
13975             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'
13976             # Commands to make compiler produce verbose output that lists
13977             # what "hidden" libraries, object files and flags are used when
13978             # linking a shared library.
13979             #
13980             # There doesn't appear to be a way to prevent this compiler from
13981             # explicitly linking system object files so we need to strip them
13982             # from the output so that they don't get included in the library
13983             # dependencies.
13984             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"'
13985             ;;
13986           *)
13987             if test "$GXX" = yes; then
13988               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'
13989             else
13990               # FIXME: insert proper C++ library support
13991               ld_shlibs_CXX=no
13992             fi
13993             ;;
13994         esac
13995         ;;
13996
13997       hpux10*|hpux11*)
13998         if test $with_gnu_ld = no; then
13999           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14000           hardcode_libdir_separator_CXX=:
14001
14002           case $host_cpu in
14003             hppa*64*|ia64*)
14004               ;;
14005             *)
14006               export_dynamic_flag_spec_CXX='${wl}-E'
14007               ;;
14008           esac
14009         fi
14010         case $host_cpu in
14011           hppa*64*|ia64*)
14012             hardcode_direct_CXX=no
14013             hardcode_shlibpath_var_CXX=no
14014             ;;
14015           *)
14016             hardcode_direct_CXX=yes
14017             hardcode_direct_absolute_CXX=yes
14018             hardcode_minus_L_CXX=yes # Not in the search PATH,
14019                                                  # but as the default
14020                                                  # location of the library.
14021             ;;
14022         esac
14023
14024         case $cc_basename in
14025           CC*)
14026             # FIXME: insert proper C++ library support
14027             ld_shlibs_CXX=no
14028             ;;
14029           aCC*)
14030             case $host_cpu in
14031               hppa*64*)
14032                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14033                 ;;
14034               ia64*)
14035                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14036                 ;;
14037               *)
14038                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14039                 ;;
14040             esac
14041             # Commands to make compiler produce verbose output that lists
14042             # what "hidden" libraries, object files and flags are used when
14043             # linking a shared library.
14044             #
14045             # There doesn't appear to be a way to prevent this compiler from
14046             # explicitly linking system object files so we need to strip them
14047             # from the output so that they don't get included in the library
14048             # dependencies.
14049             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"'
14050             ;;
14051           *)
14052             if test "$GXX" = yes; then
14053               if test $with_gnu_ld = no; then
14054                 case $host_cpu in
14055                   hppa*64*)
14056                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14057                     ;;
14058                   ia64*)
14059                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14060                     ;;
14061                   *)
14062                     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'
14063                     ;;
14064                 esac
14065               fi
14066             else
14067               # FIXME: insert proper C++ library support
14068               ld_shlibs_CXX=no
14069             fi
14070             ;;
14071         esac
14072         ;;
14073
14074       interix[3-9]*)
14075         hardcode_direct_CXX=no
14076         hardcode_shlibpath_var_CXX=no
14077         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14078         export_dynamic_flag_spec_CXX='${wl}-E'
14079         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14080         # Instead, shared libraries are loaded at an image base (0x10000000 by
14081         # default) and relocated if they conflict, which is a slow very memory
14082         # consuming and fragmenting process.  To avoid this, we pick a random,
14083         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14084         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14085         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'
14086         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'
14087         ;;
14088       irix5* | irix6*)
14089         case $cc_basename in
14090           CC*)
14091             # SGI C++
14092             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'
14093
14094             # Archives containing C++ object files must be created using
14095             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14096             # necessary to make sure instantiated templates are included
14097             # in the archive.
14098             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14099             ;;
14100           *)
14101             if test "$GXX" = yes; then
14102               if test "$with_gnu_ld" = no; then
14103                 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'
14104               else
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"` -o $lib'
14106               fi
14107             fi
14108             link_all_deplibs_CXX=yes
14109             ;;
14110         esac
14111         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14112         hardcode_libdir_separator_CXX=:
14113         inherit_rpath_CXX=yes
14114         ;;
14115
14116       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14117         case $cc_basename in
14118           KCC*)
14119             # Kuck and Associates, Inc. (KAI) C++ Compiler
14120
14121             # KCC will only create a shared library if the output file
14122             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14123             # to its proper name (with version) after linking.
14124             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'
14125             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'
14126             # Commands to make compiler produce verbose output that lists
14127             # what "hidden" libraries, object files and flags are used when
14128             # linking a shared library.
14129             #
14130             # There doesn't appear to be a way to prevent this compiler from
14131             # explicitly linking system object files so we need to strip them
14132             # from the output so that they don't get included in the library
14133             # dependencies.
14134             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"'
14135
14136             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14137             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14138
14139             # Archives containing C++ object files must be created using
14140             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14141             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14142             ;;
14143           icpc* | ecpc* )
14144             # Intel C++
14145             with_gnu_ld=yes
14146             # version 8.0 and above of icpc choke on multiply defined symbols
14147             # if we add $predep_objects and $postdep_objects, however 7.1 and
14148             # earlier do not add the objects themselves.
14149             case `$CC -V 2>&1` in
14150               *"Version 7."*)
14151                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14152                 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'
14153                 ;;
14154               *)  # Version 8.0 or newer
14155                 tmp_idyn=
14156                 case $host_cpu in
14157                   ia64*) tmp_idyn=' -i_dynamic';;
14158                 esac
14159                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14160                 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'
14161                 ;;
14162             esac
14163             archive_cmds_need_lc_CXX=no
14164             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14165             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14166             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14167             ;;
14168           pgCC* | pgcpp*)
14169             # Portland Group C++ compiler
14170             case `$CC -V` in
14171             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14172               prelink_cmds_CXX='tpldir=Template.dir~
14173                 rm -rf $tpldir~
14174                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14175                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14176               old_archive_cmds_CXX='tpldir=Template.dir~
14177                 rm -rf $tpldir~
14178                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14179                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14180                 $RANLIB $oldlib'
14181               archive_cmds_CXX='tpldir=Template.dir~
14182                 rm -rf $tpldir~
14183                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14184                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14185               archive_expsym_cmds_CXX='tpldir=Template.dir~
14186                 rm -rf $tpldir~
14187                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14188                 $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'
14189               ;;
14190             *) # Version 6 and above use weak symbols
14191               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14192               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'
14193               ;;
14194             esac
14195
14196             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14197             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14198             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'
14199             ;;
14200           cxx*)
14201             # Compaq C++
14202             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14203             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'
14204
14205             runpath_var=LD_RUN_PATH
14206             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14207             hardcode_libdir_separator_CXX=:
14208
14209             # Commands to make compiler produce verbose output that lists
14210             # what "hidden" libraries, object files and flags are used when
14211             # linking a shared library.
14212             #
14213             # There doesn't appear to be a way to prevent this compiler from
14214             # explicitly linking system object files so we need to strip them
14215             # from the output so that they don't get included in the library
14216             # dependencies.
14217             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'
14218             ;;
14219           xl* | mpixl* | bgxl*)
14220             # IBM XL 8.0 on PPC, with GNU ld
14221             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14222             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14223             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224             if test "x$supports_anon_versioning" = xyes; then
14225               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14226                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14227                 echo "local: *; };" >> $output_objdir/$libname.ver~
14228                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14229             fi
14230             ;;
14231           *)
14232             case `$CC -V 2>&1 | sed 5q` in
14233             *Sun\ C*)
14234               # Sun C++ 5.9
14235               no_undefined_flag_CXX=' -zdefs'
14236               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14237               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'
14238               hardcode_libdir_flag_spec_CXX='-R$libdir'
14239               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'
14240               compiler_needs_object_CXX=yes
14241
14242               # Not sure whether something based on
14243               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14244               # would be better.
14245               output_verbose_link_cmd='func_echo_all'
14246
14247               # Archives containing C++ object files must be created using
14248               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14249               # necessary to make sure instantiated templates are included
14250               # in the archive.
14251               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14252               ;;
14253             esac
14254             ;;
14255         esac
14256         ;;
14257
14258       lynxos*)
14259         # FIXME: insert proper C++ library support
14260         ld_shlibs_CXX=no
14261         ;;
14262
14263       m88k*)
14264         # FIXME: insert proper C++ library support
14265         ld_shlibs_CXX=no
14266         ;;
14267
14268       mvs*)
14269         case $cc_basename in
14270           cxx*)
14271             # FIXME: insert proper C++ library support
14272             ld_shlibs_CXX=no
14273             ;;
14274           *)
14275             # FIXME: insert proper C++ library support
14276             ld_shlibs_CXX=no
14277             ;;
14278         esac
14279         ;;
14280
14281       netbsd*)
14282         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14283           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14284           wlarc=
14285           hardcode_libdir_flag_spec_CXX='-R$libdir'
14286           hardcode_direct_CXX=yes
14287           hardcode_shlibpath_var_CXX=no
14288         fi
14289         # Workaround some broken pre-1.5 toolchains
14290         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14291         ;;
14292
14293       *nto* | *qnx*)
14294         ld_shlibs_CXX=yes
14295         ;;
14296
14297       openbsd2*)
14298         # C++ shared libraries are fairly broken
14299         ld_shlibs_CXX=no
14300         ;;
14301
14302       openbsd*)
14303         if test -f /usr/libexec/ld.so; then
14304           hardcode_direct_CXX=yes
14305           hardcode_shlibpath_var_CXX=no
14306           hardcode_direct_absolute_CXX=yes
14307           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14308           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14309           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14310             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14311             export_dynamic_flag_spec_CXX='${wl}-E'
14312             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14313           fi
14314           output_verbose_link_cmd=func_echo_all
14315         else
14316           ld_shlibs_CXX=no
14317         fi
14318         ;;
14319
14320       osf3* | osf4* | osf5*)
14321         case $cc_basename in
14322           KCC*)
14323             # Kuck and Associates, Inc. (KAI) C++ Compiler
14324
14325             # KCC will only create a shared library if the output file
14326             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14327             # to its proper name (with version) after linking.
14328             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'
14329
14330             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14331             hardcode_libdir_separator_CXX=:
14332
14333             # Archives containing C++ object files must be created using
14334             # the KAI C++ compiler.
14335             case $host in
14336               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14337               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14338             esac
14339             ;;
14340           RCC*)
14341             # Rational C++ 2.4.1
14342             # FIXME: insert proper C++ library support
14343             ld_shlibs_CXX=no
14344             ;;
14345           cxx*)
14346             case $host in
14347               osf3*)
14348                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14349                 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'
14350                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14351                 ;;
14352               *)
14353                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14354                 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'
14355                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14356                   echo "-hidden">> $lib.exp~
14357                   $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~
14358                   $RM $lib.exp'
14359                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14360                 ;;
14361             esac
14362
14363             hardcode_libdir_separator_CXX=:
14364
14365             # Commands to make compiler produce verbose output that lists
14366             # what "hidden" libraries, object files and flags are used when
14367             # linking a shared library.
14368             #
14369             # There doesn't appear to be a way to prevent this compiler from
14370             # explicitly linking system object files so we need to strip them
14371             # from the output so that they don't get included in the library
14372             # dependencies.
14373             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"'
14374             ;;
14375           *)
14376             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14377               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14378               case $host in
14379                 osf3*)
14380                   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'
14381                   ;;
14382                 *)
14383                   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'
14384                   ;;
14385               esac
14386
14387               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14388               hardcode_libdir_separator_CXX=:
14389
14390               # Commands to make compiler produce verbose output that lists
14391               # what "hidden" libraries, object files and flags are used when
14392               # linking a shared library.
14393               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14394
14395             else
14396               # FIXME: insert proper C++ library support
14397               ld_shlibs_CXX=no
14398             fi
14399             ;;
14400         esac
14401         ;;
14402
14403       psos*)
14404         # FIXME: insert proper C++ library support
14405         ld_shlibs_CXX=no
14406         ;;
14407
14408       sunos4*)
14409         case $cc_basename in
14410           CC*)
14411             # Sun C++ 4.x
14412             # FIXME: insert proper C++ library support
14413             ld_shlibs_CXX=no
14414             ;;
14415           lcc*)
14416             # Lucid
14417             # FIXME: insert proper C++ library support
14418             ld_shlibs_CXX=no
14419             ;;
14420           *)
14421             # FIXME: insert proper C++ library support
14422             ld_shlibs_CXX=no
14423             ;;
14424         esac
14425         ;;
14426
14427       solaris*)
14428         case $cc_basename in
14429           CC* | sunCC*)
14430             # Sun C++ 4.2, 5.x and Centerline C++
14431             archive_cmds_need_lc_CXX=yes
14432             no_undefined_flag_CXX=' -zdefs'
14433             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14434             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14435               $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'
14436
14437             hardcode_libdir_flag_spec_CXX='-R$libdir'
14438             hardcode_shlibpath_var_CXX=no
14439             case $host_os in
14440               solaris2.[0-5] | solaris2.[0-5].*) ;;
14441               *)
14442                 # The compiler driver will combine and reorder linker options,
14443                 # but understands `-z linker_flag'.
14444                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14445                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14446                 ;;
14447             esac
14448             link_all_deplibs_CXX=yes
14449
14450             output_verbose_link_cmd='func_echo_all'
14451
14452             # Archives containing C++ object files must be created using
14453             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14454             # necessary to make sure instantiated templates are included
14455             # in the archive.
14456             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14457             ;;
14458           gcx*)
14459             # Green Hills C++ Compiler
14460             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14461
14462             # The C++ compiler must be used to create the archive.
14463             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14464             ;;
14465           *)
14466             # GNU C++ compiler with Solaris linker
14467             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14468               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14469               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14470                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14471                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14472                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14473
14474                 # Commands to make compiler produce verbose output that lists
14475                 # what "hidden" libraries, object files and flags are used when
14476                 # linking a shared library.
14477                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14478               else
14479                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14480                 # platform.
14481                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14482                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14483                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14484
14485                 # Commands to make compiler produce verbose output that lists
14486                 # what "hidden" libraries, object files and flags are used when
14487                 # linking a shared library.
14488                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14489               fi
14490
14491               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14492               case $host_os in
14493                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14494                 *)
14495                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14496                   ;;
14497               esac
14498             fi
14499             ;;
14500         esac
14501         ;;
14502
14503     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14504       no_undefined_flag_CXX='${wl}-z,text'
14505       archive_cmds_need_lc_CXX=no
14506       hardcode_shlibpath_var_CXX=no
14507       runpath_var='LD_RUN_PATH'
14508
14509       case $cc_basename in
14510         CC*)
14511           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14513           ;;
14514         *)
14515           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517           ;;
14518       esac
14519       ;;
14520
14521       sysv5* | sco3.2v5* | sco5v6*)
14522         # Note: We can NOT use -z defs as we might desire, because we do not
14523         # link with -lc, and that would cause any symbols used from libc to
14524         # always be unresolved, which means just about no library would
14525         # ever link correctly.  If we're not using GNU ld we use -z text
14526         # though, which does catch some bad symbols but isn't as heavy-handed
14527         # as -z defs.
14528         no_undefined_flag_CXX='${wl}-z,text'
14529         allow_undefined_flag_CXX='${wl}-z,nodefs'
14530         archive_cmds_need_lc_CXX=no
14531         hardcode_shlibpath_var_CXX=no
14532         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14533         hardcode_libdir_separator_CXX=':'
14534         link_all_deplibs_CXX=yes
14535         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14536         runpath_var='LD_RUN_PATH'
14537
14538         case $cc_basename in
14539           CC*)
14540             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14543               '"$old_archive_cmds_CXX"
14544             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14545               '"$reload_cmds_CXX"
14546             ;;
14547           *)
14548             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14550             ;;
14551         esac
14552       ;;
14553
14554       tandem*)
14555         case $cc_basename in
14556           NCC*)
14557             # NonStop-UX NCC 3.20
14558             # FIXME: insert proper C++ library support
14559             ld_shlibs_CXX=no
14560             ;;
14561           *)
14562             # FIXME: insert proper C++ library support
14563             ld_shlibs_CXX=no
14564             ;;
14565         esac
14566         ;;
14567
14568       vxworks*)
14569         # FIXME: insert proper C++ library support
14570         ld_shlibs_CXX=no
14571         ;;
14572
14573       *)
14574         # FIXME: insert proper C++ library support
14575         ld_shlibs_CXX=no
14576         ;;
14577     esac
14578
14579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14580 $as_echo "$ld_shlibs_CXX" >&6; }
14581     test "$ld_shlibs_CXX" = no && can_build_shared=no
14582
14583     GCC_CXX="$GXX"
14584     LD_CXX="$LD"
14585
14586     ## CAVEAT EMPTOR:
14587     ## There is no encapsulation within the following macros, do not change
14588     ## the running order or otherwise move them around unless you know exactly
14589     ## what you are doing...
14590     # Dependencies to place before and after the object being linked:
14591 predep_objects_CXX=
14592 postdep_objects_CXX=
14593 predeps_CXX=
14594 postdeps_CXX=
14595 compiler_lib_search_path_CXX=
14596
14597 cat > conftest.$ac_ext <<_LT_EOF
14598 class Foo
14599 {
14600 public:
14601   Foo (void) { a = 0; }
14602 private:
14603   int a;
14604 };
14605 _LT_EOF
14606
14607
14608 _lt_libdeps_save_CFLAGS=$CFLAGS
14609 case "$CC $CFLAGS " in #(
14610 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14611 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14612 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14613 esac
14614
14615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14616   (eval $ac_compile) 2>&5
14617   ac_status=$?
14618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14619   test $ac_status = 0; }; then
14620   # Parse the compiler output and extract the necessary
14621   # objects, libraries and library flags.
14622
14623   # Sentinel used to keep track of whether or not we are before
14624   # the conftest object file.
14625   pre_test_object_deps_done=no
14626
14627   for p in `eval "$output_verbose_link_cmd"`; do
14628     case ${prev}${p} in
14629
14630     -L* | -R* | -l*)
14631        # Some compilers place space between "-{L,R}" and the path.
14632        # Remove the space.
14633        if test $p = "-L" ||
14634           test $p = "-R"; then
14635          prev=$p
14636          continue
14637        fi
14638
14639        # Expand the sysroot to ease extracting the directories later.
14640        if test -z "$prev"; then
14641          case $p in
14642          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14643          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14644          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14645          esac
14646        fi
14647        case $p in
14648        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14649        esac
14650        if test "$pre_test_object_deps_done" = no; then
14651          case ${prev} in
14652          -L | -R)
14653            # Internal compiler library paths should come after those
14654            # provided the user.  The postdeps already come after the
14655            # user supplied libs so there is no need to process them.
14656            if test -z "$compiler_lib_search_path_CXX"; then
14657              compiler_lib_search_path_CXX="${prev}${p}"
14658            else
14659              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14660            fi
14661            ;;
14662          # The "-l" case would never come before the object being
14663          # linked, so don't bother handling this case.
14664          esac
14665        else
14666          if test -z "$postdeps_CXX"; then
14667            postdeps_CXX="${prev}${p}"
14668          else
14669            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14670          fi
14671        fi
14672        prev=
14673        ;;
14674
14675     *.lto.$objext) ;; # Ignore GCC LTO objects
14676     *.$objext)
14677        # This assumes that the test object file only shows up
14678        # once in the compiler output.
14679        if test "$p" = "conftest.$objext"; then
14680          pre_test_object_deps_done=yes
14681          continue
14682        fi
14683
14684        if test "$pre_test_object_deps_done" = no; then
14685          if test -z "$predep_objects_CXX"; then
14686            predep_objects_CXX="$p"
14687          else
14688            predep_objects_CXX="$predep_objects_CXX $p"
14689          fi
14690        else
14691          if test -z "$postdep_objects_CXX"; then
14692            postdep_objects_CXX="$p"
14693          else
14694            postdep_objects_CXX="$postdep_objects_CXX $p"
14695          fi
14696        fi
14697        ;;
14698
14699     *) ;; # Ignore the rest.
14700
14701     esac
14702   done
14703
14704   # Clean up.
14705   rm -f a.out a.exe
14706 else
14707   echo "libtool.m4: error: problem compiling CXX test program"
14708 fi
14709
14710 $RM -f confest.$objext
14711 CFLAGS=$_lt_libdeps_save_CFLAGS
14712
14713 # PORTME: override above test on systems where it is broken
14714 case $host_os in
14715 interix[3-9]*)
14716   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14717   # hack all around it, let's just trust "g++" to DTRT.
14718   predep_objects_CXX=
14719   postdep_objects_CXX=
14720   postdeps_CXX=
14721   ;;
14722
14723 linux*)
14724   case `$CC -V 2>&1 | sed 5q` in
14725   *Sun\ C*)
14726     # Sun C++ 5.9
14727
14728     # The more standards-conforming stlport4 library is
14729     # incompatible with the Cstd library. Avoid specifying
14730     # it if it's in CXXFLAGS. Ignore libCrun as
14731     # -library=stlport4 depends on it.
14732     case " $CXX $CXXFLAGS " in
14733     *" -library=stlport4 "*)
14734       solaris_use_stlport4=yes
14735       ;;
14736     esac
14737
14738     if test "$solaris_use_stlport4" != yes; then
14739       postdeps_CXX='-library=Cstd -library=Crun'
14740     fi
14741     ;;
14742   esac
14743   ;;
14744
14745 solaris*)
14746   case $cc_basename in
14747   CC* | sunCC*)
14748     # The more standards-conforming stlport4 library is
14749     # incompatible with the Cstd library. Avoid specifying
14750     # it if it's in CXXFLAGS. Ignore libCrun as
14751     # -library=stlport4 depends on it.
14752     case " $CXX $CXXFLAGS " in
14753     *" -library=stlport4 "*)
14754       solaris_use_stlport4=yes
14755       ;;
14756     esac
14757
14758     # Adding this requires a known-good setup of shared libraries for
14759     # Sun compiler versions before 5.6, else PIC objects from an old
14760     # archive will be linked into the output, leading to subtle bugs.
14761     if test "$solaris_use_stlport4" != yes; then
14762       postdeps_CXX='-library=Cstd -library=Crun'
14763     fi
14764     ;;
14765   esac
14766   ;;
14767 esac
14768
14769
14770 case " $postdeps_CXX " in
14771 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14772 esac
14773  compiler_lib_search_dirs_CXX=
14774 if test -n "${compiler_lib_search_path_CXX}"; then
14775  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14776 fi
14777
14778
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     lt_prog_compiler_wl_CXX=
14809 lt_prog_compiler_pic_CXX=
14810 lt_prog_compiler_static_CXX=
14811
14812
14813   # C++ specific cases for pic, static, wl, etc.
14814   if test "$GXX" = yes; then
14815     lt_prog_compiler_wl_CXX='-Wl,'
14816     lt_prog_compiler_static_CXX='-static'
14817
14818     case $host_os in
14819     aix*)
14820       # All AIX code is PIC.
14821       if test "$host_cpu" = ia64; then
14822         # AIX 5 now supports IA64 processor
14823         lt_prog_compiler_static_CXX='-Bstatic'
14824       fi
14825       ;;
14826
14827     amigaos*)
14828       case $host_cpu in
14829       powerpc)
14830             # see comment about AmigaOS4 .so support
14831             lt_prog_compiler_pic_CXX='-fPIC'
14832         ;;
14833       m68k)
14834             # FIXME: we need at least 68020 code to build shared libraries, but
14835             # adding the `-m68020' flag to GCC prevents building anything better,
14836             # like `-m68040'.
14837             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14838         ;;
14839       esac
14840       ;;
14841
14842     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14843       # PIC is the default for these OSes.
14844       ;;
14845     mingw* | cygwin* | os2* | pw32* | cegcc*)
14846       # This hack is so that the source file can tell whether it is being
14847       # built for inclusion in a dll (and should export symbols for example).
14848       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14849       # (--disable-auto-import) libraries
14850       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14851       ;;
14852     darwin* | rhapsody*)
14853       # PIC is the default on this platform
14854       # Common symbols not allowed in MH_DYLIB files
14855       lt_prog_compiler_pic_CXX='-fno-common'
14856       ;;
14857     *djgpp*)
14858       # DJGPP does not support shared libraries at all
14859       lt_prog_compiler_pic_CXX=
14860       ;;
14861     haiku*)
14862       # PIC is the default for Haiku.
14863       # The "-static" flag exists, but is broken.
14864       lt_prog_compiler_static_CXX=
14865       ;;
14866     interix[3-9]*)
14867       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14868       # Instead, we relocate shared libraries at runtime.
14869       ;;
14870     sysv4*MP*)
14871       if test -d /usr/nec; then
14872         lt_prog_compiler_pic_CXX=-Kconform_pic
14873       fi
14874       ;;
14875     hpux*)
14876       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14877       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14878       # sets the default TLS model and affects inlining.
14879       case $host_cpu in
14880       hppa*64*)
14881         ;;
14882       *)
14883         lt_prog_compiler_pic_CXX='-fPIC'
14884         ;;
14885       esac
14886       ;;
14887     *qnx* | *nto*)
14888       # QNX uses GNU C++, but need to define -shared option too, otherwise
14889       # it will coredump.
14890       lt_prog_compiler_pic_CXX='-fPIC -shared'
14891       ;;
14892     *)
14893       lt_prog_compiler_pic_CXX='-fPIC'
14894       ;;
14895     esac
14896   else
14897     case $host_os in
14898       aix[4-9]*)
14899         # All AIX code is PIC.
14900         if test "$host_cpu" = ia64; then
14901           # AIX 5 now supports IA64 processor
14902           lt_prog_compiler_static_CXX='-Bstatic'
14903         else
14904           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14905         fi
14906         ;;
14907       chorus*)
14908         case $cc_basename in
14909         cxch68*)
14910           # Green Hills C++ Compiler
14911           # _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"
14912           ;;
14913         esac
14914         ;;
14915       mingw* | cygwin* | os2* | pw32* | cegcc*)
14916         # This hack is so that the source file can tell whether it is being
14917         # built for inclusion in a dll (and should export symbols for example).
14918         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14919         ;;
14920       dgux*)
14921         case $cc_basename in
14922           ec++*)
14923             lt_prog_compiler_pic_CXX='-KPIC'
14924             ;;
14925           ghcx*)
14926             # Green Hills C++ Compiler
14927             lt_prog_compiler_pic_CXX='-pic'
14928             ;;
14929           *)
14930             ;;
14931         esac
14932         ;;
14933       freebsd* | dragonfly*)
14934         # FreeBSD uses GNU C++
14935         ;;
14936       hpux9* | hpux10* | hpux11*)
14937         case $cc_basename in
14938           CC*)
14939             lt_prog_compiler_wl_CXX='-Wl,'
14940             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14941             if test "$host_cpu" != ia64; then
14942               lt_prog_compiler_pic_CXX='+Z'
14943             fi
14944             ;;
14945           aCC*)
14946             lt_prog_compiler_wl_CXX='-Wl,'
14947             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14948             case $host_cpu in
14949             hppa*64*|ia64*)
14950               # +Z the default
14951               ;;
14952             *)
14953               lt_prog_compiler_pic_CXX='+Z'
14954               ;;
14955             esac
14956             ;;
14957           *)
14958             ;;
14959         esac
14960         ;;
14961       interix*)
14962         # This is c89, which is MS Visual C++ (no shared libs)
14963         # Anyone wants to do a port?
14964         ;;
14965       irix5* | irix6* | nonstopux*)
14966         case $cc_basename in
14967           CC*)
14968             lt_prog_compiler_wl_CXX='-Wl,'
14969             lt_prog_compiler_static_CXX='-non_shared'
14970             # CC pic flag -KPIC is the default.
14971             ;;
14972           *)
14973             ;;
14974         esac
14975         ;;
14976       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14977         case $cc_basename in
14978           KCC*)
14979             # KAI C++ Compiler
14980             lt_prog_compiler_wl_CXX='--backend -Wl,'
14981             lt_prog_compiler_pic_CXX='-fPIC'
14982             ;;
14983           ecpc* )
14984             # old Intel C++ for x86_64 which still supported -KPIC.
14985             lt_prog_compiler_wl_CXX='-Wl,'
14986             lt_prog_compiler_pic_CXX='-KPIC'
14987             lt_prog_compiler_static_CXX='-static'
14988             ;;
14989           icpc* )
14990             # Intel C++, used to be incompatible with GCC.
14991             # ICC 10 doesn't accept -KPIC any more.
14992             lt_prog_compiler_wl_CXX='-Wl,'
14993             lt_prog_compiler_pic_CXX='-fPIC'
14994             lt_prog_compiler_static_CXX='-static'
14995             ;;
14996           pgCC* | pgcpp*)
14997             # Portland Group C++ compiler
14998             lt_prog_compiler_wl_CXX='-Wl,'
14999             lt_prog_compiler_pic_CXX='-fpic'
15000             lt_prog_compiler_static_CXX='-Bstatic'
15001             ;;
15002           cxx*)
15003             # Compaq C++
15004             # Make sure the PIC flag is empty.  It appears that all Alpha
15005             # Linux and Compaq Tru64 Unix objects are PIC.
15006             lt_prog_compiler_pic_CXX=
15007             lt_prog_compiler_static_CXX='-non_shared'
15008             ;;
15009           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15010             # IBM XL 8.0, 9.0 on PPC and BlueGene
15011             lt_prog_compiler_wl_CXX='-Wl,'
15012             lt_prog_compiler_pic_CXX='-qpic'
15013             lt_prog_compiler_static_CXX='-qstaticlink'
15014             ;;
15015           *)
15016             case `$CC -V 2>&1 | sed 5q` in
15017             *Sun\ C*)
15018               # Sun C++ 5.9
15019               lt_prog_compiler_pic_CXX='-KPIC'
15020               lt_prog_compiler_static_CXX='-Bstatic'
15021               lt_prog_compiler_wl_CXX='-Qoption ld '
15022               ;;
15023             esac
15024             ;;
15025         esac
15026         ;;
15027       lynxos*)
15028         ;;
15029       m88k*)
15030         ;;
15031       mvs*)
15032         case $cc_basename in
15033           cxx*)
15034             lt_prog_compiler_pic_CXX='-W c,exportall'
15035             ;;
15036           *)
15037             ;;
15038         esac
15039         ;;
15040       netbsd* | netbsdelf*-gnu)
15041         ;;
15042       *qnx* | *nto*)
15043         # QNX uses GNU C++, but need to define -shared option too, otherwise
15044         # it will coredump.
15045         lt_prog_compiler_pic_CXX='-fPIC -shared'
15046         ;;
15047       osf3* | osf4* | osf5*)
15048         case $cc_basename in
15049           KCC*)
15050             lt_prog_compiler_wl_CXX='--backend -Wl,'
15051             ;;
15052           RCC*)
15053             # Rational C++ 2.4.1
15054             lt_prog_compiler_pic_CXX='-pic'
15055             ;;
15056           cxx*)
15057             # Digital/Compaq C++
15058             lt_prog_compiler_wl_CXX='-Wl,'
15059             # Make sure the PIC flag is empty.  It appears that all Alpha
15060             # Linux and Compaq Tru64 Unix objects are PIC.
15061             lt_prog_compiler_pic_CXX=
15062             lt_prog_compiler_static_CXX='-non_shared'
15063             ;;
15064           *)
15065             ;;
15066         esac
15067         ;;
15068       psos*)
15069         ;;
15070       solaris*)
15071         case $cc_basename in
15072           CC* | sunCC*)
15073             # Sun C++ 4.2, 5.x and Centerline C++
15074             lt_prog_compiler_pic_CXX='-KPIC'
15075             lt_prog_compiler_static_CXX='-Bstatic'
15076             lt_prog_compiler_wl_CXX='-Qoption ld '
15077             ;;
15078           gcx*)
15079             # Green Hills C++ Compiler
15080             lt_prog_compiler_pic_CXX='-PIC'
15081             ;;
15082           *)
15083             ;;
15084         esac
15085         ;;
15086       sunos4*)
15087         case $cc_basename in
15088           CC*)
15089             # Sun C++ 4.x
15090             lt_prog_compiler_pic_CXX='-pic'
15091             lt_prog_compiler_static_CXX='-Bstatic'
15092             ;;
15093           lcc*)
15094             # Lucid
15095             lt_prog_compiler_pic_CXX='-pic'
15096             ;;
15097           *)
15098             ;;
15099         esac
15100         ;;
15101       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15102         case $cc_basename in
15103           CC*)
15104             lt_prog_compiler_wl_CXX='-Wl,'
15105             lt_prog_compiler_pic_CXX='-KPIC'
15106             lt_prog_compiler_static_CXX='-Bstatic'
15107             ;;
15108         esac
15109         ;;
15110       tandem*)
15111         case $cc_basename in
15112           NCC*)
15113             # NonStop-UX NCC 3.20
15114             lt_prog_compiler_pic_CXX='-KPIC'
15115             ;;
15116           *)
15117             ;;
15118         esac
15119         ;;
15120       vxworks*)
15121         ;;
15122       *)
15123         lt_prog_compiler_can_build_shared_CXX=no
15124         ;;
15125     esac
15126   fi
15127
15128 case $host_os in
15129   # For platforms which do not support PIC, -DPIC is meaningless:
15130   *djgpp*)
15131     lt_prog_compiler_pic_CXX=
15132     ;;
15133   *)
15134     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15135     ;;
15136 esac
15137
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15139 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15140 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15144 fi
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15146 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15147 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15148
15149 #
15150 # Check to make sure the PIC flag actually works.
15151 #
15152 if test -n "$lt_prog_compiler_pic_CXX"; then
15153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15154 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15155 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15156   $as_echo_n "(cached) " >&6
15157 else
15158   lt_cv_prog_compiler_pic_works_CXX=no
15159    ac_outfile=conftest.$ac_objext
15160    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15161    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15162    # Insert the option either (1) after the last *FLAGS variable, or
15163    # (2) before a word containing "conftest.", or (3) at the end.
15164    # Note that $ac_compile itself does not contain backslashes and begins
15165    # with a dollar sign (not a hyphen), so the echo should work correctly.
15166    # The option is referenced via a variable to avoid confusing sed.
15167    lt_compile=`echo "$ac_compile" | $SED \
15168    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15170    -e 's:$: $lt_compiler_flag:'`
15171    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15172    (eval "$lt_compile" 2>conftest.err)
15173    ac_status=$?
15174    cat conftest.err >&5
15175    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176    if (exit $ac_status) && test -s "$ac_outfile"; then
15177      # The compiler can only warn and ignore the option if not recognized
15178      # So say no if there are warnings other than the usual output.
15179      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15180      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15181      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15182        lt_cv_prog_compiler_pic_works_CXX=yes
15183      fi
15184    fi
15185    $RM conftest*
15186
15187 fi
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15189 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15190
15191 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15192     case $lt_prog_compiler_pic_CXX in
15193      "" | " "*) ;;
15194      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15195      esac
15196 else
15197     lt_prog_compiler_pic_CXX=
15198      lt_prog_compiler_can_build_shared_CXX=no
15199 fi
15200
15201 fi
15202
15203
15204
15205
15206
15207 #
15208 # Check to make sure the static flag actually works.
15209 #
15210 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15212 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15213 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15214   $as_echo_n "(cached) " >&6
15215 else
15216   lt_cv_prog_compiler_static_works_CXX=no
15217    save_LDFLAGS="$LDFLAGS"
15218    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15219    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15220    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15221      # The linker can only warn and ignore the option if not recognized
15222      # So say no if there are warnings
15223      if test -s conftest.err; then
15224        # Append any errors to the config.log.
15225        cat conftest.err 1>&5
15226        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15227        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15228        if diff conftest.exp conftest.er2 >/dev/null; then
15229          lt_cv_prog_compiler_static_works_CXX=yes
15230        fi
15231      else
15232        lt_cv_prog_compiler_static_works_CXX=yes
15233      fi
15234    fi
15235    $RM -r conftest*
15236    LDFLAGS="$save_LDFLAGS"
15237
15238 fi
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15240 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15241
15242 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15243     :
15244 else
15245     lt_prog_compiler_static_CXX=
15246 fi
15247
15248
15249
15250
15251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15253 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15254   $as_echo_n "(cached) " >&6
15255 else
15256   lt_cv_prog_compiler_c_o_CXX=no
15257    $RM -r conftest 2>/dev/null
15258    mkdir conftest
15259    cd conftest
15260    mkdir out
15261    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15262
15263    lt_compiler_flag="-o out/conftest2.$ac_objext"
15264    # Insert the option either (1) after the last *FLAGS variable, or
15265    # (2) before a word containing "conftest.", or (3) at the end.
15266    # Note that $ac_compile itself does not contain backslashes and begins
15267    # with a dollar sign (not a hyphen), so the echo should work correctly.
15268    lt_compile=`echo "$ac_compile" | $SED \
15269    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15270    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15271    -e 's:$: $lt_compiler_flag:'`
15272    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15273    (eval "$lt_compile" 2>out/conftest.err)
15274    ac_status=$?
15275    cat out/conftest.err >&5
15276    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15278    then
15279      # The compiler can only warn and ignore the option if not recognized
15280      # So say no if there are warnings
15281      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15282      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15283      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15284        lt_cv_prog_compiler_c_o_CXX=yes
15285      fi
15286    fi
15287    chmod u+w . 2>&5
15288    $RM conftest*
15289    # SGI C++ compiler will create directory out/ii_files/ for
15290    # template instantiation
15291    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15292    $RM out/* && rmdir out
15293    cd ..
15294    $RM -r conftest
15295    $RM conftest*
15296
15297 fi
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15299 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15300
15301
15302
15303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15304 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15305 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15306   $as_echo_n "(cached) " >&6
15307 else
15308   lt_cv_prog_compiler_c_o_CXX=no
15309    $RM -r conftest 2>/dev/null
15310    mkdir conftest
15311    cd conftest
15312    mkdir out
15313    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15314
15315    lt_compiler_flag="-o out/conftest2.$ac_objext"
15316    # Insert the option either (1) after the last *FLAGS variable, or
15317    # (2) before a word containing "conftest.", or (3) at the end.
15318    # Note that $ac_compile itself does not contain backslashes and begins
15319    # with a dollar sign (not a hyphen), so the echo should work correctly.
15320    lt_compile=`echo "$ac_compile" | $SED \
15321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15323    -e 's:$: $lt_compiler_flag:'`
15324    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15325    (eval "$lt_compile" 2>out/conftest.err)
15326    ac_status=$?
15327    cat out/conftest.err >&5
15328    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15330    then
15331      # The compiler can only warn and ignore the option if not recognized
15332      # So say no if there are warnings
15333      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15334      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15335      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15336        lt_cv_prog_compiler_c_o_CXX=yes
15337      fi
15338    fi
15339    chmod u+w . 2>&5
15340    $RM conftest*
15341    # SGI C++ compiler will create directory out/ii_files/ for
15342    # template instantiation
15343    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15344    $RM out/* && rmdir out
15345    cd ..
15346    $RM -r conftest
15347    $RM conftest*
15348
15349 fi
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15351 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15352
15353
15354
15355
15356 hard_links="nottested"
15357 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15358   # do not overwrite the value of need_locks provided by the user
15359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15360 $as_echo_n "checking if we can lock with hard links... " >&6; }
15361   hard_links=yes
15362   $RM conftest*
15363   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15364   touch conftest.a
15365   ln conftest.a conftest.b 2>&5 || hard_links=no
15366   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15368 $as_echo "$hard_links" >&6; }
15369   if test "$hard_links" = no; then
15370     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15371 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15372     need_locks=warn
15373   fi
15374 else
15375   need_locks=no
15376 fi
15377
15378
15379
15380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15381 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15382
15383   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15384   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15385   case $host_os in
15386   aix[4-9]*)
15387     # If we're using GNU nm, then we don't want the "-C" option.
15388     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15389     # Also, AIX nm treats weak defined symbols like other global defined
15390     # symbols, whereas GNU nm marks them as "W".
15391     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15392       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'
15393     else
15394       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'
15395     fi
15396     ;;
15397   pw32*)
15398     export_symbols_cmds_CXX="$ltdll_cmds"
15399     ;;
15400   cygwin* | mingw* | cegcc*)
15401     case $cc_basename in
15402     cl*)
15403       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15404       ;;
15405     *)
15406       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'
15407       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15408       ;;
15409     esac
15410     ;;
15411   linux* | k*bsd*-gnu | gnu*)
15412     link_all_deplibs_CXX=no
15413     ;;
15414   *)
15415     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15416     ;;
15417   esac
15418
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15420 $as_echo "$ld_shlibs_CXX" >&6; }
15421 test "$ld_shlibs_CXX" = no && can_build_shared=no
15422
15423 with_gnu_ld_CXX=$with_gnu_ld
15424
15425
15426
15427
15428
15429
15430 #
15431 # Do we need to explicitly link libc?
15432 #
15433 case "x$archive_cmds_need_lc_CXX" in
15434 x|xyes)
15435   # Assume -lc should be added
15436   archive_cmds_need_lc_CXX=yes
15437
15438   if test "$enable_shared" = yes && test "$GCC" = yes; then
15439     case $archive_cmds_CXX in
15440     *'~'*)
15441       # FIXME: we may have to deal with multi-command sequences.
15442       ;;
15443     '$CC '*)
15444       # Test whether the compiler implicitly links with -lc since on some
15445       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15446       # to ld, don't add -lc before -lgcc.
15447       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15448 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15449 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15450   $as_echo_n "(cached) " >&6
15451 else
15452   $RM conftest*
15453         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15454
15455         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15456   (eval $ac_compile) 2>&5
15457   ac_status=$?
15458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15459   test $ac_status = 0; } 2>conftest.err; then
15460           soname=conftest
15461           lib=conftest
15462           libobjs=conftest.$ac_objext
15463           deplibs=
15464           wl=$lt_prog_compiler_wl_CXX
15465           pic_flag=$lt_prog_compiler_pic_CXX
15466           compiler_flags=-v
15467           linker_flags=-v
15468           verstring=
15469           output_objdir=.
15470           libname=conftest
15471           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15472           allow_undefined_flag_CXX=
15473           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15474   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15475   ac_status=$?
15476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15477   test $ac_status = 0; }
15478           then
15479             lt_cv_archive_cmds_need_lc_CXX=no
15480           else
15481             lt_cv_archive_cmds_need_lc_CXX=yes
15482           fi
15483           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15484         else
15485           cat conftest.err 1>&5
15486         fi
15487         $RM conftest*
15488
15489 fi
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15491 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15492       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15493       ;;
15494     esac
15495   fi
15496   ;;
15497 esac
15498
15499
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15562
15563 library_names_spec=
15564 libname_spec='lib$name'
15565 soname_spec=
15566 shrext_cmds=".so"
15567 postinstall_cmds=
15568 postuninstall_cmds=
15569 finish_cmds=
15570 finish_eval=
15571 shlibpath_var=
15572 shlibpath_overrides_runpath=unknown
15573 version_type=none
15574 dynamic_linker="$host_os ld.so"
15575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15576 need_lib_prefix=unknown
15577 hardcode_into_libs=no
15578
15579 # when you set need_version to no, make sure it does not cause -set_version
15580 # flags to be left without arguments
15581 need_version=unknown
15582
15583 case $host_os in
15584 aix3*)
15585   version_type=linux # correct to gnu/linux during the next big refactor
15586   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15587   shlibpath_var=LIBPATH
15588
15589   # AIX 3 has no versioning support, so we append a major version to the name.
15590   soname_spec='${libname}${release}${shared_ext}$major'
15591   ;;
15592
15593 aix[4-9]*)
15594   version_type=linux # correct to gnu/linux during the next big refactor
15595   need_lib_prefix=no
15596   need_version=no
15597   hardcode_into_libs=yes
15598   if test "$host_cpu" = ia64; then
15599     # AIX 5 supports IA64
15600     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15601     shlibpath_var=LD_LIBRARY_PATH
15602   else
15603     # With GCC up to 2.95.x, collect2 would create an import file
15604     # for dependence libraries.  The import file would start with
15605     # the line `#! .'.  This would cause the generated library to
15606     # depend on `.', always an invalid library.  This was fixed in
15607     # development snapshots of GCC prior to 3.0.
15608     case $host_os in
15609       aix4 | aix4.[01] | aix4.[01].*)
15610       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15611            echo ' yes '
15612            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15613         :
15614       else
15615         can_build_shared=no
15616       fi
15617       ;;
15618     esac
15619     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15620     # soname into executable. Probably we can add versioning support to
15621     # collect2, so additional links can be useful in future.
15622     if test "$aix_use_runtimelinking" = yes; then
15623       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15624       # instead of lib<name>.a to let people know that these are not
15625       # typical AIX shared libraries.
15626       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627     else
15628       # We preserve .a as extension for shared libraries through AIX4.2
15629       # and later when we are not doing run time linking.
15630       library_names_spec='${libname}${release}.a $libname.a'
15631       soname_spec='${libname}${release}${shared_ext}$major'
15632     fi
15633     shlibpath_var=LIBPATH
15634   fi
15635   ;;
15636
15637 amigaos*)
15638   case $host_cpu in
15639   powerpc)
15640     # Since July 2007 AmigaOS4 officially supports .so libraries.
15641     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643     ;;
15644   m68k)
15645     library_names_spec='$libname.ixlibrary $libname.a'
15646     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15647     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'
15648     ;;
15649   esac
15650   ;;
15651
15652 beos*)
15653   library_names_spec='${libname}${shared_ext}'
15654   dynamic_linker="$host_os ld.so"
15655   shlibpath_var=LIBRARY_PATH
15656   ;;
15657
15658 bsdi[45]*)
15659   version_type=linux # correct to gnu/linux during the next big refactor
15660   need_version=no
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662   soname_spec='${libname}${release}${shared_ext}$major'
15663   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15664   shlibpath_var=LD_LIBRARY_PATH
15665   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15666   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15667   # the default ld.so.conf also contains /usr/contrib/lib and
15668   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15669   # libtool to hard-code these into programs
15670   ;;
15671
15672 cygwin* | mingw* | pw32* | cegcc*)
15673   version_type=windows
15674   shrext_cmds=".dll"
15675   need_version=no
15676   need_lib_prefix=no
15677
15678   case $GCC,$cc_basename in
15679   yes,*)
15680     # gcc
15681     library_names_spec='$libname.dll.a'
15682     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15683     postinstall_cmds='base_file=`basename \${file}`~
15684       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15685       dldir=$destdir/`dirname \$dlpath`~
15686       test -d \$dldir || mkdir -p \$dldir~
15687       $install_prog $dir/$dlname \$dldir/$dlname~
15688       chmod a+x \$dldir/$dlname~
15689       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15690         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15691       fi'
15692     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15693       dlpath=$dir/\$dldll~
15694        $RM \$dlpath'
15695     shlibpath_overrides_runpath=yes
15696
15697     case $host_os in
15698     cygwin*)
15699       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15700       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701
15702       ;;
15703     mingw* | cegcc*)
15704       # MinGW DLLs use traditional 'lib' prefix
15705       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706       ;;
15707     pw32*)
15708       # pw32 DLLs use 'pw' prefix rather than 'lib'
15709       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710       ;;
15711     esac
15712     dynamic_linker='Win32 ld.exe'
15713     ;;
15714
15715   *,cl*)
15716     # Native MSVC
15717     libname_spec='$name'
15718     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15719     library_names_spec='${libname}.dll.lib'
15720
15721     case $build_os in
15722     mingw*)
15723       sys_lib_search_path_spec=
15724       lt_save_ifs=$IFS
15725       IFS=';'
15726       for lt_path in $LIB
15727       do
15728         IFS=$lt_save_ifs
15729         # Let DOS variable expansion print the short 8.3 style file name.
15730         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15731         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15732       done
15733       IFS=$lt_save_ifs
15734       # Convert to MSYS style.
15735       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15736       ;;
15737     cygwin*)
15738       # Convert to unix form, then to dos form, then back to unix form
15739       # but this time dos style (no spaces!) so that the unix form looks
15740       # like /cygdrive/c/PROGRA~1:/cygdr...
15741       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15742       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15743       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15744       ;;
15745     *)
15746       sys_lib_search_path_spec="$LIB"
15747       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15748         # It is most probably a Windows format PATH.
15749         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15750       else
15751         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15752       fi
15753       # FIXME: find the short name or the path components, as spaces are
15754       # common. (e.g. "Program Files" -> "PROGRA~1")
15755       ;;
15756     esac
15757
15758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15759     postinstall_cmds='base_file=`basename \${file}`~
15760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15761       dldir=$destdir/`dirname \$dlpath`~
15762       test -d \$dldir || mkdir -p \$dldir~
15763       $install_prog $dir/$dlname \$dldir/$dlname'
15764     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15765       dlpath=$dir/\$dldll~
15766        $RM \$dlpath'
15767     shlibpath_overrides_runpath=yes
15768     dynamic_linker='Win32 link.exe'
15769     ;;
15770
15771   *)
15772     # Assume MSVC wrapper
15773     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15774     dynamic_linker='Win32 ld.exe'
15775     ;;
15776   esac
15777   # FIXME: first we should search . and the directory the executable is in
15778   shlibpath_var=PATH
15779   ;;
15780
15781 darwin* | rhapsody*)
15782   dynamic_linker="$host_os dyld"
15783   version_type=darwin
15784   need_lib_prefix=no
15785   need_version=no
15786   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15787   soname_spec='${libname}${release}${major}$shared_ext'
15788   shlibpath_overrides_runpath=yes
15789   shlibpath_var=DYLD_LIBRARY_PATH
15790   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15791
15792   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15793   ;;
15794
15795 dgux*)
15796   version_type=linux # correct to gnu/linux during the next big refactor
15797   need_lib_prefix=no
15798   need_version=no
15799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15800   soname_spec='${libname}${release}${shared_ext}$major'
15801   shlibpath_var=LD_LIBRARY_PATH
15802   ;;
15803
15804 freebsd* | dragonfly*)
15805   # DragonFly does not have aout.  When/if they implement a new
15806   # versioning mechanism, adjust this.
15807   if test -x /usr/bin/objformat; then
15808     objformat=`/usr/bin/objformat`
15809   else
15810     case $host_os in
15811     freebsd[23].*) objformat=aout ;;
15812     *) objformat=elf ;;
15813     esac
15814   fi
15815   version_type=freebsd-$objformat
15816   case $version_type in
15817     freebsd-elf*)
15818       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15819       need_version=no
15820       need_lib_prefix=no
15821       ;;
15822     freebsd-*)
15823       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15824       need_version=yes
15825       ;;
15826   esac
15827   shlibpath_var=LD_LIBRARY_PATH
15828   case $host_os in
15829   freebsd2.*)
15830     shlibpath_overrides_runpath=yes
15831     ;;
15832   freebsd3.[01]* | freebsdelf3.[01]*)
15833     shlibpath_overrides_runpath=yes
15834     hardcode_into_libs=yes
15835     ;;
15836   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15837   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15838     shlibpath_overrides_runpath=no
15839     hardcode_into_libs=yes
15840     ;;
15841   *) # from 4.6 on, and DragonFly
15842     shlibpath_overrides_runpath=yes
15843     hardcode_into_libs=yes
15844     ;;
15845   esac
15846   ;;
15847
15848 haiku*)
15849   version_type=linux # correct to gnu/linux during the next big refactor
15850   need_lib_prefix=no
15851   need_version=no
15852   dynamic_linker="$host_os runtime_loader"
15853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15854   soname_spec='${libname}${release}${shared_ext}$major'
15855   shlibpath_var=LIBRARY_PATH
15856   shlibpath_overrides_runpath=yes
15857   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15858   hardcode_into_libs=yes
15859   ;;
15860
15861 hpux9* | hpux10* | hpux11*)
15862   # Give a soname corresponding to the major version so that dld.sl refuses to
15863   # link against other versions.
15864   version_type=sunos
15865   need_lib_prefix=no
15866   need_version=no
15867   case $host_cpu in
15868   ia64*)
15869     shrext_cmds='.so'
15870     hardcode_into_libs=yes
15871     dynamic_linker="$host_os dld.so"
15872     shlibpath_var=LD_LIBRARY_PATH
15873     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875     soname_spec='${libname}${release}${shared_ext}$major'
15876     if test "X$HPUX_IA64_MODE" = X32; then
15877       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15878     else
15879       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15880     fi
15881     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15882     ;;
15883   hppa*64*)
15884     shrext_cmds='.sl'
15885     hardcode_into_libs=yes
15886     dynamic_linker="$host_os dld.sl"
15887     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890     soname_spec='${libname}${release}${shared_ext}$major'
15891     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15892     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15893     ;;
15894   *)
15895     shrext_cmds='.sl'
15896     dynamic_linker="$host_os dld.sl"
15897     shlibpath_var=SHLIB_PATH
15898     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900     soname_spec='${libname}${release}${shared_ext}$major'
15901     ;;
15902   esac
15903   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15904   postinstall_cmds='chmod 555 $lib'
15905   # or fails outright, so override atomically:
15906   install_override_mode=555
15907   ;;
15908
15909 interix[3-9]*)
15910   version_type=linux # correct to gnu/linux during the next big refactor
15911   need_lib_prefix=no
15912   need_version=no
15913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15914   soname_spec='${libname}${release}${shared_ext}$major'
15915   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15916   shlibpath_var=LD_LIBRARY_PATH
15917   shlibpath_overrides_runpath=no
15918   hardcode_into_libs=yes
15919   ;;
15920
15921 irix5* | irix6* | nonstopux*)
15922   case $host_os in
15923     nonstopux*) version_type=nonstopux ;;
15924     *)
15925         if test "$lt_cv_prog_gnu_ld" = yes; then
15926                 version_type=linux # correct to gnu/linux during the next big refactor
15927         else
15928                 version_type=irix
15929         fi ;;
15930   esac
15931   need_lib_prefix=no
15932   need_version=no
15933   soname_spec='${libname}${release}${shared_ext}$major'
15934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15935   case $host_os in
15936   irix5* | nonstopux*)
15937     libsuff= shlibsuff=
15938     ;;
15939   *)
15940     case $LD in # libtool.m4 will add one of these switches to LD
15941     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15942       libsuff= shlibsuff= libmagic=32-bit;;
15943     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15944       libsuff=32 shlibsuff=N32 libmagic=N32;;
15945     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15946       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15947     *) libsuff= shlibsuff= libmagic=never-match;;
15948     esac
15949     ;;
15950   esac
15951   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15952   shlibpath_overrides_runpath=no
15953   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15954   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15955   hardcode_into_libs=yes
15956   ;;
15957
15958 # No shared lib support for Linux oldld, aout, or coff.
15959 linux*oldld* | linux*aout* | linux*coff*)
15960   dynamic_linker=no
15961   ;;
15962
15963 # This must be glibc/ELF.
15964 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15965   version_type=linux # correct to gnu/linux during the next big refactor
15966   need_lib_prefix=no
15967   need_version=no
15968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969   soname_spec='${libname}${release}${shared_ext}$major'
15970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15971   shlibpath_var=LD_LIBRARY_PATH
15972   shlibpath_overrides_runpath=no
15973
15974   # Some binutils ld are patched to set DT_RUNPATH
15975   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15976   $as_echo_n "(cached) " >&6
15977 else
15978   lt_cv_shlibpath_overrides_runpath=no
15979     save_LDFLAGS=$LDFLAGS
15980     save_libdir=$libdir
15981     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15982          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h.  */
15985
15986 int
15987 main ()
15988 {
15989
15990   ;
15991   return 0;
15992 }
15993 _ACEOF
15994 if ac_fn_cxx_try_link "$LINENO"; then :
15995   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15996   lt_cv_shlibpath_overrides_runpath=yes
15997 fi
15998 fi
15999 rm -f core conftest.err conftest.$ac_objext \
16000     conftest$ac_exeext conftest.$ac_ext
16001     LDFLAGS=$save_LDFLAGS
16002     libdir=$save_libdir
16003
16004 fi
16005
16006   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16007
16008   # This implies no fast_install, which is unacceptable.
16009   # Some rework will be needed to allow for fast_install
16010   # before this can be enabled.
16011   hardcode_into_libs=yes
16012
16013   # Append ld.so.conf contents to the search path
16014   if test -f /etc/ld.so.conf; then
16015     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' ' '`
16016     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16017   fi
16018
16019   # We used to test for /lib/ld.so.1 and disable shared libraries on
16020   # powerpc, because MkLinux only supported shared libraries with the
16021   # GNU dynamic linker.  Since this was broken with cross compilers,
16022   # most powerpc-linux boxes support dynamic linking these days and
16023   # people can always --disable-shared, the test was removed, and we
16024   # assume the GNU/Linux dynamic linker is in use.
16025   dynamic_linker='GNU/Linux ld.so'
16026   ;;
16027
16028 netbsdelf*-gnu)
16029   version_type=linux
16030   need_lib_prefix=no
16031   need_version=no
16032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16033   soname_spec='${libname}${release}${shared_ext}$major'
16034   shlibpath_var=LD_LIBRARY_PATH
16035   shlibpath_overrides_runpath=no
16036   hardcode_into_libs=yes
16037   dynamic_linker='NetBSD ld.elf_so'
16038   ;;
16039
16040 netbsd*)
16041   version_type=sunos
16042   need_lib_prefix=no
16043   need_version=no
16044   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16046     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16047     dynamic_linker='NetBSD (a.out) ld.so'
16048   else
16049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16050     soname_spec='${libname}${release}${shared_ext}$major'
16051     dynamic_linker='NetBSD ld.elf_so'
16052   fi
16053   shlibpath_var=LD_LIBRARY_PATH
16054   shlibpath_overrides_runpath=yes
16055   hardcode_into_libs=yes
16056   ;;
16057
16058 newsos6)
16059   version_type=linux # correct to gnu/linux during the next big refactor
16060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061   shlibpath_var=LD_LIBRARY_PATH
16062   shlibpath_overrides_runpath=yes
16063   ;;
16064
16065 *nto* | *qnx*)
16066   version_type=qnx
16067   need_lib_prefix=no
16068   need_version=no
16069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070   soname_spec='${libname}${release}${shared_ext}$major'
16071   shlibpath_var=LD_LIBRARY_PATH
16072   shlibpath_overrides_runpath=no
16073   hardcode_into_libs=yes
16074   dynamic_linker='ldqnx.so'
16075   ;;
16076
16077 openbsd*)
16078   version_type=sunos
16079   sys_lib_dlsearch_path_spec="/usr/lib"
16080   need_lib_prefix=no
16081   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16082   case $host_os in
16083     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16084     *)                          need_version=no  ;;
16085   esac
16086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16087   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16088   shlibpath_var=LD_LIBRARY_PATH
16089   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16090     case $host_os in
16091       openbsd2.[89] | openbsd2.[89].*)
16092         shlibpath_overrides_runpath=no
16093         ;;
16094       *)
16095         shlibpath_overrides_runpath=yes
16096         ;;
16097       esac
16098   else
16099     shlibpath_overrides_runpath=yes
16100   fi
16101   ;;
16102
16103 os2*)
16104   libname_spec='$name'
16105   shrext_cmds=".dll"
16106   need_lib_prefix=no
16107   library_names_spec='$libname${shared_ext} $libname.a'
16108   dynamic_linker='OS/2 ld.exe'
16109   shlibpath_var=LIBPATH
16110   ;;
16111
16112 osf3* | osf4* | osf5*)
16113   version_type=osf
16114   need_lib_prefix=no
16115   need_version=no
16116   soname_spec='${libname}${release}${shared_ext}$major'
16117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118   shlibpath_var=LD_LIBRARY_PATH
16119   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16120   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16121   ;;
16122
16123 rdos*)
16124   dynamic_linker=no
16125   ;;
16126
16127 solaris*)
16128   version_type=linux # correct to gnu/linux during the next big refactor
16129   need_lib_prefix=no
16130   need_version=no
16131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132   soname_spec='${libname}${release}${shared_ext}$major'
16133   shlibpath_var=LD_LIBRARY_PATH
16134   shlibpath_overrides_runpath=yes
16135   hardcode_into_libs=yes
16136   # ldd complains unless libraries are executable
16137   postinstall_cmds='chmod +x $lib'
16138   ;;
16139
16140 sunos4*)
16141   version_type=sunos
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16143   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   shlibpath_overrides_runpath=yes
16146   if test "$with_gnu_ld" = yes; then
16147     need_lib_prefix=no
16148   fi
16149   need_version=yes
16150   ;;
16151
16152 sysv4 | sysv4.3*)
16153   version_type=linux # correct to gnu/linux during the next big refactor
16154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155   soname_spec='${libname}${release}${shared_ext}$major'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   case $host_vendor in
16158     sni)
16159       shlibpath_overrides_runpath=no
16160       need_lib_prefix=no
16161       runpath_var=LD_RUN_PATH
16162       ;;
16163     siemens)
16164       need_lib_prefix=no
16165       ;;
16166     motorola)
16167       need_lib_prefix=no
16168       need_version=no
16169       shlibpath_overrides_runpath=no
16170       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16171       ;;
16172   esac
16173   ;;
16174
16175 sysv4*MP*)
16176   if test -d /usr/nec ;then
16177     version_type=linux # correct to gnu/linux during the next big refactor
16178     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16179     soname_spec='$libname${shared_ext}.$major'
16180     shlibpath_var=LD_LIBRARY_PATH
16181   fi
16182   ;;
16183
16184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16185   version_type=freebsd-elf
16186   need_lib_prefix=no
16187   need_version=no
16188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16189   soname_spec='${libname}${release}${shared_ext}$major'
16190   shlibpath_var=LD_LIBRARY_PATH
16191   shlibpath_overrides_runpath=yes
16192   hardcode_into_libs=yes
16193   if test "$with_gnu_ld" = yes; then
16194     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16195   else
16196     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16197     case $host_os in
16198       sco3.2v5*)
16199         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16200         ;;
16201     esac
16202   fi
16203   sys_lib_dlsearch_path_spec='/usr/lib'
16204   ;;
16205
16206 tpf*)
16207   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16208   version_type=linux # correct to gnu/linux during the next big refactor
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   shlibpath_overrides_runpath=no
16214   hardcode_into_libs=yes
16215   ;;
16216
16217 uts4*)
16218   version_type=linux # correct to gnu/linux during the next big refactor
16219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220   soname_spec='${libname}${release}${shared_ext}$major'
16221   shlibpath_var=LD_LIBRARY_PATH
16222   ;;
16223
16224 *)
16225   dynamic_linker=no
16226   ;;
16227 esac
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16229 $as_echo "$dynamic_linker" >&6; }
16230 test "$dynamic_linker" = no && can_build_shared=no
16231
16232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16233 if test "$GCC" = yes; then
16234   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16235 fi
16236
16237 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16238   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16239 fi
16240 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16241   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16242 fi
16243
16244
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16282 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16283 hardcode_action_CXX=
16284 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16285    test -n "$runpath_var_CXX" ||
16286    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16287
16288   # We can hardcode non-existent directories.
16289   if test "$hardcode_direct_CXX" != no &&
16290      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16291      # have to relink, otherwise we might link with an installed library
16292      # when we should be linking with a yet-to-be-installed one
16293      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16294      test "$hardcode_minus_L_CXX" != no; then
16295     # Linking always hardcodes the temporary library directory.
16296     hardcode_action_CXX=relink
16297   else
16298     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16299     hardcode_action_CXX=immediate
16300   fi
16301 else
16302   # We cannot hardcode anything, or else we can only hardcode existing
16303   # directories.
16304   hardcode_action_CXX=unsupported
16305 fi
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16307 $as_echo "$hardcode_action_CXX" >&6; }
16308
16309 if test "$hardcode_action_CXX" = relink ||
16310    test "$inherit_rpath_CXX" = yes; then
16311   # Fast installation is not supported
16312   enable_fast_install=no
16313 elif test "$shlibpath_overrides_runpath" = yes ||
16314      test "$enable_shared" = no; then
16315   # Fast installation is not necessary
16316   enable_fast_install=needless
16317 fi
16318
16319
16320
16321
16322
16323
16324
16325   fi # test -n "$compiler"
16326
16327   CC=$lt_save_CC
16328   CFLAGS=$lt_save_CFLAGS
16329   LDCXX=$LD
16330   LD=$lt_save_LD
16331   GCC=$lt_save_GCC
16332   with_gnu_ld=$lt_save_with_gnu_ld
16333   lt_cv_path_LDCXX=$lt_cv_path_LD
16334   lt_cv_path_LD=$lt_save_path_LD
16335   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16336   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16337 fi # test "$_lt_caught_CXX_error" != yes
16338
16339 ac_ext=c
16340 ac_cpp='$CPP $CPPFLAGS'
16341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359         ac_config_commands="$ac_config_commands libtool"
16360
16361
16362
16363
16364 # Only expand once:
16365
16366
16367
16368 LT_DLLOADERS=
16369
16370
16371 ac_ext=c
16372 ac_cpp='$CPP $CPPFLAGS'
16373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16376
16377
16378 LIBADD_DLOPEN=
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16380 $as_echo_n "checking for library containing dlopen... " >&6; }
16381 if ${ac_cv_search_dlopen+:} false; then :
16382   $as_echo_n "(cached) " >&6
16383 else
16384   ac_func_search_save_LIBS=$LIBS
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h.  */
16387
16388 /* Override any GCC internal prototype to avoid an error.
16389    Use char because int might match the return type of a GCC
16390    builtin and then its argument prototype would still apply.  */
16391 #ifdef __cplusplus
16392 extern "C"
16393 #endif
16394 char dlopen ();
16395 int
16396 main ()
16397 {
16398 return dlopen ();
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 for ac_lib in '' dl; do
16404   if test -z "$ac_lib"; then
16405     ac_res="none required"
16406   else
16407     ac_res=-l$ac_lib
16408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16409   fi
16410   if ac_fn_c_try_link "$LINENO"; then :
16411   ac_cv_search_dlopen=$ac_res
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext \
16414     conftest$ac_exeext
16415   if ${ac_cv_search_dlopen+:} false; then :
16416   break
16417 fi
16418 done
16419 if ${ac_cv_search_dlopen+:} false; then :
16420
16421 else
16422   ac_cv_search_dlopen=no
16423 fi
16424 rm conftest.$ac_ext
16425 LIBS=$ac_func_search_save_LIBS
16426 fi
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16428 $as_echo "$ac_cv_search_dlopen" >&6; }
16429 ac_res=$ac_cv_search_dlopen
16430 if test "$ac_res" != no; then :
16431   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16432
16433 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16434
16435         if test "$ac_cv_search_dlopen" != "none required" ; then
16436           LIBADD_DLOPEN="-ldl"
16437         fi
16438         libltdl_cv_lib_dl_dlopen="yes"
16439         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16440 else
16441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h.  */
16443 #if HAVE_DLFCN_H
16444 #  include <dlfcn.h>
16445 #endif
16446
16447 int
16448 main ()
16449 {
16450 dlopen(0, 0);
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 if ac_fn_c_try_link "$LINENO"; then :
16456
16457 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16458
16459             libltdl_cv_func_dlopen="yes"
16460             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16461 else
16462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16463 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16464 if ${ac_cv_lib_svld_dlopen+:} false; then :
16465   $as_echo_n "(cached) " >&6
16466 else
16467   ac_check_lib_save_LIBS=$LIBS
16468 LIBS="-lsvld  $LIBS"
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h.  */
16471
16472 /* Override any GCC internal prototype to avoid an error.
16473    Use char because int might match the return type of a GCC
16474    builtin and then its argument prototype would still apply.  */
16475 #ifdef __cplusplus
16476 extern "C"
16477 #endif
16478 char dlopen ();
16479 int
16480 main ()
16481 {
16482 return dlopen ();
16483   ;
16484   return 0;
16485 }
16486 _ACEOF
16487 if ac_fn_c_try_link "$LINENO"; then :
16488   ac_cv_lib_svld_dlopen=yes
16489 else
16490   ac_cv_lib_svld_dlopen=no
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext \
16493     conftest$ac_exeext conftest.$ac_ext
16494 LIBS=$ac_check_lib_save_LIBS
16495 fi
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16497 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16498 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16499
16500 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16501
16502                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16503                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16504 fi
16505
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext \
16508     conftest$ac_exeext conftest.$ac_ext
16509 fi
16510
16511 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16512 then
16513   lt_save_LIBS="$LIBS"
16514   LIBS="$LIBS $LIBADD_DLOPEN"
16515   for ac_func in dlerror
16516 do :
16517   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16518 if test "x$ac_cv_func_dlerror" = xyes; then :
16519   cat >>confdefs.h <<_ACEOF
16520 #define HAVE_DLERROR 1
16521 _ACEOF
16522
16523 fi
16524 done
16525
16526   LIBS="$lt_save_LIBS"
16527 fi
16528
16529
16530 LIBADD_SHL_LOAD=
16531 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16532 if test "x$ac_cv_func_shl_load" = xyes; then :
16533
16534 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16535
16536         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16537 else
16538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16539 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16540 if ${ac_cv_lib_dld_shl_load+:} false; then :
16541   $as_echo_n "(cached) " >&6
16542 else
16543   ac_check_lib_save_LIBS=$LIBS
16544 LIBS="-ldld  $LIBS"
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h.  */
16547
16548 /* Override any GCC internal prototype to avoid an error.
16549    Use char because int might match the return type of a GCC
16550    builtin and then its argument prototype would still apply.  */
16551 #ifdef __cplusplus
16552 extern "C"
16553 #endif
16554 char shl_load ();
16555 int
16556 main ()
16557 {
16558 return shl_load ();
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_link "$LINENO"; then :
16564   ac_cv_lib_dld_shl_load=yes
16565 else
16566   ac_cv_lib_dld_shl_load=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext \
16569     conftest$ac_exeext conftest.$ac_ext
16570 LIBS=$ac_check_lib_save_LIBS
16571 fi
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16573 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16574 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16575
16576 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16577
16578             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16579             LIBADD_SHL_LOAD="-ldld"
16580 fi
16581
16582 fi
16583
16584
16585
16586 case $host_os in
16587 darwin[1567].*)
16588 # We only want this for pre-Mac OS X 10.4.
16589   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16590 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16591
16592 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16593
16594         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16595 fi
16596
16597   ;;
16598 beos*)
16599   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16600   ;;
16601 cygwin* | mingw* | os2* | pw32*)
16602   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16603 "
16604 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16605   ac_have_decl=1
16606 else
16607   ac_have_decl=0
16608 fi
16609
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16612 _ACEOF
16613
16614   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16615   ;;
16616 esac
16617
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16619 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16620 if ${ac_cv_lib_dld_dld_link+:} false; then :
16621   $as_echo_n "(cached) " >&6
16622 else
16623   ac_check_lib_save_LIBS=$LIBS
16624 LIBS="-ldld  $LIBS"
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h.  */
16627
16628 /* Override any GCC internal prototype to avoid an error.
16629    Use char because int might match the return type of a GCC
16630    builtin and then its argument prototype would still apply.  */
16631 #ifdef __cplusplus
16632 extern "C"
16633 #endif
16634 char dld_link ();
16635 int
16636 main ()
16637 {
16638 return dld_link ();
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 if ac_fn_c_try_link "$LINENO"; then :
16644   ac_cv_lib_dld_dld_link=yes
16645 else
16646   ac_cv_lib_dld_dld_link=no
16647 fi
16648 rm -f core conftest.err conftest.$ac_objext \
16649     conftest$ac_exeext conftest.$ac_ext
16650 LIBS=$ac_check_lib_save_LIBS
16651 fi
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16653 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16654 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16655
16656 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16657
16658                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16659 fi
16660
16661
16662
16663
16664 LT_DLPREOPEN=
16665 if test -n "$LT_DLLOADERS"
16666 then
16667   for lt_loader in $LT_DLLOADERS; do
16668     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16669   done
16670
16671 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16672
16673 fi
16674
16675
16676 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16677
16678
16679 ac_ext=c
16680 ac_cpp='$CPP $CPPFLAGS'
16681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16684
16685
16686
16687
16688 if test x$use_libtool != xno; then
16689    DEFAULT_OBJECT_TYPE=".lo"
16690    DEFAULT_ARCHIVE_TYPE=".la"
16691    DEFAULT_SHARED_OBJECT_TYPE=".la"
16692    LIBTOOL="\$(LIBTOOL)"
16693    LIBTOOL_INSTALL_TARGET="libtool-install"
16694    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16695    LIBTOOL_CLEAN_TARGET="libtool-clean"
16696    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16697    FD_PLUGIN_DIR="src/plugins/fd"
16698    have_plugins=yes
16699 else
16700    DEFAULT_OBJECT_TYPE=".o"
16701    DEFAULT_ARCHIVE_TYPE=".a"
16702    DEFAULT_SHARED_OBJECT_TYPE=".so"
16703    LIBTOOL="# \$(LIBTOOL)"
16704    LIBTOOL_INSTALL_TARGET=""
16705    LIBTOOL_UNINSTALL_TARGET=""
16706    LIBTOOL_CLEAN_TARGET=""
16707    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16708    FD_PLUGIN_DIR=""
16709    have_plugins=no
16710 fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722 # Check whether --enable-includes was given.
16723 if test "${enable_includes+set}" = set; then :
16724   enableval=$enable_includes;
16725        if test x$enableval = xyes; then
16726           install_includes=yes
16727        fi
16728
16729
16730 fi
16731
16732
16733
16734 if test x$use_libtool != xno -a x$install_includes = xyes; then
16735    INCLUDE_INSTALL_TARGET="install-includes"
16736    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16737 else
16738    INCLUDE_INSTALL_TARGET=""
16739    INCLUDE_UNINSTALL_TARGET=""
16740 fi
16741
16742
16743
16744
16745
16746 case $host_os in
16747   *cygwin* ) CYGWIN=yes;;
16748          * ) CYGWIN=no;;
16749 esac
16750
16751 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16752 then
16753
16754
16755 if $TRUEPRG; then
16756   HAVE_SUN_OS_TRUE=
16757   HAVE_SUN_OS_FALSE='#'
16758 else
16759   HAVE_SUN_OS_TRUE='#'
16760   HAVE_SUN_OS_FALSE=
16761 fi
16762         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16763
16764 else
16765
16766
16767 if $FALSEPRG; then
16768   HAVE_SUN_OS_TRUE=
16769   HAVE_SUN_OS_FALSE='#'
16770 else
16771   HAVE_SUN_OS_TRUE='#'
16772   HAVE_SUN_OS_FALSE=
16773 fi
16774 fi
16775
16776 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16777 then
16778
16779
16780 if $TRUEPRG; then
16781   HAVE_HURD_OS_TRUE=
16782   HAVE_HURD_OS_FALSE='#'
16783 else
16784   HAVE_HURD_OS_TRUE='#'
16785   HAVE_HURD_OS_FALSE=
16786 fi
16787         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16788
16789 else
16790
16791
16792 if $FALSEPRG; then
16793   HAVE_HURD_OS_TRUE=
16794   HAVE_HURD_OS_FALSE='#'
16795 else
16796   HAVE_HURD_OS_TRUE='#'
16797   HAVE_HURD_OS_FALSE=
16798 fi
16799 fi
16800
16801 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16802 then
16803
16804
16805 if $TRUEPRG; then
16806   HAVE_OSF1_OS_TRUE=
16807   HAVE_OSF1_OS_FALSE='#'
16808 else
16809   HAVE_OSF1_OS_TRUE='#'
16810   HAVE_OSF1_OS_FALSE=
16811 fi
16812         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16813
16814 else
16815
16816
16817 if $FALSEPRG; then
16818   HAVE_OSF1_OS_TRUE=
16819   HAVE_OSF1_OS_FALSE='#'
16820 else
16821   HAVE_OSF1_OS_TRUE='#'
16822   HAVE_OSF1_OS_FALSE=
16823 fi
16824 fi
16825
16826 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16827 then
16828
16829
16830 if $TRUEPRG; then
16831   HAVE_AIX_OS_TRUE=
16832   HAVE_AIX_OS_FALSE='#'
16833 else
16834   HAVE_AIX_OS_TRUE='#'
16835   HAVE_AIX_OS_FALSE=
16836 fi
16837         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16838
16839 else
16840
16841
16842 if $FALSEPRG; then
16843   HAVE_AIX_OS_TRUE=
16844   HAVE_AIX_OS_FALSE='#'
16845 else
16846   HAVE_AIX_OS_TRUE='#'
16847   HAVE_AIX_OS_FALSE=
16848 fi
16849 fi
16850
16851 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16852 then
16853
16854
16855 if $TRUEPRG; then
16856   HAVE_HPUX_OS_TRUE=
16857   HAVE_HPUX_OS_FALSE='#'
16858 else
16859   HAVE_HPUX_OS_TRUE='#'
16860   HAVE_HPUX_OS_FALSE=
16861 fi
16862         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16863
16864 else
16865
16866
16867 if $FALSEPRG; then
16868   HAVE_HPUX_OS_TRUE=
16869   HAVE_HPUX_OS_FALSE='#'
16870 else
16871   HAVE_HPUX_OS_TRUE='#'
16872   HAVE_HPUX_OS_FALSE=
16873 fi
16874 fi
16875
16876 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16877 then
16878
16879
16880 if $TRUEPRG; then
16881   HAVE_LINUX_OS_TRUE=
16882   HAVE_LINUX_OS_FALSE='#'
16883 else
16884   HAVE_LINUX_OS_TRUE='#'
16885   HAVE_LINUX_OS_FALSE=
16886 fi
16887         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16888
16889 else
16890
16891
16892 if $FALSEPRG; then
16893   HAVE_LINUX_OS_TRUE=
16894   HAVE_LINUX_OS_FALSE='#'
16895 else
16896   HAVE_LINUX_OS_TRUE='#'
16897   HAVE_LINUX_OS_FALSE=
16898 fi
16899 fi
16900
16901 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16902 then
16903
16904
16905 if $TRUEPRG; then
16906   HAVE_FREEBSD_OS_TRUE=
16907   HAVE_FREEBSD_OS_FALSE='#'
16908 else
16909   HAVE_FREEBSD_OS_TRUE='#'
16910   HAVE_FREEBSD_OS_FALSE=
16911 fi
16912         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16913
16914 else
16915
16916
16917 if $FALSEPRG; then
16918   HAVE_FREEBSD_OS_TRUE=
16919   HAVE_FREEBSD_OS_FALSE='#'
16920 else
16921   HAVE_FREEBSD_OS_TRUE='#'
16922   HAVE_FREEBSD_OS_FALSE=
16923 fi
16924 fi
16925
16926 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16927 then
16928
16929
16930 if $TRUEPRG; then
16931   HAVE_NETBSD_OS_TRUE=
16932   HAVE_NETBSD_OS_FALSE='#'
16933 else
16934   HAVE_NETBSD_OS_TRUE='#'
16935   HAVE_NETBSD_OS_FALSE=
16936 fi
16937         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16938
16939 else
16940
16941
16942 if $FALSEPRG; then
16943   HAVE_NETBSD_OS_TRUE=
16944   HAVE_NETBSD_OS_FALSE='#'
16945 else
16946   HAVE_NETBSD_OS_TRUE='#'
16947   HAVE_NETBSD_OS_FALSE=
16948 fi
16949 fi
16950
16951 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16952 then
16953
16954
16955 if $TRUEPRG; then
16956   HAVE_OPENBSD_OS_TRUE=
16957   HAVE_OPENBSD_OS_FALSE='#'
16958 else
16959   HAVE_OPENBSD_OS_TRUE='#'
16960   HAVE_OPENBSD_OS_FALSE=
16961 fi
16962         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16963
16964 else
16965
16966
16967 if $FALSEPRG; then
16968   HAVE_OPENBSD_OS_TRUE=
16969   HAVE_OPENBSD_OS_FALSE='#'
16970 else
16971   HAVE_OPENBSD_OS_TRUE='#'
16972   HAVE_OPENBSD_OS_FALSE=
16973 fi
16974 fi
16975
16976 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16977 then
16978
16979
16980 if $TRUEPRG; then
16981   HAVE_BSDI_OS_TRUE=
16982   HAVE_BSDI_OS_FALSE='#'
16983 else
16984   HAVE_BSDI_OS_TRUE='#'
16985   HAVE_BSDI_OS_FALSE=
16986 fi
16987         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16988
16989 else
16990
16991
16992 if $FALSEPRG; then
16993   HAVE_BSDI_OS_TRUE=
16994   HAVE_BSDI_OS_FALSE='#'
16995 else
16996   HAVE_BSDI_OS_TRUE='#'
16997   HAVE_BSDI_OS_FALSE=
16998 fi
16999 fi
17000
17001 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17002 then
17003
17004
17005 if $TRUEPRG; then
17006   HAVE_SGI_OS_TRUE=
17007   HAVE_SGI_OS_FALSE='#'
17008 else
17009   HAVE_SGI_OS_TRUE='#'
17010   HAVE_SGI_OS_FALSE=
17011 fi
17012         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17013
17014 else
17015
17016
17017 if $FALSEPRG; then
17018   HAVE_SGI_OS_TRUE=
17019   HAVE_SGI_OS_FALSE='#'
17020 else
17021   HAVE_SGI_OS_TRUE='#'
17022   HAVE_SGI_OS_FALSE=
17023 fi
17024 fi
17025
17026 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17027 then
17028
17029
17030 if $TRUEPRG; then
17031   HAVE_IRIX_OS_TRUE=
17032   HAVE_IRIX_OS_FALSE='#'
17033 else
17034   HAVE_IRIX_OS_TRUE='#'
17035   HAVE_IRIX_OS_FALSE=
17036 fi
17037         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17038
17039 else
17040
17041
17042 if $FALSEPRG; then
17043   HAVE_IRIX_OS_TRUE=
17044   HAVE_IRIX_OS_FALSE='#'
17045 else
17046   HAVE_IRIX_OS_TRUE='#'
17047   HAVE_IRIX_OS_FALSE=
17048 fi
17049 fi
17050
17051 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17052 then
17053
17054
17055 if $TRUEPRG; then
17056   HAVE_DARWIN_OS_TRUE=
17057   HAVE_DARWIN_OS_FALSE='#'
17058 else
17059   HAVE_DARWIN_OS_TRUE='#'
17060   HAVE_DARWIN_OS_FALSE=
17061 fi
17062     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17063
17064 else
17065
17066
17067 if $FALSEPRG; then
17068   HAVE_DARWIN_OS_TRUE=
17069   HAVE_DARWIN_OS_FALSE='#'
17070 else
17071   HAVE_DARWIN_OS_TRUE='#'
17072   HAVE_DARWIN_OS_FALSE=
17073 fi
17074 fi
17075
17076
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17078 $as_echo_n "checking for Operating System Distribution... " >&6; }
17079 if test "x$DISTNAME" != "x"
17080 then
17081         echo "distname set to $DISTNAME"
17082 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17083 then
17084         DISTNAME=alpha
17085 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17086 then
17087         DISTNAME=aix
17088 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17089 then
17090         DISTNAME=hpux
17091 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17092 then
17093         DISTNAME=solaris
17094 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17095 then
17096         DISTNAME=hurd
17097 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17098 then
17099         DISTNAME=freebsd
17100 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17101 then
17102         DISTNAME=netbsd
17103 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17104 then
17105         DISTNAME=openbsd
17106 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17107 then
17108         DISTNAME=irix
17109 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17110 then
17111         DISTNAME=bsdi
17112 elif test -f /etc/SuSE-release
17113 then
17114         DISTNAME=suse
17115 elif test -d /etc/SuSEconfig
17116 then
17117         DISTNAME=suse5
17118 elif test -f /etc/mandrake-release
17119 then
17120         DISTNAME=mandrake
17121 elif test -f /etc/whitebox-release
17122 then
17123        DISTNAME=redhat
17124 elif test -f /etc/redhat-release
17125 then
17126         DISTNAME=redhat
17127 elif test -f /etc/gentoo-release
17128 then
17129         DISTNAME=gentoo
17130 elif test -f /etc/debian_version
17131 then
17132         DISTNAME=debian
17133 elif test -f /etc/slackware-version
17134 then
17135         DISTNAME=slackware
17136 elif test x$host_vendor = xapple
17137 then
17138     DISTNAME=osx
17139 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17140 then
17141     DISTNAME=darwin
17142 elif test -f /etc/engarde-version
17143 then
17144         DISTNAME=engarde
17145 elif test -f /etc/arch-release
17146 then
17147         DISTNAME=archlinux
17148 elif test "$CYGWIN" = yes
17149 then
17150         DISTNAME=cygwin
17151         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17152
17153 else
17154         DISTNAME=unknown
17155 fi
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17157 $as_echo "done" >&6; }
17158
17159
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17162 set x ${MAKE-make}
17163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17164 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17165   $as_echo_n "(cached) " >&6
17166 else
17167   cat >conftest.make <<\_ACEOF
17168 SHELL = /bin/sh
17169 all:
17170         @echo '@@@%%%=$(MAKE)=@@@%%%'
17171 _ACEOF
17172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17174   *@@@%%%=?*=@@@%%%*)
17175     eval ac_cv_prog_make_${ac_make}_set=yes;;
17176   *)
17177     eval ac_cv_prog_make_${ac_make}_set=no;;
17178 esac
17179 rm -f conftest.make
17180 fi
17181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17183 $as_echo "yes" >&6; }
17184   SET_MAKE=
17185 else
17186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17188   SET_MAKE="MAKE=${MAKE-make}"
17189 fi
17190
17191
17192
17193         MKINSTALLDIRS=
17194   if test -n "$ac_aux_dir"; then
17195     case "$ac_aux_dir" in
17196       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17197       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17198     esac
17199   fi
17200   if test -z "$MKINSTALLDIRS"; then
17201     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17202   fi
17203
17204
17205
17206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17207 $as_echo_n "checking whether NLS is requested... " >&6; }
17208     # Check whether --enable-nls was given.
17209 if test "${enable_nls+set}" = set; then :
17210   enableval=$enable_nls; USE_NLS=$enableval
17211 else
17212   USE_NLS=yes
17213 fi
17214
17215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17216 $as_echo "$USE_NLS" >&6; }
17217
17218
17219
17220
17221
17222
17223 # Prepare PATH_SEPARATOR.
17224 # The user is always right.
17225 if test "${PATH_SEPARATOR+set}" != set; then
17226   echo "#! /bin/sh" >conf$$.sh
17227   echo  "exit 0"   >>conf$$.sh
17228   chmod +x conf$$.sh
17229   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17230     PATH_SEPARATOR=';'
17231   else
17232     PATH_SEPARATOR=:
17233   fi
17234   rm -f conf$$.sh
17235 fi
17236
17237 # Find out how to test for executable files. Don't use a zero-byte file,
17238 # as systems may use methods other than mode bits to determine executability.
17239 cat >conf$$.file <<_ASEOF
17240 #! /bin/sh
17241 exit 0
17242 _ASEOF
17243 chmod +x conf$$.file
17244 if test -x conf$$.file >/dev/null 2>&1; then
17245   ac_executable_p="test -x"
17246 else
17247   ac_executable_p="test -f"
17248 fi
17249 rm -f conf$$.file
17250
17251 # Extract the first word of "msgfmt", so it can be a program name with args.
17252 set dummy msgfmt; ac_word=$2
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17254 $as_echo_n "checking for $ac_word... " >&6; }
17255 if ${ac_cv_path_MSGFMT+:} false; then :
17256   $as_echo_n "(cached) " >&6
17257 else
17258   case "$MSGFMT" in
17259   [\\/]* | ?:[\\/]*)
17260     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17261     ;;
17262   *)
17263     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17264     for ac_dir in $PATH; do
17265       IFS="$ac_save_IFS"
17266       test -z "$ac_dir" && ac_dir=.
17267       for ac_exec_ext in '' $ac_executable_extensions; do
17268         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17269           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17270           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17271      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17272             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17273             break 2
17274           fi
17275         fi
17276       done
17277     done
17278     IFS="$ac_save_IFS"
17279   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17280     ;;
17281 esac
17282 fi
17283 MSGFMT="$ac_cv_path_MSGFMT"
17284 if test "$MSGFMT" != ":"; then
17285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17286 $as_echo "$MSGFMT" >&6; }
17287 else
17288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17289 $as_echo "no" >&6; }
17290 fi
17291
17292   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17293 set dummy gmsgfmt; ac_word=$2
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17295 $as_echo_n "checking for $ac_word... " >&6; }
17296 if ${ac_cv_path_GMSGFMT+:} false; then :
17297   $as_echo_n "(cached) " >&6
17298 else
17299   case $GMSGFMT in
17300   [\\/]* | ?:[\\/]*)
17301   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17302   ;;
17303   *)
17304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17305 for as_dir in $PATH
17306 do
17307   IFS=$as_save_IFS
17308   test -z "$as_dir" && as_dir=.
17309     for ac_exec_ext in '' $ac_executable_extensions; do
17310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17311     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17313     break 2
17314   fi
17315 done
17316   done
17317 IFS=$as_save_IFS
17318
17319   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17320   ;;
17321 esac
17322 fi
17323 GMSGFMT=$ac_cv_path_GMSGFMT
17324 if test -n "$GMSGFMT"; then
17325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17326 $as_echo "$GMSGFMT" >&6; }
17327 else
17328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17330 fi
17331
17332
17333
17334
17335 # Prepare PATH_SEPARATOR.
17336 # The user is always right.
17337 if test "${PATH_SEPARATOR+set}" != set; then
17338   echo "#! /bin/sh" >conf$$.sh
17339   echo  "exit 0"   >>conf$$.sh
17340   chmod +x conf$$.sh
17341   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17342     PATH_SEPARATOR=';'
17343   else
17344     PATH_SEPARATOR=:
17345   fi
17346   rm -f conf$$.sh
17347 fi
17348
17349 # Find out how to test for executable files. Don't use a zero-byte file,
17350 # as systems may use methods other than mode bits to determine executability.
17351 cat >conf$$.file <<_ASEOF
17352 #! /bin/sh
17353 exit 0
17354 _ASEOF
17355 chmod +x conf$$.file
17356 if test -x conf$$.file >/dev/null 2>&1; then
17357   ac_executable_p="test -x"
17358 else
17359   ac_executable_p="test -f"
17360 fi
17361 rm -f conf$$.file
17362
17363 # Extract the first word of "xgettext", so it can be a program name with args.
17364 set dummy xgettext; ac_word=$2
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17366 $as_echo_n "checking for $ac_word... " >&6; }
17367 if ${ac_cv_path_XGETTEXT+:} false; then :
17368   $as_echo_n "(cached) " >&6
17369 else
17370   case "$XGETTEXT" in
17371   [\\/]* | ?:[\\/]*)
17372     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17373     ;;
17374   *)
17375     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17376     for ac_dir in $PATH; do
17377       IFS="$ac_save_IFS"
17378       test -z "$ac_dir" && ac_dir=.
17379       for ac_exec_ext in '' $ac_executable_extensions; do
17380         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17381           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17382           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17383      (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
17384             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17385             break 2
17386           fi
17387         fi
17388       done
17389     done
17390     IFS="$ac_save_IFS"
17391   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17392     ;;
17393 esac
17394 fi
17395 XGETTEXT="$ac_cv_path_XGETTEXT"
17396 if test "$XGETTEXT" != ":"; then
17397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17398 $as_echo "$XGETTEXT" >&6; }
17399 else
17400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17401 $as_echo "no" >&6; }
17402 fi
17403
17404     rm -f messages.po
17405
17406
17407 # Prepare PATH_SEPARATOR.
17408 # The user is always right.
17409 if test "${PATH_SEPARATOR+set}" != set; then
17410   echo "#! /bin/sh" >conf$$.sh
17411   echo  "exit 0"   >>conf$$.sh
17412   chmod +x conf$$.sh
17413   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17414     PATH_SEPARATOR=';'
17415   else
17416     PATH_SEPARATOR=:
17417   fi
17418   rm -f conf$$.sh
17419 fi
17420
17421 # Find out how to test for executable files. Don't use a zero-byte file,
17422 # as systems may use methods other than mode bits to determine executability.
17423 cat >conf$$.file <<_ASEOF
17424 #! /bin/sh
17425 exit 0
17426 _ASEOF
17427 chmod +x conf$$.file
17428 if test -x conf$$.file >/dev/null 2>&1; then
17429   ac_executable_p="test -x"
17430 else
17431   ac_executable_p="test -f"
17432 fi
17433 rm -f conf$$.file
17434
17435 # Extract the first word of "msgmerge", so it can be a program name with args.
17436 set dummy msgmerge; ac_word=$2
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17438 $as_echo_n "checking for $ac_word... " >&6; }
17439 if ${ac_cv_path_MSGMERGE+:} false; then :
17440   $as_echo_n "(cached) " >&6
17441 else
17442   case "$MSGMERGE" in
17443   [\\/]* | ?:[\\/]*)
17444     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17445     ;;
17446   *)
17447     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17448     for ac_dir in $PATH; do
17449       IFS="$ac_save_IFS"
17450       test -z "$ac_dir" && ac_dir=.
17451       for ac_exec_ext in '' $ac_executable_extensions; do
17452         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17453           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17454           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17455             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17456             break 2
17457           fi
17458         fi
17459       done
17460     done
17461     IFS="$ac_save_IFS"
17462   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17463     ;;
17464 esac
17465 fi
17466 MSGMERGE="$ac_cv_path_MSGMERGE"
17467 if test "$MSGMERGE" != ":"; then
17468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17469 $as_echo "$MSGMERGE" >&6; }
17470 else
17471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17472 $as_echo "no" >&6; }
17473 fi
17474
17475
17476       if test "$GMSGFMT" != ":"; then
17477             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17478        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17479       : ;
17480     else
17481       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17482       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17483 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17484       GMSGFMT=":"
17485     fi
17486   fi
17487
17488       if test "$XGETTEXT" != ":"; then
17489             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17490        (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
17491       : ;
17492     else
17493       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17494 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17495       XGETTEXT=":"
17496     fi
17497         rm -f messages.po
17498   fi
17499
17500   ac_config_commands="$ac_config_commands default-1"
17501
17502
17503
17504       if test "X$prefix" = "XNONE"; then
17505     acl_final_prefix="$ac_default_prefix"
17506   else
17507     acl_final_prefix="$prefix"
17508   fi
17509   if test "X$exec_prefix" = "XNONE"; then
17510     acl_final_exec_prefix='${prefix}'
17511   else
17512     acl_final_exec_prefix="$exec_prefix"
17513   fi
17514   acl_save_prefix="$prefix"
17515   prefix="$acl_final_prefix"
17516   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17517   prefix="$acl_save_prefix"
17518
17519
17520 # Check whether --with-gnu-ld was given.
17521 if test "${with_gnu_ld+set}" = set; then :
17522   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17523 else
17524   with_gnu_ld=no
17525 fi
17526
17527 # Prepare PATH_SEPARATOR.
17528 # The user is always right.
17529 if test "${PATH_SEPARATOR+set}" != set; then
17530   echo "#! /bin/sh" >conf$$.sh
17531   echo  "exit 0"   >>conf$$.sh
17532   chmod +x conf$$.sh
17533   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17534     PATH_SEPARATOR=';'
17535   else
17536     PATH_SEPARATOR=:
17537   fi
17538   rm -f conf$$.sh
17539 fi
17540 ac_prog=ld
17541 if test "$GCC" = yes; then
17542   # Check if gcc -print-prog-name=ld gives a path.
17543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17544 $as_echo_n "checking for ld used by GCC... " >&6; }
17545   case $host in
17546   *-*-mingw*)
17547     # gcc leaves a trailing carriage return which upsets mingw
17548     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17549   *)
17550     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17551   esac
17552   case $ac_prog in
17553     # Accept absolute paths.
17554     [\\/]* | [A-Za-z]:[\\/]*)
17555       re_direlt='/[^/][^/]*/\.\./'
17556       # Canonicalize the path of ld
17557       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17558       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17559         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17560       done
17561       test -z "$LD" && LD="$ac_prog"
17562       ;;
17563   "")
17564     # If it fails, then pretend we aren't using GCC.
17565     ac_prog=ld
17566     ;;
17567   *)
17568     # If it is relative, then search for the first ld in PATH.
17569     with_gnu_ld=unknown
17570     ;;
17571   esac
17572 elif test "$with_gnu_ld" = yes; then
17573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17574 $as_echo_n "checking for GNU ld... " >&6; }
17575 else
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17577 $as_echo_n "checking for non-GNU ld... " >&6; }
17578 fi
17579 if ${acl_cv_path_LD+:} false; then :
17580   $as_echo_n "(cached) " >&6
17581 else
17582   if test -z "$LD"; then
17583   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17584   for ac_dir in $PATH; do
17585     test -z "$ac_dir" && ac_dir=.
17586     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17587       acl_cv_path_LD="$ac_dir/$ac_prog"
17588       # Check to see if the program is GNU ld.  I'd rather use --version,
17589       # but apparently some GNU ld's only accept -v.
17590       # Break only if it was the GNU/non-GNU ld that we prefer.
17591       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17592       *GNU* | *'with BFD'*)
17593         test "$with_gnu_ld" != no && break ;;
17594       *)
17595         test "$with_gnu_ld" != yes && break ;;
17596       esac
17597     fi
17598   done
17599   IFS="$ac_save_ifs"
17600 else
17601   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17602 fi
17603 fi
17604
17605 LD="$acl_cv_path_LD"
17606 if test -n "$LD"; then
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17608 $as_echo "$LD" >&6; }
17609 else
17610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17612 fi
17613 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17615 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17616 if ${acl_cv_prog_gnu_ld+:} false; then :
17617   $as_echo_n "(cached) " >&6
17618 else
17619   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17620 case `$LD -v 2>&1 </dev/null` in
17621 *GNU* | *'with BFD'*)
17622   acl_cv_prog_gnu_ld=yes ;;
17623 *)
17624   acl_cv_prog_gnu_ld=no ;;
17625 esac
17626 fi
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17628 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17629 with_gnu_ld=$acl_cv_prog_gnu_ld
17630
17631
17632
17633
17634                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17635 $as_echo_n "checking for shared library run path origin... " >&6; }
17636 if ${acl_cv_rpath+:} false; then :
17637   $as_echo_n "(cached) " >&6
17638 else
17639
17640     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17641     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17642     . ./conftest.sh
17643     rm -f ./conftest.sh
17644     acl_cv_rpath=done
17645
17646 fi
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17648 $as_echo "$acl_cv_rpath" >&6; }
17649   wl="$acl_cv_wl"
17650   libext="$acl_cv_libext"
17651   shlibext="$acl_cv_shlibext"
17652   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17653   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17654   hardcode_direct="$acl_cv_hardcode_direct"
17655   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17656     # Check whether --enable-rpath was given.
17657 if test "${enable_rpath+set}" = set; then :
17658   enableval=$enable_rpath; :
17659 else
17660   enable_rpath=yes
17661 fi
17662
17663
17664
17665
17666
17667
17668
17669
17670     use_additional=yes
17671
17672   acl_save_prefix="$prefix"
17673   prefix="$acl_final_prefix"
17674   acl_save_exec_prefix="$exec_prefix"
17675   exec_prefix="$acl_final_exec_prefix"
17676
17677     eval additional_includedir=\"$includedir\"
17678     eval additional_libdir=\"$libdir\"
17679
17680   exec_prefix="$acl_save_exec_prefix"
17681   prefix="$acl_save_prefix"
17682
17683
17684 # Check whether --with-libiconv-prefix was given.
17685 if test "${with_libiconv_prefix+set}" = set; then :
17686   withval=$with_libiconv_prefix;
17687     if test "X$withval" = "Xno"; then
17688       use_additional=no
17689     else
17690       if test "X$withval" = "X"; then
17691
17692   acl_save_prefix="$prefix"
17693   prefix="$acl_final_prefix"
17694   acl_save_exec_prefix="$exec_prefix"
17695   exec_prefix="$acl_final_exec_prefix"
17696
17697           eval additional_includedir=\"$includedir\"
17698           eval additional_libdir=\"$libdir\"
17699
17700   exec_prefix="$acl_save_exec_prefix"
17701   prefix="$acl_save_prefix"
17702
17703       else
17704         additional_includedir="$withval/include"
17705         additional_libdir="$withval/lib"
17706       fi
17707     fi
17708
17709 fi
17710
17711       LIBICONV=
17712   LTLIBICONV=
17713   INCICONV=
17714   rpathdirs=
17715   ltrpathdirs=
17716   names_already_handled=
17717   names_next_round='iconv '
17718   while test -n "$names_next_round"; do
17719     names_this_round="$names_next_round"
17720     names_next_round=
17721     for name in $names_this_round; do
17722       already_handled=
17723       for n in $names_already_handled; do
17724         if test "$n" = "$name"; then
17725           already_handled=yes
17726           break
17727         fi
17728       done
17729       if test -z "$already_handled"; then
17730         names_already_handled="$names_already_handled $name"
17731                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17732         eval value=\"\$HAVE_LIB$uppername\"
17733         if test -n "$value"; then
17734           if test "$value" = yes; then
17735             eval value=\"\$LIB$uppername\"
17736             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17737             eval value=\"\$LTLIB$uppername\"
17738             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17739           else
17740                                     :
17741           fi
17742         else
17743                               found_dir=
17744           found_la=
17745           found_so=
17746           found_a=
17747           if test $use_additional = yes; then
17748             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17749               found_dir="$additional_libdir"
17750               found_so="$additional_libdir/lib$name.$shlibext"
17751               if test -f "$additional_libdir/lib$name.la"; then
17752                 found_la="$additional_libdir/lib$name.la"
17753               fi
17754             else
17755               if test -f "$additional_libdir/lib$name.$libext"; then
17756                 found_dir="$additional_libdir"
17757                 found_a="$additional_libdir/lib$name.$libext"
17758                 if test -f "$additional_libdir/lib$name.la"; then
17759                   found_la="$additional_libdir/lib$name.la"
17760                 fi
17761               fi
17762             fi
17763           fi
17764           if test "X$found_dir" = "X"; then
17765             for x in $LDFLAGS $LTLIBICONV; do
17766
17767   acl_save_prefix="$prefix"
17768   prefix="$acl_final_prefix"
17769   acl_save_exec_prefix="$exec_prefix"
17770   exec_prefix="$acl_final_exec_prefix"
17771   eval x=\"$x\"
17772   exec_prefix="$acl_save_exec_prefix"
17773   prefix="$acl_save_prefix"
17774
17775               case "$x" in
17776                 -L*)
17777                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17778                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17779                     found_dir="$dir"
17780                     found_so="$dir/lib$name.$shlibext"
17781                     if test -f "$dir/lib$name.la"; then
17782                       found_la="$dir/lib$name.la"
17783                     fi
17784                   else
17785                     if test -f "$dir/lib$name.$libext"; then
17786                       found_dir="$dir"
17787                       found_a="$dir/lib$name.$libext"
17788                       if test -f "$dir/lib$name.la"; then
17789                         found_la="$dir/lib$name.la"
17790                       fi
17791                     fi
17792                   fi
17793                   ;;
17794               esac
17795               if test "X$found_dir" != "X"; then
17796                 break
17797               fi
17798             done
17799           fi
17800           if test "X$found_dir" != "X"; then
17801                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17802             if test "X$found_so" != "X"; then
17803                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17804                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17805               else
17806                                                                                 haveit=
17807                 for x in $ltrpathdirs; do
17808                   if test "X$x" = "X$found_dir"; then
17809                     haveit=yes
17810                     break
17811                   fi
17812                 done
17813                 if test -z "$haveit"; then
17814                   ltrpathdirs="$ltrpathdirs $found_dir"
17815                 fi
17816                                 if test "$hardcode_direct" = yes; then
17817                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17818                 else
17819                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17820                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17821                                                             haveit=
17822                     for x in $rpathdirs; do
17823                       if test "X$x" = "X$found_dir"; then
17824                         haveit=yes
17825                         break
17826                       fi
17827                     done
17828                     if test -z "$haveit"; then
17829                       rpathdirs="$rpathdirs $found_dir"
17830                     fi
17831                   else
17832                                                                                 haveit=
17833                     for x in $LDFLAGS $LIBICONV; do
17834
17835   acl_save_prefix="$prefix"
17836   prefix="$acl_final_prefix"
17837   acl_save_exec_prefix="$exec_prefix"
17838   exec_prefix="$acl_final_exec_prefix"
17839   eval x=\"$x\"
17840   exec_prefix="$acl_save_exec_prefix"
17841   prefix="$acl_save_prefix"
17842
17843                       if test "X$x" = "X-L$found_dir"; then
17844                         haveit=yes
17845                         break
17846                       fi
17847                     done
17848                     if test -z "$haveit"; then
17849                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17850                     fi
17851                     if test "$hardcode_minus_L" != no; then
17852                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17853                     else
17854                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17855                     fi
17856                   fi
17857                 fi
17858               fi
17859             else
17860               if test "X$found_a" != "X"; then
17861                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17862               else
17863                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17864               fi
17865             fi
17866                         additional_includedir=
17867             case "$found_dir" in
17868               */lib | */lib/)
17869                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17870                 additional_includedir="$basedir/include"
17871                 ;;
17872             esac
17873             if test "X$additional_includedir" != "X"; then
17874                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17875                 haveit=
17876                 if test "X$additional_includedir" = "X/usr/local/include"; then
17877                   if test -n "$GCC"; then
17878                     case $host_os in
17879                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17880                     esac
17881                   fi
17882                 fi
17883                 if test -z "$haveit"; then
17884                   for x in $CPPFLAGS $INCICONV; do
17885
17886   acl_save_prefix="$prefix"
17887   prefix="$acl_final_prefix"
17888   acl_save_exec_prefix="$exec_prefix"
17889   exec_prefix="$acl_final_exec_prefix"
17890   eval x=\"$x\"
17891   exec_prefix="$acl_save_exec_prefix"
17892   prefix="$acl_save_prefix"
17893
17894                     if test "X$x" = "X-I$additional_includedir"; then
17895                       haveit=yes
17896                       break
17897                     fi
17898                   done
17899                   if test -z "$haveit"; then
17900                     if test -d "$additional_includedir"; then
17901                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17902                     fi
17903                   fi
17904                 fi
17905               fi
17906             fi
17907                         if test -n "$found_la"; then
17908                                                         save_libdir="$libdir"
17909               case "$found_la" in
17910                 */* | *\\*) . "$found_la" ;;
17911                 *) . "./$found_la" ;;
17912               esac
17913               libdir="$save_libdir"
17914                             for dep in $dependency_libs; do
17915                 case "$dep" in
17916                   -L*)
17917                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17918                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17919                       haveit=
17920                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17921                         if test -n "$GCC"; then
17922                           case $host_os in
17923                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17924                           esac
17925                         fi
17926                       fi
17927                       if test -z "$haveit"; then
17928                         haveit=
17929                         for x in $LDFLAGS $LIBICONV; do
17930
17931   acl_save_prefix="$prefix"
17932   prefix="$acl_final_prefix"
17933   acl_save_exec_prefix="$exec_prefix"
17934   exec_prefix="$acl_final_exec_prefix"
17935   eval x=\"$x\"
17936   exec_prefix="$acl_save_exec_prefix"
17937   prefix="$acl_save_prefix"
17938
17939                           if test "X$x" = "X-L$additional_libdir"; then
17940                             haveit=yes
17941                             break
17942                           fi
17943                         done
17944                         if test -z "$haveit"; then
17945                           if test -d "$additional_libdir"; then
17946                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17947                           fi
17948                         fi
17949                         haveit=
17950                         for x in $LDFLAGS $LTLIBICONV; do
17951
17952   acl_save_prefix="$prefix"
17953   prefix="$acl_final_prefix"
17954   acl_save_exec_prefix="$exec_prefix"
17955   exec_prefix="$acl_final_exec_prefix"
17956   eval x=\"$x\"
17957   exec_prefix="$acl_save_exec_prefix"
17958   prefix="$acl_save_prefix"
17959
17960                           if test "X$x" = "X-L$additional_libdir"; then
17961                             haveit=yes
17962                             break
17963                           fi
17964                         done
17965                         if test -z "$haveit"; then
17966                           if test -d "$additional_libdir"; then
17967                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17968                           fi
17969                         fi
17970                       fi
17971                     fi
17972                     ;;
17973                   -R*)
17974                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17975                     if test "$enable_rpath" != no; then
17976                                                                   haveit=
17977                       for x in $rpathdirs; do
17978                         if test "X$x" = "X$dir"; then
17979                           haveit=yes
17980                           break
17981                         fi
17982                       done
17983                       if test -z "$haveit"; then
17984                         rpathdirs="$rpathdirs $dir"
17985                       fi
17986                                                                   haveit=
17987                       for x in $ltrpathdirs; do
17988                         if test "X$x" = "X$dir"; then
17989                           haveit=yes
17990                           break
17991                         fi
17992                       done
17993                       if test -z "$haveit"; then
17994                         ltrpathdirs="$ltrpathdirs $dir"
17995                       fi
17996                     fi
17997                     ;;
17998                   -l*)
17999                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18000                     ;;
18001                   *.la)
18002                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18003                     ;;
18004                   *)
18005                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18006                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18007                     ;;
18008                 esac
18009               done
18010             fi
18011           else
18012                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18013             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18014           fi
18015         fi
18016       fi
18017     done
18018   done
18019   if test "X$rpathdirs" != "X"; then
18020     if test -n "$hardcode_libdir_separator"; then
18021                         alldirs=
18022       for found_dir in $rpathdirs; do
18023         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18024       done
18025             acl_save_libdir="$libdir"
18026       libdir="$alldirs"
18027       eval flag=\"$hardcode_libdir_flag_spec\"
18028       libdir="$acl_save_libdir"
18029       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18030     else
18031             for found_dir in $rpathdirs; do
18032         acl_save_libdir="$libdir"
18033         libdir="$found_dir"
18034         eval flag=\"$hardcode_libdir_flag_spec\"
18035         libdir="$acl_save_libdir"
18036         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18037       done
18038     fi
18039   fi
18040   if test "X$ltrpathdirs" != "X"; then
18041             for found_dir in $ltrpathdirs; do
18042       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18043     done
18044   fi
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18064 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18065 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18066   $as_echo_n "(cached) " >&6
18067 else
18068   gt_save_CPPFLAGS="$CPPFLAGS"
18069      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18070      gt_save_LIBS="$LIBS"
18071      LIBS="$LIBS -framework CoreFoundation"
18072      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h.  */
18074 #include <CFPreferences.h>
18075 int
18076 main ()
18077 {
18078 CFPreferencesCopyAppValue(NULL, NULL)
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 if ac_fn_c_try_link "$LINENO"; then :
18084   gt_cv_func_CFPreferencesCopyAppValue=yes
18085 else
18086   gt_cv_func_CFPreferencesCopyAppValue=no
18087 fi
18088 rm -f core conftest.err conftest.$ac_objext \
18089     conftest$ac_exeext conftest.$ac_ext
18090      CPPFLAGS="$gt_save_CPPFLAGS"
18091      LIBS="$gt_save_LIBS"
18092 fi
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18094 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18095   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18096
18097 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18098
18099   fi
18100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18101 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18102 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18103   $as_echo_n "(cached) " >&6
18104 else
18105   gt_save_CPPFLAGS="$CPPFLAGS"
18106      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18107      gt_save_LIBS="$LIBS"
18108      LIBS="$LIBS -framework CoreFoundation"
18109      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h.  */
18111 #include <CFLocale.h>
18112 int
18113 main ()
18114 {
18115 CFLocaleCopyCurrent();
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 if ac_fn_c_try_link "$LINENO"; then :
18121   gt_cv_func_CFLocaleCopyCurrent=yes
18122 else
18123   gt_cv_func_CFLocaleCopyCurrent=no
18124 fi
18125 rm -f core conftest.err conftest.$ac_objext \
18126     conftest$ac_exeext conftest.$ac_ext
18127      CPPFLAGS="$gt_save_CPPFLAGS"
18128      LIBS="$gt_save_LIBS"
18129 fi
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18131 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18132   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18133
18134 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18135
18136   fi
18137   INTL_MACOSX_LIBS=
18138   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18139     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18140   fi
18141
18142
18143
18144
18145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18146 $as_echo_n "checking whether NLS is requested... " >&6; }
18147     # Check whether --enable-nls was given.
18148 if test "${enable_nls+set}" = set; then :
18149   enableval=$enable_nls; USE_NLS=$enableval
18150 else
18151   USE_NLS=yes
18152 fi
18153
18154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18155 $as_echo "$USE_NLS" >&6; }
18156
18157
18158
18159
18160   LIBINTL=
18161   LTLIBINTL=
18162   POSUB=
18163
18164     if test "$USE_NLS" = "yes"; then
18165     gt_use_preinstalled_gnugettext=no
18166
18167
18168
18169
18170
18171
18172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18173 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18174 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18175   $as_echo_n "(cached) " >&6
18176 else
18177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h.  */
18179 #include <libintl.h>
18180 extern int _nl_msg_cat_cntr;
18181 extern int *_nl_domain_bindings;
18182 int
18183 main ()
18184 {
18185 bindtextdomain ("", "");
18186 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 if ac_fn_c_try_link "$LINENO"; then :
18192   gt_cv_func_gnugettext1_libc=yes
18193 else
18194   gt_cv_func_gnugettext1_libc=no
18195 fi
18196 rm -f core conftest.err conftest.$ac_objext \
18197     conftest$ac_exeext conftest.$ac_ext
18198 fi
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18200 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18201
18202         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18203
18204
18205
18206
18207
18208           am_save_CPPFLAGS="$CPPFLAGS"
18209
18210   for element in $INCICONV; do
18211     haveit=
18212     for x in $CPPFLAGS; do
18213
18214   acl_save_prefix="$prefix"
18215   prefix="$acl_final_prefix"
18216   acl_save_exec_prefix="$exec_prefix"
18217   exec_prefix="$acl_final_exec_prefix"
18218   eval x=\"$x\"
18219   exec_prefix="$acl_save_exec_prefix"
18220   prefix="$acl_save_prefix"
18221
18222       if test "X$x" = "X$element"; then
18223         haveit=yes
18224         break
18225       fi
18226     done
18227     if test -z "$haveit"; then
18228       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18229     fi
18230   done
18231
18232
18233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18234 $as_echo_n "checking for iconv... " >&6; }
18235 if ${am_cv_func_iconv+:} false; then :
18236   $as_echo_n "(cached) " >&6
18237 else
18238
18239     am_cv_func_iconv="no, consider installing GNU libiconv"
18240     am_cv_lib_iconv=no
18241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h.  */
18243 #include <stdlib.h>
18244 #include <iconv.h>
18245 int
18246 main ()
18247 {
18248 iconv_t cd = iconv_open("","");
18249        iconv(cd,NULL,NULL,NULL,NULL);
18250        iconv_close(cd);
18251   ;
18252   return 0;
18253 }
18254 _ACEOF
18255 if ac_fn_c_try_link "$LINENO"; then :
18256   am_cv_func_iconv=yes
18257 fi
18258 rm -f core conftest.err conftest.$ac_objext \
18259     conftest$ac_exeext conftest.$ac_ext
18260     if test "$am_cv_func_iconv" != yes; then
18261       am_save_LIBS="$LIBS"
18262       LIBS="$LIBS $LIBICONV"
18263       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h.  */
18265 #include <stdlib.h>
18266 #include <iconv.h>
18267 int
18268 main ()
18269 {
18270 iconv_t cd = iconv_open("","");
18271          iconv(cd,NULL,NULL,NULL,NULL);
18272          iconv_close(cd);
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 if ac_fn_c_try_link "$LINENO"; then :
18278   am_cv_lib_iconv=yes
18279         am_cv_func_iconv=yes
18280 fi
18281 rm -f core conftest.err conftest.$ac_objext \
18282     conftest$ac_exeext conftest.$ac_ext
18283       LIBS="$am_save_LIBS"
18284     fi
18285
18286 fi
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18288 $as_echo "$am_cv_func_iconv" >&6; }
18289   if test "$am_cv_func_iconv" = yes; then
18290
18291 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18292
18293   fi
18294   if test "$am_cv_lib_iconv" = yes; then
18295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18296 $as_echo_n "checking how to link with libiconv... " >&6; }
18297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18298 $as_echo "$LIBICONV" >&6; }
18299   else
18300             CPPFLAGS="$am_save_CPPFLAGS"
18301     LIBICONV=
18302     LTLIBICONV=
18303   fi
18304
18305
18306
18307
18308
18309
18310     use_additional=yes
18311
18312   acl_save_prefix="$prefix"
18313   prefix="$acl_final_prefix"
18314   acl_save_exec_prefix="$exec_prefix"
18315   exec_prefix="$acl_final_exec_prefix"
18316
18317     eval additional_includedir=\"$includedir\"
18318     eval additional_libdir=\"$libdir\"
18319
18320   exec_prefix="$acl_save_exec_prefix"
18321   prefix="$acl_save_prefix"
18322
18323
18324 # Check whether --with-libintl-prefix was given.
18325 if test "${with_libintl_prefix+set}" = set; then :
18326   withval=$with_libintl_prefix;
18327     if test "X$withval" = "Xno"; then
18328       use_additional=no
18329     else
18330       if test "X$withval" = "X"; then
18331
18332   acl_save_prefix="$prefix"
18333   prefix="$acl_final_prefix"
18334   acl_save_exec_prefix="$exec_prefix"
18335   exec_prefix="$acl_final_exec_prefix"
18336
18337           eval additional_includedir=\"$includedir\"
18338           eval additional_libdir=\"$libdir\"
18339
18340   exec_prefix="$acl_save_exec_prefix"
18341   prefix="$acl_save_prefix"
18342
18343       else
18344         additional_includedir="$withval/include"
18345         additional_libdir="$withval/lib"
18346       fi
18347     fi
18348
18349 fi
18350
18351       LIBINTL=
18352   LTLIBINTL=
18353   INCINTL=
18354   rpathdirs=
18355   ltrpathdirs=
18356   names_already_handled=
18357   names_next_round='intl '
18358   while test -n "$names_next_round"; do
18359     names_this_round="$names_next_round"
18360     names_next_round=
18361     for name in $names_this_round; do
18362       already_handled=
18363       for n in $names_already_handled; do
18364         if test "$n" = "$name"; then
18365           already_handled=yes
18366           break
18367         fi
18368       done
18369       if test -z "$already_handled"; then
18370         names_already_handled="$names_already_handled $name"
18371                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18372         eval value=\"\$HAVE_LIB$uppername\"
18373         if test -n "$value"; then
18374           if test "$value" = yes; then
18375             eval value=\"\$LIB$uppername\"
18376             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18377             eval value=\"\$LTLIB$uppername\"
18378             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18379           else
18380                                     :
18381           fi
18382         else
18383                               found_dir=
18384           found_la=
18385           found_so=
18386           found_a=
18387           if test $use_additional = yes; then
18388             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18389               found_dir="$additional_libdir"
18390               found_so="$additional_libdir/lib$name.$shlibext"
18391               if test -f "$additional_libdir/lib$name.la"; then
18392                 found_la="$additional_libdir/lib$name.la"
18393               fi
18394             else
18395               if test -f "$additional_libdir/lib$name.$libext"; then
18396                 found_dir="$additional_libdir"
18397                 found_a="$additional_libdir/lib$name.$libext"
18398                 if test -f "$additional_libdir/lib$name.la"; then
18399                   found_la="$additional_libdir/lib$name.la"
18400                 fi
18401               fi
18402             fi
18403           fi
18404           if test "X$found_dir" = "X"; then
18405             for x in $LDFLAGS $LTLIBINTL; do
18406
18407   acl_save_prefix="$prefix"
18408   prefix="$acl_final_prefix"
18409   acl_save_exec_prefix="$exec_prefix"
18410   exec_prefix="$acl_final_exec_prefix"
18411   eval x=\"$x\"
18412   exec_prefix="$acl_save_exec_prefix"
18413   prefix="$acl_save_prefix"
18414
18415               case "$x" in
18416                 -L*)
18417                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18418                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18419                     found_dir="$dir"
18420                     found_so="$dir/lib$name.$shlibext"
18421                     if test -f "$dir/lib$name.la"; then
18422                       found_la="$dir/lib$name.la"
18423                     fi
18424                   else
18425                     if test -f "$dir/lib$name.$libext"; then
18426                       found_dir="$dir"
18427                       found_a="$dir/lib$name.$libext"
18428                       if test -f "$dir/lib$name.la"; then
18429                         found_la="$dir/lib$name.la"
18430                       fi
18431                     fi
18432                   fi
18433                   ;;
18434               esac
18435               if test "X$found_dir" != "X"; then
18436                 break
18437               fi
18438             done
18439           fi
18440           if test "X$found_dir" != "X"; then
18441                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18442             if test "X$found_so" != "X"; then
18443                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18444                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18445               else
18446                                                                                 haveit=
18447                 for x in $ltrpathdirs; do
18448                   if test "X$x" = "X$found_dir"; then
18449                     haveit=yes
18450                     break
18451                   fi
18452                 done
18453                 if test -z "$haveit"; then
18454                   ltrpathdirs="$ltrpathdirs $found_dir"
18455                 fi
18456                                 if test "$hardcode_direct" = yes; then
18457                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18458                 else
18459                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18460                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18461                                                             haveit=
18462                     for x in $rpathdirs; do
18463                       if test "X$x" = "X$found_dir"; then
18464                         haveit=yes
18465                         break
18466                       fi
18467                     done
18468                     if test -z "$haveit"; then
18469                       rpathdirs="$rpathdirs $found_dir"
18470                     fi
18471                   else
18472                                                                                 haveit=
18473                     for x in $LDFLAGS $LIBINTL; do
18474
18475   acl_save_prefix="$prefix"
18476   prefix="$acl_final_prefix"
18477   acl_save_exec_prefix="$exec_prefix"
18478   exec_prefix="$acl_final_exec_prefix"
18479   eval x=\"$x\"
18480   exec_prefix="$acl_save_exec_prefix"
18481   prefix="$acl_save_prefix"
18482
18483                       if test "X$x" = "X-L$found_dir"; then
18484                         haveit=yes
18485                         break
18486                       fi
18487                     done
18488                     if test -z "$haveit"; then
18489                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18490                     fi
18491                     if test "$hardcode_minus_L" != no; then
18492                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18493                     else
18494                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18495                     fi
18496                   fi
18497                 fi
18498               fi
18499             else
18500               if test "X$found_a" != "X"; then
18501                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18502               else
18503                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18504               fi
18505             fi
18506                         additional_includedir=
18507             case "$found_dir" in
18508               */lib | */lib/)
18509                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18510                 additional_includedir="$basedir/include"
18511                 ;;
18512             esac
18513             if test "X$additional_includedir" != "X"; then
18514                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18515                 haveit=
18516                 if test "X$additional_includedir" = "X/usr/local/include"; then
18517                   if test -n "$GCC"; then
18518                     case $host_os in
18519                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18520                     esac
18521                   fi
18522                 fi
18523                 if test -z "$haveit"; then
18524                   for x in $CPPFLAGS $INCINTL; do
18525
18526   acl_save_prefix="$prefix"
18527   prefix="$acl_final_prefix"
18528   acl_save_exec_prefix="$exec_prefix"
18529   exec_prefix="$acl_final_exec_prefix"
18530   eval x=\"$x\"
18531   exec_prefix="$acl_save_exec_prefix"
18532   prefix="$acl_save_prefix"
18533
18534                     if test "X$x" = "X-I$additional_includedir"; then
18535                       haveit=yes
18536                       break
18537                     fi
18538                   done
18539                   if test -z "$haveit"; then
18540                     if test -d "$additional_includedir"; then
18541                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18542                     fi
18543                   fi
18544                 fi
18545               fi
18546             fi
18547                         if test -n "$found_la"; then
18548                                                         save_libdir="$libdir"
18549               case "$found_la" in
18550                 */* | *\\*) . "$found_la" ;;
18551                 *) . "./$found_la" ;;
18552               esac
18553               libdir="$save_libdir"
18554                             for dep in $dependency_libs; do
18555                 case "$dep" in
18556                   -L*)
18557                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18558                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18559                       haveit=
18560                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18561                         if test -n "$GCC"; then
18562                           case $host_os in
18563                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18564                           esac
18565                         fi
18566                       fi
18567                       if test -z "$haveit"; then
18568                         haveit=
18569                         for x in $LDFLAGS $LIBINTL; do
18570
18571   acl_save_prefix="$prefix"
18572   prefix="$acl_final_prefix"
18573   acl_save_exec_prefix="$exec_prefix"
18574   exec_prefix="$acl_final_exec_prefix"
18575   eval x=\"$x\"
18576   exec_prefix="$acl_save_exec_prefix"
18577   prefix="$acl_save_prefix"
18578
18579                           if test "X$x" = "X-L$additional_libdir"; then
18580                             haveit=yes
18581                             break
18582                           fi
18583                         done
18584                         if test -z "$haveit"; then
18585                           if test -d "$additional_libdir"; then
18586                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18587                           fi
18588                         fi
18589                         haveit=
18590                         for x in $LDFLAGS $LTLIBINTL; do
18591
18592   acl_save_prefix="$prefix"
18593   prefix="$acl_final_prefix"
18594   acl_save_exec_prefix="$exec_prefix"
18595   exec_prefix="$acl_final_exec_prefix"
18596   eval x=\"$x\"
18597   exec_prefix="$acl_save_exec_prefix"
18598   prefix="$acl_save_prefix"
18599
18600                           if test "X$x" = "X-L$additional_libdir"; then
18601                             haveit=yes
18602                             break
18603                           fi
18604                         done
18605                         if test -z "$haveit"; then
18606                           if test -d "$additional_libdir"; then
18607                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18608                           fi
18609                         fi
18610                       fi
18611                     fi
18612                     ;;
18613                   -R*)
18614                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18615                     if test "$enable_rpath" != no; then
18616                                                                   haveit=
18617                       for x in $rpathdirs; do
18618                         if test "X$x" = "X$dir"; then
18619                           haveit=yes
18620                           break
18621                         fi
18622                       done
18623                       if test -z "$haveit"; then
18624                         rpathdirs="$rpathdirs $dir"
18625                       fi
18626                                                                   haveit=
18627                       for x in $ltrpathdirs; do
18628                         if test "X$x" = "X$dir"; then
18629                           haveit=yes
18630                           break
18631                         fi
18632                       done
18633                       if test -z "$haveit"; then
18634                         ltrpathdirs="$ltrpathdirs $dir"
18635                       fi
18636                     fi
18637                     ;;
18638                   -l*)
18639                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18640                     ;;
18641                   *.la)
18642                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18643                     ;;
18644                   *)
18645                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18646                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18647                     ;;
18648                 esac
18649               done
18650             fi
18651           else
18652                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18653             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18654           fi
18655         fi
18656       fi
18657     done
18658   done
18659   if test "X$rpathdirs" != "X"; then
18660     if test -n "$hardcode_libdir_separator"; then
18661                         alldirs=
18662       for found_dir in $rpathdirs; do
18663         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18664       done
18665             acl_save_libdir="$libdir"
18666       libdir="$alldirs"
18667       eval flag=\"$hardcode_libdir_flag_spec\"
18668       libdir="$acl_save_libdir"
18669       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18670     else
18671             for found_dir in $rpathdirs; do
18672         acl_save_libdir="$libdir"
18673         libdir="$found_dir"
18674         eval flag=\"$hardcode_libdir_flag_spec\"
18675         libdir="$acl_save_libdir"
18676         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18677       done
18678     fi
18679   fi
18680   if test "X$ltrpathdirs" != "X"; then
18681             for found_dir in $ltrpathdirs; do
18682       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18683     done
18684   fi
18685
18686           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18687 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18688 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18689   $as_echo_n "(cached) " >&6
18690 else
18691   gt_save_CPPFLAGS="$CPPFLAGS"
18692             CPPFLAGS="$CPPFLAGS $INCINTL"
18693             gt_save_LIBS="$LIBS"
18694             LIBS="$LIBS $LIBINTL"
18695                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h.  */
18697 #include <libintl.h>
18698 extern int _nl_msg_cat_cntr;
18699 extern
18700 #ifdef __cplusplus
18701 "C"
18702 #endif
18703 const char *_nl_expand_alias (const char *);
18704 int
18705 main ()
18706 {
18707 bindtextdomain ("", "");
18708 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18709   ;
18710   return 0;
18711 }
18712 _ACEOF
18713 if ac_fn_c_try_link "$LINENO"; then :
18714   gt_cv_func_gnugettext1_libintl=yes
18715 else
18716   gt_cv_func_gnugettext1_libintl=no
18717 fi
18718 rm -f core conftest.err conftest.$ac_objext \
18719     conftest$ac_exeext conftest.$ac_ext
18720                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18721               LIBS="$LIBS $LIBICONV"
18722               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723 /* end confdefs.h.  */
18724 #include <libintl.h>
18725 extern int _nl_msg_cat_cntr;
18726 extern
18727 #ifdef __cplusplus
18728 "C"
18729 #endif
18730 const char *_nl_expand_alias (const char *);
18731 int
18732 main ()
18733 {
18734 bindtextdomain ("", "");
18735 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18736   ;
18737   return 0;
18738 }
18739 _ACEOF
18740 if ac_fn_c_try_link "$LINENO"; then :
18741   LIBINTL="$LIBINTL $LIBICONV"
18742                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18743                 gt_cv_func_gnugettext1_libintl=yes
18744
18745 fi
18746 rm -f core conftest.err conftest.$ac_objext \
18747     conftest$ac_exeext conftest.$ac_ext
18748             fi
18749             CPPFLAGS="$gt_save_CPPFLAGS"
18750             LIBS="$gt_save_LIBS"
18751 fi
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18753 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18754         fi
18755
18756                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18757            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18758                 && test "$PACKAGE" != gettext-runtime \
18759                 && test "$PACKAGE" != gettext-tools; }; then
18760           gt_use_preinstalled_gnugettext=yes
18761         else
18762                     LIBINTL=
18763           LTLIBINTL=
18764           INCINTL=
18765         fi
18766
18767
18768
18769     if test -n "$INTL_MACOSX_LIBS"; then
18770       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18771          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18772                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18773         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18774       fi
18775     fi
18776
18777     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18778        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18779
18780 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18781
18782     else
18783       USE_NLS=no
18784     fi
18785   fi
18786
18787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18788 $as_echo_n "checking whether to use NLS... " >&6; }
18789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18790 $as_echo "$USE_NLS" >&6; }
18791   if test "$USE_NLS" = "yes"; then
18792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18793 $as_echo_n "checking where the gettext function comes from... " >&6; }
18794     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18795       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18796         gt_source="external libintl"
18797       else
18798         gt_source="libc"
18799       fi
18800     else
18801       gt_source="included intl directory"
18802     fi
18803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18804 $as_echo "$gt_source" >&6; }
18805   fi
18806
18807   if test "$USE_NLS" = "yes"; then
18808
18809     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18810       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18812 $as_echo_n "checking how to link with libintl... " >&6; }
18813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18814 $as_echo "$LIBINTL" >&6; }
18815
18816   for element in $INCINTL; do
18817     haveit=
18818     for x in $CPPFLAGS; do
18819
18820   acl_save_prefix="$prefix"
18821   prefix="$acl_final_prefix"
18822   acl_save_exec_prefix="$exec_prefix"
18823   exec_prefix="$acl_final_exec_prefix"
18824   eval x=\"$x\"
18825   exec_prefix="$acl_save_exec_prefix"
18826   prefix="$acl_save_prefix"
18827
18828       if test "X$x" = "X$element"; then
18829         haveit=yes
18830         break
18831       fi
18832     done
18833     if test -z "$haveit"; then
18834       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18835     fi
18836   done
18837
18838       fi
18839
18840
18841 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18842
18843
18844 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18845
18846     fi
18847
18848         POSUB=po
18849   fi
18850
18851
18852
18853     INTLLIBS="$LIBINTL"
18854
18855
18856
18857
18858
18859
18860
18861 os_name=`uname -s 2>/dev/null`
18862 if test x${prefix} = xNONE ; then
18863    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18864       sysconfdir=/etc/bacula
18865    fi
18866
18867    if test `eval echo ${libdir}` = NONE/lib ; then
18868       case ${os_name} in
18869       Linux)
18870          os_processor=`uname -p 2>/dev/null`
18871          case ${os_processor} in
18872          x86_64)
18873             libdir=/usr/lib64
18874             ;;
18875          *)
18876             libdir=/usr/lib
18877             ;;
18878          esac
18879          ;;
18880       *)
18881          libdir=/usr/lib
18882          ;;
18883       esac
18884    fi
18885
18886    if test `eval echo ${includedir}` = NONE/include ; then
18887       includedir=/usr/include
18888    fi
18889
18890    if test `eval echo ${datarootdir}` = NONE/share ; then
18891       datarootdir=/usr/share
18892    fi
18893    prefix=
18894 fi
18895
18896 if test x${exec_prefix} = xNONE ; then
18897    exec_prefix=${prefix}
18898 fi
18899
18900 sysconfdir=`eval echo ${sysconfdir}`
18901 datarootdir=`eval echo ${datarootdir}`
18902 docdir=`eval echo ${docdir}`
18903 htmldir=`eval echo ${htmldir}`
18904 libdir=`eval echo ${libdir}`
18905 includedir=`eval echo ${includedir}`
18906 localedir=`eval echo ${datarootdir}/locale`
18907 cat >>confdefs.h <<_ACEOF
18908 #define SYSCONFDIR "$sysconfdir"
18909 _ACEOF
18910
18911 cat >>confdefs.h <<_ACEOF
18912 #define LOCALEDIR "$localedir"
18913 _ACEOF
18914
18915
18916 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18917    sbindir=${exec_prefix}/sbin
18918 fi
18919 sbindir=`eval echo ${sbindir}`
18920
18921 if test x$mandir = x'${prefix}/man' ; then
18922    mandir=/usr/share/man
18923 fi
18924
18925 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18926    htmldir=`eval echo ${docdir}html`
18927 fi
18928
18929 if test x$docdir = x'/usr/share/doc/' ; then
18930    docdir=`eval echo ${docdir}bacula`
18931 fi
18932
18933
18934 for ac_prog in msgfmt
18935 do
18936   # Extract the first word of "$ac_prog", so it can be a program name with args.
18937 set dummy $ac_prog; ac_word=$2
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18939 $as_echo_n "checking for $ac_word... " >&6; }
18940 if ${ac_cv_path_MSGFMT+:} false; then :
18941   $as_echo_n "(cached) " >&6
18942 else
18943   case $MSGFMT in
18944   [\\/]* | ?:[\\/]*)
18945   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18946   ;;
18947   *)
18948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18949 for as_dir in $PATH
18950 do
18951   IFS=$as_save_IFS
18952   test -z "$as_dir" && as_dir=.
18953     for ac_exec_ext in '' $ac_executable_extensions; do
18954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18955     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18957     break 2
18958   fi
18959 done
18960   done
18961 IFS=$as_save_IFS
18962
18963   ;;
18964 esac
18965 fi
18966 MSGFMT=$ac_cv_path_MSGFMT
18967 if test -n "$MSGFMT"; then
18968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18969 $as_echo "$MSGFMT" >&6; }
18970 else
18971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 $as_echo "no" >&6; }
18973 fi
18974
18975
18976   test -n "$MSGFMT" && break
18977 done
18978 test -n "$MSGFMT" || MSGFMT="no"
18979
18980 if test "$MSGFMT" = "no"
18981 then
18982    echo 'msgfmt program not found, disabling NLS !'
18983    USE_NLS=no
18984    USE_INCLUDED_LIBINTL=no
18985 #else
18986
18987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18988 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18989 if ${ac_cv_gnu_library_2+:} false; then :
18990   $as_echo_n "(cached) " >&6
18991 else
18992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h.  */
18994
18995 #include <features.h>
18996 #ifdef __GNU_LIBRARY__
18997  #if (__GLIBC__ >= 2)
18998   Lucky GNU user
18999  #endif
19000 #endif
19001
19002 _ACEOF
19003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19004   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19005   ac_cv_gnu_library_2=yes
19006 else
19007   ac_cv_gnu_library_2=no
19008 fi
19009 rm -f conftest*
19010
19011
19012
19013 fi
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19015 $as_echo "$ac_cv_gnu_library_2" >&6; }
19016
19017     GLIBC2="$ac_cv_gnu_library_2"
19018
19019
19020 if test -n "$ac_tool_prefix"; then
19021   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19022 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19024 $as_echo_n "checking for $ac_word... " >&6; }
19025 if ${ac_cv_prog_RANLIB+:} false; then :
19026   $as_echo_n "(cached) " >&6
19027 else
19028   if test -n "$RANLIB"; then
19029   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19030 else
19031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19032 for as_dir in $PATH
19033 do
19034   IFS=$as_save_IFS
19035   test -z "$as_dir" && as_dir=.
19036     for ac_exec_ext in '' $ac_executable_extensions; do
19037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19038     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19040     break 2
19041   fi
19042 done
19043   done
19044 IFS=$as_save_IFS
19045
19046 fi
19047 fi
19048 RANLIB=$ac_cv_prog_RANLIB
19049 if test -n "$RANLIB"; then
19050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19051 $as_echo "$RANLIB" >&6; }
19052 else
19053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19054 $as_echo "no" >&6; }
19055 fi
19056
19057
19058 fi
19059 if test -z "$ac_cv_prog_RANLIB"; then
19060   ac_ct_RANLIB=$RANLIB
19061   # Extract the first word of "ranlib", so it can be a program name with args.
19062 set dummy ranlib; ac_word=$2
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19064 $as_echo_n "checking for $ac_word... " >&6; }
19065 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19066   $as_echo_n "(cached) " >&6
19067 else
19068   if test -n "$ac_ct_RANLIB"; then
19069   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19070 else
19071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19073 do
19074   IFS=$as_save_IFS
19075   test -z "$as_dir" && as_dir=.
19076     for ac_exec_ext in '' $ac_executable_extensions; do
19077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19078     ac_cv_prog_ac_ct_RANLIB="ranlib"
19079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19080     break 2
19081   fi
19082 done
19083   done
19084 IFS=$as_save_IFS
19085
19086 fi
19087 fi
19088 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19089 if test -n "$ac_ct_RANLIB"; then
19090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19091 $as_echo "$ac_ct_RANLIB" >&6; }
19092 else
19093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19094 $as_echo "no" >&6; }
19095 fi
19096
19097   if test "x$ac_ct_RANLIB" = x; then
19098     RANLIB=":"
19099   else
19100     case $cross_compiling:$ac_tool_warned in
19101 yes:)
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19104 ac_tool_warned=yes ;;
19105 esac
19106     RANLIB=$ac_ct_RANLIB
19107   fi
19108 else
19109   RANLIB="$ac_cv_prog_RANLIB"
19110 fi
19111
19112
19113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19114 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19115 if ${ac_cv_lib_cposix_strerror+:} false; then :
19116   $as_echo_n "(cached) " >&6
19117 else
19118   ac_check_lib_save_LIBS=$LIBS
19119 LIBS="-lcposix  $LIBS"
19120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19121 /* end confdefs.h.  */
19122
19123 /* Override any GCC internal prototype to avoid an error.
19124    Use char because int might match the return type of a GCC
19125    builtin and then its argument prototype would still apply.  */
19126 #ifdef __cplusplus
19127 extern "C"
19128 #endif
19129 char strerror ();
19130 int
19131 main ()
19132 {
19133 return strerror ();
19134   ;
19135   return 0;
19136 }
19137 _ACEOF
19138 if ac_fn_c_try_link "$LINENO"; then :
19139   ac_cv_lib_cposix_strerror=yes
19140 else
19141   ac_cv_lib_cposix_strerror=no
19142 fi
19143 rm -f core conftest.err conftest.$ac_objext \
19144     conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19146 fi
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19148 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19149 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19150   LIBS="$LIBS -lcposix"
19151 fi
19152
19153
19154
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19156 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19157 if ${ac_cv_c_const+:} false; then :
19158   $as_echo_n "(cached) " >&6
19159 else
19160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h.  */
19162
19163 int
19164 main ()
19165 {
19166
19167 #ifndef __cplusplus
19168   /* Ultrix mips cc rejects this sort of thing.  */
19169   typedef int charset[2];
19170   const charset cs = { 0, 0 };
19171   /* SunOS 4.1.1 cc rejects this.  */
19172   char const *const *pcpcc;
19173   char **ppc;
19174   /* NEC SVR4.0.2 mips cc rejects this.  */
19175   struct point {int x, y;};
19176   static struct point const zero = {0,0};
19177   /* AIX XL C 1.02.0.0 rejects this.
19178      It does not let you subtract one const X* pointer from another in
19179      an arm of an if-expression whose if-part is not a constant
19180      expression */
19181   const char *g = "string";
19182   pcpcc = &g + (g ? g-g : 0);
19183   /* HPUX 7.0 cc rejects these. */
19184   ++pcpcc;
19185   ppc = (char**) pcpcc;
19186   pcpcc = (char const *const *) ppc;
19187   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19188     char tx;
19189     char *t = &tx;
19190     char const *s = 0 ? (char *) 0 : (char const *) 0;
19191
19192     *t++ = 0;
19193     if (s) return 0;
19194   }
19195   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19196     int x[] = {25, 17};
19197     const int *foo = &x[0];
19198     ++foo;
19199   }
19200   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19201     typedef const int *iptr;
19202     iptr p = 0;
19203     ++p;
19204   }
19205   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19206        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19207     struct s { int j; const int *ap[3]; } bx;
19208     struct s *b = &bx; b->j = 5;
19209   }
19210   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19211     const int foo = 10;
19212     if (!foo) return 0;
19213   }
19214   return !cs[0] && !zero.x;
19215 #endif
19216
19217   ;
19218   return 0;
19219 }
19220 _ACEOF
19221 if ac_fn_c_try_compile "$LINENO"; then :
19222   ac_cv_c_const=yes
19223 else
19224   ac_cv_c_const=no
19225 fi
19226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 fi
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19229 $as_echo "$ac_cv_c_const" >&6; }
19230 if test $ac_cv_c_const = no; then
19231
19232 $as_echo "#define const /**/" >>confdefs.h
19233
19234 fi
19235
19236
19237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19238 $as_echo_n "checking for signed... " >&6; }
19239 if ${bh_cv_c_signed+:} false; then :
19240   $as_echo_n "(cached) " >&6
19241 else
19242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19243 /* end confdefs.h.  */
19244
19245 int
19246 main ()
19247 {
19248 signed char x;
19249   ;
19250   return 0;
19251 }
19252 _ACEOF
19253 if ac_fn_c_try_compile "$LINENO"; then :
19254   bh_cv_c_signed=yes
19255 else
19256   bh_cv_c_signed=no
19257 fi
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 fi
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19261 $as_echo "$bh_cv_c_signed" >&6; }
19262   if test $bh_cv_c_signed = no; then
19263
19264 $as_echo "#define signed /**/" >>confdefs.h
19265
19266   fi
19267
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19269 $as_echo_n "checking for inline... " >&6; }
19270 if ${ac_cv_c_inline+:} false; then :
19271   $as_echo_n "(cached) " >&6
19272 else
19273   ac_cv_c_inline=no
19274 for ac_kw in inline __inline__ __inline; do
19275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h.  */
19277 #ifndef __cplusplus
19278 typedef int foo_t;
19279 static $ac_kw foo_t static_foo () {return 0; }
19280 $ac_kw foo_t foo () {return 0; }
19281 #endif
19282
19283 _ACEOF
19284 if ac_fn_c_try_compile "$LINENO"; then :
19285   ac_cv_c_inline=$ac_kw
19286 fi
19287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288   test "$ac_cv_c_inline" != no && break
19289 done
19290
19291 fi
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19293 $as_echo "$ac_cv_c_inline" >&6; }
19294
19295 case $ac_cv_c_inline in
19296   inline | yes) ;;
19297   *)
19298     case $ac_cv_c_inline in
19299       no) ac_val=;;
19300       *) ac_val=$ac_cv_c_inline;;
19301     esac
19302     cat >>confdefs.h <<_ACEOF
19303 #ifndef __cplusplus
19304 #define inline $ac_val
19305 #endif
19306 _ACEOF
19307     ;;
19308 esac
19309
19310 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19311 if test "x$ac_cv_type_off_t" = xyes; then :
19312
19313 else
19314
19315 cat >>confdefs.h <<_ACEOF
19316 #define off_t long int
19317 _ACEOF
19318
19319 fi
19320
19321 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19322 if test "x$ac_cv_type_size_t" = xyes; then :
19323
19324 else
19325
19326 cat >>confdefs.h <<_ACEOF
19327 #define size_t unsigned int
19328 _ACEOF
19329
19330 fi
19331
19332
19333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19334 $as_echo_n "checking for long long... " >&6; }
19335 if ${ac_cv_type_long_long+:} false; then :
19336   $as_echo_n "(cached) " >&6
19337 else
19338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h.  */
19340 long long ll = 1LL; int i = 63;
19341 int
19342 main ()
19343 {
19344 long long llmax = (long long) -1;
19345      return ll << i | ll >> i | llmax / ll | llmax % ll;
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 if ac_fn_c_try_link "$LINENO"; then :
19351   ac_cv_type_long_long=yes
19352 else
19353   ac_cv_type_long_long=no
19354 fi
19355 rm -f core conftest.err conftest.$ac_objext \
19356     conftest$ac_exeext conftest.$ac_ext
19357 fi
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19359 $as_echo "$ac_cv_type_long_long" >&6; }
19360   if test $ac_cv_type_long_long = yes; then
19361
19362 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19363
19364   fi
19365
19366
19367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19368 $as_echo_n "checking for long double... " >&6; }
19369 if ${gt_cv_c_long_double+:} false; then :
19370   $as_echo_n "(cached) " >&6
19371 else
19372   if test "$GCC" = yes; then
19373        gt_cv_c_long_double=yes
19374      else
19375        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h.  */
19377
19378          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19379          long double foo = 0.0;
19380          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19381          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19382
19383 int
19384 main ()
19385 {
19386
19387   ;
19388   return 0;
19389 }
19390 _ACEOF
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392   gt_cv_c_long_double=yes
19393 else
19394   gt_cv_c_long_double=no
19395 fi
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397      fi
19398 fi
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19400 $as_echo "$gt_cv_c_long_double" >&6; }
19401   if test $gt_cv_c_long_double = yes; then
19402
19403 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19404
19405   fi
19406
19407
19408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19409 $as_echo_n "checking for wchar_t... " >&6; }
19410 if ${gt_cv_c_wchar_t+:} false; then :
19411   $as_echo_n "(cached) " >&6
19412 else
19413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414 /* end confdefs.h.  */
19415 #include <stddef.h>
19416        wchar_t foo = (wchar_t)'\0';
19417 int
19418 main ()
19419 {
19420
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 if ac_fn_c_try_compile "$LINENO"; then :
19426   gt_cv_c_wchar_t=yes
19427 else
19428   gt_cv_c_wchar_t=no
19429 fi
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 fi
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19433 $as_echo "$gt_cv_c_wchar_t" >&6; }
19434   if test $gt_cv_c_wchar_t = yes; then
19435
19436 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19437
19438   fi
19439
19440
19441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19442 $as_echo_n "checking for wint_t... " >&6; }
19443 if ${gt_cv_c_wint_t+:} false; then :
19444   $as_echo_n "(cached) " >&6
19445 else
19446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h.  */
19448 #include <wchar.h>
19449        wint_t foo = (wchar_t)'\0';
19450 int
19451 main ()
19452 {
19453
19454   ;
19455   return 0;
19456 }
19457 _ACEOF
19458 if ac_fn_c_try_compile "$LINENO"; then :
19459   gt_cv_c_wint_t=yes
19460 else
19461   gt_cv_c_wint_t=no
19462 fi
19463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19466 $as_echo "$gt_cv_c_wint_t" >&6; }
19467   if test $gt_cv_c_wint_t = yes; then
19468
19469 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19470
19471   fi
19472
19473
19474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19475 $as_echo_n "checking for inttypes.h... " >&6; }
19476 if ${gl_cv_header_inttypes_h+:} false; then :
19477   $as_echo_n "(cached) " >&6
19478 else
19479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h.  */
19481 #include <sys/types.h>
19482 #include <inttypes.h>
19483 int
19484 main ()
19485 {
19486 uintmax_t i = (uintmax_t) -1;
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 if ac_fn_c_try_compile "$LINENO"; then :
19492   gl_cv_header_inttypes_h=yes
19493 else
19494   gl_cv_header_inttypes_h=no
19495 fi
19496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19497 fi
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19499 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19500   if test $gl_cv_header_inttypes_h = yes; then
19501
19502 cat >>confdefs.h <<_ACEOF
19503 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19504 _ACEOF
19505
19506   fi
19507
19508
19509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19510 $as_echo_n "checking for stdint.h... " >&6; }
19511 if ${gl_cv_header_stdint_h+:} false; then :
19512   $as_echo_n "(cached) " >&6
19513 else
19514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h.  */
19516 #include <sys/types.h>
19517 #include <stdint.h>
19518 int
19519 main ()
19520 {
19521 uintmax_t i = (uintmax_t) -1;
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 if ac_fn_c_try_compile "$LINENO"; then :
19527   gl_cv_header_stdint_h=yes
19528 else
19529   gl_cv_header_stdint_h=no
19530 fi
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19532 fi
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19534 $as_echo "$gl_cv_header_stdint_h" >&6; }
19535   if test $gl_cv_header_stdint_h = yes; then
19536
19537 cat >>confdefs.h <<_ACEOF
19538 #define HAVE_STDINT_H_WITH_UINTMAX 1
19539 _ACEOF
19540
19541   fi
19542
19543
19544
19545
19546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19547 $as_echo_n "checking for intmax_t... " >&6; }
19548 if ${gt_cv_c_intmax_t+:} false; then :
19549   $as_echo_n "(cached) " >&6
19550 else
19551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h.  */
19553
19554 #include <stddef.h>
19555 #include <stdlib.h>
19556 #if HAVE_STDINT_H_WITH_UINTMAX
19557 #include <stdint.h>
19558 #endif
19559 #if HAVE_INTTYPES_H_WITH_UINTMAX
19560 #include <inttypes.h>
19561 #endif
19562
19563 int
19564 main ()
19565 {
19566 intmax_t x = -1;
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 if ac_fn_c_try_compile "$LINENO"; then :
19572   gt_cv_c_intmax_t=yes
19573 else
19574   gt_cv_c_intmax_t=no
19575 fi
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19577 fi
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19579 $as_echo "$gt_cv_c_intmax_t" >&6; }
19580   if test $gt_cv_c_intmax_t = yes; then
19581
19582 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19583
19584   fi
19585
19586
19587
19588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19589 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19590 if ${gt_cv_func_printf_posix+:} false; then :
19591   $as_echo_n "(cached) " >&6
19592 else
19593
19594       if test "$cross_compiling" = yes; then :
19595
19596         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h.  */
19598
19599 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19600   notposix
19601 #endif
19602
19603 _ACEOF
19604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19605   $EGREP "notposix" >/dev/null 2>&1; then :
19606   gt_cv_func_printf_posix="guessing no"
19607 else
19608   gt_cv_func_printf_posix="guessing yes"
19609 fi
19610 rm -f conftest*
19611
19612
19613 else
19614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h.  */
19616
19617 #include <stdio.h>
19618 #include <string.h>
19619 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19620    dollar expansion (possibly an autoconf bug).  */
19621 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19622 static char buf[100];
19623 int main ()
19624 {
19625   sprintf (buf, format, 33, 55);
19626   return (strcmp (buf, "55 33") != 0);
19627 }
19628 _ACEOF
19629 if ac_fn_c_try_run "$LINENO"; then :
19630   gt_cv_func_printf_posix=yes
19631 else
19632   gt_cv_func_printf_posix=no
19633 fi
19634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19635   conftest.$ac_objext conftest.beam conftest.$ac_ext
19636 fi
19637
19638
19639 fi
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19641 $as_echo "$gt_cv_func_printf_posix" >&6; }
19642   case $gt_cv_func_printf_posix in
19643     *yes)
19644
19645 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19646
19647       ;;
19648   esac
19649
19650 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19651 # for constant arguments.  Useless!
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19653 $as_echo_n "checking for working alloca.h... " >&6; }
19654 if ${ac_cv_working_alloca_h+:} false; then :
19655   $as_echo_n "(cached) " >&6
19656 else
19657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h.  */
19659 #include <alloca.h>
19660 int
19661 main ()
19662 {
19663 char *p = (char *) alloca (2 * sizeof (int));
19664                           if (p) return 0;
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 if ac_fn_c_try_link "$LINENO"; then :
19670   ac_cv_working_alloca_h=yes
19671 else
19672   ac_cv_working_alloca_h=no
19673 fi
19674 rm -f core conftest.err conftest.$ac_objext \
19675     conftest$ac_exeext conftest.$ac_ext
19676 fi
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19678 $as_echo "$ac_cv_working_alloca_h" >&6; }
19679 if test $ac_cv_working_alloca_h = yes; then
19680
19681 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19682
19683 fi
19684
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19686 $as_echo_n "checking for alloca... " >&6; }
19687 if ${ac_cv_func_alloca_works+:} false; then :
19688   $as_echo_n "(cached) " >&6
19689 else
19690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h.  */
19692 #ifdef __GNUC__
19693 # define alloca __builtin_alloca
19694 #else
19695 # ifdef _MSC_VER
19696 #  include <malloc.h>
19697 #  define alloca _alloca
19698 # else
19699 #  ifdef HAVE_ALLOCA_H
19700 #   include <alloca.h>
19701 #  else
19702 #   ifdef _AIX
19703  #pragma alloca
19704 #   else
19705 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19706 void *alloca (size_t);
19707 #    endif
19708 #   endif
19709 #  endif
19710 # endif
19711 #endif
19712
19713 int
19714 main ()
19715 {
19716 char *p = (char *) alloca (1);
19717                                     if (p) return 0;
19718   ;
19719   return 0;
19720 }
19721 _ACEOF
19722 if ac_fn_c_try_link "$LINENO"; then :
19723   ac_cv_func_alloca_works=yes
19724 else
19725   ac_cv_func_alloca_works=no
19726 fi
19727 rm -f core conftest.err conftest.$ac_objext \
19728     conftest$ac_exeext conftest.$ac_ext
19729 fi
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19731 $as_echo "$ac_cv_func_alloca_works" >&6; }
19732
19733 if test $ac_cv_func_alloca_works = yes; then
19734
19735 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19736
19737 else
19738   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19739 # that cause trouble.  Some versions do not even contain alloca or
19740 # contain a buggy version.  If you still want to use their alloca,
19741 # use ar to extract alloca.o from them instead of compiling alloca.c.
19742
19743 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19744
19745 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19746
19747
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19749 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19750 if ${ac_cv_os_cray+:} false; then :
19751   $as_echo_n "(cached) " >&6
19752 else
19753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h.  */
19755 #if defined CRAY && ! defined CRAY2
19756 webecray
19757 #else
19758 wenotbecray
19759 #endif
19760
19761 _ACEOF
19762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19763   $EGREP "webecray" >/dev/null 2>&1; then :
19764   ac_cv_os_cray=yes
19765 else
19766   ac_cv_os_cray=no
19767 fi
19768 rm -f conftest*
19769
19770 fi
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19772 $as_echo "$ac_cv_os_cray" >&6; }
19773 if test $ac_cv_os_cray = yes; then
19774   for ac_func in _getb67 GETB67 getb67; do
19775     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19778
19779 cat >>confdefs.h <<_ACEOF
19780 #define CRAY_STACKSEG_END $ac_func
19781 _ACEOF
19782
19783     break
19784 fi
19785
19786   done
19787 fi
19788
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19790 $as_echo_n "checking stack direction for C alloca... " >&6; }
19791 if ${ac_cv_c_stack_direction+:} false; then :
19792   $as_echo_n "(cached) " >&6
19793 else
19794   if test "$cross_compiling" = yes; then :
19795   ac_cv_c_stack_direction=0
19796 else
19797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h.  */
19799 $ac_includes_default
19800 int
19801 find_stack_direction (int *addr, int depth)
19802 {
19803   int dir, dummy = 0;
19804   if (! addr)
19805     addr = &dummy;
19806   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19807   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19808   return dir + dummy;
19809 }
19810
19811 int
19812 main (int argc, char **argv)
19813 {
19814   return find_stack_direction (0, argc + !argv + 20) < 0;
19815 }
19816 _ACEOF
19817 if ac_fn_c_try_run "$LINENO"; then :
19818   ac_cv_c_stack_direction=1
19819 else
19820   ac_cv_c_stack_direction=-1
19821 fi
19822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19823   conftest.$ac_objext conftest.beam conftest.$ac_ext
19824 fi
19825
19826 fi
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19828 $as_echo "$ac_cv_c_stack_direction" >&6; }
19829 cat >>confdefs.h <<_ACEOF
19830 #define STACK_DIRECTION $ac_cv_c_stack_direction
19831 _ACEOF
19832
19833
19834 fi
19835
19836
19837
19838
19839   for ac_header in $ac_header_list
19840 do :
19841   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19842 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19843 "
19844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19845   cat >>confdefs.h <<_ACEOF
19846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19847 _ACEOF
19848
19849 fi
19850
19851 done
19852
19853
19854
19855
19856
19857
19858
19859
19860 for ac_func in getpagesize
19861 do :
19862   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19863 if test "x$ac_cv_func_getpagesize" = xyes; then :
19864   cat >>confdefs.h <<_ACEOF
19865 #define HAVE_GETPAGESIZE 1
19866 _ACEOF
19867
19868 fi
19869 done
19870
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19872 $as_echo_n "checking for working mmap... " >&6; }
19873 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19874   $as_echo_n "(cached) " >&6
19875 else
19876   if test "$cross_compiling" = yes; then :
19877   ac_cv_func_mmap_fixed_mapped=no
19878 else
19879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h.  */
19881 $ac_includes_default
19882 /* malloc might have been renamed as rpl_malloc. */
19883 #undef malloc
19884
19885 /* Thanks to Mike Haertel and Jim Avera for this test.
19886    Here is a matrix of mmap possibilities:
19887         mmap private not fixed
19888         mmap private fixed at somewhere currently unmapped
19889         mmap private fixed at somewhere already mapped
19890         mmap shared not fixed
19891         mmap shared fixed at somewhere currently unmapped
19892         mmap shared fixed at somewhere already mapped
19893    For private mappings, we should verify that changes cannot be read()
19894    back from the file, nor mmap's back from the file at a different
19895    address.  (There have been systems where private was not correctly
19896    implemented like the infamous i386 svr4.0, and systems where the
19897    VM page cache was not coherent with the file system buffer cache
19898    like early versions of FreeBSD and possibly contemporary NetBSD.)
19899    For shared mappings, we should conversely verify that changes get
19900    propagated back to all the places they're supposed to be.
19901
19902    Grep wants private fixed already mapped.
19903    The main things grep needs to know about mmap are:
19904    * does it exist and is it safe to write into the mmap'd area
19905    * how to use it (BSD variants)  */
19906
19907 #include <fcntl.h>
19908 #include <sys/mman.h>
19909
19910 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19911 char *malloc ();
19912 #endif
19913
19914 /* This mess was copied from the GNU getpagesize.h.  */
19915 #ifndef HAVE_GETPAGESIZE
19916 # ifdef _SC_PAGESIZE
19917 #  define getpagesize() sysconf(_SC_PAGESIZE)
19918 # else /* no _SC_PAGESIZE */
19919 #  ifdef HAVE_SYS_PARAM_H
19920 #   include <sys/param.h>
19921 #   ifdef EXEC_PAGESIZE
19922 #    define getpagesize() EXEC_PAGESIZE
19923 #   else /* no EXEC_PAGESIZE */
19924 #    ifdef NBPG
19925 #     define getpagesize() NBPG * CLSIZE
19926 #     ifndef CLSIZE
19927 #      define CLSIZE 1
19928 #     endif /* no CLSIZE */
19929 #    else /* no NBPG */
19930 #     ifdef NBPC
19931 #      define getpagesize() NBPC
19932 #     else /* no NBPC */
19933 #      ifdef PAGESIZE
19934 #       define getpagesize() PAGESIZE
19935 #      endif /* PAGESIZE */
19936 #     endif /* no NBPC */
19937 #    endif /* no NBPG */
19938 #   endif /* no EXEC_PAGESIZE */
19939 #  else /* no HAVE_SYS_PARAM_H */
19940 #   define getpagesize() 8192   /* punt totally */
19941 #  endif /* no HAVE_SYS_PARAM_H */
19942 # endif /* no _SC_PAGESIZE */
19943
19944 #endif /* no HAVE_GETPAGESIZE */
19945
19946 int
19947 main ()
19948 {
19949   char *data, *data2, *data3;
19950   const char *cdata2;
19951   int i, pagesize;
19952   int fd, fd2;
19953
19954   pagesize = getpagesize ();
19955
19956   /* First, make a file with some known garbage in it. */
19957   data = (char *) malloc (pagesize);
19958   if (!data)
19959     return 1;
19960   for (i = 0; i < pagesize; ++i)
19961     *(data + i) = rand ();
19962   umask (0);
19963   fd = creat ("conftest.mmap", 0600);
19964   if (fd < 0)
19965     return 2;
19966   if (write (fd, data, pagesize) != pagesize)
19967     return 3;
19968   close (fd);
19969
19970   /* Next, check that the tail of a page is zero-filled.  File must have
19971      non-zero length, otherwise we risk SIGBUS for entire page.  */
19972   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19973   if (fd2 < 0)
19974     return 4;
19975   cdata2 = "";
19976   if (write (fd2, cdata2, 1) != 1)
19977     return 5;
19978   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19979   if (data2 == MAP_FAILED)
19980     return 6;
19981   for (i = 0; i < pagesize; ++i)
19982     if (*(data2 + i))
19983       return 7;
19984   close (fd2);
19985   if (munmap (data2, pagesize))
19986     return 8;
19987
19988   /* Next, try to mmap the file at a fixed address which already has
19989      something else allocated at it.  If we can, also make sure that
19990      we see the same garbage.  */
19991   fd = open ("conftest.mmap", O_RDWR);
19992   if (fd < 0)
19993     return 9;
19994   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19995                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19996     return 10;
19997   for (i = 0; i < pagesize; ++i)
19998     if (*(data + i) != *(data2 + i))
19999       return 11;
20000
20001   /* Finally, make sure that changes to the mapped area do not
20002      percolate back to the file as seen by read().  (This is a bug on
20003      some variants of i386 svr4.0.)  */
20004   for (i = 0; i < pagesize; ++i)
20005     *(data2 + i) = *(data2 + i) + 1;
20006   data3 = (char *) malloc (pagesize);
20007   if (!data3)
20008     return 12;
20009   if (read (fd, data3, pagesize) != pagesize)
20010     return 13;
20011   for (i = 0; i < pagesize; ++i)
20012     if (*(data + i) != *(data3 + i))
20013       return 14;
20014   close (fd);
20015   return 0;
20016 }
20017 _ACEOF
20018 if ac_fn_c_try_run "$LINENO"; then :
20019   ac_cv_func_mmap_fixed_mapped=yes
20020 else
20021   ac_cv_func_mmap_fixed_mapped=no
20022 fi
20023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20024   conftest.$ac_objext conftest.beam conftest.$ac_ext
20025 fi
20026
20027 fi
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20029 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20030 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20031
20032 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20033
20034 fi
20035 rm -f conftest.mmap conftest.txt
20036
20037
20038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20039 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20040 if ${ac_cv_gnu_library_2_1+:} false; then :
20041   $as_echo_n "(cached) " >&6
20042 else
20043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h.  */
20045
20046 #include <features.h>
20047 #ifdef __GNU_LIBRARY__
20048  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20049   Lucky GNU user
20050  #endif
20051 #endif
20052
20053 _ACEOF
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20056   ac_cv_gnu_library_2_1=yes
20057 else
20058   ac_cv_gnu_library_2_1=no
20059 fi
20060 rm -f conftest*
20061
20062
20063
20064 fi
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20066 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20067
20068     GLIBC21="$ac_cv_gnu_library_2_1"
20069
20070
20071
20072
20073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20074 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20075 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20076   $as_echo_n "(cached) " >&6
20077 else
20078
20079       if test "$cross_compiling" = yes; then :
20080
20081           # Guess based on the CPU.
20082           case "$host_cpu" in
20083             alpha* | i3456786 | m68k | s390*)
20084               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20085             *)
20086               gt_cv_int_divbyzero_sigfpe="guessing no";;
20087           esac
20088
20089 else
20090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h.  */
20092
20093 #include <stdlib.h>
20094 #include <signal.h>
20095
20096 static void
20097 #ifdef __cplusplus
20098 sigfpe_handler (int sig)
20099 #else
20100 sigfpe_handler (sig) int sig;
20101 #endif
20102 {
20103   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20104   exit (sig != SIGFPE);
20105 }
20106
20107 int x = 1;
20108 int y = 0;
20109 int z;
20110 int nan;
20111
20112 int main ()
20113 {
20114   signal (SIGFPE, sigfpe_handler);
20115 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20116 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20117   signal (SIGTRAP, sigfpe_handler);
20118 #endif
20119 /* Linux/SPARC yields signal SIGILL.  */
20120 #if defined (__sparc__) && defined (__linux__)
20121   signal (SIGILL, sigfpe_handler);
20122 #endif
20123
20124   z = x / y;
20125   nan = y / y;
20126   exit (1);
20127 }
20128
20129 _ACEOF
20130 if ac_fn_c_try_run "$LINENO"; then :
20131   gt_cv_int_divbyzero_sigfpe=yes
20132 else
20133   gt_cv_int_divbyzero_sigfpe=no
20134 fi
20135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20136   conftest.$ac_objext conftest.beam conftest.$ac_ext
20137 fi
20138
20139
20140 fi
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20142 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20143   case "$gt_cv_int_divbyzero_sigfpe" in
20144     *yes) value=1;;
20145     *) value=0;;
20146   esac
20147
20148 cat >>confdefs.h <<_ACEOF
20149 #define INTDIV0_RAISES_SIGFPE $value
20150 _ACEOF
20151
20152
20153
20154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20155 $as_echo_n "checking for unsigned long long... " >&6; }
20156 if ${ac_cv_type_unsigned_long_long+:} false; then :
20157   $as_echo_n "(cached) " >&6
20158 else
20159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h.  */
20161 unsigned long long ull = 1ULL; int i = 63;
20162 int
20163 main ()
20164 {
20165 unsigned long long ullmax = (unsigned long long) -1;
20166      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20167   ;
20168   return 0;
20169 }
20170 _ACEOF
20171 if ac_fn_c_try_link "$LINENO"; then :
20172   ac_cv_type_unsigned_long_long=yes
20173 else
20174   ac_cv_type_unsigned_long_long=no
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext \
20177     conftest$ac_exeext conftest.$ac_ext
20178 fi
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20180 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20181   if test $ac_cv_type_unsigned_long_long = yes; then
20182
20183 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20184
20185   fi
20186
20187
20188
20189
20190   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20191
20192     test $ac_cv_type_unsigned_long_long = yes \
20193       && ac_type='unsigned long long' \
20194       || ac_type='unsigned long'
20195
20196 cat >>confdefs.h <<_ACEOF
20197 #define uintmax_t $ac_type
20198 _ACEOF
20199
20200   else
20201
20202 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20203
20204   fi
20205
20206
20207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20208 $as_echo_n "checking for inttypes.h... " >&6; }
20209 if ${gt_cv_header_inttypes_h+:} false; then :
20210   $as_echo_n "(cached) " >&6
20211 else
20212
20213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h.  */
20215 #include <sys/types.h>
20216 #include <inttypes.h>
20217 int
20218 main ()
20219 {
20220
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226   gt_cv_header_inttypes_h=yes
20227 else
20228   gt_cv_header_inttypes_h=no
20229 fi
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231
20232 fi
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20234 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20235   if test $gt_cv_header_inttypes_h = yes; then
20236
20237 cat >>confdefs.h <<_ACEOF
20238 #define HAVE_INTTYPES_H 1
20239 _ACEOF
20240
20241   fi
20242
20243
20244
20245   if test $gt_cv_header_inttypes_h = yes; then
20246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20247 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20248 if ${gt_cv_inttypes_pri_broken+:} false; then :
20249   $as_echo_n "(cached) " >&6
20250 else
20251
20252         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h.  */
20254 #include <inttypes.h>
20255 #ifdef PRId32
20256 char *p = PRId32;
20257 #endif
20258
20259 int
20260 main ()
20261 {
20262
20263   ;
20264   return 0;
20265 }
20266 _ACEOF
20267 if ac_fn_c_try_compile "$LINENO"; then :
20268   gt_cv_inttypes_pri_broken=no
20269 else
20270   gt_cv_inttypes_pri_broken=yes
20271 fi
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273
20274 fi
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20276 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20277   fi
20278   if test "$gt_cv_inttypes_pri_broken" = yes; then
20279
20280 cat >>confdefs.h <<_ACEOF
20281 #define PRI_MACROS_BROKEN 1
20282 _ACEOF
20283
20284   fi
20285
20286
20287   for ac_header in stdint.h
20288 do :
20289   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20290 if test "x$ac_cv_header_stdint_h" = xyes; then :
20291   cat >>confdefs.h <<_ACEOF
20292 #define HAVE_STDINT_H 1
20293 _ACEOF
20294
20295 fi
20296
20297 done
20298
20299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20300 $as_echo_n "checking for SIZE_MAX... " >&6; }
20301   result=
20302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303 /* end confdefs.h.  */
20304
20305 #include <limits.h>
20306 #if HAVE_STDINT_H
20307 #include <stdint.h>
20308 #endif
20309 #ifdef SIZE_MAX
20310 Found it
20311 #endif
20312
20313 _ACEOF
20314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20315   $EGREP "Found it" >/dev/null 2>&1; then :
20316   result=yes
20317 fi
20318 rm -f conftest*
20319
20320   if test -z "$result"; then
20321                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20322
20323 else
20324   result=?
20325 fi
20326
20327
20328     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20329
20330 else
20331   result=?
20332 fi
20333
20334
20335     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20336
20337 else
20338   result=?
20339 fi
20340
20341
20342     if test "$fits_in_uint" = 1; then
20343                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h.  */
20345 #include <stddef.h>
20346         extern size_t foo;
20347         extern unsigned long foo;
20348
20349 int
20350 main ()
20351 {
20352
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 if ac_fn_c_try_compile "$LINENO"; then :
20358   fits_in_uint=0
20359 fi
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361     fi
20362     if test -z "$result"; then
20363       if test "$fits_in_uint" = 1; then
20364         result="$res_hi$res_lo"U
20365       else
20366         result="$res_hi$res_lo"UL
20367       fi
20368     else
20369             result='~(size_t)0'
20370     fi
20371   fi
20372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20373 $as_echo "$result" >&6; }
20374   if test "$result" != yes; then
20375
20376 cat >>confdefs.h <<_ACEOF
20377 #define SIZE_MAX $result
20378 _ACEOF
20379
20380   fi
20381
20382
20383
20384
20385   for ac_header in stdint.h
20386 do :
20387   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20388 if test "x$ac_cv_header_stdint_h" = xyes; then :
20389   cat >>confdefs.h <<_ACEOF
20390 #define HAVE_STDINT_H 1
20391 _ACEOF
20392
20393 fi
20394
20395 done
20396
20397
20398
20399
20400
20401
20402
20403
20404   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20405 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20406
20407 else
20408
20409 $as_echo "#define ptrdiff_t long" >>confdefs.h
20410
20411
20412 fi
20413
20414   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20415 stdlib.h string.h unistd.h sys/param.h
20416 do :
20417   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20420   cat >>confdefs.h <<_ACEOF
20421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20422 _ACEOF
20423
20424 fi
20425
20426 done
20427
20428   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20429 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20430 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20431 __fsetlocking
20432 do :
20433   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20436   cat >>confdefs.h <<_ACEOF
20437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20438 _ACEOF
20439
20440 fi
20441 done
20442
20443
20444
20445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20446 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20447 if ${ac_cv_have_decl__snprintf+:} false; then :
20448   $as_echo_n "(cached) " >&6
20449 else
20450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20451 /* end confdefs.h.  */
20452 #include <stdio.h>
20453 int
20454 main ()
20455 {
20456
20457 #ifndef _snprintf
20458   char *p = (char *) _snprintf;
20459 #endif
20460
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 if ac_fn_c_try_compile "$LINENO"; then :
20466   ac_cv_have_decl__snprintf=yes
20467 else
20468   ac_cv_have_decl__snprintf=no
20469 fi
20470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20471 fi
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20473 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20474   if test $ac_cv_have_decl__snprintf = yes; then
20475     gt_value=1
20476   else
20477     gt_value=0
20478   fi
20479
20480 cat >>confdefs.h <<_ACEOF
20481 #define HAVE_DECL__SNPRINTF $gt_value
20482 _ACEOF
20483
20484
20485
20486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20487 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20488 if ${ac_cv_have_decl__snwprintf+:} false; then :
20489   $as_echo_n "(cached) " >&6
20490 else
20491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h.  */
20493 #include <stdio.h>
20494 int
20495 main ()
20496 {
20497
20498 #ifndef _snwprintf
20499   char *p = (char *) _snwprintf;
20500 #endif
20501
20502   ;
20503   return 0;
20504 }
20505 _ACEOF
20506 if ac_fn_c_try_compile "$LINENO"; then :
20507   ac_cv_have_decl__snwprintf=yes
20508 else
20509   ac_cv_have_decl__snwprintf=no
20510 fi
20511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512 fi
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20514 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20515   if test $ac_cv_have_decl__snwprintf = yes; then
20516     gt_value=1
20517   else
20518     gt_value=0
20519   fi
20520
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_DECL__SNWPRINTF $gt_value
20523 _ACEOF
20524
20525
20526
20527
20528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20529 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20530 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20531   $as_echo_n "(cached) " >&6
20532 else
20533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h.  */
20535 #include <stdio.h>
20536 int
20537 main ()
20538 {
20539
20540 #ifndef feof_unlocked
20541   char *p = (char *) feof_unlocked;
20542 #endif
20543
20544   ;
20545   return 0;
20546 }
20547 _ACEOF
20548 if ac_fn_c_try_compile "$LINENO"; then :
20549   ac_cv_have_decl_feof_unlocked=yes
20550 else
20551   ac_cv_have_decl_feof_unlocked=no
20552 fi
20553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 fi
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20556 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20557   if test $ac_cv_have_decl_feof_unlocked = yes; then
20558     gt_value=1
20559   else
20560     gt_value=0
20561   fi
20562
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20565 _ACEOF
20566
20567
20568
20569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20570 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20571 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20572   $as_echo_n "(cached) " >&6
20573 else
20574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h.  */
20576 #include <stdio.h>
20577 int
20578 main ()
20579 {
20580
20581 #ifndef fgets_unlocked
20582   char *p = (char *) fgets_unlocked;
20583 #endif
20584
20585   ;
20586   return 0;
20587 }
20588 _ACEOF
20589 if ac_fn_c_try_compile "$LINENO"; then :
20590   ac_cv_have_decl_fgets_unlocked=yes
20591 else
20592   ac_cv_have_decl_fgets_unlocked=no
20593 fi
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 fi
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20597 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20598   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20599     gt_value=1
20600   else
20601     gt_value=0
20602   fi
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20606 _ACEOF
20607
20608
20609
20610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20611 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20612 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20613   $as_echo_n "(cached) " >&6
20614 else
20615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h.  */
20617 #include <stdio.h>
20618 int
20619 main ()
20620 {
20621
20622 #ifndef getc_unlocked
20623   char *p = (char *) getc_unlocked;
20624 #endif
20625
20626   ;
20627   return 0;
20628 }
20629 _ACEOF
20630 if ac_fn_c_try_compile "$LINENO"; then :
20631   ac_cv_have_decl_getc_unlocked=yes
20632 else
20633   ac_cv_have_decl_getc_unlocked=no
20634 fi
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 fi
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20638 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20639   if test $ac_cv_have_decl_getc_unlocked = yes; then
20640     gt_value=1
20641   else
20642     gt_value=0
20643   fi
20644
20645 cat >>confdefs.h <<_ACEOF
20646 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20647 _ACEOF
20648
20649
20650
20651   case $gt_cv_func_printf_posix in
20652     *yes) HAVE_POSIX_PRINTF=1 ;;
20653     *) HAVE_POSIX_PRINTF=0 ;;
20654   esac
20655
20656   if test "$ac_cv_func_asprintf" = yes; then
20657     HAVE_ASPRINTF=1
20658   else
20659     HAVE_ASPRINTF=0
20660   fi
20661
20662   if test "$ac_cv_func_snprintf" = yes; then
20663     HAVE_SNPRINTF=1
20664   else
20665     HAVE_SNPRINTF=0
20666   fi
20667
20668   if test "$ac_cv_func_wprintf" = yes; then
20669     HAVE_WPRINTF=1
20670   else
20671     HAVE_WPRINTF=0
20672   fi
20673
20674
20675
20676
20677
20678
20679
20680           am_save_CPPFLAGS="$CPPFLAGS"
20681
20682   for element in $INCICONV; do
20683     haveit=
20684     for x in $CPPFLAGS; do
20685
20686   acl_save_prefix="$prefix"
20687   prefix="$acl_final_prefix"
20688   acl_save_exec_prefix="$exec_prefix"
20689   exec_prefix="$acl_final_exec_prefix"
20690   eval x=\"$x\"
20691   exec_prefix="$acl_save_exec_prefix"
20692   prefix="$acl_save_prefix"
20693
20694       if test "X$x" = "X$element"; then
20695         haveit=yes
20696         break
20697       fi
20698     done
20699     if test -z "$haveit"; then
20700       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20701     fi
20702   done
20703
20704
20705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20706 $as_echo_n "checking for iconv... " >&6; }
20707 if ${am_cv_func_iconv+:} false; then :
20708   $as_echo_n "(cached) " >&6
20709 else
20710
20711     am_cv_func_iconv="no, consider installing GNU libiconv"
20712     am_cv_lib_iconv=no
20713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20714 /* end confdefs.h.  */
20715 #include <stdlib.h>
20716 #include <iconv.h>
20717 int
20718 main ()
20719 {
20720 iconv_t cd = iconv_open("","");
20721        iconv(cd,NULL,NULL,NULL,NULL);
20722        iconv_close(cd);
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 if ac_fn_c_try_link "$LINENO"; then :
20728   am_cv_func_iconv=yes
20729 fi
20730 rm -f core conftest.err conftest.$ac_objext \
20731     conftest$ac_exeext conftest.$ac_ext
20732     if test "$am_cv_func_iconv" != yes; then
20733       am_save_LIBS="$LIBS"
20734       LIBS="$LIBS $LIBICONV"
20735       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h.  */
20737 #include <stdlib.h>
20738 #include <iconv.h>
20739 int
20740 main ()
20741 {
20742 iconv_t cd = iconv_open("","");
20743          iconv(cd,NULL,NULL,NULL,NULL);
20744          iconv_close(cd);
20745   ;
20746   return 0;
20747 }
20748 _ACEOF
20749 if ac_fn_c_try_link "$LINENO"; then :
20750   am_cv_lib_iconv=yes
20751         am_cv_func_iconv=yes
20752 fi
20753 rm -f core conftest.err conftest.$ac_objext \
20754     conftest$ac_exeext conftest.$ac_ext
20755       LIBS="$am_save_LIBS"
20756     fi
20757
20758 fi
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20760 $as_echo "$am_cv_func_iconv" >&6; }
20761   if test "$am_cv_func_iconv" = yes; then
20762
20763 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20764
20765   fi
20766   if test "$am_cv_lib_iconv" = yes; then
20767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20768 $as_echo_n "checking how to link with libiconv... " >&6; }
20769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20770 $as_echo "$LIBICONV" >&6; }
20771   else
20772             CPPFLAGS="$am_save_CPPFLAGS"
20773     LIBICONV=
20774     LTLIBICONV=
20775   fi
20776
20777
20778
20779   if test "$am_cv_func_iconv" = yes; then
20780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20781 $as_echo_n "checking for iconv declaration... " >&6; }
20782     if ${am_cv_proto_iconv+:} false; then :
20783   $as_echo_n "(cached) " >&6
20784 else
20785
20786       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h.  */
20788
20789 #include <stdlib.h>
20790 #include <iconv.h>
20791 extern
20792 #ifdef __cplusplus
20793 "C"
20794 #endif
20795 #if defined(__STDC__) || defined(__cplusplus)
20796 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20797 #else
20798 size_t iconv();
20799 #endif
20800
20801 int
20802 main ()
20803 {
20804
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 if ac_fn_c_try_compile "$LINENO"; then :
20810   am_cv_proto_iconv_arg1=""
20811 else
20812   am_cv_proto_iconv_arg1="const"
20813 fi
20814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20815       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);"
20816 fi
20817
20818     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20820          }$am_cv_proto_iconv" >&5
20821 $as_echo "${ac_t:-
20822          }$am_cv_proto_iconv" >&6; }
20823
20824 cat >>confdefs.h <<_ACEOF
20825 #define ICONV_CONST $am_cv_proto_iconv_arg1
20826 _ACEOF
20827
20828   fi
20829
20830
20831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20832 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20833 if ${am_cv_langinfo_codeset+:} false; then :
20834   $as_echo_n "(cached) " >&6
20835 else
20836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h.  */
20838 #include <langinfo.h>
20839 int
20840 main ()
20841 {
20842 char* cs = nl_langinfo(CODESET);
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 if ac_fn_c_try_link "$LINENO"; then :
20848   am_cv_langinfo_codeset=yes
20849 else
20850   am_cv_langinfo_codeset=no
20851 fi
20852 rm -f core conftest.err conftest.$ac_objext \
20853     conftest$ac_exeext conftest.$ac_ext
20854
20855 fi
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20857 $as_echo "$am_cv_langinfo_codeset" >&6; }
20858   if test $am_cv_langinfo_codeset = yes; then
20859
20860 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20861
20862   fi
20863
20864   if test $ac_cv_header_locale_h = yes; then
20865
20866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20867 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20868 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20869   $as_echo_n "(cached) " >&6
20870 else
20871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h.  */
20873 #include <locale.h>
20874 int
20875 main ()
20876 {
20877 return LC_MESSAGES
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 if ac_fn_c_try_link "$LINENO"; then :
20883   gt_cv_val_LC_MESSAGES=yes
20884 else
20885   gt_cv_val_LC_MESSAGES=no
20886 fi
20887 rm -f core conftest.err conftest.$ac_objext \
20888     conftest$ac_exeext conftest.$ac_ext
20889 fi
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20891 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20892   if test $gt_cv_val_LC_MESSAGES = yes; then
20893
20894 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20895
20896   fi
20897
20898   fi
20899
20900   if test -n "$INTL_MACOSX_LIBS"; then
20901     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20902   fi
20903
20904                       for ac_prog in bison
20905 do
20906   # Extract the first word of "$ac_prog", so it can be a program name with args.
20907 set dummy $ac_prog; ac_word=$2
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20909 $as_echo_n "checking for $ac_word... " >&6; }
20910 if ${ac_cv_prog_INTLBISON+:} false; then :
20911   $as_echo_n "(cached) " >&6
20912 else
20913   if test -n "$INTLBISON"; then
20914   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20915 else
20916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20917 for as_dir in $PATH
20918 do
20919   IFS=$as_save_IFS
20920   test -z "$as_dir" && as_dir=.
20921     for ac_exec_ext in '' $ac_executable_extensions; do
20922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20923     ac_cv_prog_INTLBISON="$ac_prog"
20924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20925     break 2
20926   fi
20927 done
20928   done
20929 IFS=$as_save_IFS
20930
20931 fi
20932 fi
20933 INTLBISON=$ac_cv_prog_INTLBISON
20934 if test -n "$INTLBISON"; then
20935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20936 $as_echo "$INTLBISON" >&6; }
20937 else
20938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20939 $as_echo "no" >&6; }
20940 fi
20941
20942
20943   test -n "$INTLBISON" && break
20944 done
20945
20946   if test -z "$INTLBISON"; then
20947     ac_verc_fail=yes
20948   else
20949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20950 $as_echo_n "checking version of bison... " >&6; }
20951     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20952     case $ac_prog_version in
20953       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20954       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20955          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20956       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20957     esac
20958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20959 $as_echo "$ac_prog_version" >&6; }
20960   fi
20961   if test $ac_verc_fail = yes; then
20962     INTLBISON=:
20963   fi
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20981 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20982 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20983   $as_echo_n "(cached) " >&6
20984 else
20985   gt_save_CPPFLAGS="$CPPFLAGS"
20986      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20987      gt_save_LIBS="$LIBS"
20988      LIBS="$LIBS -framework CoreFoundation"
20989      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h.  */
20991 #include <CFPreferences.h>
20992 int
20993 main ()
20994 {
20995 CFPreferencesCopyAppValue(NULL, NULL)
20996   ;
20997   return 0;
20998 }
20999 _ACEOF
21000 if ac_fn_c_try_link "$LINENO"; then :
21001   gt_cv_func_CFPreferencesCopyAppValue=yes
21002 else
21003   gt_cv_func_CFPreferencesCopyAppValue=no
21004 fi
21005 rm -f core conftest.err conftest.$ac_objext \
21006     conftest$ac_exeext conftest.$ac_ext
21007      CPPFLAGS="$gt_save_CPPFLAGS"
21008      LIBS="$gt_save_LIBS"
21009 fi
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21011 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21012   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21013
21014 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21015
21016   fi
21017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21018 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21019 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21020   $as_echo_n "(cached) " >&6
21021 else
21022   gt_save_CPPFLAGS="$CPPFLAGS"
21023      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21024      gt_save_LIBS="$LIBS"
21025      LIBS="$LIBS -framework CoreFoundation"
21026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h.  */
21028 #include <CFLocale.h>
21029 int
21030 main ()
21031 {
21032 CFLocaleCopyCurrent();
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 if ac_fn_c_try_link "$LINENO"; then :
21038   gt_cv_func_CFLocaleCopyCurrent=yes
21039 else
21040   gt_cv_func_CFLocaleCopyCurrent=no
21041 fi
21042 rm -f core conftest.err conftest.$ac_objext \
21043     conftest$ac_exeext conftest.$ac_ext
21044      CPPFLAGS="$gt_save_CPPFLAGS"
21045      LIBS="$gt_save_LIBS"
21046 fi
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21048 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21049   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21050
21051 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21052
21053   fi
21054   INTL_MACOSX_LIBS=
21055   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21056     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21057   fi
21058
21059
21060
21061
21062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21063 $as_echo_n "checking whether NLS is requested... " >&6; }
21064     # Check whether --enable-nls was given.
21065 if test "${enable_nls+set}" = set; then :
21066   enableval=$enable_nls; USE_NLS=$enableval
21067 else
21068   USE_NLS=yes
21069 fi
21070
21071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21072 $as_echo "$USE_NLS" >&6; }
21073
21074
21075
21076
21077     BUILD_INCLUDED_LIBINTL=no
21078     USE_INCLUDED_LIBINTL=no
21079
21080   LIBINTL=
21081   LTLIBINTL=
21082   POSUB=
21083
21084     if test "$USE_NLS" = "yes"; then
21085     gt_use_preinstalled_gnugettext=no
21086
21087       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21088 $as_echo_n "checking whether included gettext is requested... " >&6; }
21089
21090 # Check whether --with-included-gettext was given.
21091 if test "${with_included_gettext+set}" = set; then :
21092   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21093 else
21094   nls_cv_force_use_gnu_gettext=no
21095 fi
21096
21097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21098 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21099
21100       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21101       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21102
21103
21104
21105
21106
21107
21108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21109 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21110 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21111   $as_echo_n "(cached) " >&6
21112 else
21113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h.  */
21115 #include <libintl.h>
21116 extern int _nl_msg_cat_cntr;
21117 extern int *_nl_domain_bindings;
21118 int
21119 main ()
21120 {
21121 bindtextdomain ("", "");
21122 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21123   ;
21124   return 0;
21125 }
21126 _ACEOF
21127 if ac_fn_c_try_link "$LINENO"; then :
21128   gt_cv_func_gnugettext1_libc=yes
21129 else
21130   gt_cv_func_gnugettext1_libc=no
21131 fi
21132 rm -f core conftest.err conftest.$ac_objext \
21133     conftest$ac_exeext conftest.$ac_ext
21134 fi
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21136 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21137
21138         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21139
21140
21141
21142     use_additional=yes
21143
21144   acl_save_prefix="$prefix"
21145   prefix="$acl_final_prefix"
21146   acl_save_exec_prefix="$exec_prefix"
21147   exec_prefix="$acl_final_exec_prefix"
21148
21149     eval additional_includedir=\"$includedir\"
21150     eval additional_libdir=\"$libdir\"
21151
21152   exec_prefix="$acl_save_exec_prefix"
21153   prefix="$acl_save_prefix"
21154
21155
21156 # Check whether --with-libintl-prefix was given.
21157 if test "${with_libintl_prefix+set}" = set; then :
21158   withval=$with_libintl_prefix;
21159     if test "X$withval" = "Xno"; then
21160       use_additional=no
21161     else
21162       if test "X$withval" = "X"; then
21163
21164   acl_save_prefix="$prefix"
21165   prefix="$acl_final_prefix"
21166   acl_save_exec_prefix="$exec_prefix"
21167   exec_prefix="$acl_final_exec_prefix"
21168
21169           eval additional_includedir=\"$includedir\"
21170           eval additional_libdir=\"$libdir\"
21171
21172   exec_prefix="$acl_save_exec_prefix"
21173   prefix="$acl_save_prefix"
21174
21175       else
21176         additional_includedir="$withval/include"
21177         additional_libdir="$withval/lib"
21178       fi
21179     fi
21180
21181 fi
21182
21183       LIBINTL=
21184   LTLIBINTL=
21185   INCINTL=
21186   rpathdirs=
21187   ltrpathdirs=
21188   names_already_handled=
21189   names_next_round='intl '
21190   while test -n "$names_next_round"; do
21191     names_this_round="$names_next_round"
21192     names_next_round=
21193     for name in $names_this_round; do
21194       already_handled=
21195       for n in $names_already_handled; do
21196         if test "$n" = "$name"; then
21197           already_handled=yes
21198           break
21199         fi
21200       done
21201       if test -z "$already_handled"; then
21202         names_already_handled="$names_already_handled $name"
21203                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21204         eval value=\"\$HAVE_LIB$uppername\"
21205         if test -n "$value"; then
21206           if test "$value" = yes; then
21207             eval value=\"\$LIB$uppername\"
21208             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21209             eval value=\"\$LTLIB$uppername\"
21210             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21211           else
21212                                     :
21213           fi
21214         else
21215                               found_dir=
21216           found_la=
21217           found_so=
21218           found_a=
21219           if test $use_additional = yes; then
21220             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21221               found_dir="$additional_libdir"
21222               found_so="$additional_libdir/lib$name.$shlibext"
21223               if test -f "$additional_libdir/lib$name.la"; then
21224                 found_la="$additional_libdir/lib$name.la"
21225               fi
21226             else
21227               if test -f "$additional_libdir/lib$name.$libext"; then
21228                 found_dir="$additional_libdir"
21229                 found_a="$additional_libdir/lib$name.$libext"
21230                 if test -f "$additional_libdir/lib$name.la"; then
21231                   found_la="$additional_libdir/lib$name.la"
21232                 fi
21233               fi
21234             fi
21235           fi
21236           if test "X$found_dir" = "X"; then
21237             for x in $LDFLAGS $LTLIBINTL; do
21238
21239   acl_save_prefix="$prefix"
21240   prefix="$acl_final_prefix"
21241   acl_save_exec_prefix="$exec_prefix"
21242   exec_prefix="$acl_final_exec_prefix"
21243   eval x=\"$x\"
21244   exec_prefix="$acl_save_exec_prefix"
21245   prefix="$acl_save_prefix"
21246
21247               case "$x" in
21248                 -L*)
21249                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21250                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21251                     found_dir="$dir"
21252                     found_so="$dir/lib$name.$shlibext"
21253                     if test -f "$dir/lib$name.la"; then
21254                       found_la="$dir/lib$name.la"
21255                     fi
21256                   else
21257                     if test -f "$dir/lib$name.$libext"; then
21258                       found_dir="$dir"
21259                       found_a="$dir/lib$name.$libext"
21260                       if test -f "$dir/lib$name.la"; then
21261                         found_la="$dir/lib$name.la"
21262                       fi
21263                     fi
21264                   fi
21265                   ;;
21266               esac
21267               if test "X$found_dir" != "X"; then
21268                 break
21269               fi
21270             done
21271           fi
21272           if test "X$found_dir" != "X"; then
21273                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21274             if test "X$found_so" != "X"; then
21275                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21276                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21277               else
21278                                                                                 haveit=
21279                 for x in $ltrpathdirs; do
21280                   if test "X$x" = "X$found_dir"; then
21281                     haveit=yes
21282                     break
21283                   fi
21284                 done
21285                 if test -z "$haveit"; then
21286                   ltrpathdirs="$ltrpathdirs $found_dir"
21287                 fi
21288                                 if test "$hardcode_direct" = yes; then
21289                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21290                 else
21291                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21292                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21293                                                             haveit=
21294                     for x in $rpathdirs; do
21295                       if test "X$x" = "X$found_dir"; then
21296                         haveit=yes
21297                         break
21298                       fi
21299                     done
21300                     if test -z "$haveit"; then
21301                       rpathdirs="$rpathdirs $found_dir"
21302                     fi
21303                   else
21304                                                                                 haveit=
21305                     for x in $LDFLAGS $LIBINTL; do
21306
21307   acl_save_prefix="$prefix"
21308   prefix="$acl_final_prefix"
21309   acl_save_exec_prefix="$exec_prefix"
21310   exec_prefix="$acl_final_exec_prefix"
21311   eval x=\"$x\"
21312   exec_prefix="$acl_save_exec_prefix"
21313   prefix="$acl_save_prefix"
21314
21315                       if test "X$x" = "X-L$found_dir"; then
21316                         haveit=yes
21317                         break
21318                       fi
21319                     done
21320                     if test -z "$haveit"; then
21321                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21322                     fi
21323                     if test "$hardcode_minus_L" != no; then
21324                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21325                     else
21326                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21327                     fi
21328                   fi
21329                 fi
21330               fi
21331             else
21332               if test "X$found_a" != "X"; then
21333                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21334               else
21335                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21336               fi
21337             fi
21338                         additional_includedir=
21339             case "$found_dir" in
21340               */lib | */lib/)
21341                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21342                 additional_includedir="$basedir/include"
21343                 ;;
21344             esac
21345             if test "X$additional_includedir" != "X"; then
21346                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21347                 haveit=
21348                 if test "X$additional_includedir" = "X/usr/local/include"; then
21349                   if test -n "$GCC"; then
21350                     case $host_os in
21351                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21352                     esac
21353                   fi
21354                 fi
21355                 if test -z "$haveit"; then
21356                   for x in $CPPFLAGS $INCINTL; do
21357
21358   acl_save_prefix="$prefix"
21359   prefix="$acl_final_prefix"
21360   acl_save_exec_prefix="$exec_prefix"
21361   exec_prefix="$acl_final_exec_prefix"
21362   eval x=\"$x\"
21363   exec_prefix="$acl_save_exec_prefix"
21364   prefix="$acl_save_prefix"
21365
21366                     if test "X$x" = "X-I$additional_includedir"; then
21367                       haveit=yes
21368                       break
21369                     fi
21370                   done
21371                   if test -z "$haveit"; then
21372                     if test -d "$additional_includedir"; then
21373                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21374                     fi
21375                   fi
21376                 fi
21377               fi
21378             fi
21379                         if test -n "$found_la"; then
21380                                                         save_libdir="$libdir"
21381               case "$found_la" in
21382                 */* | *\\*) . "$found_la" ;;
21383                 *) . "./$found_la" ;;
21384               esac
21385               libdir="$save_libdir"
21386                             for dep in $dependency_libs; do
21387                 case "$dep" in
21388                   -L*)
21389                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21390                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21391                       haveit=
21392                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21393                         if test -n "$GCC"; then
21394                           case $host_os in
21395                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21396                           esac
21397                         fi
21398                       fi
21399                       if test -z "$haveit"; then
21400                         haveit=
21401                         for x in $LDFLAGS $LIBINTL; do
21402
21403   acl_save_prefix="$prefix"
21404   prefix="$acl_final_prefix"
21405   acl_save_exec_prefix="$exec_prefix"
21406   exec_prefix="$acl_final_exec_prefix"
21407   eval x=\"$x\"
21408   exec_prefix="$acl_save_exec_prefix"
21409   prefix="$acl_save_prefix"
21410
21411                           if test "X$x" = "X-L$additional_libdir"; then
21412                             haveit=yes
21413                             break
21414                           fi
21415                         done
21416                         if test -z "$haveit"; then
21417                           if test -d "$additional_libdir"; then
21418                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21419                           fi
21420                         fi
21421                         haveit=
21422                         for x in $LDFLAGS $LTLIBINTL; do
21423
21424   acl_save_prefix="$prefix"
21425   prefix="$acl_final_prefix"
21426   acl_save_exec_prefix="$exec_prefix"
21427   exec_prefix="$acl_final_exec_prefix"
21428   eval x=\"$x\"
21429   exec_prefix="$acl_save_exec_prefix"
21430   prefix="$acl_save_prefix"
21431
21432                           if test "X$x" = "X-L$additional_libdir"; then
21433                             haveit=yes
21434                             break
21435                           fi
21436                         done
21437                         if test -z "$haveit"; then
21438                           if test -d "$additional_libdir"; then
21439                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21440                           fi
21441                         fi
21442                       fi
21443                     fi
21444                     ;;
21445                   -R*)
21446                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21447                     if test "$enable_rpath" != no; then
21448                                                                   haveit=
21449                       for x in $rpathdirs; do
21450                         if test "X$x" = "X$dir"; then
21451                           haveit=yes
21452                           break
21453                         fi
21454                       done
21455                       if test -z "$haveit"; then
21456                         rpathdirs="$rpathdirs $dir"
21457                       fi
21458                                                                   haveit=
21459                       for x in $ltrpathdirs; do
21460                         if test "X$x" = "X$dir"; then
21461                           haveit=yes
21462                           break
21463                         fi
21464                       done
21465                       if test -z "$haveit"; then
21466                         ltrpathdirs="$ltrpathdirs $dir"
21467                       fi
21468                     fi
21469                     ;;
21470                   -l*)
21471                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21472                     ;;
21473                   *.la)
21474                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21475                     ;;
21476                   *)
21477                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21478                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21479                     ;;
21480                 esac
21481               done
21482             fi
21483           else
21484                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21485             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21486           fi
21487         fi
21488       fi
21489     done
21490   done
21491   if test "X$rpathdirs" != "X"; then
21492     if test -n "$hardcode_libdir_separator"; then
21493                         alldirs=
21494       for found_dir in $rpathdirs; do
21495         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21496       done
21497             acl_save_libdir="$libdir"
21498       libdir="$alldirs"
21499       eval flag=\"$hardcode_libdir_flag_spec\"
21500       libdir="$acl_save_libdir"
21501       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21502     else
21503             for found_dir in $rpathdirs; do
21504         acl_save_libdir="$libdir"
21505         libdir="$found_dir"
21506         eval flag=\"$hardcode_libdir_flag_spec\"
21507         libdir="$acl_save_libdir"
21508         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21509       done
21510     fi
21511   fi
21512   if test "X$ltrpathdirs" != "X"; then
21513             for found_dir in $ltrpathdirs; do
21514       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21515     done
21516   fi
21517
21518           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21519 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21520 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21521   $as_echo_n "(cached) " >&6
21522 else
21523   gt_save_CPPFLAGS="$CPPFLAGS"
21524             CPPFLAGS="$CPPFLAGS $INCINTL"
21525             gt_save_LIBS="$LIBS"
21526             LIBS="$LIBS $LIBINTL"
21527                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21528 /* end confdefs.h.  */
21529 #include <libintl.h>
21530 extern int _nl_msg_cat_cntr;
21531 extern
21532 #ifdef __cplusplus
21533 "C"
21534 #endif
21535 const char *_nl_expand_alias (const char *);
21536 int
21537 main ()
21538 {
21539 bindtextdomain ("", "");
21540 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21541   ;
21542   return 0;
21543 }
21544 _ACEOF
21545 if ac_fn_c_try_link "$LINENO"; then :
21546   gt_cv_func_gnugettext1_libintl=yes
21547 else
21548   gt_cv_func_gnugettext1_libintl=no
21549 fi
21550 rm -f core conftest.err conftest.$ac_objext \
21551     conftest$ac_exeext conftest.$ac_ext
21552                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21553               LIBS="$LIBS $LIBICONV"
21554               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21555 /* end confdefs.h.  */
21556 #include <libintl.h>
21557 extern int _nl_msg_cat_cntr;
21558 extern
21559 #ifdef __cplusplus
21560 "C"
21561 #endif
21562 const char *_nl_expand_alias (const char *);
21563 int
21564 main ()
21565 {
21566 bindtextdomain ("", "");
21567 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 if ac_fn_c_try_link "$LINENO"; then :
21573   LIBINTL="$LIBINTL $LIBICONV"
21574                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21575                 gt_cv_func_gnugettext1_libintl=yes
21576
21577 fi
21578 rm -f core conftest.err conftest.$ac_objext \
21579     conftest$ac_exeext conftest.$ac_ext
21580             fi
21581             CPPFLAGS="$gt_save_CPPFLAGS"
21582             LIBS="$gt_save_LIBS"
21583 fi
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21585 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21586         fi
21587
21588                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21589            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21590                 && test "$PACKAGE" != gettext-runtime \
21591                 && test "$PACKAGE" != gettext-tools; }; then
21592           gt_use_preinstalled_gnugettext=yes
21593         else
21594                     LIBINTL=
21595           LTLIBINTL=
21596           INCINTL=
21597         fi
21598
21599
21600         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21601                               nls_cv_use_gnu_gettext=yes
21602         fi
21603       fi
21604
21605       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21606                 BUILD_INCLUDED_LIBINTL=yes
21607         USE_INCLUDED_LIBINTL=yes
21608         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21609         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21610         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21611       fi
21612
21613       CATOBJEXT=
21614       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21615          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21616                 CATOBJEXT=.gmo
21617       fi
21618
21619
21620     if test -n "$INTL_MACOSX_LIBS"; then
21621       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21622          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21623                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21624         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21625       fi
21626     fi
21627
21628     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21629        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21630
21631 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21632
21633     else
21634       USE_NLS=no
21635     fi
21636   fi
21637
21638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21639 $as_echo_n "checking whether to use NLS... " >&6; }
21640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21641 $as_echo "$USE_NLS" >&6; }
21642   if test "$USE_NLS" = "yes"; then
21643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21644 $as_echo_n "checking where the gettext function comes from... " >&6; }
21645     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21646       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21647         gt_source="external libintl"
21648       else
21649         gt_source="libc"
21650       fi
21651     else
21652       gt_source="included intl directory"
21653     fi
21654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21655 $as_echo "$gt_source" >&6; }
21656   fi
21657
21658   if test "$USE_NLS" = "yes"; then
21659
21660     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21661       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21663 $as_echo_n "checking how to link with libintl... " >&6; }
21664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21665 $as_echo "$LIBINTL" >&6; }
21666
21667   for element in $INCINTL; do
21668     haveit=
21669     for x in $CPPFLAGS; do
21670
21671   acl_save_prefix="$prefix"
21672   prefix="$acl_final_prefix"
21673   acl_save_exec_prefix="$exec_prefix"
21674   exec_prefix="$acl_final_exec_prefix"
21675   eval x=\"$x\"
21676   exec_prefix="$acl_save_exec_prefix"
21677   prefix="$acl_save_prefix"
21678
21679       if test "X$x" = "X$element"; then
21680         haveit=yes
21681         break
21682       fi
21683     done
21684     if test -z "$haveit"; then
21685       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21686     fi
21687   done
21688
21689       fi
21690
21691
21692 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21693
21694
21695 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21696
21697     fi
21698
21699         POSUB=po
21700   fi
21701
21702
21703             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21704       BUILD_INCLUDED_LIBINTL=yes
21705     fi
21706
21707
21708
21709
21710
21711         nls_cv_header_intl=
21712     nls_cv_header_libgt=
21713
21714         DATADIRNAME=share
21715
21716
21717         INSTOBJEXT=.mo
21718
21719
21720         GENCAT=gencat
21721
21722
21723         INTLOBJS=
21724     if test "$USE_INCLUDED_LIBINTL" = yes; then
21725       INTLOBJS="\$(GETTOBJS)"
21726     fi
21727
21728
21729         INTL_LIBTOOL_SUFFIX_PREFIX=
21730
21731
21732
21733     INTLLIBS="$LIBINTL"
21734
21735
21736
21737
21738
21739
21740 fi
21741
21742 support_smartalloc=yes
21743 support_readline=yes
21744 support_lzo=yes
21745 support_conio=yes
21746 support_bat=no
21747 support_tls=no
21748 support_crypto=no
21749 support_static_tools=no
21750 support_static_fd=no
21751 support_static_sd=no
21752 support_static_dir=no
21753 support_static_cons=no
21754 build_client_only=no
21755 build_dird=yes
21756 build_stored=yes
21757 db_backends=""
21758 batch_insert_db_backends=""
21759 support_lockmgr=no
21760
21761
21762 # Check whether --enable-bat was given.
21763 if test "${enable_bat+set}" = set; then :
21764   enableval=$enable_bat;
21765        if test x$enableval = xyes; then
21766
21767 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21768
21769           support_bat=yes
21770        fi
21771
21772
21773 fi
21774
21775
21776 BAT_DIR=
21777 if test x$support_bat = xyes; then
21778    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21779    pkg=$?
21780    if test $pkg = 0; then
21781       BAT_DIR=src/qt-console
21782    else
21783       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21784    fi
21785 fi
21786
21787 got_qwt=no
21788 QWT_INC=
21789 QWT_LDFLAGS=
21790 QWT_LIB=
21791 QWT=
21792 no_qwt=no
21793
21794
21795
21796
21797
21798
21799
21800
21801 # Check whether --enable-smartalloc was given.
21802 if test "${enable_smartalloc+set}" = set; then :
21803   enableval=$enable_smartalloc;
21804        if test x$enableval = xno; then
21805           support_smartalloc=no
21806        fi
21807
21808
21809 fi
21810
21811
21812 if test x$support_smartalloc = xyes; then
21813
21814 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21815
21816 fi
21817
21818 # Check whether --enable-lockmgr was given.
21819 if test "${enable_lockmgr+set}" = set; then :
21820   enableval=$enable_lockmgr;
21821        if test x$enableval = xyes; then
21822           support_lockmgr=yes
21823        fi
21824
21825
21826 fi
21827
21828
21829 if test x$support_lockmgr = xyes; then
21830
21831 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21832
21833 fi
21834
21835
21836 # Check whether --enable-static-tools was given.
21837 if test "${enable_static_tools+set}" = set; then :
21838   enableval=$enable_static_tools;
21839        if test x$enableval = xyes; then
21840           if test x$use_libtool = xyes; then
21841              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21842   please rerun configure with --disable-libtool" "$LINENO" 5
21843           fi
21844           support_static_tools=yes
21845        fi
21846
21847
21848 fi
21849
21850
21851 TTOOL_LDFLAGS=
21852 if test x$support_static_tools = xyes; then
21853    TTOOL_LDFLAGS="-static"
21854 fi
21855
21856
21857 # Check whether --enable-static-fd was given.
21858 if test "${enable_static_fd+set}" = set; then :
21859   enableval=$enable_static_fd;
21860        if test x$enableval = xyes; then
21861           if test x$use_libtool = xyes; then
21862              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21863   please rerun configure with --disable-libtool" "$LINENO" 5
21864           fi
21865           support_static_fd=yes
21866        fi
21867
21868
21869 fi
21870
21871
21872 STATIC_FD=
21873 if test x$support_static_fd = xyes; then
21874    STATIC_FD="static-bacula-fd"
21875 fi
21876
21877
21878 # Check whether --enable-static-sd was given.
21879 if test "${enable_static_sd+set}" = set; then :
21880   enableval=$enable_static_sd;
21881        if test x$enableval = xyes; then
21882           if test x$use_libtool = xyes; then
21883              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21884   please rerun configure with --disable-libtool" "$LINENO" 5
21885           fi
21886           support_static_sd=yes
21887        fi
21888
21889
21890 fi
21891
21892
21893 STATIC_SD=
21894 if test x$support_static_sd = xyes; then
21895    STATIC_SD="static-bacula-sd"
21896 fi
21897
21898
21899 # Check whether --enable-static-dir was given.
21900 if test "${enable_static_dir+set}" = set; then :
21901   enableval=$enable_static_dir;
21902        if test x$enableval = xyes; then
21903           if test x$use_libtool = xyes; then
21904              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21905   please rerun configure with --disable-libtool" "$LINENO" 5
21906           fi
21907           support_static_dir=yes
21908        fi
21909
21910
21911 fi
21912
21913
21914 STATIC_DIR=
21915 if test x$support_static_dir = xyes; then
21916    STATIC_DIR="static-bacula-dir"
21917 fi
21918
21919
21920 # Check whether --enable-static-cons was given.
21921 if test "${enable_static_cons+set}" = set; then :
21922   enableval=$enable_static_cons;
21923        if test x$enableval = xyes; then
21924           if test x$use_libtool = xyes; then
21925              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21926   please rerun configure with --disable-libtool" "$LINENO" 5
21927           fi
21928           support_static_cons=yes
21929        fi
21930
21931
21932 fi
21933
21934
21935 STATIC_CONS=
21936 if test x$support_static_cons = xyes; then
21937    STATIC_CONS="static-bconsole"
21938 fi
21939
21940
21941 # Check whether --enable-client-only was given.
21942 if test "${enable_client_only+set}" = set; then :
21943   enableval=$enable_client_only;
21944        if test x$enableval = xyes; then
21945           build_client_only=yes
21946           db_backends="None"
21947           DB_BACKENDS="none"
21948        fi
21949
21950
21951 fi
21952
21953 if test x$build_client_only = xno; then
21954    ALL_DIRS="subdirs"
21955 else
21956    ALL_DIRS=""
21957 fi
21958
21959
21960 # Check whether --enable-build-dird was given.
21961 if test "${enable_build_dird+set}" = set; then :
21962   enableval=$enable_build_dird;
21963        if test x$enableval = xno; then
21964           build_dird=no
21965        fi
21966
21967
21968 fi
21969
21970
21971 DIRD_DIR="src/dird"
21972 DIR_TOOLS="DIRTOOLS"
21973
21974
21975
21976
21977 # Check whether --enable-build-stored was given.
21978 if test "${enable_build_stored+set}" = set; then :
21979   enableval=$enable_build_stored;
21980       if test x$enableval = xno; then
21981          build_stored=no
21982       fi
21983
21984
21985 fi
21986
21987 if test x$build_stored = xyes; then
21988    STORED_DIR="src/stored"
21989 else
21990    STORED_DIR=""
21991 fi
21992
21993
21994 # Check whether --enable-conio was given.
21995 if test "${enable_conio+set}" = set; then :
21996   enableval=$enable_conio;
21997        if test x$enableval = xno; then
21998           support_conio=no
21999        fi
22000
22001
22002 fi
22003
22004
22005
22006 support_ipv6=yes
22007 # Check whether --enable-ipv6 was given.
22008 if test "${enable_ipv6+set}" = set; then :
22009   enableval=$enable_ipv6;
22010        if test x$enableval = xno; then
22011           support_ipv6=no
22012        fi
22013
22014
22015 fi
22016
22017
22018 if test x$support_ipv6 = xyes; then
22019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h.  */
22021  #include <sys/types.h>
22022 #include <sys/socket.h>
22023 #include <netinet/in.h>
22024 int
22025 main ()
22026 {
22027 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 if ac_fn_c_try_link "$LINENO"; then :
22033   support_in6addr_any=yes
22034 else
22035   support_in6addr_any=no
22036 fi
22037 rm -f core conftest.err conftest.$ac_objext \
22038     conftest$ac_exeext conftest.$ac_ext
22039
22040    if test x$support_in6addr_any = xno ; then
22041        in6addr_any="const struct in6_addr in6addr_any"
22042    else
22043        in6addr_any="1"
22044    fi
22045
22046    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h.  */
22048  #include <sys/types.h>
22049 #include <sys/socket.h>
22050 #include <netinet/in.h>
22051 int
22052 main ()
22053 {
22054 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22055   ;
22056   return 0;
22057 }
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060   support_ipv6=yes
22061 else
22062   support_ipv6=no
22063 fi
22064 rm -f core conftest.err conftest.$ac_objext \
22065     conftest$ac_exeext conftest.$ac_ext
22066 fi
22067
22068 if test x$support_ipv6 = xyes; then
22069
22070 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22071
22072
22073    if test x$support_in6addr_any = xno ; then
22074
22075 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22076
22077    fi
22078 fi
22079
22080 TERM_LIB=""
22081 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22082 if test "x$ac_cv_header_curses_h" = xyes; then :
22083
22084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22085 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22086 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22087   $as_echo_n "(cached) " >&6
22088 else
22089   ac_check_lib_save_LIBS=$LIBS
22090 LIBS="-ltinfo  $LIBS"
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h.  */
22093
22094 /* Override any GCC internal prototype to avoid an error.
22095    Use char because int might match the return type of a GCC
22096    builtin and then its argument prototype would still apply.  */
22097 #ifdef __cplusplus
22098 extern "C"
22099 #endif
22100 char tgetent ();
22101 int
22102 main ()
22103 {
22104 return tgetent ();
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 if ac_fn_c_try_link "$LINENO"; then :
22110   ac_cv_lib_tinfo_tgetent=yes
22111 else
22112   ac_cv_lib_tinfo_tgetent=no
22113 fi
22114 rm -f core conftest.err conftest.$ac_objext \
22115     conftest$ac_exeext conftest.$ac_ext
22116 LIBS=$ac_check_lib_save_LIBS
22117 fi
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22119 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22120 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22121    TERM_LIB="-ltinfo"
22122 else
22123
22124       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22125 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22126 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22127   $as_echo_n "(cached) " >&6
22128 else
22129   ac_check_lib_save_LIBS=$LIBS
22130 LIBS="-lncurses  $LIBS"
22131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132 /* end confdefs.h.  */
22133
22134 /* Override any GCC internal prototype to avoid an error.
22135    Use char because int might match the return type of a GCC
22136    builtin and then its argument prototype would still apply.  */
22137 #ifdef __cplusplus
22138 extern "C"
22139 #endif
22140 char tgetent ();
22141 int
22142 main ()
22143 {
22144 return tgetent ();
22145   ;
22146   return 0;
22147 }
22148 _ACEOF
22149 if ac_fn_c_try_link "$LINENO"; then :
22150   ac_cv_lib_ncurses_tgetent=yes
22151 else
22152   ac_cv_lib_ncurses_tgetent=no
22153 fi
22154 rm -f core conftest.err conftest.$ac_objext \
22155     conftest$ac_exeext conftest.$ac_ext
22156 LIBS=$ac_check_lib_save_LIBS
22157 fi
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22159 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22160 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22161    TERM_LIB="-lncurses"
22162 else
22163
22164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22165 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22166 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22167   $as_echo_n "(cached) " >&6
22168 else
22169   ac_check_lib_save_LIBS=$LIBS
22170 LIBS="-ltermcap  $LIBS"
22171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172 /* end confdefs.h.  */
22173
22174 /* Override any GCC internal prototype to avoid an error.
22175    Use char because int might match the return type of a GCC
22176    builtin and then its argument prototype would still apply.  */
22177 #ifdef __cplusplus
22178 extern "C"
22179 #endif
22180 char tgetent ();
22181 int
22182 main ()
22183 {
22184 return tgetent ();
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 if ac_fn_c_try_link "$LINENO"; then :
22190   ac_cv_lib_termcap_tgetent=yes
22191 else
22192   ac_cv_lib_termcap_tgetent=no
22193 fi
22194 rm -f core conftest.err conftest.$ac_objext \
22195     conftest$ac_exeext conftest.$ac_ext
22196 LIBS=$ac_check_lib_save_LIBS
22197 fi
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22199 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22200 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22201    TERM_LIB="-ltermcap"
22202 fi
22203
22204
22205 fi
22206
22207
22208 fi
22209
22210
22211 else
22212     for ac_header in curses.h
22213 do :
22214   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22215 if test "x$ac_cv_header_curses_h" = xyes; then :
22216   cat >>confdefs.h <<_ACEOF
22217 #define HAVE_CURSES_H 1
22218 _ACEOF
22219
22220 fi
22221
22222 done
22223
22224      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22225 if test "x$ac_cv_header_term_h" = xyes; then :
22226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22227 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22228 if ${ac_cv_lib_curses_tgetent+:} false; then :
22229   $as_echo_n "(cached) " >&6
22230 else
22231   ac_check_lib_save_LIBS=$LIBS
22232 LIBS="-lcurses  $LIBS"
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h.  */
22235
22236 /* Override any GCC internal prototype to avoid an error.
22237    Use char because int might match the return type of a GCC
22238    builtin and then its argument prototype would still apply.  */
22239 #ifdef __cplusplus
22240 extern "C"
22241 #endif
22242 char tgetent ();
22243 int
22244 main ()
22245 {
22246 return tgetent ();
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 if ac_fn_c_try_link "$LINENO"; then :
22252   ac_cv_lib_curses_tgetent=yes
22253 else
22254   ac_cv_lib_curses_tgetent=no
22255 fi
22256 rm -f core conftest.err conftest.$ac_objext \
22257     conftest$ac_exeext conftest.$ac_ext
22258 LIBS=$ac_check_lib_save_LIBS
22259 fi
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22261 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22262 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22263    TERM_LIB="-lcurses"
22264 fi
22265
22266
22267 fi
22268
22269
22270
22271 fi
22272
22273
22274
22275
22276 got_conio="no"
22277 if test x$support_conio = xyes; then
22278    if test x$TERM_LIB != x; then
22279       CONS_LIBS=$TERM_LIB
22280       CONS_OBJ="conio.o"
22281       CONS_SRC="conio.c"
22282       got_conio="yes"
22283       support_readline=no
22284
22285 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22286
22287    else
22288       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22289    fi
22290 fi
22291
22292
22293 # Check whether --enable-readline was given.
22294 if test "${enable_readline+set}" = set; then :
22295   enableval=$enable_readline;
22296        if test x$enableval = xno; then
22297           support_readline=no
22298        fi
22299
22300
22301 fi
22302
22303
22304 got_readline="no"
22305 READLINE_SRC=
22306 if test x$support_readline = xyes; then
22307
22308 # Check whether --with-readline was given.
22309 if test "${with_readline+set}" = set; then :
22310   withval=$with_readline;
22311           case "$with_readline" in
22312           no)
22313              :
22314              ;;
22315           yes|*)
22316              if test -f ${with_readline}/readline.h; then
22317                 CONS_INC="-I${with_readline}"
22318                 CONS_LDFLAGS="-L$with_readline"
22319              elif test -f ${with_readline}/include/readline/readline.h; then
22320                 CONS_INC="-I${with_readline}/include/readline"
22321                 CONS_LDFLAGS="-L${with_readline}/lib"
22322                 with_readline="${with_readline}/include/readline"
22323              else
22324                 with_readline="/usr/include/readline"
22325              fi
22326
22327              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22328 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22330
22331
22332 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22333
22334                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22335                     got_readline="yes"
22336
22337 else
22338
22339                     echo " "
22340                     echo "readline.h not found. readline turned off ..."
22341                     echo " "
22342
22343
22344 fi
22345
22346
22347              ;;
22348           esac
22349
22350 else
22351
22352                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22353 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22354
22355
22356 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22357
22358                 got_readline="yes"
22359                 CONS_INC="-I/usr/include/readline"
22360                 CONS_LIBS="-lreadline ${TERM_LIB}"
22361
22362 else
22363
22364                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22365 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22367
22368
22369 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22370
22371                         got_readline="yes"
22372                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22373                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22374                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22375                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22376
22377 else
22378
22379                         echo " "
22380                         echo "readline.h not found. readline turned off ..."
22381                         echo " "
22382
22383
22384 fi
22385
22386
22387
22388
22389 fi
22390
22391
22392
22393
22394 fi
22395
22396 fi
22397
22398
22399
22400
22401
22402
22403
22404
22405 MAKE_SHELL=/bin/sh
22406
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22408 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22409 if ${ac_cv_header_stat_broken+:} false; then :
22410   $as_echo_n "(cached) " >&6
22411 else
22412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22413 /* end confdefs.h.  */
22414 #include <sys/types.h>
22415 #include <sys/stat.h>
22416
22417 #if defined S_ISBLK && defined S_IFDIR
22418 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22419 #endif
22420
22421 #if defined S_ISBLK && defined S_IFCHR
22422 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22423 #endif
22424
22425 #if defined S_ISLNK && defined S_IFREG
22426 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22427 #endif
22428
22429 #if defined S_ISSOCK && defined S_IFREG
22430 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22431 #endif
22432
22433 _ACEOF
22434 if ac_fn_c_try_compile "$LINENO"; then :
22435   ac_cv_header_stat_broken=no
22436 else
22437   ac_cv_header_stat_broken=yes
22438 fi
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 fi
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22442 $as_echo "$ac_cv_header_stat_broken" >&6; }
22443 if test $ac_cv_header_stat_broken = yes; then
22444
22445 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22446
22447 fi
22448
22449 ac_header_dirent=no
22450 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22451   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22453 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22454 if eval \${$as_ac_Header+:} false; then :
22455   $as_echo_n "(cached) " >&6
22456 else
22457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h.  */
22459 #include <sys/types.h>
22460 #include <$ac_hdr>
22461
22462 int
22463 main ()
22464 {
22465 if ((DIR *) 0)
22466 return 0;
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 if ac_fn_c_try_compile "$LINENO"; then :
22472   eval "$as_ac_Header=yes"
22473 else
22474   eval "$as_ac_Header=no"
22475 fi
22476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477 fi
22478 eval ac_res=\$$as_ac_Header
22479                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22480 $as_echo "$ac_res" >&6; }
22481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22482   cat >>confdefs.h <<_ACEOF
22483 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22484 _ACEOF
22485
22486 ac_header_dirent=$ac_hdr; break
22487 fi
22488
22489 done
22490 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22491 if test $ac_header_dirent = dirent.h; then
22492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22493 $as_echo_n "checking for library containing opendir... " >&6; }
22494 if ${ac_cv_search_opendir+:} false; then :
22495   $as_echo_n "(cached) " >&6
22496 else
22497   ac_func_search_save_LIBS=$LIBS
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h.  */
22500
22501 /* Override any GCC internal prototype to avoid an error.
22502    Use char because int might match the return type of a GCC
22503    builtin and then its argument prototype would still apply.  */
22504 #ifdef __cplusplus
22505 extern "C"
22506 #endif
22507 char opendir ();
22508 int
22509 main ()
22510 {
22511 return opendir ();
22512   ;
22513   return 0;
22514 }
22515 _ACEOF
22516 for ac_lib in '' dir; do
22517   if test -z "$ac_lib"; then
22518     ac_res="none required"
22519   else
22520     ac_res=-l$ac_lib
22521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22522   fi
22523   if ac_fn_c_try_link "$LINENO"; then :
22524   ac_cv_search_opendir=$ac_res
22525 fi
22526 rm -f core conftest.err conftest.$ac_objext \
22527     conftest$ac_exeext
22528   if ${ac_cv_search_opendir+:} false; then :
22529   break
22530 fi
22531 done
22532 if ${ac_cv_search_opendir+:} false; then :
22533
22534 else
22535   ac_cv_search_opendir=no
22536 fi
22537 rm conftest.$ac_ext
22538 LIBS=$ac_func_search_save_LIBS
22539 fi
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22541 $as_echo "$ac_cv_search_opendir" >&6; }
22542 ac_res=$ac_cv_search_opendir
22543 if test "$ac_res" != no; then :
22544   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22545
22546 fi
22547
22548 else
22549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22550 $as_echo_n "checking for library containing opendir... " >&6; }
22551 if ${ac_cv_search_opendir+:} false; then :
22552   $as_echo_n "(cached) " >&6
22553 else
22554   ac_func_search_save_LIBS=$LIBS
22555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22556 /* end confdefs.h.  */
22557
22558 /* Override any GCC internal prototype to avoid an error.
22559    Use char because int might match the return type of a GCC
22560    builtin and then its argument prototype would still apply.  */
22561 #ifdef __cplusplus
22562 extern "C"
22563 #endif
22564 char opendir ();
22565 int
22566 main ()
22567 {
22568 return opendir ();
22569   ;
22570   return 0;
22571 }
22572 _ACEOF
22573 for ac_lib in '' x; do
22574   if test -z "$ac_lib"; then
22575     ac_res="none required"
22576   else
22577     ac_res=-l$ac_lib
22578     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22579   fi
22580   if ac_fn_c_try_link "$LINENO"; then :
22581   ac_cv_search_opendir=$ac_res
22582 fi
22583 rm -f core conftest.err conftest.$ac_objext \
22584     conftest$ac_exeext
22585   if ${ac_cv_search_opendir+:} false; then :
22586   break
22587 fi
22588 done
22589 if ${ac_cv_search_opendir+:} false; then :
22590
22591 else
22592   ac_cv_search_opendir=no
22593 fi
22594 rm conftest.$ac_ext
22595 LIBS=$ac_func_search_save_LIBS
22596 fi
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22598 $as_echo "$ac_cv_search_opendir" >&6; }
22599 ac_res=$ac_cv_search_opendir
22600 if test "$ac_res" != no; then :
22601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22602
22603 fi
22604
22605 fi
22606
22607 for ac_func in strcasecmp select setenv putenv tcgetattr
22608 do :
22609   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22612   cat >>confdefs.h <<_ACEOF
22613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22614 _ACEOF
22615
22616 fi
22617 done
22618
22619 for ac_func in lstat lchown lchmod futimes fchmod fchown
22620 do :
22621   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22624   cat >>confdefs.h <<_ACEOF
22625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22626 _ACEOF
22627
22628 fi
22629 done
22630
22631 for ac_func in nanosleep nl_langinfo
22632 do :
22633   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22634 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22635 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22636   cat >>confdefs.h <<_ACEOF
22637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22638 _ACEOF
22639
22640 fi
22641 done
22642
22643 for ac_func in be64toh htobe64
22644 do :
22645   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22646 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22647 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22648   cat >>confdefs.h <<_ACEOF
22649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22650 _ACEOF
22651
22652 fi
22653 done
22654
22655 for ac_header in varargs.h
22656 do :
22657   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22658 if test "x$ac_cv_header_varargs_h" = xyes; then :
22659   cat >>confdefs.h <<_ACEOF
22660 #define HAVE_VARARGS_H 1
22661 _ACEOF
22662
22663 fi
22664
22665 done
22666
22667
22668
22669 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22670 if test "x$ac_cv_func_socket" = xyes; then :
22671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22672 $as_echo "using libc's socket" >&6; }
22673 else
22674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22675 $as_echo_n "checking for socket in -lxnet... " >&6; }
22676 if ${ac_cv_lib_xnet_socket+:} false; then :
22677   $as_echo_n "(cached) " >&6
22678 else
22679   ac_check_lib_save_LIBS=$LIBS
22680 LIBS="-lxnet  $LIBS"
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h.  */
22683
22684 /* Override any GCC internal prototype to avoid an error.
22685    Use char because int might match the return type of a GCC
22686    builtin and then its argument prototype would still apply.  */
22687 #ifdef __cplusplus
22688 extern "C"
22689 #endif
22690 char socket ();
22691 int
22692 main ()
22693 {
22694 return socket ();
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 if ac_fn_c_try_link "$LINENO"; then :
22700   ac_cv_lib_xnet_socket=yes
22701 else
22702   ac_cv_lib_xnet_socket=no
22703 fi
22704 rm -f core conftest.err conftest.$ac_objext \
22705     conftest$ac_exeext conftest.$ac_ext
22706 LIBS=$ac_check_lib_save_LIBS
22707 fi
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22709 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22710 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22711   cat >>confdefs.h <<_ACEOF
22712 #define HAVE_LIBXNET 1
22713 _ACEOF
22714
22715   LIBS="-lxnet $LIBS"
22716
22717 fi
22718
22719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22720 $as_echo_n "checking for socket in -lsocket... " >&6; }
22721 if ${ac_cv_lib_socket_socket+:} false; then :
22722   $as_echo_n "(cached) " >&6
22723 else
22724   ac_check_lib_save_LIBS=$LIBS
22725 LIBS="-lsocket  $LIBS"
22726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727 /* end confdefs.h.  */
22728
22729 /* Override any GCC internal prototype to avoid an error.
22730    Use char because int might match the return type of a GCC
22731    builtin and then its argument prototype would still apply.  */
22732 #ifdef __cplusplus
22733 extern "C"
22734 #endif
22735 char socket ();
22736 int
22737 main ()
22738 {
22739 return socket ();
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 if ac_fn_c_try_link "$LINENO"; then :
22745   ac_cv_lib_socket_socket=yes
22746 else
22747   ac_cv_lib_socket_socket=no
22748 fi
22749 rm -f core conftest.err conftest.$ac_objext \
22750     conftest$ac_exeext conftest.$ac_ext
22751 LIBS=$ac_check_lib_save_LIBS
22752 fi
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22754 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22755 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22756   cat >>confdefs.h <<_ACEOF
22757 #define HAVE_LIBSOCKET 1
22758 _ACEOF
22759
22760   LIBS="-lsocket $LIBS"
22761
22762 fi
22763
22764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22765 $as_echo_n "checking for socket in -linet... " >&6; }
22766 if ${ac_cv_lib_inet_socket+:} false; then :
22767   $as_echo_n "(cached) " >&6
22768 else
22769   ac_check_lib_save_LIBS=$LIBS
22770 LIBS="-linet  $LIBS"
22771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22772 /* end confdefs.h.  */
22773
22774 /* Override any GCC internal prototype to avoid an error.
22775    Use char because int might match the return type of a GCC
22776    builtin and then its argument prototype would still apply.  */
22777 #ifdef __cplusplus
22778 extern "C"
22779 #endif
22780 char socket ();
22781 int
22782 main ()
22783 {
22784 return socket ();
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 if ac_fn_c_try_link "$LINENO"; then :
22790   ac_cv_lib_inet_socket=yes
22791 else
22792   ac_cv_lib_inet_socket=no
22793 fi
22794 rm -f core conftest.err conftest.$ac_objext \
22795     conftest$ac_exeext conftest.$ac_ext
22796 LIBS=$ac_check_lib_save_LIBS
22797 fi
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22799 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22800 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22801   cat >>confdefs.h <<_ACEOF
22802 #define HAVE_LIBINET 1
22803 _ACEOF
22804
22805   LIBS="-linet $LIBS"
22806
22807 fi
22808
22809 fi
22810
22811
22812 TCPW_MSG="no"
22813 WRAPLIBS=""
22814
22815 # Check whether --with-tcp-wrappers was given.
22816 if test "${with_tcp_wrappers+set}" = set; then :
22817   withval=$with_tcp_wrappers;
22818        if test "x$withval" != "xno" ; then
22819           saved_LIBS="$LIBS"
22820           LIBS="$saved_LIBS -lwrap"
22821           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22822 $as_echo_n "checking for library containing nanosleep... " >&6; }
22823 if ${ac_cv_search_nanosleep+:} false; then :
22824   $as_echo_n "(cached) " >&6
22825 else
22826   ac_func_search_save_LIBS=$LIBS
22827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22828 /* end confdefs.h.  */
22829
22830 /* Override any GCC internal prototype to avoid an error.
22831    Use char because int might match the return type of a GCC
22832    builtin and then its argument prototype would still apply.  */
22833 #ifdef __cplusplus
22834 extern "C"
22835 #endif
22836 char nanosleep ();
22837 int
22838 main ()
22839 {
22840 return nanosleep ();
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 for ac_lib in '' rt; do
22846   if test -z "$ac_lib"; then
22847     ac_res="none required"
22848   else
22849     ac_res=-l$ac_lib
22850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22851   fi
22852   if ac_fn_c_try_link "$LINENO"; then :
22853   ac_cv_search_nanosleep=$ac_res
22854 fi
22855 rm -f core conftest.err conftest.$ac_objext \
22856     conftest$ac_exeext
22857   if ${ac_cv_search_nanosleep+:} false; then :
22858   break
22859 fi
22860 done
22861 if ${ac_cv_search_nanosleep+:} false; then :
22862
22863 else
22864   ac_cv_search_nanosleep=no
22865 fi
22866 rm conftest.$ac_ext
22867 LIBS=$ac_func_search_save_LIBS
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22870 $as_echo "$ac_cv_search_nanosleep" >&6; }
22871 ac_res=$ac_cv_search_nanosleep
22872 if test "$ac_res" != no; then :
22873   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22874
22875 fi
22876
22877           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22878 $as_echo_n "checking for libwrap... " >&6; }
22879           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h.  */
22881
22882                #include <sys/types.h>
22883                #include <tcpd.h>
22884                int deny_severity = 0;
22885                int allow_severity = 0;
22886                struct request_info *req;
22887
22888 int
22889 main ()
22890 {
22891
22892                 hosts_access(req);
22893
22894   ;
22895   return 0;
22896 }
22897 _ACEOF
22898 if ac_fn_c_try_link "$LINENO"; then :
22899
22900                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22901 $as_echo "yes" >&6; }
22902
22903 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22904
22905                  TCPW_MSG="yes"
22906                  LIBS="$saved_LIBS"
22907                  WRAPLIBS="-lwrap"
22908
22909 else
22910
22911                  LIBS="$saved_LIBS -lwrap -lnsl"
22912                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22913                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h.  */
22915
22916                        #include <sys/types.h>
22917                        #include <tcpd.h>
22918                        int deny_severity = 0;
22919                        int allow_severity = 0;
22920                        struct request_info *req;
22921
22922 int
22923 main ()
22924 {
22925
22926                        hosts_access(req);
22927
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 if ac_fn_c_try_link "$LINENO"; then :
22933
22934                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22935 $as_echo "yes" >&6; }
22936
22937 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22938
22939                       TCPW_MSG="yes"
22940                       LIBS="$saved_LIBS"
22941                       WRAPLIBS="-lwrap"
22942
22943 else
22944
22945                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22946
22947
22948 fi
22949 rm -f core conftest.err conftest.$ac_objext \
22950     conftest$ac_exeext conftest.$ac_ext
22951
22952
22953 fi
22954 rm -f core conftest.err conftest.$ac_objext \
22955     conftest$ac_exeext conftest.$ac_ext
22956        fi
22957
22958
22959 fi
22960
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22963 $as_echo_n "checking for OpenSSL... " >&6; }
22964
22965 # Check whether --with-openssl was given.
22966 if test "${with_openssl+set}" = set; then :
22967   withval=$with_openssl;
22968         with_openssl_directory=${withval}
22969
22970
22971 fi
22972
22973
22974 if test "x$with_openssl_directory" != "xno"; then
22975    OPENSSL_LIBS="-lssl -lcrypto"
22976    OPENSSL_INC=""
22977
22978    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22979       #
22980       # Make sure the $with_openssl_directory also makes sense
22981       #
22982       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22983          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22984          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22985       fi
22986    fi
22987
22988    saved_LIBS="${LIBS}"
22989    saved_CFLAGS="${CFLAGS}"
22990    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22991    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22992
22993    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994 /* end confdefs.h.  */
22995
22996           #include <openssl/ssl.h>
22997
22998 int
22999 main ()
23000 {
23001
23002            CRYPTO_set_id_callback(NULL);
23003
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 if ac_fn_c_try_link "$LINENO"; then :
23009
23010           support_tls="yes"
23011           support_crypto="yes"
23012
23013 else
23014
23015           support_tls="no"
23016           support_crypto="no"
23017
23018
23019 fi
23020 rm -f core conftest.err conftest.$ac_objext \
23021     conftest$ac_exeext conftest.$ac_ext
23022
23023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h.  */
23025
23026           #include <openssl/evp.h>
23027
23028 int
23029 main ()
23030 {
23031
23032           EVP_sha512();
23033
23034   ;
23035   return 0;
23036 }
23037 _ACEOF
23038 if ac_fn_c_try_link "$LINENO"; then :
23039
23040           ac_cv_openssl_sha2="yes"
23041
23042 else
23043
23044           ac_cv_openssl_sha2="no"
23045
23046
23047 fi
23048 rm -f core conftest.err conftest.$ac_objext \
23049     conftest$ac_exeext conftest.$ac_ext
23050
23051                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h.  */
23053
23054           #include <openssl/evp.h>
23055
23056 int
23057 main ()
23058 {
23059
23060           EVP_aes_192_cbc();
23061
23062   ;
23063   return 0;
23064 }
23065 _ACEOF
23066 if ac_fn_c_try_link "$LINENO"; then :
23067
23068           ac_cv_openssl_export="no"
23069
23070 else
23071
23072           ac_cv_openssl_export="yes"
23073
23074
23075 fi
23076 rm -f core conftest.err conftest.$ac_objext \
23077     conftest$ac_exeext conftest.$ac_ext
23078
23079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23080 $as_echo "$support_tls" >&6; }
23081    if test "$support_tls" = "yes"; then
23082
23083 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23084
23085
23086 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23087
23088
23089 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23090
23091    fi
23092
23093    if test "$ac_cv_openssl_sha2" = "yes"; then
23094
23095 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23096
23097    fi
23098
23099    if test "$ac_cv_openssl_export" = "yes"; then
23100
23101 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23102
23103    fi
23104
23105    if test "$support_crypto" = "yes"; then
23106       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23107 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23108 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23109   $as_echo_n "(cached) " >&6
23110 else
23111   ac_check_lib_save_LIBS=$LIBS
23112 LIBS="-lcrypto  $LIBS"
23113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h.  */
23115
23116 /* Override any GCC internal prototype to avoid an error.
23117    Use char because int might match the return type of a GCC
23118    builtin and then its argument prototype would still apply.  */
23119 #ifdef __cplusplus
23120 extern "C"
23121 #endif
23122 char EVP_PKEY_encrypt_old ();
23123 int
23124 main ()
23125 {
23126 return EVP_PKEY_encrypt_old ();
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 if ac_fn_c_try_link "$LINENO"; then :
23132   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23133 else
23134   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23135 fi
23136 rm -f core conftest.err conftest.$ac_objext \
23137     conftest$ac_exeext conftest.$ac_ext
23138 LIBS=$ac_check_lib_save_LIBS
23139 fi
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23141 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23142 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23143
23144 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23145
23146 fi
23147
23148    fi
23149
23150    LIBS="${saved_LIBS}"
23151    CFLAGS="${saved_CFLAGS}"
23152 else
23153    support_tls="no"
23154    support_crypto="no"
23155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23156 $as_echo "$support_tls" >&6; }
23157 fi
23158
23159 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23160    OPENSSL_LIBS=""
23161    OPENSSL_INC=""
23162 fi
23163
23164
23165
23166
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23168 $as_echo_n "checking for library containing dlopen... " >&6; }
23169 if ${ac_cv_search_dlopen+:} false; then :
23170   $as_echo_n "(cached) " >&6
23171 else
23172   ac_func_search_save_LIBS=$LIBS
23173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23174 /* end confdefs.h.  */
23175
23176 /* Override any GCC internal prototype to avoid an error.
23177    Use char because int might match the return type of a GCC
23178    builtin and then its argument prototype would still apply.  */
23179 #ifdef __cplusplus
23180 extern "C"
23181 #endif
23182 char dlopen ();
23183 int
23184 main ()
23185 {
23186 return dlopen ();
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 for ac_lib in '' dl; do
23192   if test -z "$ac_lib"; then
23193     ac_res="none required"
23194   else
23195     ac_res=-l$ac_lib
23196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23197   fi
23198   if ac_fn_c_try_link "$LINENO"; then :
23199   ac_cv_search_dlopen=$ac_res
23200 fi
23201 rm -f core conftest.err conftest.$ac_objext \
23202     conftest$ac_exeext
23203   if ${ac_cv_search_dlopen+:} false; then :
23204   break
23205 fi
23206 done
23207 if ${ac_cv_search_dlopen+:} false; then :
23208
23209 else
23210   ac_cv_search_dlopen=no
23211 fi
23212 rm conftest.$ac_ext
23213 LIBS=$ac_func_search_save_LIBS
23214 fi
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23216 $as_echo "$ac_cv_search_dlopen" >&6; }
23217 ac_res=$ac_cv_search_dlopen
23218 if test "$ac_res" != no; then :
23219   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23220
23221 fi
23222
23223
23224 working_dir=`eval echo /opt/bacula/working`
23225
23226 # Check whether --with-working-dir was given.
23227 if test "${with_working_dir+set}" = set; then :
23228   withval=$with_working_dir;
23229        if test "x$withval" != "xno" ; then
23230          working_dir=$withval
23231        fi
23232
23233
23234 fi
23235
23236
23237
23238
23239 archivedir=/tmp
23240
23241 # Check whether --with-archivedir was given.
23242 if test "${with_archivedir+set}" = set; then :
23243   withval=$with_archivedir;
23244        if test "x$withval" != "xno" ; then
23245           archivedir=$withval
23246        fi
23247
23248
23249 fi
23250
23251
23252
23253
23254 basename=`hostname`
23255
23256 # Check whether --with-basename was given.
23257 if test "${with_basename+set}" = set; then :
23258   withval=$with_basename;
23259        if test "x$withval" != "xno" ; then
23260           basename=$withval
23261        fi
23262
23263
23264 fi
23265
23266
23267
23268
23269 hostname=`uname -n | cut -d '.' -f 1`
23270 if test x${hostname} = x ; then
23271   hostname="localhost"
23272 fi
23273 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23274 if test ! $? = 0; then
23275   hostname="localhost"
23276 fi
23277
23278 # Check whether --with-hostname was given.
23279 if test "${with_hostname+set}" = set; then :
23280   withval=$with_hostname;
23281        if test "x$withval" != "xno" ; then
23282          hostname=$withval
23283        fi
23284
23285
23286 fi
23287
23288
23289
23290
23291
23292 scriptdir=`eval echo ${sysconfdir}`
23293
23294 # Check whether --with-scriptdir was given.
23295 if test "${with_scriptdir+set}" = set; then :
23296   withval=$with_scriptdir;
23297        if test "x$withval" != "xno" ; then
23298           scriptdir=$withval
23299        fi
23300
23301
23302 fi
23303
23304
23305
23306
23307
23308 bsrdir=`eval echo /opt/bacula/bsr`
23309
23310 # Check whether --with-bsrdir was given.
23311 if test "${with_bsrdir+set}" = set; then :
23312   withval=$with_bsrdir;
23313        if test "x$withval" != "xno" ; then
23314           bsrdir=$withval
23315        fi
23316
23317
23318 fi
23319
23320
23321
23322
23323 logdir=`eval echo /opt/bacula/log`
23324
23325 # Check whether --with-logdir was given.
23326 if test "${with_logdir+set}" = set; then :
23327   withval=$with_logdir;
23328        if test "x$withval" != "xno" ; then
23329           logdir=$withval
23330        fi
23331
23332
23333 fi
23334
23335
23336
23337
23338
23339 # ------------------------------------------
23340 # Where to place plugindir (plugin files)
23341 # ------------------------------------------
23342 plugindir=`eval echo ${libdir}`
23343
23344 # Check whether --with-plugindir was given.
23345 if test "${with_plugindir+set}" = set; then :
23346   withval=$with_plugindir;
23347        if test "x$withval" != "xno" ; then
23348           plugindir=$withval
23349        fi
23350
23351
23352 fi
23353
23354
23355
23356
23357
23358 dump_email=root@localhost
23359
23360 # Check whether --with-dump-email was given.
23361 if test "${with_dump_email+set}" = set; then :
23362   withval=$with_dump_email;
23363        if test "x$withval" != "xno" ; then
23364           dump_email=$withval
23365        fi
23366
23367
23368 fi
23369
23370
23371
23372
23373 job_email=root@localhost
23374
23375 # Check whether --with-job-email was given.
23376 if test "${with_job_email+set}" = set; then :
23377   withval=$with_job_email;
23378        if test "x$withval" != "xno" ; then
23379           job_email=$withval
23380        fi
23381
23382
23383 fi
23384
23385
23386
23387
23388 smtp_host=localhost
23389
23390 # Check whether --with-smtp_host was given.
23391 if test "${with_smtp_host+set}" = set; then :
23392   withval=$with_smtp_host;
23393        if test "x$withval" != "xno" ; then
23394           smtp_host=$withval
23395        fi
23396
23397
23398 fi
23399
23400
23401
23402
23403 piddir=/var/run
23404
23405 # Check whether --with-pid-dir was given.
23406 if test "${with_pid_dir+set}" = set; then :
23407   withval=$with_pid_dir;
23408        if test "x$withval" != "xno" ; then
23409           piddir=$withval
23410        fi
23411
23412
23413 fi
23414
23415
23416 cat >>confdefs.h <<_ACEOF
23417 #define _PATH_BACULA_PIDDIR "$piddir"
23418 _ACEOF
23419
23420
23421
23422 subsysdir=/var/run/subsys
23423 if test -d /var/run/subsys; then
23424    subsysdir=/var/run/subsys
23425 elif test -d /var/lock/subsys; then
23426    subsysdir=/var/lock/subsys
23427 else
23428    subsysdir=/var/run/subsys
23429 fi
23430
23431 # Check whether --with-subsys-dir was given.
23432 if test "${with_subsys_dir+set}" = set; then :
23433   withval=$with_subsys_dir;
23434        if test "x$withval" != "xno" ; then
23435           subsysdir=$withval
23436        fi
23437
23438
23439 fi
23440
23441
23442
23443
23444 baseport=9101
23445
23446 # Check whether --with-baseport was given.
23447 if test "${with_baseport+set}" = set; then :
23448   withval=$with_baseport;
23449        if test "x$withval" != "xno" ; then
23450           baseport=$withval
23451        fi
23452
23453
23454 fi
23455
23456
23457
23458 dir_port=`expr $baseport`
23459 fd_port=`expr $baseport + 1`
23460 sd_port=`expr $fd_port + 1`
23461
23462
23463
23464
23465
23466 dir_password=
23467
23468 # Check whether --with-dir-password was given.
23469 if test "${with_dir_password+set}" = set; then :
23470   withval=$with_dir_password;
23471        if test "x$withval" != "xno" ; then
23472           dir_password=$withval
23473        fi
23474
23475
23476 fi
23477
23478
23479 if test "x$dir_password" = "x" ; then
23480    if test "x$OPENSSL" = "xnone" ; then
23481       key=`autoconf/randpass 33`
23482    else
23483       key=`openssl rand -base64 33`
23484    fi
23485    dir_password=$key
23486 fi
23487
23488 fd_password=
23489
23490 # Check whether --with-fd-password was given.
23491 if test "${with_fd_password+set}" = set; then :
23492   withval=$with_fd_password;
23493        if test "x$withval" != "xno" ; then
23494           fd_password=$withval
23495        fi
23496
23497
23498 fi
23499
23500
23501 if test "x$fd_password" = "x" ; then
23502    if test "x$OPENSSL" = "xnone" ; then
23503       key=`autoconf/randpass 37`
23504    else
23505       key=`openssl rand -base64 33`
23506    fi
23507    fd_password=$key
23508 fi
23509
23510 sd_password=
23511
23512 # Check whether --with-sd-password was given.
23513 if test "${with_sd_password+set}" = set; then :
23514   withval=$with_sd_password;
23515        if test "x$withval" != "xno" ; then
23516           sd_password=$withval
23517        fi
23518
23519
23520 fi
23521
23522
23523 if test "x$sd_password" = "x" ; then
23524    if test "x$OPENSSL" = "xnone" ; then
23525       key=`autoconf/randpass 41`
23526    else
23527       key=`openssl rand -base64 33`
23528    fi
23529    sd_password=$key
23530 fi
23531
23532 mon_dir_password=
23533
23534 # Check whether --with-mon-dir-password was given.
23535 if test "${with_mon_dir_password+set}" = set; then :
23536   withval=$with_mon_dir_password;
23537        if test "x$withval" != "xno" ; then
23538           mon_dir_password=$withval
23539        fi
23540
23541
23542 fi
23543
23544
23545 if test "x$mon_dir_password" = "x" ; then
23546    if test "x$OPENSSL" = "xnone" ; then
23547       key=`autoconf/randpass 33`
23548    else
23549       key=`openssl rand -base64 33`
23550    fi
23551    mon_dir_password=$key
23552 fi
23553
23554 mon_fd_password=
23555
23556 # Check whether --with-mon-fd-password was given.
23557 if test "${with_mon_fd_password+set}" = set; then :
23558   withval=$with_mon_fd_password;
23559        if test "x$withval" != "xno" ; then
23560           mon_fd_password=$withval
23561        fi
23562
23563
23564 fi
23565
23566
23567 if test "x$mon_fd_password" = "x" ; then
23568    if test "x$OPENSSL" = "xnone" ; then
23569       key=`autoconf/randpass 37`
23570    else
23571       key=`openssl rand -base64 33`
23572    fi
23573    mon_fd_password=$key
23574 fi
23575
23576 mon_sd_password=
23577
23578 # Check whether --with-mon-sd-password was given.
23579 if test "${with_mon_sd_password+set}" = set; then :
23580   withval=$with_mon_sd_password;
23581        if test "x$withval" != "xno" ; then
23582           mon_sd_password=$withval
23583        fi
23584
23585
23586 fi
23587
23588
23589 if test "x$mon_sd_password" = "x" ; then
23590    if test "x$OPENSSL" = "xnone" ; then
23591       key=`autoconf/randpass 41`
23592    else
23593       key=`openssl rand -base64 33`
23594    fi
23595    mon_sd_password=$key
23596 fi
23597
23598
23599
23600
23601
23602
23603
23604
23605 db_name=bacula
23606
23607 # Check whether --with-db_name was given.
23608 if test "${with_db_name+set}" = set; then :
23609   withval=$with_db_name;
23610        if test "x$withval" != "x" ; then
23611           db_name=$withval
23612        fi
23613
23614
23615 fi
23616
23617
23618
23619 db_user=bacula
23620
23621 # Check whether --with-db_user was given.
23622 if test "${with_db_user+set}" = set; then :
23623   withval=$with_db_user;
23624        if test "x$withval" != "x" ; then
23625           db_user=$withval
23626        fi
23627
23628
23629 fi
23630
23631
23632
23633 db_password=
23634
23635 # Check whether --with-db_password was given.
23636 if test "${with_db_password+set}" = set; then :
23637   withval=$with_db_password;
23638        if test "x$withval" != "x" ; then
23639           db_password=$withval
23640        fi
23641
23642
23643 fi
23644
23645
23646
23647 db_port=" "
23648
23649 # Check whether --with-db_port was given.
23650 if test "${with_db_port+set}" = set; then :
23651   withval=$with_db_port;
23652        if test "x$withval" != "x" ; then
23653           db_port=$withval
23654        fi
23655
23656
23657 fi
23658
23659
23660
23661 #
23662 # Handle users and groups for each daemon
23663 #
23664 dir_user=
23665
23666 # Check whether --with-dir_user was given.
23667 if test "${with_dir_user+set}" = set; then :
23668   withval=$with_dir_user;
23669        if test "x$withval" != "x" ; then
23670            dir_user=$withval
23671        fi
23672
23673
23674 fi
23675
23676
23677 dir_group=
23678
23679 # Check whether --with-dir_group was given.
23680 if test "${with_dir_group+set}" = set; then :
23681   withval=$with_dir_group;
23682        if test "x$withval" != "x" ; then
23683           dir_group=$withval
23684        fi
23685
23686
23687 fi
23688
23689
23690 sd_user=
23691
23692 # Check whether --with-sd_user was given.
23693 if test "${with_sd_user+set}" = set; then :
23694   withval=$with_sd_user;
23695        if test "x$withval" != "x" ; then
23696           sd_user=$withval
23697        fi
23698
23699
23700 fi
23701
23702
23703 sd_group=
23704
23705 # Check whether --with-sd_group was given.
23706 if test "${with_sd_group+set}" = set; then :
23707   withval=$with_sd_group;
23708        if test "x$withval" != "x" ; then
23709           sd_group=$withval
23710        fi
23711
23712
23713 fi
23714
23715
23716 fd_user=
23717
23718 # Check whether --with-fd_user was given.
23719 if test "${with_fd_user+set}" = set; then :
23720   withval=$with_fd_user;
23721        if test "x$withval" != "x" ; then
23722           fd_user=$withval
23723        fi
23724
23725
23726 fi
23727
23728
23729 fd_group=
23730
23731 # Check whether --with-fd_group was given.
23732 if test "${with_fd_group+set}" = set; then :
23733   withval=$with_fd_group;
23734        if test "x$withval" != "x" ; then
23735           fd_group=$withval
23736        fi
23737
23738
23739 fi
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749 SBINPERM=0750
23750
23751 # Check whether --with-sbin-perm was given.
23752 if test "${with_sbin_perm+set}" = set; then :
23753   withval=$with_sbin_perm;
23754        if test "x$withval" != "x" ; then
23755           SBINPERM=$withval
23756        fi
23757
23758
23759 fi
23760
23761
23762
23763
23764 support_batch_insert=yes
23765 # Check whether --enable-batch-insert was given.
23766 if test "${enable_batch_insert+set}" = set; then :
23767   enableval=$enable_batch_insert;
23768        if test x$enableval = xno; then
23769           support_batch_insert=no
23770        fi
23771
23772
23773 fi
23774
23775
23776 if test x$support_batch_insert = xyes; then
23777
23778 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23779
23780 fi
23781
23782
23783 uncomment_dbi="#"
23784
23785
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23787 $as_echo_n "checking for PostgreSQL support... " >&6; }
23788
23789 # Check whether --with-postgresql was given.
23790 if test "${with_postgresql+set}" = set; then :
23791   withval=$with_postgresql;
23792   if test "$withval" != "no"; then
23793       if test "$withval" = "yes"; then
23794           PG_CONFIG=`which pg_config 2>/dev/null`
23795           if test -n "$PG_CONFIG"; then
23796               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23797               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23798               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23799           elif test -f /usr/local/include/libpq-fe.h; then
23800               POSTGRESQL_INCDIR=/usr/local/include
23801               if test -d /usr/local/lib64; then
23802                  POSTGRESQL_LIBDIR=/usr/local/lib64
23803               else
23804                  POSTGRESQL_LIBDIR=/usr/local/lib
23805               fi
23806               POSTGRESQL_BINDIR=/usr/local/bin
23807           elif test -f /usr/include/libpq-fe.h; then
23808               POSTGRESQL_INCDIR=/usr/include
23809               if test -d /usr/lib64; then
23810                  POSTGRESQL_LIBDIR=/usr/lib64
23811               else
23812                  POSTGRESQL_LIBDIR=/usr/lib
23813               fi
23814               POSTGRESQL_BINDIR=/usr/bin
23815           elif test -f /usr/include/pgsql/libpq-fe.h; then
23816               POSTGRESQL_INCDIR=/usr/include/pgsql
23817               if test -d /usr/lib64/pgsql; then
23818                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23819               else
23820                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23821               fi
23822               POSTGRESQL_BINDIR=/usr/bin
23823           elif test -f /usr/include/postgresql/libpq-fe.h; then
23824               POSTGRESQL_INCDIR=/usr/include/postgresql
23825               if test -d /usr/lib64/postgresql; then
23826                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23827               else
23828                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23829               fi
23830               POSTGRESQL_BINDIR=/usr/bin
23831           else
23832               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23833 $as_echo "no" >&6; }
23834               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23835           fi
23836       elif test -f $withval/include/libpq-fe.h; then
23837           POSTGRESQL_INCDIR=$withval/include
23838           POSTGRESQL_LIBDIR=$withval/lib
23839           POSTGRESQL_BINDIR=$withval/bin
23840       elif test -f $withval/include/postgresql/libpq-fe.h; then
23841           POSTGRESQL_INCDIR=$withval/include/postgresql
23842           if test -d $withval/lib64; then
23843               POSTGRESQL_LIBDIR=$withval/lib64
23844           else
23845               POSTGRESQL_LIBDIR=$withval/lib
23846           fi
23847           POSTGRESQL_BINDIR=$withval/bin
23848       else
23849           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23850 $as_echo "no" >&6; }
23851           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23852       fi
23853
23854 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23855
23856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23857 $as_echo "yes" >&6; }
23858
23859      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23860      if test x$use_libtool != xno; then
23861         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23862      else
23863         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23864      fi
23865      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23866 if test "x$ac_cv_func_crypt" = xyes; then :
23867
23868 else
23869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23870 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23871 if ${ac_cv_lib_crypt_crypt+:} false; then :
23872   $as_echo_n "(cached) " >&6
23873 else
23874   ac_check_lib_save_LIBS=$LIBS
23875 LIBS="-lcrypt  $LIBS"
23876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23877 /* end confdefs.h.  */
23878
23879 /* Override any GCC internal prototype to avoid an error.
23880    Use char because int might match the return type of a GCC
23881    builtin and then its argument prototype would still apply.  */
23882 #ifdef __cplusplus
23883 extern "C"
23884 #endif
23885 char crypt ();
23886 int
23887 main ()
23888 {
23889 return crypt ();
23890   ;
23891   return 0;
23892 }
23893 _ACEOF
23894 if ac_fn_c_try_link "$LINENO"; then :
23895   ac_cv_lib_crypt_crypt=yes
23896 else
23897   ac_cv_lib_crypt_crypt=no
23898 fi
23899 rm -f core conftest.err conftest.$ac_objext \
23900     conftest$ac_exeext conftest.$ac_ext
23901 LIBS=$ac_check_lib_save_LIBS
23902 fi
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23904 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23905 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23906   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23907 fi
23908
23909 fi
23910
23911      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23912      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23913
23914      if test -z "${db_backends}"; then
23915          db_backends="PostgreSQL"
23916      else
23917          db_backends="${db_backends} PostgreSQL"
23918      fi
23919      if test -z "${DB_BACKENDS}"; then
23920          DB_BACKENDS="postgresql"
23921      else
23922          DB_BACKENDS="${DB_BACKENDS} postgresql"
23923      fi
23924
23925                     if test "x$support_batch_insert" = "xyes"; then
23926                   saved_LDFLAGS="${LDFLAGS}"
23927          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23928          saved_LIBS="${LIBS}"
23929          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23930             LIBS="${saved_LIBS} -lcrypt"
23931          fi
23932
23933          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23934 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23935 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23936   $as_echo_n "(cached) " >&6
23937 else
23938   ac_check_lib_save_LIBS=$LIBS
23939 LIBS="-lpq  $LIBS"
23940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23941 /* end confdefs.h.  */
23942
23943 /* Override any GCC internal prototype to avoid an error.
23944    Use char because int might match the return type of a GCC
23945    builtin and then its argument prototype would still apply.  */
23946 #ifdef __cplusplus
23947 extern "C"
23948 #endif
23949 char PQisthreadsafe ();
23950 int
23951 main ()
23952 {
23953 return PQisthreadsafe ();
23954   ;
23955   return 0;
23956 }
23957 _ACEOF
23958 if ac_fn_c_try_link "$LINENO"; then :
23959   ac_cv_lib_pq_PQisthreadsafe=yes
23960 else
23961   ac_cv_lib_pq_PQisthreadsafe=no
23962 fi
23963 rm -f core conftest.err conftest.$ac_objext \
23964     conftest$ac_exeext conftest.$ac_ext
23965 LIBS=$ac_check_lib_save_LIBS
23966 fi
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23968 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23969 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23970
23971 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23972
23973 fi
23974
23975          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23976 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23977 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23978   $as_echo_n "(cached) " >&6
23979 else
23980   ac_check_lib_save_LIBS=$LIBS
23981 LIBS="-lpq  $LIBS"
23982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23983 /* end confdefs.h.  */
23984
23985 /* Override any GCC internal prototype to avoid an error.
23986    Use char because int might match the return type of a GCC
23987    builtin and then its argument prototype would still apply.  */
23988 #ifdef __cplusplus
23989 extern "C"
23990 #endif
23991 char PQputCopyData ();
23992 int
23993 main ()
23994 {
23995 return PQputCopyData ();
23996   ;
23997   return 0;
23998 }
23999 _ACEOF
24000 if ac_fn_c_try_link "$LINENO"; then :
24001   ac_cv_lib_pq_PQputCopyData=yes
24002 else
24003   ac_cv_lib_pq_PQputCopyData=no
24004 fi
24005 rm -f core conftest.err conftest.$ac_objext \
24006     conftest$ac_exeext conftest.$ac_ext
24007 LIBS=$ac_check_lib_save_LIBS
24008 fi
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24010 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24011 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24012
24013 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24014
24015 fi
24016
24017          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24018              if test $support_batch_insert = yes ; then
24019
24020 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24021
24022                  if test -z "${batch_insert_db_backends}"; then
24023                      batch_insert_db_backends="PostgreSQL"
24024                  else
24025                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24026                  fi
24027              fi
24028          fi
24029
24030          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24031          then
24032              echo "WARNING: Your PostgreSQL client library is too old to detect "
24033              echo "if it was compiled with --enable-thread-safety, consider to "
24034              echo "upgrade it in order to avoid problems with Batch insert mode"
24035          fi
24036
24037                   LDFLAGS="${saved_LDFLAGS}"
24038          LIBS="${saved_LIBS}"
24039      fi
24040   else
24041      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24042 $as_echo "no" >&6; }
24043   fi
24044
24045 else
24046
24047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24048 $as_echo "no" >&6; }
24049
24050 fi
24051
24052
24053
24054
24055
24056
24057
24058
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24060 $as_echo_n "checking for MySQL support... " >&6; }
24061
24062 # Check whether --with-mysql was given.
24063 if test "${with_mysql+set}" = set; then :
24064   withval=$with_mysql;
24065   if test "$withval" != "no"; then
24066         if test "$withval" = "yes"; then
24067 #
24068 # This code is very broken on older systems
24069 #
24070 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24071 #           if test "x${MYSQL_CONFIG}" != x; then
24072 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24073 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24074 #              if test $? = 0 ; then
24075 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24076 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24077 #              else
24078 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24079 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24080 #              fi
24081 #           fi
24082 #           if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24083            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24084               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24085               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24086                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24087                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24088               else
24089                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24090               fi
24091               MYSQL_BINDIR=/usr/local/mysql/bin
24092            elif test -f /usr/include/mysql/mysql.h; then
24093               MYSQL_INCDIR=/usr/include/mysql
24094               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24095                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24096                  MYSQL_LIBDIR=/usr/lib64/mysql
24097               elif test -f /usr/lib64/libmysqlclient_r.a \
24098                         -o -f /usr/lib64/libmysqlclient_r.so; then
24099                  MYSQL_LIBDIR=/usr/lib64
24100               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24101                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24102                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24103               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24104                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24105                  MYSQL_LIBDIR=/usr/lib/mysql
24106               else
24107                  MYSQL_LIBDIR=/usr/lib
24108               fi
24109               MYSQL_BINDIR=/usr/bin
24110            elif test -f /usr/include/mysql.h; then
24111               MYSQL_INCDIR=/usr/include
24112               if test -f /usr/lib64/libmysqlclient_r.a \
24113                       -o -f /usr/lib64/libmysqlclient_r.so; then
24114                  MYSQL_LIBDIR=/usr/lib64
24115               else
24116                  MYSQL_LIBDIR=/usr/lib
24117               fi
24118               MYSQL_BINDIR=/usr/bin
24119            elif test -f /usr/local/include/mysql/mysql.h; then
24120               MYSQL_INCDIR=/usr/local/include/mysql
24121               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24122                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24123                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24124               else
24125                  MYSQL_LIBDIR=/usr/local/lib/mysql
24126               fi
24127               MYSQL_BINDIR=/usr/local/bin
24128            elif test -f /usr/local/include/mysql.h; then
24129               MYSQL_INCDIR=/usr/local/include
24130               if test -f /usr/local/lib64/libmysqlclient_r.a \
24131                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24132                  MYSQL_LIBDIR=/usr/local/lib64
24133               else
24134                  MYSQL_LIBDIR=/usr/local/lib
24135               fi
24136               MYSQL_BINDIR=/usr/local/bin
24137            else
24138               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24139 $as_echo "no" >&6; }
24140               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24141            fi
24142         else
24143            if test -f $withval/include/mysql/mysql.h; then
24144               MYSQL_INCDIR=$withval/include/mysql
24145               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24146                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24147                  MYSQL_LIBDIR=$withval/lib64/mysql
24148               elif test -f $withval/lib64/libmysqlclient_r.a \
24149                    -o -f $withval/lib64/libmysqlclient_r.so; then
24150                  MYSQL_LIBDIR=$withval/lib64
24151               elif test -f $withval/lib/libmysqlclient_r.a \
24152                    -o -f $withval/lib/libmysqlclient_r.so; then
24153                  MYSQL_LIBDIR=$withval/lib
24154               else
24155                  MYSQL_LIBDIR=$withval/lib/mysql
24156               fi
24157               MYSQL_BINDIR=$withval/bin
24158            elif test -f $withval/include/mysql.h; then
24159               MYSQL_INCDIR=$withval/include
24160               if test -f $withval/lib64/libmysqlclient_r.a \
24161                    -o -f $withval/lib64/libmysqlclient_r.so; then
24162                  MYSQL_LIBDIR=$withval/lib64
24163               else
24164                  MYSQL_LIBDIR=$withval/lib
24165               fi
24166               MYSQL_BINDIR=$withval/bin
24167            elif test -f $withval/mysql.h; then
24168                             MYSQL_INCDIR=$withval
24169               { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24170 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24171               case $MYSQL_INCDIR in
24172                  *mysql55*)
24173                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24174 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24175                                           if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24176                           -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24177                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24178 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24179                         MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24180                      fi
24181                      MYSQL_BINDIR=$prefix/lib/mysql55/bin
24182                  ;;
24183                  *mysql51*)
24184                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24185 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24186                                           if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24187                           -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24188                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24189 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24190                         MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24191                      fi
24192                      MYSQL_BINDIR=$prefix/lib/mysql51/bin
24193                  ;;
24194               esac
24195               if test -z "${MYSQL_LIBDIR}" ; then
24196                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24197 $as_echo "no" >&6; }
24198                  as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24199               fi
24200            else
24201               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24202 $as_echo "no" >&6; }
24203               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24204            fi
24205         fi
24206      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24207      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24208           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24209         if test x$use_libtool != xno; then
24210            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24211         else
24212            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24213         fi
24214         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24215      fi
24216      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24217
24218
24219 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24220
24221      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24222 $as_echo "yes" >&6; }
24223
24224      if test -z "${db_backends}" ; then
24225          db_backends="MySQL"
24226      else
24227          db_backends="${db_backends} MySQL"
24228      fi
24229      if test -z "${DB_BACKENDS}" ; then
24230          DB_BACKENDS="mysql"
24231      else
24232          DB_BACKENDS="${DB_BACKENDS} mysql"
24233      fi
24234
24235                     if test "x$support_batch_insert" = "xyes"; then
24236                   saved_LDFLAGS="${LDFLAGS}"
24237          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24238          saved_LIBS="${LIBS}"
24239          LIBS="${saved_LIBS} -lz"
24240
24241          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24242 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24243 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24244   $as_echo_n "(cached) " >&6
24245 else
24246   ac_check_lib_save_LIBS=$LIBS
24247 LIBS="-lmysqlclient_r  $LIBS"
24248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249 /* end confdefs.h.  */
24250
24251 /* Override any GCC internal prototype to avoid an error.
24252    Use char because int might match the return type of a GCC
24253    builtin and then its argument prototype would still apply.  */
24254 #ifdef __cplusplus
24255 extern "C"
24256 #endif
24257 char mysql_thread_safe ();
24258 int
24259 main ()
24260 {
24261 return mysql_thread_safe ();
24262   ;
24263   return 0;
24264 }
24265 _ACEOF
24266 if ac_fn_c_try_link "$LINENO"; then :
24267   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24268 else
24269   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24270 fi
24271 rm -f core conftest.err conftest.$ac_objext \
24272     conftest$ac_exeext conftest.$ac_ext
24273 LIBS=$ac_check_lib_save_LIBS
24274 fi
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24276 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24277 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24278
24279 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24280
24281 fi
24282
24283          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24284              if test -z "${batch_insert_db_backends}"; then
24285                  batch_insert_db_backends="MySQL"
24286              else
24287                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24288              fi
24289          fi
24290
24291                   LDFLAGS="${saved_LDFLAGS}"
24292          LIBS="${saved_LIBS}"
24293      fi
24294   else
24295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24296 $as_echo "no" >&6; }
24297   fi
24298
24299 else
24300
24301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24302 $as_echo "no" >&6; }
24303
24304 fi
24305
24306
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24308 $as_echo_n "checking for MySQL embedded support... " >&6; }
24309
24310 # Check whether --with-embedded-mysql was given.
24311 if test "${with_embedded_mysql+set}" = set; then :
24312   withval=$with_embedded_mysql;
24313   if test "$withval" != "no"; then
24314         if test "$withval" = "yes"; then
24315                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24316                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24317                         if test -d /usr/local/mysql/lib64/mysql; then
24318                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24319                         else
24320                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24321                         fi
24322                         MYSQL_BINDIR=/usr/local/mysql/bin
24323                 elif test -f /usr/include/mysql/mysql.h; then
24324                         MYSQL_INCDIR=/usr/include/mysql
24325                         if test -d /usr/lib64/mysql; then
24326                                 MYSQL_LIBDIR=/usr/lib64/mysql
24327                         else
24328                                 MYSQL_LIBDIR=/usr/lib/mysql
24329                         fi
24330                         MYSQL_BINDIR=/usr/bin
24331                 elif test -f /usr/include/mysql.h; then
24332                         MYSQL_INCDIR=/usr/include
24333                         if test -d /usr/lib64; then
24334                                 MYSQL_LIBDIR=/usr/lib64
24335                         else
24336                                 MYSQL_LIBDIR=/usr/lib
24337                         fi
24338                         MYSQL_BINDIR=/usr/bin
24339                 elif test -f /usr/local/include/mysql/mysql.h; then
24340                         MYSQL_INCDIR=/usr/local/include/mysql
24341                         if test -d /usr/local/lib64/mysql; then
24342                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24343                         else
24344                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24345                         fi
24346                         MYSQL_BINDIR=/usr/local/bin
24347                 elif test -f /usr/local/include/mysql.h; then
24348                         MYSQL_INCDIR=/usr/local/include
24349                         if test -d /usr/local/lib64; then
24350                                 MYSQL_LIBDIR=/usr/local/lib64
24351                         else
24352                                 MYSQL_LIBDIR=/usr/local/lib
24353                         fi
24354                         MYSQL_BINDIR=/usr/local/bin
24355                 else
24356                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24357 $as_echo "no" >&6; }
24358                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24359                 fi
24360         else
24361                 if test -f $withval/include/mysql/mysql.h; then
24362                         MYSQL_INCDIR=$withval/include/mysql
24363                         if test -d $withval/lib64/mysql; then
24364                                 MYSQL_LIBDIR=$withval/lib64/mysql
24365                         else
24366                                 MYSQL_LIBDIR=$withval/lib/mysql
24367                         fi
24368                         MYSQL_BINDIR=$withval/bin
24369                 elif test -f $withval/include/mysql.h; then
24370                         MYSQL_INCDIR=$withval/include
24371                         if test -d $withval/lib64; then
24372                                 MYSQL_LIBDIR=$withval/lib64
24373                         else
24374                                 MYSQL_LIBDIR=$withval/lib
24375                         fi
24376                         MYSQL_BINDIR=$withval/bin
24377                 else
24378                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24379 $as_echo "no" >&6; }
24380                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24381                 fi
24382         fi
24383      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24384      if test x$use_libtool != xno; then
24385         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24386      else
24387         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24388      fi
24389      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24390      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24391
24392
24393 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24394
24395
24396 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24397
24398      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24399 $as_echo "yes" >&6; }
24400
24401      if test -z "${db_backends}"; then
24402          db_backends="MySQL"
24403      else
24404          db_backends="${db_backends} MySQL"
24405      fi
24406      if test -z "${DB_BACKENDS}"; then
24407          DB_BACKENDS="mysql"
24408      else
24409          DB_BACKENDS="${DB_BACKENDS} mysql"
24410      fi
24411
24412                     if test "x$support_batch_insert" = "xyes"; then
24413                   saved_LDFLAGS="${LDFLAGS}"
24414          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24415          saved_LIBS="${LIBS}"
24416          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24417
24418          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24419 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24420 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24421   $as_echo_n "(cached) " >&6
24422 else
24423   ac_check_lib_save_LIBS=$LIBS
24424 LIBS="-lmysqlclient_r  $LIBS"
24425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24426 /* end confdefs.h.  */
24427
24428 /* Override any GCC internal prototype to avoid an error.
24429    Use char because int might match the return type of a GCC
24430    builtin and then its argument prototype would still apply.  */
24431 #ifdef __cplusplus
24432 extern "C"
24433 #endif
24434 char mysql_thread_safe ();
24435 int
24436 main ()
24437 {
24438 return mysql_thread_safe ();
24439   ;
24440   return 0;
24441 }
24442 _ACEOF
24443 if ac_fn_c_try_link "$LINENO"; then :
24444   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24445 else
24446   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24447 fi
24448 rm -f core conftest.err conftest.$ac_objext \
24449     conftest$ac_exeext conftest.$ac_ext
24450 LIBS=$ac_check_lib_save_LIBS
24451 fi
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24453 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24454 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24455
24456 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24457
24458 fi
24459
24460          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24461              if test -z "${batch_insert_db_backends}"; then
24462                  batch_insert_db_backends="MySQL"
24463              else
24464                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24465              fi
24466          fi
24467
24468                   LDFLAGS="${saved_LDFLAGS}"
24469          LIBS="${saved_LIBS}"
24470      fi
24471   else
24472      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24473 $as_echo "no" >&6; }
24474   fi
24475
24476 else
24477
24478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24479 $as_echo "no" >&6; }
24480
24481 fi
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24492 $as_echo_n "checking for SQLite3 support... " >&6; }
24493
24494 # Check whether --with-sqlite3 was given.
24495 if test "${with_sqlite3+set}" = set; then :
24496   withval=$with_sqlite3;
24497   if test "$withval" != "no"; then
24498      if test "$withval" = "yes"; then
24499         if test -f /usr/local/include/sqlite3.h; then
24500            SQLITE_INCDIR=/usr/local/include
24501            if test -d /usr/local/lib64; then
24502               SQLITE_LIBDIR=/usr/local/lib64
24503            else
24504               SQLITE_LIBDIR=/usr/local/lib
24505            fi
24506            SQLITE_BINDIR=/usr/local/bin
24507         elif test -f /usr/include/sqlite3.h; then
24508            SQLITE_INCDIR=/usr/include
24509            if test -d /usr/lib64; then
24510               SQLITE_LIBDIR=/usr/lib64
24511            else
24512               SQLITE_LIBDIR=/usr/lib
24513            fi
24514            SQLITE_BINDIR=/usr/bin
24515         elif test -f $prefix/include/sqlite3.h; then
24516            SQLITE_INCDIR=$prefix/include
24517            if test -d $prefix/lib64; then
24518               SQLITE_LIBDIR=$prefix/lib64
24519            else
24520               SQLITE_LIBDIR=$prefix/lib
24521            fi
24522            SQLITE_BINDIR=$prefix/bin
24523         else
24524            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24525 $as_echo "no" >&6; }
24526            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24527         fi
24528      else
24529         if test -f $withval/sqlite3.h; then
24530            SQLITE_INCDIR=$withval
24531            SQLITE_LIBDIR=$withval
24532            SQLITE_BINDIR=$withval
24533         elif test -f $withval/include/sqlite3.h; then
24534            SQLITE_INCDIR=$withval/include
24535            if test -d $withval/lib64; then
24536               SQLITE_LIBDIR=$withval/lib64
24537            else
24538               SQLITE_LIBDIR=$withval/lib
24539            fi
24540            SQLITE_BINDIR=$withval/bin
24541         else
24542            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24543 $as_echo "no" >&6; }
24544            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24545         fi
24546      fi
24547      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24548      if test x$use_libtool != xno; then
24549         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24550      else
24551         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24552      fi
24553      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24554      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24555
24556
24557 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24558
24559      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24560 $as_echo "yes" >&6; }
24561
24562      if test -z "${db_backends}"; then
24563          db_backends="SQLite3"
24564      else
24565          db_backends="${db_backends} SQLite3"
24566      fi
24567      if test -z "${DB_BACKENDS}"; then
24568          DB_BACKENDS="sqlite3"
24569      else
24570          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24571      fi
24572
24573                     if test "x$support_batch_insert" = "xyes"; then
24574                   saved_LDFLAGS="${LDFLAGS}"
24575          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24576
24577          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24578 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24579 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24580   $as_echo_n "(cached) " >&6
24581 else
24582   ac_check_lib_save_LIBS=$LIBS
24583 LIBS="-lsqlite3  $LIBS"
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h.  */
24586
24587 /* Override any GCC internal prototype to avoid an error.
24588    Use char because int might match the return type of a GCC
24589    builtin and then its argument prototype would still apply.  */
24590 #ifdef __cplusplus
24591 extern "C"
24592 #endif
24593 char sqlite3_threadsafe ();
24594 int
24595 main ()
24596 {
24597 return sqlite3_threadsafe ();
24598   ;
24599   return 0;
24600 }
24601 _ACEOF
24602 if ac_fn_c_try_link "$LINENO"; then :
24603   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24604 else
24605   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24606 fi
24607 rm -f core conftest.err conftest.$ac_objext \
24608     conftest$ac_exeext conftest.$ac_ext
24609 LIBS=$ac_check_lib_save_LIBS
24610 fi
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24612 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24613 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24614
24615 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24616
24617 fi
24618
24619          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24620              if test -z "${batch_insert_db_backends}"; then
24621                  batch_insert_db_backends="SQLite3"
24622              else
24623                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24624              fi
24625          fi
24626
24627                   LDFLAGS="${saved_LDFLAGS}"
24628      fi
24629   else
24630      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24631 $as_echo "no" >&6; }
24632   fi
24633
24634 else
24635
24636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24637 $as_echo "no" >&6; }
24638
24639 fi
24640
24641
24642
24643
24644
24645
24646
24647 if test -z "${batch_insert_db_backends}"; then
24648    batch_insert_db_backends="None"
24649 fi
24650
24651 if test "x${db_backends}" = "x" ; then
24652    echo " "
24653    echo " "
24654    echo "You have not specified either --enable-client-only or one of the"
24655    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24656    echo "This is not permitted. Please reconfigure."
24657    echo " "
24658    echo "Aborting the configuration ..."
24659    echo " "
24660    echo " "
24661    exit 1
24662 fi
24663
24664 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24665    1)
24666       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24667       if test x$use_libtool = xno; then
24668          SHARED_CATALOG_TARGETS=""
24669       else
24670          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24671       fi
24672       ;;
24673    *)
24674                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24675
24676                         if test x$use_libtool = xno; then
24677          echo " "
24678          echo " "
24679          echo "You have specified two or more of the"
24680          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24681          echo "This is not permitted when not using libtool Please reconfigure."
24682          echo " "
24683          echo "Aborting the configuration ..."
24684          echo " "
24685          echo " "
24686          exit 1
24687       fi
24688
24689       SHARED_CATALOG_TARGETS=""
24690       for db_type in ${DB_BACKENDS}
24691       do
24692          if test -z "${SHARED_CATALOG_TARGETS}"; then
24693             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24694          else
24695             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24696          fi
24697       done
24698       ;;
24699 esac
24700
24701 if test x$use_libtool = xyes; then
24702    DB_LIBS=""
24703 fi
24704
24705
24706
24707
24708
24709
24710
24711 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24712
24713
24714 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24715    if test -z "$CCOPTS"; then
24716       CCOPTS='-g -O2 -Wall'
24717    fi
24718    CFLAGS="$CCOPTS"
24719 fi
24720
24721
24722
24723 largefile_support="no"
24724
24725    # Check whether --enable-largefile was given.
24726 if test "${enable_largefile+set}" = set; then :
24727   enableval=$enable_largefile;
24728 fi
24729
24730    if test "$enable_largefile" != no; then
24731      if test -n "$ac_tool_prefix"; then
24732   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24733 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24735 $as_echo_n "checking for $ac_word... " >&6; }
24736 if ${ac_cv_prog_GETCONF+:} false; then :
24737   $as_echo_n "(cached) " >&6
24738 else
24739   if test -n "$GETCONF"; then
24740   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24741 else
24742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24743 for as_dir in $PATH
24744 do
24745   IFS=$as_save_IFS
24746   test -z "$as_dir" && as_dir=.
24747     for ac_exec_ext in '' $ac_executable_extensions; do
24748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24749     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24751     break 2
24752   fi
24753 done
24754   done
24755 IFS=$as_save_IFS
24756
24757 fi
24758 fi
24759 GETCONF=$ac_cv_prog_GETCONF
24760 if test -n "$GETCONF"; then
24761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24762 $as_echo "$GETCONF" >&6; }
24763 else
24764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24765 $as_echo "no" >&6; }
24766 fi
24767
24768
24769 fi
24770 if test -z "$ac_cv_prog_GETCONF"; then
24771   ac_ct_GETCONF=$GETCONF
24772   # Extract the first word of "getconf", so it can be a program name with args.
24773 set dummy getconf; ac_word=$2
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24775 $as_echo_n "checking for $ac_word... " >&6; }
24776 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24777   $as_echo_n "(cached) " >&6
24778 else
24779   if test -n "$ac_ct_GETCONF"; then
24780   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24781 else
24782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24783 for as_dir in $PATH
24784 do
24785   IFS=$as_save_IFS
24786   test -z "$as_dir" && as_dir=.
24787     for ac_exec_ext in '' $ac_executable_extensions; do
24788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24789     ac_cv_prog_ac_ct_GETCONF="getconf"
24790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24791     break 2
24792   fi
24793 done
24794   done
24795 IFS=$as_save_IFS
24796
24797 fi
24798 fi
24799 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24800 if test -n "$ac_ct_GETCONF"; then
24801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24802 $as_echo "$ac_ct_GETCONF" >&6; }
24803 else
24804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24805 $as_echo "no" >&6; }
24806 fi
24807
24808   if test "x$ac_ct_GETCONF" = x; then
24809     GETCONF=""
24810   else
24811     case $cross_compiling:$ac_tool_warned in
24812 yes:)
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24815 ac_tool_warned=yes ;;
24816 esac
24817     GETCONF=$ac_ct_GETCONF
24818   fi
24819 else
24820   GETCONF="$ac_cv_prog_GETCONF"
24821 fi
24822
24823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24824 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24825 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24826   $as_echo_n "(cached) " >&6
24827 else
24828   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24829         ac_cv_sys_largefile_CFLAGS=no
24830         case "$host_os" in
24831            # IRIX 6.2 and later require cc -n32.
24832            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24833              if test "$GCC" != yes; then
24834                ac_cv_sys_largefile_CFLAGS=-n32
24835              fi
24836              ac_save_CC="$CC"
24837              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24838              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24839 /* end confdefs.h.  */
24840
24841 int
24842 main ()
24843 {
24844
24845   ;
24846   return 0;
24847 }
24848 _ACEOF
24849 if ac_fn_c_try_link "$LINENO"; then :
24850
24851 else
24852   ac_cv_sys_largefile_CFLAGS=no
24853 fi
24854 rm -f core conftest.err conftest.$ac_objext \
24855     conftest$ac_exeext conftest.$ac_ext
24856              CC="$ac_save_CC"
24857            esac
24858       }
24859 fi
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24861 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24862      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24863 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24864 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24865   $as_echo_n "(cached) " >&6
24866 else
24867   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24868         ac_cv_sys_largefile_LDFLAGS=no
24869
24870       }
24871 fi
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24873 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24874      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24875 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24876 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24877   $as_echo_n "(cached) " >&6
24878 else
24879   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24880         ac_cv_sys_largefile_LIBS=no
24881
24882       }
24883 fi
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24885 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24886
24887      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24888        case "$ac_flag" in
24889        no) ;;
24890        -D_FILE_OFFSET_BITS=*) ;;
24891        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24892        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24893        -D?* | -I?*)
24894          case "$ac_flag" in
24895    no) ;;
24896    ?*)
24897      case "$CPPFLAGS" in
24898      '') CPPFLAGS="$ac_flag" ;;
24899      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24900      esac ;;
24901    esac ;;
24902        *)
24903          case "$ac_flag" in
24904    no) ;;
24905    ?*)
24906      case "$CFLAGS" in
24907      '') CFLAGS="$ac_flag" ;;
24908      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24909      esac ;;
24910    esac ;;
24911        esac
24912      done
24913      case "$ac_cv_sys_largefile_LDFLAGS" in
24914    no) ;;
24915    ?*)
24916      case "$LDFLAGS" in
24917      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24918      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24919      esac ;;
24920    esac
24921      case "$ac_cv_sys_largefile_LIBS" in
24922    no) ;;
24923    ?*)
24924      case "$LIBS" in
24925      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24926      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24927      esac ;;
24928    esac
24929      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24930 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24931 if ${ac_cv_sys_file_offset_bits+:} false; then :
24932   $as_echo_n "(cached) " >&6
24933 else
24934   ac_cv_sys_file_offset_bits=no
24935       ac_cv_sys_file_offset_bits=64
24936       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24937         case "$ac_flag" in
24938         -D_FILE_OFFSET_BITS)
24939           ac_cv_sys_file_offset_bits=1 ;;
24940         -D_FILE_OFFSET_BITS=*)
24941           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24942         esac
24943       done
24944
24945 fi
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24947 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24948    if test "$ac_cv_sys_file_offset_bits" != no; then
24949
24950 cat >>confdefs.h <<_ACEOF
24951 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24952 _ACEOF
24953
24954    fi
24955      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24956 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24957 if ${ac_cv_sys_largefile_source+:} false; then :
24958   $as_echo_n "(cached) " >&6
24959 else
24960   ac_cv_sys_largefile_source=no
24961       ac_cv_sys_largefile_source=1
24962       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24963         case "$ac_flag" in
24964         -D_LARGEFILE_SOURCE)
24965           ac_cv_sys_largefile_source=1 ;;
24966         -D_LARGEFILE_SOURCE=*)
24967           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24968         esac
24969       done
24970
24971 fi
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24973 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24974    if test "$ac_cv_sys_largefile_source" != no; then
24975
24976 cat >>confdefs.h <<_ACEOF
24977 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24978 _ACEOF
24979
24980    fi
24981      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24982 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24983 if ${ac_cv_sys_large_files+:} false; then :
24984   $as_echo_n "(cached) " >&6
24985 else
24986   ac_cv_sys_large_files=no
24987       ac_cv_sys_large_files=1
24988       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24989         case "$ac_flag" in
24990         -D_LARGE_FILES)
24991           ac_cv_sys_large_files=1 ;;
24992         -D_LARGE_FILES=*)
24993           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24994         esac
24995       done
24996
24997 fi
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24999 $as_echo "$ac_cv_sys_large_files" >&6; }
25000    if test "$ac_cv_sys_large_files" != no; then
25001
25002 cat >>confdefs.h <<_ACEOF
25003 #define _LARGE_FILES $ac_cv_sys_large_files
25004 _ACEOF
25005
25006    fi
25007    fi
25008
25009
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25011 $as_echo_n "checking for X... " >&6; }
25012
25013
25014 # Check whether --with-x was given.
25015 if test "${with_x+set}" = set; then :
25016   withval=$with_x;
25017 fi
25018
25019 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25020 if test "x$with_x" = xno; then
25021   # The user explicitly disabled X.
25022   have_x=disabled
25023 else
25024   case $x_includes,$x_libraries in #(
25025     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25026     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25027   $as_echo_n "(cached) " >&6
25028 else
25029   # One or both of the vars are not set, and there is no cached value.
25030 ac_x_includes=no ac_x_libraries=no
25031 rm -f -r conftest.dir
25032 if mkdir conftest.dir; then
25033   cd conftest.dir
25034   cat >Imakefile <<'_ACEOF'
25035 incroot:
25036         @echo incroot='${INCROOT}'
25037 usrlibdir:
25038         @echo usrlibdir='${USRLIBDIR}'
25039 libdir:
25040         @echo libdir='${LIBDIR}'
25041 _ACEOF
25042   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25043     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25044     for ac_var in incroot usrlibdir libdir; do
25045       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25046     done
25047     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25048     for ac_extension in a so sl dylib la dll; do
25049       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25050          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25051         ac_im_usrlibdir=$ac_im_libdir; break
25052       fi
25053     done
25054     # Screen out bogus values from the imake configuration.  They are
25055     # bogus both because they are the default anyway, and because
25056     # using them would break gcc on systems where it needs fixed includes.
25057     case $ac_im_incroot in
25058         /usr/include) ac_x_includes= ;;
25059         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25060     esac
25061     case $ac_im_usrlibdir in
25062         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25063         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25064     esac
25065   fi
25066   cd ..
25067   rm -f -r conftest.dir
25068 fi
25069
25070 # Standard set of common directories for X headers.
25071 # Check X11 before X11Rn because it is often a symlink to the current release.
25072 ac_x_header_dirs='
25073 /usr/X11/include
25074 /usr/X11R7/include
25075 /usr/X11R6/include
25076 /usr/X11R5/include
25077 /usr/X11R4/include
25078
25079 /usr/include/X11
25080 /usr/include/X11R7
25081 /usr/include/X11R6
25082 /usr/include/X11R5
25083 /usr/include/X11R4
25084
25085 /usr/local/X11/include
25086 /usr/local/X11R7/include
25087 /usr/local/X11R6/include
25088 /usr/local/X11R5/include
25089 /usr/local/X11R4/include
25090
25091 /usr/local/include/X11
25092 /usr/local/include/X11R7
25093 /usr/local/include/X11R6
25094 /usr/local/include/X11R5
25095 /usr/local/include/X11R4
25096
25097 /usr/X386/include
25098 /usr/x386/include
25099 /usr/XFree86/include/X11
25100
25101 /usr/include
25102 /usr/local/include
25103 /usr/unsupported/include
25104 /usr/athena/include
25105 /usr/local/x11r5/include
25106 /usr/lpp/Xamples/include
25107
25108 /usr/openwin/include
25109 /usr/openwin/share/include'
25110
25111 if test "$ac_x_includes" = no; then
25112   # Guess where to find include files, by looking for Xlib.h.
25113   # First, try using that file with no special directory specified.
25114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h.  */
25116 #include <X11/Xlib.h>
25117 _ACEOF
25118 if ac_fn_c_try_cpp "$LINENO"; then :
25119   # We can compile using X headers with no special include directory.
25120 ac_x_includes=
25121 else
25122   for ac_dir in $ac_x_header_dirs; do
25123   if test -r "$ac_dir/X11/Xlib.h"; then
25124     ac_x_includes=$ac_dir
25125     break
25126   fi
25127 done
25128 fi
25129 rm -f conftest.err conftest.i conftest.$ac_ext
25130 fi # $ac_x_includes = no
25131
25132 if test "$ac_x_libraries" = no; then
25133   # Check for the libraries.
25134   # See if we find them without any special options.
25135   # Don't add to $LIBS permanently.
25136   ac_save_LIBS=$LIBS
25137   LIBS="-lX11 $LIBS"
25138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25139 /* end confdefs.h.  */
25140 #include <X11/Xlib.h>
25141 int
25142 main ()
25143 {
25144 XrmInitialize ()
25145   ;
25146   return 0;
25147 }
25148 _ACEOF
25149 if ac_fn_c_try_link "$LINENO"; then :
25150   LIBS=$ac_save_LIBS
25151 # We can link X programs with no special library path.
25152 ac_x_libraries=
25153 else
25154   LIBS=$ac_save_LIBS
25155 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25156 do
25157   # Don't even attempt the hair of trying to link an X program!
25158   for ac_extension in a so sl dylib la dll; do
25159     if test -r "$ac_dir/libX11.$ac_extension"; then
25160       ac_x_libraries=$ac_dir
25161       break 2
25162     fi
25163   done
25164 done
25165 fi
25166 rm -f core conftest.err conftest.$ac_objext \
25167     conftest$ac_exeext conftest.$ac_ext
25168 fi # $ac_x_libraries = no
25169
25170 case $ac_x_includes,$ac_x_libraries in #(
25171   no,* | *,no | *\'*)
25172     # Didn't find X, or a directory has "'" in its name.
25173     ac_cv_have_x="have_x=no";; #(
25174   *)
25175     # Record where we found X for the cache.
25176     ac_cv_have_x="have_x=yes\
25177         ac_x_includes='$ac_x_includes'\
25178         ac_x_libraries='$ac_x_libraries'"
25179 esac
25180 fi
25181 ;; #(
25182     *) have_x=yes;;
25183   esac
25184   eval "$ac_cv_have_x"
25185 fi # $with_x != no
25186
25187 if test "$have_x" != yes; then
25188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25189 $as_echo "$have_x" >&6; }
25190   no_x=yes
25191 else
25192   # If each of the values was on the command line, it overrides each guess.
25193   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25194   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25195   # Update the cache value to reflect the command line values.
25196   ac_cv_have_x="have_x=yes\
25197         ac_x_includes='$x_includes'\
25198         ac_x_libraries='$x_libraries'"
25199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25200 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25201 fi
25202
25203 if test "$no_x" = yes; then
25204   # Not all programs may use this symbol, but it does not hurt to define it.
25205
25206 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25207
25208   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25209 else
25210   if test -n "$x_includes"; then
25211     X_CFLAGS="$X_CFLAGS -I$x_includes"
25212   fi
25213
25214   # It would also be nice to do this for all -L options, not just this one.
25215   if test -n "$x_libraries"; then
25216     X_LIBS="$X_LIBS -L$x_libraries"
25217     # For Solaris; some versions of Sun CC require a space after -R and
25218     # others require no space.  Words are not sufficient . . . .
25219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25220 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25221     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25222     ac_xsave_c_werror_flag=$ac_c_werror_flag
25223     ac_c_werror_flag=yes
25224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25225 /* end confdefs.h.  */
25226
25227 int
25228 main ()
25229 {
25230
25231   ;
25232   return 0;
25233 }
25234 _ACEOF
25235 if ac_fn_c_try_link "$LINENO"; then :
25236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25237 $as_echo "no" >&6; }
25238        X_LIBS="$X_LIBS -R$x_libraries"
25239 else
25240   LIBS="$ac_xsave_LIBS -R $x_libraries"
25241        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25242 /* end confdefs.h.  */
25243
25244 int
25245 main ()
25246 {
25247
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 if ac_fn_c_try_link "$LINENO"; then :
25253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25254 $as_echo "yes" >&6; }
25255           X_LIBS="$X_LIBS -R $x_libraries"
25256 else
25257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25258 $as_echo "neither works" >&6; }
25259 fi
25260 rm -f core conftest.err conftest.$ac_objext \
25261     conftest$ac_exeext conftest.$ac_ext
25262 fi
25263 rm -f core conftest.err conftest.$ac_objext \
25264     conftest$ac_exeext conftest.$ac_ext
25265     ac_c_werror_flag=$ac_xsave_c_werror_flag
25266     LIBS=$ac_xsave_LIBS
25267   fi
25268
25269   # Check for system-dependent libraries X programs must link with.
25270   # Do this before checking for the system-independent R6 libraries
25271   # (-lICE), since we may need -lsocket or whatever for X linking.
25272
25273   if test "$ISC" = yes; then
25274     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25275   else
25276     # Martyn Johnson says this is needed for Ultrix, if the X
25277     # libraries were built with DECnet support.  And Karl Berry says
25278     # the Alpha needs dnet_stub (dnet does not exist).
25279     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25281 /* end confdefs.h.  */
25282
25283 /* Override any GCC internal prototype to avoid an error.
25284    Use char because int might match the return type of a GCC
25285    builtin and then its argument prototype would still apply.  */
25286 #ifdef __cplusplus
25287 extern "C"
25288 #endif
25289 char XOpenDisplay ();
25290 int
25291 main ()
25292 {
25293 return XOpenDisplay ();
25294   ;
25295   return 0;
25296 }
25297 _ACEOF
25298 if ac_fn_c_try_link "$LINENO"; then :
25299
25300 else
25301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25302 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25303 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25304   $as_echo_n "(cached) " >&6
25305 else
25306   ac_check_lib_save_LIBS=$LIBS
25307 LIBS="-ldnet  $LIBS"
25308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h.  */
25310
25311 /* Override any GCC internal prototype to avoid an error.
25312    Use char because int might match the return type of a GCC
25313    builtin and then its argument prototype would still apply.  */
25314 #ifdef __cplusplus
25315 extern "C"
25316 #endif
25317 char dnet_ntoa ();
25318 int
25319 main ()
25320 {
25321 return dnet_ntoa ();
25322   ;
25323   return 0;
25324 }
25325 _ACEOF
25326 if ac_fn_c_try_link "$LINENO"; then :
25327   ac_cv_lib_dnet_dnet_ntoa=yes
25328 else
25329   ac_cv_lib_dnet_dnet_ntoa=no
25330 fi
25331 rm -f core conftest.err conftest.$ac_objext \
25332     conftest$ac_exeext conftest.$ac_ext
25333 LIBS=$ac_check_lib_save_LIBS
25334 fi
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25336 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25337 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25338   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25339 fi
25340
25341     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25342       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25343 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25344 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25345   $as_echo_n "(cached) " >&6
25346 else
25347   ac_check_lib_save_LIBS=$LIBS
25348 LIBS="-ldnet_stub  $LIBS"
25349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25350 /* end confdefs.h.  */
25351
25352 /* Override any GCC internal prototype to avoid an error.
25353    Use char because int might match the return type of a GCC
25354    builtin and then its argument prototype would still apply.  */
25355 #ifdef __cplusplus
25356 extern "C"
25357 #endif
25358 char dnet_ntoa ();
25359 int
25360 main ()
25361 {
25362 return dnet_ntoa ();
25363   ;
25364   return 0;
25365 }
25366 _ACEOF
25367 if ac_fn_c_try_link "$LINENO"; then :
25368   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25369 else
25370   ac_cv_lib_dnet_stub_dnet_ntoa=no
25371 fi
25372 rm -f core conftest.err conftest.$ac_objext \
25373     conftest$ac_exeext conftest.$ac_ext
25374 LIBS=$ac_check_lib_save_LIBS
25375 fi
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25377 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25378 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25379   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25380 fi
25381
25382     fi
25383 fi
25384 rm -f core conftest.err conftest.$ac_objext \
25385     conftest$ac_exeext conftest.$ac_ext
25386     LIBS="$ac_xsave_LIBS"
25387
25388     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25389     # to get the SysV transport functions.
25390     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25391     # needs -lnsl.
25392     # The nsl library prevents programs from opening the X display
25393     # on Irix 5.2, according to T.E. Dickey.
25394     # The functions gethostbyname, getservbyname, and inet_addr are
25395     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25396     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25397 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25398
25399 fi
25400
25401     if test $ac_cv_func_gethostbyname = no; then
25402       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25403 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25404 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25405   $as_echo_n "(cached) " >&6
25406 else
25407   ac_check_lib_save_LIBS=$LIBS
25408 LIBS="-lnsl  $LIBS"
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h.  */
25411
25412 /* Override any GCC internal prototype to avoid an error.
25413    Use char because int might match the return type of a GCC
25414    builtin and then its argument prototype would still apply.  */
25415 #ifdef __cplusplus
25416 extern "C"
25417 #endif
25418 char gethostbyname ();
25419 int
25420 main ()
25421 {
25422 return gethostbyname ();
25423   ;
25424   return 0;
25425 }
25426 _ACEOF
25427 if ac_fn_c_try_link "$LINENO"; then :
25428   ac_cv_lib_nsl_gethostbyname=yes
25429 else
25430   ac_cv_lib_nsl_gethostbyname=no
25431 fi
25432 rm -f core conftest.err conftest.$ac_objext \
25433     conftest$ac_exeext conftest.$ac_ext
25434 LIBS=$ac_check_lib_save_LIBS
25435 fi
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25437 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25438 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25439   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25440 fi
25441
25442       if test $ac_cv_lib_nsl_gethostbyname = no; then
25443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25444 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25445 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25446   $as_echo_n "(cached) " >&6
25447 else
25448   ac_check_lib_save_LIBS=$LIBS
25449 LIBS="-lbsd  $LIBS"
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h.  */
25452
25453 /* Override any GCC internal prototype to avoid an error.
25454    Use char because int might match the return type of a GCC
25455    builtin and then its argument prototype would still apply.  */
25456 #ifdef __cplusplus
25457 extern "C"
25458 #endif
25459 char gethostbyname ();
25460 int
25461 main ()
25462 {
25463 return gethostbyname ();
25464   ;
25465   return 0;
25466 }
25467 _ACEOF
25468 if ac_fn_c_try_link "$LINENO"; then :
25469   ac_cv_lib_bsd_gethostbyname=yes
25470 else
25471   ac_cv_lib_bsd_gethostbyname=no
25472 fi
25473 rm -f core conftest.err conftest.$ac_objext \
25474     conftest$ac_exeext conftest.$ac_ext
25475 LIBS=$ac_check_lib_save_LIBS
25476 fi
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25478 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25479 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25480   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25481 fi
25482
25483       fi
25484     fi
25485
25486     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25487     # socket/setsockopt and other routines are undefined under SCO ODT
25488     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25489     # on later versions), says Simon Leinen: it contains gethostby*
25490     # variants that don't use the name server (or something).  -lsocket
25491     # must be given before -lnsl if both are needed.  We assume that
25492     # if connect needs -lnsl, so does gethostbyname.
25493     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25494 if test "x$ac_cv_func_connect" = xyes; then :
25495
25496 fi
25497
25498     if test $ac_cv_func_connect = no; then
25499       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25500 $as_echo_n "checking for connect in -lsocket... " >&6; }
25501 if ${ac_cv_lib_socket_connect+:} false; then :
25502   $as_echo_n "(cached) " >&6
25503 else
25504   ac_check_lib_save_LIBS=$LIBS
25505 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25507 /* end confdefs.h.  */
25508
25509 /* Override any GCC internal prototype to avoid an error.
25510    Use char because int might match the return type of a GCC
25511    builtin and then its argument prototype would still apply.  */
25512 #ifdef __cplusplus
25513 extern "C"
25514 #endif
25515 char connect ();
25516 int
25517 main ()
25518 {
25519 return connect ();
25520   ;
25521   return 0;
25522 }
25523 _ACEOF
25524 if ac_fn_c_try_link "$LINENO"; then :
25525   ac_cv_lib_socket_connect=yes
25526 else
25527   ac_cv_lib_socket_connect=no
25528 fi
25529 rm -f core conftest.err conftest.$ac_objext \
25530     conftest$ac_exeext conftest.$ac_ext
25531 LIBS=$ac_check_lib_save_LIBS
25532 fi
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25534 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25535 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25536   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25537 fi
25538
25539     fi
25540
25541     # Guillermo Gomez says -lposix is necessary on A/UX.
25542     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25543 if test "x$ac_cv_func_remove" = xyes; then :
25544
25545 fi
25546
25547     if test $ac_cv_func_remove = no; then
25548       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25549 $as_echo_n "checking for remove in -lposix... " >&6; }
25550 if ${ac_cv_lib_posix_remove+:} false; then :
25551   $as_echo_n "(cached) " >&6
25552 else
25553   ac_check_lib_save_LIBS=$LIBS
25554 LIBS="-lposix  $LIBS"
25555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25556 /* end confdefs.h.  */
25557
25558 /* Override any GCC internal prototype to avoid an error.
25559    Use char because int might match the return type of a GCC
25560    builtin and then its argument prototype would still apply.  */
25561 #ifdef __cplusplus
25562 extern "C"
25563 #endif
25564 char remove ();
25565 int
25566 main ()
25567 {
25568 return remove ();
25569   ;
25570   return 0;
25571 }
25572 _ACEOF
25573 if ac_fn_c_try_link "$LINENO"; then :
25574   ac_cv_lib_posix_remove=yes
25575 else
25576   ac_cv_lib_posix_remove=no
25577 fi
25578 rm -f core conftest.err conftest.$ac_objext \
25579     conftest$ac_exeext conftest.$ac_ext
25580 LIBS=$ac_check_lib_save_LIBS
25581 fi
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25583 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25584 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25585   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25586 fi
25587
25588     fi
25589
25590     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25591     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25592 if test "x$ac_cv_func_shmat" = xyes; then :
25593
25594 fi
25595
25596     if test $ac_cv_func_shmat = no; then
25597       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25598 $as_echo_n "checking for shmat in -lipc... " >&6; }
25599 if ${ac_cv_lib_ipc_shmat+:} false; then :
25600   $as_echo_n "(cached) " >&6
25601 else
25602   ac_check_lib_save_LIBS=$LIBS
25603 LIBS="-lipc  $LIBS"
25604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605 /* end confdefs.h.  */
25606
25607 /* Override any GCC internal prototype to avoid an error.
25608    Use char because int might match the return type of a GCC
25609    builtin and then its argument prototype would still apply.  */
25610 #ifdef __cplusplus
25611 extern "C"
25612 #endif
25613 char shmat ();
25614 int
25615 main ()
25616 {
25617 return shmat ();
25618   ;
25619   return 0;
25620 }
25621 _ACEOF
25622 if ac_fn_c_try_link "$LINENO"; then :
25623   ac_cv_lib_ipc_shmat=yes
25624 else
25625   ac_cv_lib_ipc_shmat=no
25626 fi
25627 rm -f core conftest.err conftest.$ac_objext \
25628     conftest$ac_exeext conftest.$ac_ext
25629 LIBS=$ac_check_lib_save_LIBS
25630 fi
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25632 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25633 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25634   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25635 fi
25636
25637     fi
25638   fi
25639
25640   # Check for libraries that X11R6 Xt/Xaw programs need.
25641   ac_save_LDFLAGS=$LDFLAGS
25642   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25643   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25644   # check for ICE first), but we must link in the order -lSM -lICE or
25645   # we get undefined symbols.  So assume we have SM if we have ICE.
25646   # These have to be linked with before -lX11, unlike the other
25647   # libraries we check for below, so use a different variable.
25648   # John Interrante, Karl Berry
25649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25650 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25651 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25652   $as_echo_n "(cached) " >&6
25653 else
25654   ac_check_lib_save_LIBS=$LIBS
25655 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25657 /* end confdefs.h.  */
25658
25659 /* Override any GCC internal prototype to avoid an error.
25660    Use char because int might match the return type of a GCC
25661    builtin and then its argument prototype would still apply.  */
25662 #ifdef __cplusplus
25663 extern "C"
25664 #endif
25665 char IceConnectionNumber ();
25666 int
25667 main ()
25668 {
25669 return IceConnectionNumber ();
25670   ;
25671   return 0;
25672 }
25673 _ACEOF
25674 if ac_fn_c_try_link "$LINENO"; then :
25675   ac_cv_lib_ICE_IceConnectionNumber=yes
25676 else
25677   ac_cv_lib_ICE_IceConnectionNumber=no
25678 fi
25679 rm -f core conftest.err conftest.$ac_objext \
25680     conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25682 fi
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25684 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25685 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25686   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25687 fi
25688
25689   LDFLAGS=$ac_save_LDFLAGS
25690
25691 fi
25692
25693
25694 for ac_header in \
25695    assert.h \
25696    fcntl.h \
25697    grp.h \
25698    pwd.h \
25699    libc.h \
25700    limits.h \
25701    stdarg.h \
25702    stdlib.h \
25703    stdint.h \
25704    inttypes.h \
25705    string.h \
25706    strings.h \
25707    termios.h \
25708    termcap.h \
25709    term.h \
25710    unistd.h \
25711    sys/bitypes.h \
25712    sys/byteorder.h \
25713    sys/ioctl.h \
25714    sys/select.h \
25715    sys/socket.h \
25716    sys/sockio.h \
25717    sys/stat.h \
25718    sys/time.h \
25719    sys/types.h \
25720    arpa/nameser.h \
25721    mtio.h \
25722    sys/mtio.h \
25723    sys/tape.h \
25724    regex.h \
25725
25726 do :
25727   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25730   cat >>confdefs.h <<_ACEOF
25731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25732 _ACEOF
25733
25734 fi
25735
25736 done
25737
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25739 $as_echo_n "checking for ANSI C header files... " >&6; }
25740 if ${ac_cv_header_stdc+:} false; then :
25741   $as_echo_n "(cached) " >&6
25742 else
25743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25744 /* end confdefs.h.  */
25745 #include <stdlib.h>
25746 #include <stdarg.h>
25747 #include <string.h>
25748 #include <float.h>
25749
25750 int
25751 main ()
25752 {
25753
25754   ;
25755   return 0;
25756 }
25757 _ACEOF
25758 if ac_fn_c_try_compile "$LINENO"; then :
25759   ac_cv_header_stdc=yes
25760 else
25761   ac_cv_header_stdc=no
25762 fi
25763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764
25765 if test $ac_cv_header_stdc = yes; then
25766   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25768 /* end confdefs.h.  */
25769 #include <string.h>
25770
25771 _ACEOF
25772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25773   $EGREP "memchr" >/dev/null 2>&1; then :
25774
25775 else
25776   ac_cv_header_stdc=no
25777 fi
25778 rm -f conftest*
25779
25780 fi
25781
25782 if test $ac_cv_header_stdc = yes; then
25783   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25785 /* end confdefs.h.  */
25786 #include <stdlib.h>
25787
25788 _ACEOF
25789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25790   $EGREP "free" >/dev/null 2>&1; then :
25791
25792 else
25793   ac_cv_header_stdc=no
25794 fi
25795 rm -f conftest*
25796
25797 fi
25798
25799 if test $ac_cv_header_stdc = yes; then
25800   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25801   if test "$cross_compiling" = yes; then :
25802   :
25803 else
25804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805 /* end confdefs.h.  */
25806 #include <ctype.h>
25807 #include <stdlib.h>
25808 #if ((' ' & 0x0FF) == 0x020)
25809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25811 #else
25812 # define ISLOWER(c) \
25813                    (('a' <= (c) && (c) <= 'i') \
25814                      || ('j' <= (c) && (c) <= 'r') \
25815                      || ('s' <= (c) && (c) <= 'z'))
25816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25817 #endif
25818
25819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25820 int
25821 main ()
25822 {
25823   int i;
25824   for (i = 0; i < 256; i++)
25825     if (XOR (islower (i), ISLOWER (i))
25826         || toupper (i) != TOUPPER (i))
25827       return 2;
25828   return 0;
25829 }
25830 _ACEOF
25831 if ac_fn_c_try_run "$LINENO"; then :
25832
25833 else
25834   ac_cv_header_stdc=no
25835 fi
25836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25837   conftest.$ac_objext conftest.beam conftest.$ac_ext
25838 fi
25839
25840 fi
25841 fi
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25843 $as_echo "$ac_cv_header_stdc" >&6; }
25844 if test $ac_cv_header_stdc = yes; then
25845
25846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25847
25848 fi
25849
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25851 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25852 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25853   $as_echo_n "(cached) " >&6
25854 else
25855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h.  */
25857 #include <sys/types.h>
25858 int
25859 main ()
25860 {
25861 return makedev(0, 0);
25862   ;
25863   return 0;
25864 }
25865 _ACEOF
25866 if ac_fn_c_try_link "$LINENO"; then :
25867   ac_cv_header_sys_types_h_makedev=yes
25868 else
25869   ac_cv_header_sys_types_h_makedev=no
25870 fi
25871 rm -f core conftest.err conftest.$ac_objext \
25872     conftest$ac_exeext conftest.$ac_ext
25873
25874 fi
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25876 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25877
25878 if test $ac_cv_header_sys_types_h_makedev = no; then
25879 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25880 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25881
25882 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25883
25884 fi
25885
25886
25887
25888   if test $ac_cv_header_sys_mkdev_h = no; then
25889     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25890 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25891
25892 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25893
25894 fi
25895
25896
25897   fi
25898 fi
25899
25900 ac_header_dirent=no
25901 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25902   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25904 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25905 if eval \${$as_ac_Header+:} false; then :
25906   $as_echo_n "(cached) " >&6
25907 else
25908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25909 /* end confdefs.h.  */
25910 #include <sys/types.h>
25911 #include <$ac_hdr>
25912
25913 int
25914 main ()
25915 {
25916 if ((DIR *) 0)
25917 return 0;
25918   ;
25919   return 0;
25920 }
25921 _ACEOF
25922 if ac_fn_c_try_compile "$LINENO"; then :
25923   eval "$as_ac_Header=yes"
25924 else
25925   eval "$as_ac_Header=no"
25926 fi
25927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25928 fi
25929 eval ac_res=\$$as_ac_Header
25930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25931 $as_echo "$ac_res" >&6; }
25932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25933   cat >>confdefs.h <<_ACEOF
25934 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25935 _ACEOF
25936
25937 ac_header_dirent=$ac_hdr; break
25938 fi
25939
25940 done
25941 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25942 if test $ac_header_dirent = dirent.h; then
25943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25944 $as_echo_n "checking for library containing opendir... " >&6; }
25945 if ${ac_cv_search_opendir+:} false; then :
25946   $as_echo_n "(cached) " >&6
25947 else
25948   ac_func_search_save_LIBS=$LIBS
25949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h.  */
25951
25952 /* Override any GCC internal prototype to avoid an error.
25953    Use char because int might match the return type of a GCC
25954    builtin and then its argument prototype would still apply.  */
25955 #ifdef __cplusplus
25956 extern "C"
25957 #endif
25958 char opendir ();
25959 int
25960 main ()
25961 {
25962 return opendir ();
25963   ;
25964   return 0;
25965 }
25966 _ACEOF
25967 for ac_lib in '' dir; do
25968   if test -z "$ac_lib"; then
25969     ac_res="none required"
25970   else
25971     ac_res=-l$ac_lib
25972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25973   fi
25974   if ac_fn_c_try_link "$LINENO"; then :
25975   ac_cv_search_opendir=$ac_res
25976 fi
25977 rm -f core conftest.err conftest.$ac_objext \
25978     conftest$ac_exeext
25979   if ${ac_cv_search_opendir+:} false; then :
25980   break
25981 fi
25982 done
25983 if ${ac_cv_search_opendir+:} false; then :
25984
25985 else
25986   ac_cv_search_opendir=no
25987 fi
25988 rm conftest.$ac_ext
25989 LIBS=$ac_func_search_save_LIBS
25990 fi
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25992 $as_echo "$ac_cv_search_opendir" >&6; }
25993 ac_res=$ac_cv_search_opendir
25994 if test "$ac_res" != no; then :
25995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25996
25997 fi
25998
25999 else
26000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26001 $as_echo_n "checking for library containing opendir... " >&6; }
26002 if ${ac_cv_search_opendir+:} false; then :
26003   $as_echo_n "(cached) " >&6
26004 else
26005   ac_func_search_save_LIBS=$LIBS
26006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h.  */
26008
26009 /* Override any GCC internal prototype to avoid an error.
26010    Use char because int might match the return type of a GCC
26011    builtin and then its argument prototype would still apply.  */
26012 #ifdef __cplusplus
26013 extern "C"
26014 #endif
26015 char opendir ();
26016 int
26017 main ()
26018 {
26019 return opendir ();
26020   ;
26021   return 0;
26022 }
26023 _ACEOF
26024 for ac_lib in '' x; do
26025   if test -z "$ac_lib"; then
26026     ac_res="none required"
26027   else
26028     ac_res=-l$ac_lib
26029     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26030   fi
26031   if ac_fn_c_try_link "$LINENO"; then :
26032   ac_cv_search_opendir=$ac_res
26033 fi
26034 rm -f core conftest.err conftest.$ac_objext \
26035     conftest$ac_exeext
26036   if ${ac_cv_search_opendir+:} false; then :
26037   break
26038 fi
26039 done
26040 if ${ac_cv_search_opendir+:} false; then :
26041
26042 else
26043   ac_cv_search_opendir=no
26044 fi
26045 rm conftest.$ac_ext
26046 LIBS=$ac_func_search_save_LIBS
26047 fi
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26049 $as_echo "$ac_cv_search_opendir" >&6; }
26050 ac_res=$ac_cv_search_opendir
26051 if test "$ac_res" != no; then :
26052   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26053
26054 fi
26055
26056 fi
26057
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26059 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26060 if ${ac_cv_header_stat_broken+:} false; then :
26061   $as_echo_n "(cached) " >&6
26062 else
26063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26064 /* end confdefs.h.  */
26065 #include <sys/types.h>
26066 #include <sys/stat.h>
26067
26068 #if defined S_ISBLK && defined S_IFDIR
26069 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26070 #endif
26071
26072 #if defined S_ISBLK && defined S_IFCHR
26073 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26074 #endif
26075
26076 #if defined S_ISLNK && defined S_IFREG
26077 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26078 #endif
26079
26080 #if defined S_ISSOCK && defined S_IFREG
26081 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26082 #endif
26083
26084 _ACEOF
26085 if ac_fn_c_try_compile "$LINENO"; then :
26086   ac_cv_header_stat_broken=no
26087 else
26088   ac_cv_header_stat_broken=yes
26089 fi
26090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26091 fi
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26093 $as_echo "$ac_cv_header_stat_broken" >&6; }
26094 if test $ac_cv_header_stat_broken = yes; then
26095
26096 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26097
26098 fi
26099
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26101 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26102 if ${ac_cv_header_sys_wait_h+:} false; then :
26103   $as_echo_n "(cached) " >&6
26104 else
26105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26106 /* end confdefs.h.  */
26107 #include <sys/types.h>
26108 #include <sys/wait.h>
26109 #ifndef WEXITSTATUS
26110 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26111 #endif
26112 #ifndef WIFEXITED
26113 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26114 #endif
26115
26116 int
26117 main ()
26118 {
26119   int s;
26120   wait (&s);
26121   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26122   ;
26123   return 0;
26124 }
26125 _ACEOF
26126 if ac_fn_c_try_compile "$LINENO"; then :
26127   ac_cv_header_sys_wait_h=yes
26128 else
26129   ac_cv_header_sys_wait_h=no
26130 fi
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132 fi
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26134 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26135 if test $ac_cv_header_sys_wait_h = yes; then
26136
26137 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26138
26139 fi
26140
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26142 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26143 if ${ac_cv_header_time+:} false; then :
26144   $as_echo_n "(cached) " >&6
26145 else
26146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26147 /* end confdefs.h.  */
26148 #include <sys/types.h>
26149 #include <sys/time.h>
26150 #include <time.h>
26151
26152 int
26153 main ()
26154 {
26155 if ((struct tm *) 0)
26156 return 0;
26157   ;
26158   return 0;
26159 }
26160 _ACEOF
26161 if ac_fn_c_try_compile "$LINENO"; then :
26162   ac_cv_header_time=yes
26163 else
26164   ac_cv_header_time=no
26165 fi
26166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26167 fi
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26169 $as_echo "$ac_cv_header_time" >&6; }
26170 if test $ac_cv_header_time = yes; then
26171
26172 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26173
26174 fi
26175
26176 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26177 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26178
26179 cat >>confdefs.h <<_ACEOF
26180 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26181 _ACEOF
26182
26183
26184 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26185
26186 fi
26187
26188
26189 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26190 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26191
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26194 _ACEOF
26195
26196
26197 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26198
26199 else
26200   case " $LIBOBJS " in
26201   *" fileblocks.$ac_objext "* ) ;;
26202   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26203  ;;
26204 esac
26205
26206 fi
26207
26208
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26210 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26211 if ${ac_cv_struct_tm+:} false; then :
26212   $as_echo_n "(cached) " >&6
26213 else
26214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26215 /* end confdefs.h.  */
26216 #include <sys/types.h>
26217 #include <time.h>
26218
26219 int
26220 main ()
26221 {
26222 struct tm tm;
26223                                      int *p = &tm.tm_sec;
26224                                      return !p;
26225   ;
26226   return 0;
26227 }
26228 _ACEOF
26229 if ac_fn_c_try_compile "$LINENO"; then :
26230   ac_cv_struct_tm=time.h
26231 else
26232   ac_cv_struct_tm=sys/time.h
26233 fi
26234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26235 fi
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26237 $as_echo "$ac_cv_struct_tm" >&6; }
26238 if test $ac_cv_struct_tm = sys/time.h; then
26239
26240 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26241
26242 fi
26243
26244 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26245 #include <$ac_cv_struct_tm>
26246
26247 "
26248 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26249
26250 cat >>confdefs.h <<_ACEOF
26251 #define HAVE_STRUCT_TM_TM_ZONE 1
26252 _ACEOF
26253
26254
26255 fi
26256
26257 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26258
26259 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26260
26261 else
26262   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26263 "
26264 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26265   ac_have_decl=1
26266 else
26267   ac_have_decl=0
26268 fi
26269
26270 cat >>confdefs.h <<_ACEOF
26271 #define HAVE_DECL_TZNAME $ac_have_decl
26272 _ACEOF
26273
26274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26275 $as_echo_n "checking for tzname... " >&6; }
26276 if ${ac_cv_var_tzname+:} false; then :
26277   $as_echo_n "(cached) " >&6
26278 else
26279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26280 /* end confdefs.h.  */
26281 #include <time.h>
26282 #if !HAVE_DECL_TZNAME
26283 extern char *tzname[];
26284 #endif
26285
26286 int
26287 main ()
26288 {
26289 return tzname[0][0];
26290   ;
26291   return 0;
26292 }
26293 _ACEOF
26294 if ac_fn_c_try_link "$LINENO"; then :
26295   ac_cv_var_tzname=yes
26296 else
26297   ac_cv_var_tzname=no
26298 fi
26299 rm -f core conftest.err conftest.$ac_objext \
26300     conftest$ac_exeext conftest.$ac_ext
26301 fi
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26303 $as_echo "$ac_cv_var_tzname" >&6; }
26304   if test $ac_cv_var_tzname = yes; then
26305
26306 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26307
26308   fi
26309 fi
26310
26311
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26313 $as_echo_n "checking for utime.h... " >&6; }
26314 if ${ba_cv_header_utime_h+:} false; then :
26315   $as_echo_n "(cached) " >&6
26316 else
26317
26318        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h.  */
26320
26321               #include <sys/types.h>
26322               #include <utime.h>
26323
26324 int
26325 main ()
26326 {
26327
26328               struct utimbuf foo
26329
26330   ;
26331   return 0;
26332 }
26333 _ACEOF
26334 if ac_fn_c_try_compile "$LINENO"; then :
26335
26336               ba_cv_header_utime_h=yes
26337
26338 else
26339
26340               ba_cv_header_utime_h=no
26341
26342
26343 fi
26344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26345
26346
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26349 $as_echo "$ba_cv_header_utime_h" >&6; }
26350 test $ba_cv_header_utime_h = yes &&
26351 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26352
26353
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26355 $as_echo_n "checking for socklen_t... " >&6; }
26356 if ${ba_cv_header_socklen_t+:} false; then :
26357   $as_echo_n "(cached) " >&6
26358 else
26359
26360        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26361 /* end confdefs.h.  */
26362
26363               #include <sys/types.h>
26364               #include <sys/socket.h>
26365
26366 int
26367 main ()
26368 {
26369
26370               socklen_t x
26371
26372   ;
26373   return 0;
26374 }
26375 _ACEOF
26376 if ac_fn_c_try_compile "$LINENO"; then :
26377
26378              ba_cv_header_socklen_t=yes
26379
26380 else
26381
26382              ba_cv_header_socklen_t=no
26383
26384
26385 fi
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26387
26388
26389 fi
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26391 $as_echo "$ba_cv_header_socklen_t" >&6; }
26392 test $ba_cv_header_socklen_t = yes &&
26393 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26394
26395
26396 ac_ext=cpp
26397 ac_cpp='$CXXCPP $CPPFLAGS'
26398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26401
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26403 $as_echo_n "checking for ioctl_req_t... " >&6; }
26404 if ${ba_cv_header_ioctl_req_t+:} false; then :
26405   $as_echo_n "(cached) " >&6
26406 else
26407
26408        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26409 /* end confdefs.h.  */
26410
26411               #include <unistd.h>
26412               #include <sys/types.h>
26413               #include <sys/ioctl.h>
26414
26415 int
26416 main ()
26417 {
26418
26419               int (*d_ioctl)(int fd, unsigned long int request, ...);
26420               d_ioctl = ::ioctl;
26421
26422   ;
26423   return 0;
26424 }
26425 _ACEOF
26426 if ac_fn_cxx_try_compile "$LINENO"; then :
26427
26428              ba_cv_header_ioctl_req_t=yes
26429
26430 else
26431
26432              ba_cv_header_ioctl_req_t=no
26433
26434
26435 fi
26436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26437
26438
26439 fi
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26441 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26442 test $ba_cv_header_ioctl_req_t = yes &&
26443 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26444
26445
26446 ac_ext=c
26447 ac_cpp='$CPP $CPPFLAGS'
26448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26451
26452
26453 ac_ext=cpp
26454 ac_cpp='$CXXCPP $CPPFLAGS'
26455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26458
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26460 $as_echo_n "checking for typeof... " >&6; }
26461 if ${ba_cv_have_typeof+:} false; then :
26462   $as_echo_n "(cached) " >&6
26463 else
26464
26465        if test "$cross_compiling" = yes; then :
26466
26467               ba_cv_have_typeof=no
26468
26469
26470 else
26471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26472 /* end confdefs.h.  */
26473
26474               main(){char *a = 0; a = (typeof a)a;}
26475
26476 _ACEOF
26477 if ac_fn_cxx_try_run "$LINENO"; then :
26478
26479               ba_cv_have_typeof=yes
26480
26481 else
26482
26483               ba_cv_have_typeof=no
26484
26485 fi
26486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26487   conftest.$ac_objext conftest.beam conftest.$ac_ext
26488 fi
26489
26490
26491
26492 fi
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26494 $as_echo "$ba_cv_have_typeof" >&6; }
26495 test $ba_cv_have_typeof = yes &&
26496 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26497
26498 ac_ext=c
26499 ac_cpp='$CPP $CPPFLAGS'
26500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26503
26504
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26506 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26507 if ${ac_cv_c_const+:} false; then :
26508   $as_echo_n "(cached) " >&6
26509 else
26510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26511 /* end confdefs.h.  */
26512
26513 int
26514 main ()
26515 {
26516
26517 #ifndef __cplusplus
26518   /* Ultrix mips cc rejects this sort of thing.  */
26519   typedef int charset[2];
26520   const charset cs = { 0, 0 };
26521   /* SunOS 4.1.1 cc rejects this.  */
26522   char const *const *pcpcc;
26523   char **ppc;
26524   /* NEC SVR4.0.2 mips cc rejects this.  */
26525   struct point {int x, y;};
26526   static struct point const zero = {0,0};
26527   /* AIX XL C 1.02.0.0 rejects this.
26528      It does not let you subtract one const X* pointer from another in
26529      an arm of an if-expression whose if-part is not a constant
26530      expression */
26531   const char *g = "string";
26532   pcpcc = &g + (g ? g-g : 0);
26533   /* HPUX 7.0 cc rejects these. */
26534   ++pcpcc;
26535   ppc = (char**) pcpcc;
26536   pcpcc = (char const *const *) ppc;
26537   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26538     char tx;
26539     char *t = &tx;
26540     char const *s = 0 ? (char *) 0 : (char const *) 0;
26541
26542     *t++ = 0;
26543     if (s) return 0;
26544   }
26545   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26546     int x[] = {25, 17};
26547     const int *foo = &x[0];
26548     ++foo;
26549   }
26550   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26551     typedef const int *iptr;
26552     iptr p = 0;
26553     ++p;
26554   }
26555   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26556        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26557     struct s { int j; const int *ap[3]; } bx;
26558     struct s *b = &bx; b->j = 5;
26559   }
26560   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26561     const int foo = 10;
26562     if (!foo) return 0;
26563   }
26564   return !cs[0] && !zero.x;
26565 #endif
26566
26567   ;
26568   return 0;
26569 }
26570 _ACEOF
26571 if ac_fn_c_try_compile "$LINENO"; then :
26572   ac_cv_c_const=yes
26573 else
26574   ac_cv_c_const=no
26575 fi
26576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26577 fi
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26579 $as_echo "$ac_cv_c_const" >&6; }
26580 if test $ac_cv_c_const = no; then
26581
26582 $as_echo "#define const /**/" >>confdefs.h
26583
26584 fi
26585
26586
26587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26588 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26589 if ${ac_cv_c_bigendian+:} false; then :
26590   $as_echo_n "(cached) " >&6
26591 else
26592   ac_cv_c_bigendian=unknown
26593     # See if we're dealing with a universal compiler.
26594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26595 /* end confdefs.h.  */
26596 #ifndef __APPLE_CC__
26597                not a universal capable compiler
26598              #endif
26599              typedef int dummy;
26600
26601 _ACEOF
26602 if ac_fn_c_try_compile "$LINENO"; then :
26603
26604         # Check for potential -arch flags.  It is not universal unless
26605         # there are at least two -arch flags with different values.
26606         ac_arch=
26607         ac_prev=
26608         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26609          if test -n "$ac_prev"; then
26610            case $ac_word in
26611              i?86 | x86_64 | ppc | ppc64)
26612                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26613                  ac_arch=$ac_word
26614                else
26615                  ac_cv_c_bigendian=universal
26616                  break
26617                fi
26618                ;;
26619            esac
26620            ac_prev=
26621          elif test "x$ac_word" = "x-arch"; then
26622            ac_prev=arch
26623          fi
26624        done
26625 fi
26626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26627     if test $ac_cv_c_bigendian = unknown; then
26628       # See if sys/param.h defines the BYTE_ORDER macro.
26629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630 /* end confdefs.h.  */
26631 #include <sys/types.h>
26632              #include <sys/param.h>
26633
26634 int
26635 main ()
26636 {
26637 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26638                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26639                      && LITTLE_ENDIAN)
26640               bogus endian macros
26641              #endif
26642
26643   ;
26644   return 0;
26645 }
26646 _ACEOF
26647 if ac_fn_c_try_compile "$LINENO"; then :
26648   # It does; now see whether it defined to BIG_ENDIAN or not.
26649          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26650 /* end confdefs.h.  */
26651 #include <sys/types.h>
26652                 #include <sys/param.h>
26653
26654 int
26655 main ()
26656 {
26657 #if BYTE_ORDER != BIG_ENDIAN
26658                  not big endian
26659                 #endif
26660
26661   ;
26662   return 0;
26663 }
26664 _ACEOF
26665 if ac_fn_c_try_compile "$LINENO"; then :
26666   ac_cv_c_bigendian=yes
26667 else
26668   ac_cv_c_bigendian=no
26669 fi
26670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671 fi
26672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26673     fi
26674     if test $ac_cv_c_bigendian = unknown; then
26675       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26676       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26677 /* end confdefs.h.  */
26678 #include <limits.h>
26679
26680 int
26681 main ()
26682 {
26683 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26684               bogus endian macros
26685              #endif
26686
26687   ;
26688   return 0;
26689 }
26690 _ACEOF
26691 if ac_fn_c_try_compile "$LINENO"; then :
26692   # It does; now see whether it defined to _BIG_ENDIAN or not.
26693          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h.  */
26695 #include <limits.h>
26696
26697 int
26698 main ()
26699 {
26700 #ifndef _BIG_ENDIAN
26701                  not big endian
26702                 #endif
26703
26704   ;
26705   return 0;
26706 }
26707 _ACEOF
26708 if ac_fn_c_try_compile "$LINENO"; then :
26709   ac_cv_c_bigendian=yes
26710 else
26711   ac_cv_c_bigendian=no
26712 fi
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26714 fi
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716     fi
26717     if test $ac_cv_c_bigendian = unknown; then
26718       # Compile a test program.
26719       if test "$cross_compiling" = yes; then :
26720   # Try to guess by grepping values from an object file.
26721          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26722 /* end confdefs.h.  */
26723 short int ascii_mm[] =
26724                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26725                 short int ascii_ii[] =
26726                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26727                 int use_ascii (int i) {
26728                   return ascii_mm[i] + ascii_ii[i];
26729                 }
26730                 short int ebcdic_ii[] =
26731                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26732                 short int ebcdic_mm[] =
26733                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26734                 int use_ebcdic (int i) {
26735                   return ebcdic_mm[i] + ebcdic_ii[i];
26736                 }
26737                 extern int foo;
26738
26739 int
26740 main ()
26741 {
26742 return use_ascii (foo) == use_ebcdic (foo);
26743   ;
26744   return 0;
26745 }
26746 _ACEOF
26747 if ac_fn_c_try_compile "$LINENO"; then :
26748   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26749               ac_cv_c_bigendian=yes
26750             fi
26751             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26752               if test "$ac_cv_c_bigendian" = unknown; then
26753                 ac_cv_c_bigendian=no
26754               else
26755                 # finding both strings is unlikely to happen, but who knows?
26756                 ac_cv_c_bigendian=unknown
26757               fi
26758             fi
26759 fi
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26761 else
26762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h.  */
26764 $ac_includes_default
26765 int
26766 main ()
26767 {
26768
26769              /* Are we little or big endian?  From Harbison&Steele.  */
26770              union
26771              {
26772                long int l;
26773                char c[sizeof (long int)];
26774              } u;
26775              u.l = 1;
26776              return u.c[sizeof (long int) - 1] == 1;
26777
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 if ac_fn_c_try_run "$LINENO"; then :
26783   ac_cv_c_bigendian=no
26784 else
26785   ac_cv_c_bigendian=yes
26786 fi
26787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26788   conftest.$ac_objext conftest.beam conftest.$ac_ext
26789 fi
26790
26791     fi
26792 fi
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26794 $as_echo "$ac_cv_c_bigendian" >&6; }
26795  case $ac_cv_c_bigendian in #(
26796    yes)
26797
26798 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26799 ;; #(
26800    no)
26801
26802 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26803  ;; #(
26804    universal)
26805
26806 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26807
26808      ;; #(
26809    *)
26810      as_fn_error $? "unknown endianness
26811  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26812  esac
26813
26814
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26816 $as_echo_n "checking how to get filesystem type... " >&6; }
26817 fstype=no
26818 # The order of these tests is important.
26819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h.  */
26821
26822        #include <sys/statvfs.h>
26823        #include <sys/fstyp.h>
26824
26825 _ACEOF
26826 if ac_fn_c_try_cpp "$LINENO"; then :
26827   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26828  fstype=SVR4
26829
26830 fi
26831 rm -f conftest.err conftest.i conftest.$ac_ext
26832 if test $fstype = no; then
26833    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26834 /* end confdefs.h.  */
26835
26836           #include <sys/statfs.h>
26837           #include <sys/fstyp.h>
26838
26839 _ACEOF
26840 if ac_fn_c_try_cpp "$LINENO"; then :
26841   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26842  fstype=SVR3
26843
26844 fi
26845 rm -f conftest.err conftest.i conftest.$ac_ext
26846 fi
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/vmount.h>
26853
26854 _ACEOF
26855 if ac_fn_c_try_cpp "$LINENO"; then :
26856   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26857  fstype=AIX
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 <mntent.h>
26867
26868 _ACEOF
26869 if ac_fn_c_try_cpp "$LINENO"; then :
26870   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26871  fstype=4.3BSD
26872
26873 fi
26874 rm -f conftest.err conftest.i conftest.$ac_ext
26875 fi
26876 if test $fstype = no; then
26877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h.  */
26879 #include <sys/mount.h>
26880
26881 _ACEOF
26882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26883   $EGREP "f_type;" >/dev/null 2>&1; then :
26884   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26885  fstype=4.4BSD/OSF1
26886 fi
26887 rm -f conftest*
26888
26889 fi
26890 if test $fstype = no; then
26891    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26892 /* end confdefs.h.  */
26893
26894           #include <sys/mount.h>
26895           #include <sys/fs_types.h>
26896
26897 _ACEOF
26898 if ac_fn_c_try_cpp "$LINENO"; then :
26899   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26900  fstype=Ultrix
26901
26902 fi
26903 rm -f conftest.err conftest.i conftest.$ac_ext
26904 fi
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26906 $as_echo "$fstype" >&6; }
26907
26908 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26909 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26910
26911 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26912
26913 fi
26914
26915
26916
26917 ac_ext=cpp
26918 ac_cpp='$CXXCPP $CPPFLAGS'
26919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26922
26923 for ac_func in backtrace
26924 do :
26925   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26926 if test "x$ac_cv_func_backtrace" = xyes; then :
26927   cat >>confdefs.h <<_ACEOF
26928 #define HAVE_BACKTRACE 1
26929 _ACEOF
26930
26931 fi
26932 done
26933
26934 ac_ext=c
26935 ac_cpp='$CPP $CPPFLAGS'
26936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26939
26940
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26942 $as_echo_n "checking return type of signal handlers... " >&6; }
26943 if ${ac_cv_type_signal+:} false; then :
26944   $as_echo_n "(cached) " >&6
26945 else
26946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h.  */
26948 #include <sys/types.h>
26949 #include <signal.h>
26950
26951 int
26952 main ()
26953 {
26954 return *(signal (0, 0)) (0) == 1;
26955   ;
26956   return 0;
26957 }
26958 _ACEOF
26959 if ac_fn_c_try_compile "$LINENO"; then :
26960   ac_cv_type_signal=int
26961 else
26962   ac_cv_type_signal=void
26963 fi
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 fi
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26967 $as_echo "$ac_cv_type_signal" >&6; }
26968
26969 cat >>confdefs.h <<_ACEOF
26970 #define RETSIGTYPE $ac_cv_type_signal
26971 _ACEOF
26972
26973
26974
26975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26976 $as_echo_n "checking for type of signal functions... " >&6; }
26977   if ${bash_cv_signal_vintage+:} false; then :
26978   $as_echo_n "(cached) " >&6
26979 else
26980
26981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26982 /* end confdefs.h.  */
26983 #include <signal.h>
26984 int
26985 main ()
26986 {
26987
26988       sigset_t ss;
26989       struct sigaction sa;
26990       sigemptyset(&ss); sigsuspend(&ss);
26991       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26992       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26993
26994   ;
26995   return 0;
26996 }
26997 _ACEOF
26998 if ac_fn_c_try_link "$LINENO"; then :
26999   bash_cv_signal_vintage="posix"
27000 else
27001
27002       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003 /* end confdefs.h.  */
27004 #include <signal.h>
27005 int
27006 main ()
27007 {
27008
27009           int mask = sigmask(SIGINT);
27010           sigsetmask(mask); sigblock(mask); sigpause(mask);
27011
27012   ;
27013   return 0;
27014 }
27015 _ACEOF
27016 if ac_fn_c_try_link "$LINENO"; then :
27017   bash_cv_signal_vintage="4.2bsd"
27018 else
27019
27020         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27021 /* end confdefs.h.  */
27022
27023           #include <signal.h>
27024           RETSIGTYPE foo() { }
27025 int
27026 main ()
27027 {
27028
27029                   int mask = sigmask(SIGINT);
27030                   sigset(SIGINT, foo); sigrelse(SIGINT);
27031                   sighold(SIGINT); sigpause(SIGINT);
27032
27033   ;
27034   return 0;
27035 }
27036 _ACEOF
27037 if ac_fn_c_try_link "$LINENO"; then :
27038   bash_cv_signal_vintage="svr3"
27039 else
27040   bash_cv_signal_vintage="v7"
27041
27042 fi
27043 rm -f core conftest.err conftest.$ac_objext \
27044     conftest$ac_exeext conftest.$ac_ext
27045
27046 fi
27047 rm -f core conftest.err conftest.$ac_objext \
27048     conftest$ac_exeext conftest.$ac_ext
27049
27050 fi
27051 rm -f core conftest.err conftest.$ac_objext \
27052     conftest$ac_exeext conftest.$ac_ext
27053
27054 fi
27055
27056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27057 $as_echo "$bash_cv_signal_vintage" >&6; }
27058   if test "$bash_cv_signal_vintage" = "posix"; then
27059     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27060
27061   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27062     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27063
27064   elif test "$bash_cv_signal_vintage" = "svr3"; then
27065     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27066
27067   fi
27068
27069 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27070 if test "x$ac_cv_type_mode_t" = xyes; then :
27071
27072 else
27073
27074 cat >>confdefs.h <<_ACEOF
27075 #define mode_t int
27076 _ACEOF
27077
27078 fi
27079
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27081 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27082 if ${ac_cv_type_uid_t+:} false; then :
27083   $as_echo_n "(cached) " >&6
27084 else
27085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27086 /* end confdefs.h.  */
27087 #include <sys/types.h>
27088
27089 _ACEOF
27090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27091   $EGREP "uid_t" >/dev/null 2>&1; then :
27092   ac_cv_type_uid_t=yes
27093 else
27094   ac_cv_type_uid_t=no
27095 fi
27096 rm -f conftest*
27097
27098 fi
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27100 $as_echo "$ac_cv_type_uid_t" >&6; }
27101 if test $ac_cv_type_uid_t = no; then
27102
27103 $as_echo "#define uid_t int" >>confdefs.h
27104
27105
27106 $as_echo "#define gid_t int" >>confdefs.h
27107
27108 fi
27109
27110 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27111 if test "x$ac_cv_type_size_t" = xyes; then :
27112
27113 else
27114
27115 cat >>confdefs.h <<_ACEOF
27116 #define size_t unsigned int
27117 _ACEOF
27118
27119 fi
27120
27121 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27122 if test "x$ac_cv_type_pid_t" = xyes; then :
27123
27124 else
27125
27126 cat >>confdefs.h <<_ACEOF
27127 #define pid_t int
27128 _ACEOF
27129
27130 fi
27131
27132 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27133 if test "x$ac_cv_type_off_t" = xyes; then :
27134
27135 else
27136
27137 cat >>confdefs.h <<_ACEOF
27138 #define off_t long int
27139 _ACEOF
27140
27141 fi
27142
27143
27144   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27145 if test "x$ac_cv_type_intptr_t" = xyes; then :
27146
27147 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27148
27149 else
27150   for ac_type in 'int' 'long int' 'long long int'; do
27151        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27152 /* end confdefs.h.  */
27153 $ac_includes_default
27154 int
27155 main ()
27156 {
27157 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27158 test_array [0] = 0;
27159 return test_array [0];
27160
27161   ;
27162   return 0;
27163 }
27164 _ACEOF
27165 if ac_fn_c_try_compile "$LINENO"; then :
27166
27167 cat >>confdefs.h <<_ACEOF
27168 #define intptr_t $ac_type
27169 _ACEOF
27170
27171           ac_type=
27172 fi
27173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27174        test -z "$ac_type" && break
27175      done
27176 fi
27177
27178
27179
27180   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27181 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27182
27183 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27184
27185 else
27186   for ac_type in 'unsigned int' 'unsigned long int' \
27187         'unsigned long long int'; do
27188        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27189 /* end confdefs.h.  */
27190 $ac_includes_default
27191 int
27192 main ()
27193 {
27194 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27195 test_array [0] = 0;
27196 return test_array [0];
27197
27198   ;
27199   return 0;
27200 }
27201 _ACEOF
27202 if ac_fn_c_try_compile "$LINENO"; then :
27203
27204 cat >>confdefs.h <<_ACEOF
27205 #define uintptr_t $ac_type
27206 _ACEOF
27207
27208           ac_type=
27209 fi
27210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27211        test -z "$ac_type" && break
27212      done
27213 fi
27214
27215
27216 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27217 if test "x$ac_cv_type_ino_t" = xyes; then :
27218
27219 else
27220
27221 cat >>confdefs.h <<_ACEOF
27222 #define ino_t unsigned long
27223 _ACEOF
27224
27225 fi
27226
27227 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27228 if test "x$ac_cv_type_dev_t" = xyes; then :
27229
27230 else
27231
27232 cat >>confdefs.h <<_ACEOF
27233 #define dev_t unsigned long
27234 _ACEOF
27235
27236 fi
27237
27238 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27239 if test "x$ac_cv_type_daddr_t" = xyes; then :
27240
27241 else
27242
27243 cat >>confdefs.h <<_ACEOF
27244 #define daddr_t long
27245 _ACEOF
27246
27247 fi
27248
27249 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27250 if test "x$ac_cv_type_major_t" = xyes; then :
27251
27252 else
27253
27254 cat >>confdefs.h <<_ACEOF
27255 #define major_t int
27256 _ACEOF
27257
27258 fi
27259
27260 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27261 if test "x$ac_cv_type_minor_t" = xyes; then :
27262
27263 else
27264
27265 cat >>confdefs.h <<_ACEOF
27266 #define minor_t int
27267 _ACEOF
27268
27269 fi
27270
27271 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27272 if test "x$ac_cv_type_ssize_t" = xyes; then :
27273
27274 else
27275
27276 cat >>confdefs.h <<_ACEOF
27277 #define ssize_t int
27278 _ACEOF
27279
27280 fi
27281
27282 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27283 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27284
27285 cat >>confdefs.h <<_ACEOF
27286 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27287 _ACEOF
27288
27289
27290 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27291
27292 else
27293   case " $LIBOBJS " in
27294   *" fileblocks.$ac_objext "* ) ;;
27295   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27296  ;;
27297 esac
27298
27299 fi
27300
27301
27302 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27303 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27304
27305 cat >>confdefs.h <<_ACEOF
27306 #define HAVE_STRUCT_STAT_ST_RDEV 1
27307 _ACEOF
27308
27309
27310 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27311
27312 fi
27313
27314
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27316 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27317 if ${ac_cv_struct_tm+:} false; then :
27318   $as_echo_n "(cached) " >&6
27319 else
27320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27321 /* end confdefs.h.  */
27322 #include <sys/types.h>
27323 #include <time.h>
27324
27325 int
27326 main ()
27327 {
27328 struct tm tm;
27329                                      int *p = &tm.tm_sec;
27330                                      return !p;
27331   ;
27332   return 0;
27333 }
27334 _ACEOF
27335 if ac_fn_c_try_compile "$LINENO"; then :
27336   ac_cv_struct_tm=time.h
27337 else
27338   ac_cv_struct_tm=sys/time.h
27339 fi
27340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27341 fi
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27343 $as_echo "$ac_cv_struct_tm" >&6; }
27344 if test $ac_cv_struct_tm = sys/time.h; then
27345
27346 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27347
27348 fi
27349
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27351 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27352 if ${ac_cv_c_const+:} false; then :
27353   $as_echo_n "(cached) " >&6
27354 else
27355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27356 /* end confdefs.h.  */
27357
27358 int
27359 main ()
27360 {
27361
27362 #ifndef __cplusplus
27363   /* Ultrix mips cc rejects this sort of thing.  */
27364   typedef int charset[2];
27365   const charset cs = { 0, 0 };
27366   /* SunOS 4.1.1 cc rejects this.  */
27367   char const *const *pcpcc;
27368   char **ppc;
27369   /* NEC SVR4.0.2 mips cc rejects this.  */
27370   struct point {int x, y;};
27371   static struct point const zero = {0,0};
27372   /* AIX XL C 1.02.0.0 rejects this.
27373      It does not let you subtract one const X* pointer from another in
27374      an arm of an if-expression whose if-part is not a constant
27375      expression */
27376   const char *g = "string";
27377   pcpcc = &g + (g ? g-g : 0);
27378   /* HPUX 7.0 cc rejects these. */
27379   ++pcpcc;
27380   ppc = (char**) pcpcc;
27381   pcpcc = (char const *const *) ppc;
27382   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27383     char tx;
27384     char *t = &tx;
27385     char const *s = 0 ? (char *) 0 : (char const *) 0;
27386
27387     *t++ = 0;
27388     if (s) return 0;
27389   }
27390   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27391     int x[] = {25, 17};
27392     const int *foo = &x[0];
27393     ++foo;
27394   }
27395   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27396     typedef const int *iptr;
27397     iptr p = 0;
27398     ++p;
27399   }
27400   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27401        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27402     struct s { int j; const int *ap[3]; } bx;
27403     struct s *b = &bx; b->j = 5;
27404   }
27405   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27406     const int foo = 10;
27407     if (!foo) return 0;
27408   }
27409   return !cs[0] && !zero.x;
27410 #endif
27411
27412   ;
27413   return 0;
27414 }
27415 _ACEOF
27416 if ac_fn_c_try_compile "$LINENO"; then :
27417   ac_cv_c_const=yes
27418 else
27419   ac_cv_c_const=no
27420 fi
27421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422 fi
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27424 $as_echo "$ac_cv_c_const" >&6; }
27425 if test $ac_cv_c_const = no; then
27426
27427 $as_echo "#define const /**/" >>confdefs.h
27428
27429 fi
27430
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27432 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27433 if ${ac_cv_c_restrict+:} false; then :
27434   $as_echo_n "(cached) " >&6
27435 else
27436   ac_cv_c_restrict=no
27437    # The order here caters to the fact that C++ does not require restrict.
27438    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27440 /* end confdefs.h.  */
27441 typedef int * int_ptr;
27442         int foo (int_ptr $ac_kw ip) {
27443         return ip[0];
27444        }
27445 int
27446 main ()
27447 {
27448 int s[1];
27449         int * $ac_kw t = s;
27450         t[0] = 0;
27451         return foo(t)
27452   ;
27453   return 0;
27454 }
27455 _ACEOF
27456 if ac_fn_c_try_compile "$LINENO"; then :
27457   ac_cv_c_restrict=$ac_kw
27458 fi
27459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27460      test "$ac_cv_c_restrict" != no && break
27461    done
27462
27463 fi
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27465 $as_echo "$ac_cv_c_restrict" >&6; }
27466
27467  case $ac_cv_c_restrict in
27468    restrict) ;;
27469    no) $as_echo "#define restrict /**/" >>confdefs.h
27470  ;;
27471    *)  cat >>confdefs.h <<_ACEOF
27472 #define restrict $ac_cv_c_restrict
27473 _ACEOF
27474  ;;
27475  esac
27476
27477
27478 # The cast to long int works around a bug in the HP C Compiler
27479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27481 # This bug is HP SR number 8606223364.
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27483 $as_echo_n "checking size of char... " >&6; }
27484 if ${ac_cv_sizeof_char+:} false; then :
27485   $as_echo_n "(cached) " >&6
27486 else
27487   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27488
27489 else
27490   if test "$ac_cv_type_char" = yes; then
27491      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27493 as_fn_error 77 "cannot compute sizeof (char)
27494 See \`config.log' for more details" "$LINENO" 5; }
27495    else
27496      ac_cv_sizeof_char=0
27497    fi
27498 fi
27499
27500 fi
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27502 $as_echo "$ac_cv_sizeof_char" >&6; }
27503
27504
27505
27506 cat >>confdefs.h <<_ACEOF
27507 #define SIZEOF_CHAR $ac_cv_sizeof_char
27508 _ACEOF
27509
27510
27511 # The cast to long int works around a bug in the HP C Compiler
27512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27514 # This bug is HP SR number 8606223364.
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27516 $as_echo_n "checking size of short int... " >&6; }
27517 if ${ac_cv_sizeof_short_int+:} false; then :
27518   $as_echo_n "(cached) " >&6
27519 else
27520   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27521
27522 else
27523   if test "$ac_cv_type_short_int" = yes; then
27524      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27526 as_fn_error 77 "cannot compute sizeof (short int)
27527 See \`config.log' for more details" "$LINENO" 5; }
27528    else
27529      ac_cv_sizeof_short_int=0
27530    fi
27531 fi
27532
27533 fi
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27535 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27536
27537
27538
27539 cat >>confdefs.h <<_ACEOF
27540 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27541 _ACEOF
27542
27543
27544 # The cast to long int works around a bug in the HP C Compiler
27545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27547 # This bug is HP SR number 8606223364.
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27549 $as_echo_n "checking size of int... " >&6; }
27550 if ${ac_cv_sizeof_int+:} false; then :
27551   $as_echo_n "(cached) " >&6
27552 else
27553   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27554
27555 else
27556   if test "$ac_cv_type_int" = yes; then
27557      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27559 as_fn_error 77 "cannot compute sizeof (int)
27560 See \`config.log' for more details" "$LINENO" 5; }
27561    else
27562      ac_cv_sizeof_int=0
27563    fi
27564 fi
27565
27566 fi
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27568 $as_echo "$ac_cv_sizeof_int" >&6; }
27569
27570
27571
27572 cat >>confdefs.h <<_ACEOF
27573 #define SIZEOF_INT $ac_cv_sizeof_int
27574 _ACEOF
27575
27576
27577 # The cast to long int works around a bug in the HP C Compiler
27578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27580 # This bug is HP SR number 8606223364.
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27582 $as_echo_n "checking size of long int... " >&6; }
27583 if ${ac_cv_sizeof_long_int+:} false; then :
27584   $as_echo_n "(cached) " >&6
27585 else
27586   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27587
27588 else
27589   if test "$ac_cv_type_long_int" = yes; then
27590      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27592 as_fn_error 77 "cannot compute sizeof (long int)
27593 See \`config.log' for more details" "$LINENO" 5; }
27594    else
27595      ac_cv_sizeof_long_int=0
27596    fi
27597 fi
27598
27599 fi
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27601 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27602
27603
27604
27605 cat >>confdefs.h <<_ACEOF
27606 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27607 _ACEOF
27608
27609
27610 # The cast to long int works around a bug in the HP C Compiler
27611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27613 # This bug is HP SR number 8606223364.
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27615 $as_echo_n "checking size of long long int... " >&6; }
27616 if ${ac_cv_sizeof_long_long_int+:} false; then :
27617   $as_echo_n "(cached) " >&6
27618 else
27619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27620
27621 else
27622   if test "$ac_cv_type_long_long_int" = yes; then
27623      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27625 as_fn_error 77 "cannot compute sizeof (long long int)
27626 See \`config.log' for more details" "$LINENO" 5; }
27627    else
27628      ac_cv_sizeof_long_long_int=0
27629    fi
27630 fi
27631
27632 fi
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27634 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27635
27636
27637
27638 cat >>confdefs.h <<_ACEOF
27639 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27640 _ACEOF
27641
27642
27643 # The cast to long int works around a bug in the HP C Compiler
27644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27646 # This bug is HP SR number 8606223364.
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27648 $as_echo_n "checking size of int *... " >&6; }
27649 if ${ac_cv_sizeof_int_p+:} false; then :
27650   $as_echo_n "(cached) " >&6
27651 else
27652   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27653
27654 else
27655   if test "$ac_cv_type_int_p" = yes; then
27656      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27658 as_fn_error 77 "cannot compute sizeof (int *)
27659 See \`config.log' for more details" "$LINENO" 5; }
27660    else
27661      ac_cv_sizeof_int_p=0
27662    fi
27663 fi
27664
27665 fi
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27667 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27668
27669
27670
27671 cat >>confdefs.h <<_ACEOF
27672 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27673 _ACEOF
27674
27675
27676
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27678 $as_echo_n "checking for u_int type... " >&6; }
27679 if ${ac_cv_have_u_int+:} false; then :
27680   $as_echo_n "(cached) " >&6
27681 else
27682
27683        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27684 /* end confdefs.h.  */
27685
27686               #include <sys/types.h>
27687
27688 int
27689 main ()
27690 {
27691
27692               u_int a; a = 1;
27693
27694   ;
27695   return 0;
27696 }
27697 _ACEOF
27698 if ac_fn_c_try_compile "$LINENO"; then :
27699
27700               ac_cv_have_u_int="yes"
27701
27702 else
27703
27704               ac_cv_have_u_int="no"
27705
27706
27707 fi
27708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27709
27710
27711 fi
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27713 $as_echo "$ac_cv_have_u_int" >&6; }
27714 if test "x$ac_cv_have_u_int" = "xyes" ; then
27715    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27716
27717    have_u_int=1
27718 fi
27719
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27721 $as_echo_n "checking for intmax_t type... " >&6; }
27722 if ${ac_cv_have_intmax_t+:} false; then :
27723   $as_echo_n "(cached) " >&6
27724 else
27725
27726        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27727 /* end confdefs.h.  */
27728
27729               #include <sys/types.h>
27730
27731 int
27732 main ()
27733 {
27734
27735               intmax_t a; a = 1;
27736
27737   ;
27738   return 0;
27739 }
27740 _ACEOF
27741 if ac_fn_c_try_compile "$LINENO"; then :
27742
27743               ac_cv_have_intmax_t="yes"
27744
27745 else
27746
27747               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h.  */
27749
27750                      #include <stdint.h>
27751
27752 int
27753 main ()
27754 {
27755
27756                      intmax_t a; a = 1;
27757
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 if ac_fn_c_try_compile "$LINENO"; then :
27763
27764                      ac_cv_have_intmax_t="yes"
27765
27766 else
27767
27768                      ac_cv_have_intmax_t="no"
27769
27770
27771 fi
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773
27774
27775 fi
27776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27777
27778
27779 fi
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27781 $as_echo "$ac_cv_have_intmax_t" >&6; }
27782 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27783    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27784
27785    have_intmax_t=1
27786 fi
27787
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27789 $as_echo_n "checking for u_intmax_t type... " >&6; }
27790 if ${ac_cv_have_u_intmax_t+:} false; then :
27791   $as_echo_n "(cached) " >&6
27792 else
27793
27794        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27795 /* end confdefs.h.  */
27796
27797               #include <sys/types.h>
27798
27799 int
27800 main ()
27801 {
27802
27803               u_intmax_t a; a = 1;
27804
27805   ;
27806   return 0;
27807 }
27808 _ACEOF
27809 if ac_fn_c_try_compile "$LINENO"; then :
27810
27811               ac_cv_have_u_intmax_t="yes"
27812
27813 else
27814
27815               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h.  */
27817
27818                      #include <stdint.h>
27819
27820 int
27821 main ()
27822 {
27823
27824                     u_intmax_t a; a = 1;
27825
27826   ;
27827   return 0;
27828 }
27829 _ACEOF
27830 if ac_fn_c_try_compile "$LINENO"; then :
27831
27832                     ac_cv_have_u_intmax_t="yes"
27833
27834 else
27835
27836                     ac_cv_have_u_intmax_t="no"
27837
27838
27839 fi
27840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27841
27842
27843 fi
27844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27845
27846
27847 fi
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27849 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27850 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27851    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27852
27853    have_u_intmax_t=1
27854 fi
27855
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27857 $as_echo_n "checking for intXX_t types... " >&6; }
27858 if ${ac_cv_have_intxx_t+:} false; then :
27859   $as_echo_n "(cached) " >&6
27860 else
27861
27862        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27863 /* end confdefs.h.  */
27864
27865               #include <sys/types.h>
27866
27867 int
27868 main ()
27869 {
27870
27871               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27872
27873   ;
27874   return 0;
27875 }
27876 _ACEOF
27877 if ac_fn_c_try_compile "$LINENO"; then :
27878
27879               ac_cv_have_intxx_t="yes"
27880
27881 else
27882
27883               ac_cv_have_intxx_t="no"
27884
27885
27886 fi
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888
27889
27890 fi
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27892 $as_echo "$ac_cv_have_intxx_t" >&6; }
27893 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27894    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27895
27896    have_intxx_t=1
27897 fi
27898
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27900 $as_echo_n "checking for int64_t type... " >&6; }
27901 if ${ac_cv_have_int64_t+:} false; then :
27902   $as_echo_n "(cached) " >&6
27903 else
27904
27905        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27906 /* end confdefs.h.  */
27907
27908               #include <sys/types.h>
27909
27910 int
27911 main ()
27912 {
27913
27914               int64_t a; a = 1;
27915
27916   ;
27917   return 0;
27918 }
27919 _ACEOF
27920 if ac_fn_c_try_compile "$LINENO"; then :
27921
27922               ac_cv_have_int64_t="yes"
27923
27924 else
27925
27926               ac_cv_have_int64_t="no"
27927
27928
27929 fi
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27931
27932
27933 fi
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27935 $as_echo "$ac_cv_have_int64_t" >&6; }
27936 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27937    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27938
27939    have_int64_t=1
27940 fi
27941
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27943 $as_echo_n "checking for u_intXX_t types... " >&6; }
27944 if ${ac_cv_have_u_intxx_t+:} false; then :
27945   $as_echo_n "(cached) " >&6
27946 else
27947
27948        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27949 /* end confdefs.h.  */
27950
27951               #include <sys/types.h>
27952
27953 int
27954 main ()
27955 {
27956
27957               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27958
27959   ;
27960   return 0;
27961 }
27962 _ACEOF
27963 if ac_fn_c_try_compile "$LINENO"; then :
27964
27965              ac_cv_have_u_intxx_t="yes"
27966
27967 else
27968
27969              ac_cv_have_u_intxx_t="no"
27970
27971
27972 fi
27973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27974
27975
27976 fi
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27978 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27979 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27980    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27981
27982    have_u_intxx_t=1
27983 fi
27984
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27986 $as_echo_n "checking for u_int64_t types... " >&6; }
27987 if ${ac_cv_have_u_int64_t+:} false; then :
27988   $as_echo_n "(cached) " >&6
27989 else
27990
27991        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27992 /* end confdefs.h.  */
27993
27994               #include <sys/types.h>
27995
27996 int
27997 main ()
27998 {
27999
28000               u_int64_t a; a = 1;
28001
28002   ;
28003   return 0;
28004 }
28005 _ACEOF
28006 if ac_fn_c_try_compile "$LINENO"; then :
28007
28008              ac_cv_have_u_int64_t="yes"
28009
28010 else
28011
28012              ac_cv_have_u_int64_t="no"
28013
28014
28015 fi
28016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28017
28018
28019 fi
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28021 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28022 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28023    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28024
28025    have_u_int64_t=1
28026 fi
28027
28028 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28029     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28030 then
28031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28032 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28033    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h.  */
28035
28036           #include <sys/bitypes.h>
28037
28038 int
28039 main ()
28040 {
28041
28042           int8_t a; int16_t b; int32_t c;
28043           u_int8_t e; u_int16_t f; u_int32_t g;
28044           a = b = c = e = f = g = 1;
28045
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 if ac_fn_c_try_compile "$LINENO"; then :
28051
28052           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28053
28054           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28055
28056           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28057
28058           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28059 $as_echo "yes" >&6; }
28060
28061 else
28062
28063           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28064 $as_echo "no" >&6; }
28065
28066
28067 fi
28068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069 fi
28070
28071 if test -z "$have_u_intxx_t" ; then
28072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28073 $as_echo_n "checking for uintXX_t types... " >&6; }
28074 if ${ac_cv_have_uintxx_t+:} false; then :
28075   $as_echo_n "(cached) " >&6
28076 else
28077
28078           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28079 /* end confdefs.h.  */
28080
28081                  #include <sys/types.h>
28082
28083 int
28084 main ()
28085 {
28086
28087                  uint8_t a; uint16_t b;
28088                  uint32_t c; a = b = c = 1;
28089
28090   ;
28091   return 0;
28092 }
28093 _ACEOF
28094 if ac_fn_c_try_compile "$LINENO"; then :
28095
28096                 ac_cv_have_uintxx_t="yes"
28097
28098 else
28099
28100                 ac_cv_have_uintxx_t="no"
28101
28102
28103 fi
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28105
28106
28107 fi
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28109 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28110    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28111       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28112
28113    fi
28114 fi
28115
28116 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28117     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28118 then
28119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28120 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28122 /* end confdefs.h.  */
28123
28124           #include <sys/bitypes.h>
28125
28126 int
28127 main ()
28128 {
28129
28130           int64_t a; u_int64_t b;
28131           a = b = 1;
28132
28133   ;
28134   return 0;
28135 }
28136 _ACEOF
28137 if ac_fn_c_try_compile "$LINENO"; then :
28138
28139           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28140
28141           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28142
28143           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28144 $as_echo "yes" >&6; }
28145
28146 else
28147
28148           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28149 $as_echo "no" >&6; }
28150
28151
28152 fi
28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 fi
28155
28156 if (test -z "$have_uintxx_t" && \
28157     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28158 then
28159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28160 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28162 /* end confdefs.h.  */
28163
28164           #include <sys/bitypes.h>
28165
28166 int
28167 main ()
28168 {
28169
28170           uint8_t a; uint16_t b;
28171           uint32_t c; a = b = c = 1;
28172
28173   ;
28174   return 0;
28175 }
28176 _ACEOF
28177 if ac_fn_c_try_compile "$LINENO"; then :
28178
28179           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28180
28181           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28182 $as_echo "yes" >&6; }
28183
28184 else
28185
28186           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28187 $as_echo "no" >&6; }
28188
28189
28190 fi
28191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28192 fi
28193
28194 for ac_func in \
28195    fork \
28196    getcwd \
28197    gethostname \
28198    getpid \
28199    gettimeofday \
28200    setpgid \
28201    setpgrp \
28202    setsid \
28203    signal \
28204    strerror \
28205    strncmp \
28206    strncpy \
28207    vfprintf \
28208
28209 do :
28210   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28213   cat >>confdefs.h <<_ACEOF
28214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28215 _ACEOF
28216
28217 else
28218   echo 'configure: cannot find needed function.'; exit 1
28219
28220 fi
28221 done
28222
28223
28224 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28225
28226 "
28227 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28228
28229 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28230
28231 fi
28232
28233
28234 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28235
28236 "
28237 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28238
28239 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28240
28241 fi
28242
28243
28244 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28245 if test "x$ac_cv_func_closefrom" = xyes; then :
28246
28247 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28248
28249 fi
28250
28251 for ac_func in getpagesize
28252 do :
28253   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28254 if test "x$ac_cv_func_getpagesize" = xyes; then :
28255   cat >>confdefs.h <<_ACEOF
28256 #define HAVE_GETPAGESIZE 1
28257 _ACEOF
28258
28259 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28260
28261 fi
28262 done
28263
28264 for ac_func in malloc_trim
28265 do :
28266   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28267 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28268   cat >>confdefs.h <<_ACEOF
28269 #define HAVE_MALLOC_TRIM 1
28270 _ACEOF
28271
28272 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28273
28274 fi
28275 done
28276
28277
28278 for ac_func in fchdir
28279 do :
28280   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28281 if test "x$ac_cv_func_fchdir" = xyes; then :
28282   cat >>confdefs.h <<_ACEOF
28283 #define HAVE_FCHDIR 1
28284 _ACEOF
28285  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28286
28287 fi
28288 done
28289
28290 for ac_func in strtoll
28291 do :
28292   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28293 if test "x$ac_cv_func_strtoll" = xyes; then :
28294   cat >>confdefs.h <<_ACEOF
28295 #define HAVE_STRTOLL 1
28296 _ACEOF
28297  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28298
28299 fi
28300 done
28301
28302 for ac_func in posix_fadvise
28303 do :
28304   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28305 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28306   cat >>confdefs.h <<_ACEOF
28307 #define HAVE_POSIX_FADVISE 1
28308 _ACEOF
28309
28310 fi
28311 done
28312
28313 for ac_func in posix_fallocate
28314 do :
28315   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28316 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28317   cat >>confdefs.h <<_ACEOF
28318 #define HAVE_POSIX_FALLOCATE 1
28319 _ACEOF
28320
28321 fi
28322 done
28323
28324 for ac_func in fdatasync
28325 do :
28326   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28327 if test "x$ac_cv_func_fdatasync" = xyes; then :
28328   cat >>confdefs.h <<_ACEOF
28329 #define HAVE_FDATASYNC 1
28330 _ACEOF
28331
28332 fi
28333 done
28334
28335
28336 for ac_func in chflags
28337 do :
28338   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28339 if test "x$ac_cv_func_chflags" = xyes; then :
28340   cat >>confdefs.h <<_ACEOF
28341 #define HAVE_CHFLAGS 1
28342 _ACEOF
28343
28344 fi
28345 done
28346
28347
28348 for ac_func in snprintf vsnprintf gethostid fseeko
28349 do :
28350   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28353   cat >>confdefs.h <<_ACEOF
28354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28355 _ACEOF
28356
28357 fi
28358 done
28359
28360
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28362 $as_echo_n "checking for va_copy... " >&6; }
28363 if ${ba_cv_va_copy+:} false; then :
28364   $as_echo_n "(cached) " >&6
28365 else
28366
28367        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28368 /* end confdefs.h.  */
28369
28370               #include <stdarg.h>
28371               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28372               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28373
28374 int
28375 main ()
28376 {
28377
28378               call_use_va_copy(1,2,3)
28379
28380   ;
28381   return 0;
28382 }
28383 _ACEOF
28384 if ac_fn_c_try_link "$LINENO"; then :
28385
28386               ba_cv_va_copy=yes
28387
28388 else
28389
28390               ba_cv_va_copy=no
28391
28392
28393 fi
28394 rm -f core conftest.err conftest.$ac_objext \
28395     conftest$ac_exeext conftest.$ac_ext
28396
28397
28398 fi
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28400 $as_echo "$ba_cv_va_copy" >&6; }
28401 test $ba_cv_va_copy = yes &&
28402 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28403
28404
28405 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28406 do :
28407   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28410   cat >>confdefs.h <<_ACEOF
28411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28412 _ACEOF
28413
28414 fi
28415 done
28416
28417
28418 # If resolver functions are not in libc check for -lnsl or -lresolv.
28419 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28420 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28422 $as_echo "using libc's resolver" >&6; }
28423 else
28424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28425 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28426 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28427   $as_echo_n "(cached) " >&6
28428 else
28429   ac_check_lib_save_LIBS=$LIBS
28430 LIBS="-lnsl  $LIBS"
28431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28432 /* end confdefs.h.  */
28433
28434 /* Override any GCC internal prototype to avoid an error.
28435    Use char because int might match the return type of a GCC
28436    builtin and then its argument prototype would still apply.  */
28437 #ifdef __cplusplus
28438 extern "C"
28439 #endif
28440 char gethostbyname_r ();
28441 int
28442 main ()
28443 {
28444 return gethostbyname_r ();
28445   ;
28446   return 0;
28447 }
28448 _ACEOF
28449 if ac_fn_c_try_link "$LINENO"; then :
28450   ac_cv_lib_nsl_gethostbyname_r=yes
28451 else
28452   ac_cv_lib_nsl_gethostbyname_r=no
28453 fi
28454 rm -f core conftest.err conftest.$ac_objext \
28455     conftest$ac_exeext conftest.$ac_ext
28456 LIBS=$ac_check_lib_save_LIBS
28457 fi
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28459 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28460 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28461   cat >>confdefs.h <<_ACEOF
28462 #define HAVE_LIBNSL 1
28463 _ACEOF
28464
28465   LIBS="-lnsl $LIBS"
28466
28467 fi
28468
28469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28470 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28471 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28472   $as_echo_n "(cached) " >&6
28473 else
28474   ac_check_lib_save_LIBS=$LIBS
28475 LIBS="-lresolv  $LIBS"
28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h.  */
28478
28479 /* Override any GCC internal prototype to avoid an error.
28480    Use char because int might match the return type of a GCC
28481    builtin and then its argument prototype would still apply.  */
28482 #ifdef __cplusplus
28483 extern "C"
28484 #endif
28485 char gethostbyname_r ();
28486 int
28487 main ()
28488 {
28489 return gethostbyname_r ();
28490   ;
28491   return 0;
28492 }
28493 _ACEOF
28494 if ac_fn_c_try_link "$LINENO"; then :
28495   ac_cv_lib_resolv_gethostbyname_r=yes
28496 else
28497   ac_cv_lib_resolv_gethostbyname_r=no
28498 fi
28499 rm -f core conftest.err conftest.$ac_objext \
28500     conftest$ac_exeext conftest.$ac_ext
28501 LIBS=$ac_check_lib_save_LIBS
28502 fi
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28504 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28505 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28506   cat >>confdefs.h <<_ACEOF
28507 #define HAVE_LIBRESOLV 1
28508 _ACEOF
28509
28510   LIBS="-lresolv $LIBS"
28511
28512 fi
28513
28514 fi
28515
28516
28517 for ac_func in inet_pton
28518 do :
28519   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28520 if test "x$ac_cv_func_inet_pton" = xyes; then :
28521   cat >>confdefs.h <<_ACEOF
28522 #define HAVE_INET_PTON 1
28523 _ACEOF
28524  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28525
28526 fi
28527 done
28528
28529 for ac_func in inet_ntop
28530 do :
28531   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28532 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28533   cat >>confdefs.h <<_ACEOF
28534 #define HAVE_INET_NTOP 1
28535 _ACEOF
28536  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28537
28538 fi
28539 done
28540
28541 for ac_func in gethostbyname2
28542 do :
28543   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28544 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28545   cat >>confdefs.h <<_ACEOF
28546 #define HAVE_GETHOSTBYNAME2 1
28547 _ACEOF
28548  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28549
28550 fi
28551 done
28552
28553 for ac_func in getnameinfo
28554 do :
28555   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28556 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28557   cat >>confdefs.h <<_ACEOF
28558 #define HAVE_GETNAMEINFO 1
28559 _ACEOF
28560  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28561
28562 fi
28563 done
28564
28565
28566
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28568 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28569 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28570   $as_echo_n "(cached) " >&6
28571 else
28572
28573        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28574 /* end confdefs.h.  */
28575
28576               #include <sys/socket.h>
28577
28578 int
28579 main ()
28580 {
28581
28582               struct sockaddr s; s.sa_len;
28583
28584   ;
28585   return 0;
28586 }
28587 _ACEOF
28588 if ac_fn_c_try_compile "$LINENO"; then :
28589
28590              ac_cv_struct_sockaddr_sa_len=yes
28591
28592 else
28593   ac_cv_struct_sockaddr_sa_len=no
28594
28595
28596 fi
28597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28598
28599
28600 fi
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28602 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28603
28604 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28605
28606 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28607
28608 fi
28609
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28611 $as_echo_n "checking for working getaddrinfo... " >&6; }
28612 if ${ac_cv_working_getaddrinfo+:} false; then :
28613   $as_echo_n "(cached) " >&6
28614 else
28615
28616        if test "$cross_compiling" = yes; then :
28617
28618               ac_cv_working_getaddrinfo="yes"
28619
28620
28621 else
28622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28623 /* end confdefs.h.  */
28624
28625               #include <netdb.h>
28626               #include <string.h>
28627               #include <sys/types.h>
28628               #include <sys/socket.h>
28629
28630               void main(void) {
28631                   struct addrinfo hints, *ai;
28632                   int error;
28633
28634                   memset(&hints, 0, sizeof(hints));
28635                   hints.ai_family = AF_UNSPEC;
28636                   hints.ai_socktype = SOCK_STREAM;
28637                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28638                   if (error) {
28639                       exit(1);
28640                   }
28641                   if (ai->ai_addr->sa_family != AF_INET) {
28642                       exit(1);
28643                   }
28644                   exit(0);
28645               }
28646
28647 _ACEOF
28648 if ac_fn_c_try_run "$LINENO"; then :
28649
28650               ac_cv_working_getaddrinfo="yes"
28651
28652 else
28653
28654               ac_cv_working_getaddrinfo="no"
28655
28656 fi
28657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28658   conftest.$ac_objext conftest.beam conftest.$ac_ext
28659 fi
28660
28661
28662
28663 fi
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28665 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28666 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28667 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28668
28669 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28670
28671 fi
28672
28673
28674 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28675   if test "$ac_cv_func_gai_strerror" != "yes"; then
28676     ac_cv_working_getaddrinfo="no"
28677   else
28678
28679 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28680
28681   fi
28682 fi
28683
28684 for ac_func in strftime
28685 do :
28686   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28687 if test "x$ac_cv_func_strftime" = xyes; then :
28688   cat >>confdefs.h <<_ACEOF
28689 #define HAVE_STRFTIME 1
28690 _ACEOF
28691
28692 else
28693   # strftime is in -lintl on SCO UNIX.
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28695 $as_echo_n "checking for strftime in -lintl... " >&6; }
28696 if ${ac_cv_lib_intl_strftime+:} false; then :
28697   $as_echo_n "(cached) " >&6
28698 else
28699   ac_check_lib_save_LIBS=$LIBS
28700 LIBS="-lintl  $LIBS"
28701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28702 /* end confdefs.h.  */
28703
28704 /* Override any GCC internal prototype to avoid an error.
28705    Use char because int might match the return type of a GCC
28706    builtin and then its argument prototype would still apply.  */
28707 #ifdef __cplusplus
28708 extern "C"
28709 #endif
28710 char strftime ();
28711 int
28712 main ()
28713 {
28714 return strftime ();
28715   ;
28716   return 0;
28717 }
28718 _ACEOF
28719 if ac_fn_c_try_link "$LINENO"; then :
28720   ac_cv_lib_intl_strftime=yes
28721 else
28722   ac_cv_lib_intl_strftime=no
28723 fi
28724 rm -f core conftest.err conftest.$ac_objext \
28725     conftest$ac_exeext conftest.$ac_ext
28726 LIBS=$ac_check_lib_save_LIBS
28727 fi
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28729 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28730 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28731   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28732
28733 LIBS="-lintl $LIBS"
28734 fi
28735
28736 fi
28737 done
28738
28739 for ac_func in vprintf
28740 do :
28741   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28742 if test "x$ac_cv_func_vprintf" = xyes; then :
28743   cat >>confdefs.h <<_ACEOF
28744 #define HAVE_VPRINTF 1
28745 _ACEOF
28746
28747 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28748 if test "x$ac_cv_func__doprnt" = xyes; then :
28749
28750 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28751
28752 fi
28753
28754 fi
28755 done
28756
28757
28758 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28759 # for constant arguments.  Useless!
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28761 $as_echo_n "checking for working alloca.h... " >&6; }
28762 if ${ac_cv_working_alloca_h+:} false; then :
28763   $as_echo_n "(cached) " >&6
28764 else
28765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28766 /* end confdefs.h.  */
28767 #include <alloca.h>
28768 int
28769 main ()
28770 {
28771 char *p = (char *) alloca (2 * sizeof (int));
28772                           if (p) return 0;
28773   ;
28774   return 0;
28775 }
28776 _ACEOF
28777 if ac_fn_c_try_link "$LINENO"; then :
28778   ac_cv_working_alloca_h=yes
28779 else
28780   ac_cv_working_alloca_h=no
28781 fi
28782 rm -f core conftest.err conftest.$ac_objext \
28783     conftest$ac_exeext conftest.$ac_ext
28784 fi
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28786 $as_echo "$ac_cv_working_alloca_h" >&6; }
28787 if test $ac_cv_working_alloca_h = yes; then
28788
28789 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28790
28791 fi
28792
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28794 $as_echo_n "checking for alloca... " >&6; }
28795 if ${ac_cv_func_alloca_works+:} false; then :
28796   $as_echo_n "(cached) " >&6
28797 else
28798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28799 /* end confdefs.h.  */
28800 #ifdef __GNUC__
28801 # define alloca __builtin_alloca
28802 #else
28803 # ifdef _MSC_VER
28804 #  include <malloc.h>
28805 #  define alloca _alloca
28806 # else
28807 #  ifdef HAVE_ALLOCA_H
28808 #   include <alloca.h>
28809 #  else
28810 #   ifdef _AIX
28811  #pragma alloca
28812 #   else
28813 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28814 void *alloca (size_t);
28815 #    endif
28816 #   endif
28817 #  endif
28818 # endif
28819 #endif
28820
28821 int
28822 main ()
28823 {
28824 char *p = (char *) alloca (1);
28825                                     if (p) return 0;
28826   ;
28827   return 0;
28828 }
28829 _ACEOF
28830 if ac_fn_c_try_link "$LINENO"; then :
28831   ac_cv_func_alloca_works=yes
28832 else
28833   ac_cv_func_alloca_works=no
28834 fi
28835 rm -f core conftest.err conftest.$ac_objext \
28836     conftest$ac_exeext conftest.$ac_ext
28837 fi
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28839 $as_echo "$ac_cv_func_alloca_works" >&6; }
28840
28841 if test $ac_cv_func_alloca_works = yes; then
28842
28843 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28844
28845 else
28846   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28847 # that cause trouble.  Some versions do not even contain alloca or
28848 # contain a buggy version.  If you still want to use their alloca,
28849 # use ar to extract alloca.o from them instead of compiling alloca.c.
28850
28851 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28852
28853 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28854
28855
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28857 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28858 if ${ac_cv_os_cray+:} false; then :
28859   $as_echo_n "(cached) " >&6
28860 else
28861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28862 /* end confdefs.h.  */
28863 #if defined CRAY && ! defined CRAY2
28864 webecray
28865 #else
28866 wenotbecray
28867 #endif
28868
28869 _ACEOF
28870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28871   $EGREP "webecray" >/dev/null 2>&1; then :
28872   ac_cv_os_cray=yes
28873 else
28874   ac_cv_os_cray=no
28875 fi
28876 rm -f conftest*
28877
28878 fi
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28880 $as_echo "$ac_cv_os_cray" >&6; }
28881 if test $ac_cv_os_cray = yes; then
28882   for ac_func in _getb67 GETB67 getb67; do
28883     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28885 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28886
28887 cat >>confdefs.h <<_ACEOF
28888 #define CRAY_STACKSEG_END $ac_func
28889 _ACEOF
28890
28891     break
28892 fi
28893
28894   done
28895 fi
28896
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28898 $as_echo_n "checking stack direction for C alloca... " >&6; }
28899 if ${ac_cv_c_stack_direction+:} false; then :
28900   $as_echo_n "(cached) " >&6
28901 else
28902   if test "$cross_compiling" = yes; then :
28903   ac_cv_c_stack_direction=0
28904 else
28905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28906 /* end confdefs.h.  */
28907 $ac_includes_default
28908 int
28909 find_stack_direction (int *addr, int depth)
28910 {
28911   int dir, dummy = 0;
28912   if (! addr)
28913     addr = &dummy;
28914   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28915   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28916   return dir + dummy;
28917 }
28918
28919 int
28920 main (int argc, char **argv)
28921 {
28922   return find_stack_direction (0, argc + !argv + 20) < 0;
28923 }
28924 _ACEOF
28925 if ac_fn_c_try_run "$LINENO"; then :
28926   ac_cv_c_stack_direction=1
28927 else
28928   ac_cv_c_stack_direction=-1
28929 fi
28930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28931   conftest.$ac_objext conftest.beam conftest.$ac_ext
28932 fi
28933
28934 fi
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28936 $as_echo "$ac_cv_c_stack_direction" >&6; }
28937 cat >>confdefs.h <<_ACEOF
28938 #define STACK_DIRECTION $ac_cv_c_stack_direction
28939 _ACEOF
28940
28941
28942 fi
28943
28944 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28945 # -lseq on Dynix/PTX, -lgen on Unixware.
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28947 $as_echo_n "checking for library containing getmntent... " >&6; }
28948 if ${ac_cv_search_getmntent+:} false; then :
28949   $as_echo_n "(cached) " >&6
28950 else
28951   ac_func_search_save_LIBS=$LIBS
28952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28953 /* end confdefs.h.  */
28954
28955 /* Override any GCC internal prototype to avoid an error.
28956    Use char because int might match the return type of a GCC
28957    builtin and then its argument prototype would still apply.  */
28958 #ifdef __cplusplus
28959 extern "C"
28960 #endif
28961 char getmntent ();
28962 int
28963 main ()
28964 {
28965 return getmntent ();
28966   ;
28967   return 0;
28968 }
28969 _ACEOF
28970 for ac_lib in '' sun seq gen; do
28971   if test -z "$ac_lib"; then
28972     ac_res="none required"
28973   else
28974     ac_res=-l$ac_lib
28975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28976   fi
28977   if ac_fn_c_try_link "$LINENO"; then :
28978   ac_cv_search_getmntent=$ac_res
28979 fi
28980 rm -f core conftest.err conftest.$ac_objext \
28981     conftest$ac_exeext
28982   if ${ac_cv_search_getmntent+:} false; then :
28983   break
28984 fi
28985 done
28986 if ${ac_cv_search_getmntent+:} false; then :
28987
28988 else
28989   ac_cv_search_getmntent=no
28990 fi
28991 rm conftest.$ac_ext
28992 LIBS=$ac_func_search_save_LIBS
28993 fi
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28995 $as_echo "$ac_cv_search_getmntent" >&6; }
28996 ac_res=$ac_cv_search_getmntent
28997 if test "$ac_res" != no; then :
28998   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28999   ac_cv_func_getmntent=yes
29000
29001 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29002
29003 else
29004   ac_cv_func_getmntent=no
29005 fi
29006
29007
29008 for ac_func in getmntinfo
29009 do :
29010   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29011 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29012   cat >>confdefs.h <<_ACEOF
29013 #define HAVE_GETMNTINFO 1
29014 _ACEOF
29015  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29016
29017 fi
29018 done
29019
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29021 $as_echo_n "checking whether closedir returns void... " >&6; }
29022 if ${ac_cv_func_closedir_void+:} false; then :
29023   $as_echo_n "(cached) " >&6
29024 else
29025   if test "$cross_compiling" = yes; then :
29026   ac_cv_func_closedir_void=yes
29027 else
29028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29029 /* end confdefs.h.  */
29030 $ac_includes_default
29031 #include <$ac_header_dirent>
29032 #ifndef __cplusplus
29033 int closedir ();
29034 #endif
29035
29036 int
29037 main ()
29038 {
29039 return closedir (opendir (".")) != 0;
29040   ;
29041   return 0;
29042 }
29043 _ACEOF
29044 if ac_fn_c_try_run "$LINENO"; then :
29045   ac_cv_func_closedir_void=no
29046 else
29047   ac_cv_func_closedir_void=yes
29048 fi
29049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29050   conftest.$ac_objext conftest.beam conftest.$ac_ext
29051 fi
29052
29053 fi
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29055 $as_echo "$ac_cv_func_closedir_void" >&6; }
29056 if test $ac_cv_func_closedir_void = yes; then
29057
29058 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29059
29060 fi
29061
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29063 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29064 if ${ac_cv_func_setpgrp_void+:} false; then :
29065   $as_echo_n "(cached) " >&6
29066 else
29067   if test "$cross_compiling" = yes; then :
29068   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29069 else
29070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29071 /* end confdefs.h.  */
29072 $ac_includes_default
29073 int
29074 main ()
29075 {
29076 /* If this system has a BSD-style setpgrp which takes arguments,
29077   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29078   exit successfully. */
29079   return setpgrp (1,1) != -1;
29080   ;
29081   return 0;
29082 }
29083 _ACEOF
29084 if ac_fn_c_try_run "$LINENO"; then :
29085   ac_cv_func_setpgrp_void=no
29086 else
29087   ac_cv_func_setpgrp_void=yes
29088 fi
29089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29090   conftest.$ac_objext conftest.beam conftest.$ac_ext
29091 fi
29092
29093 fi
29094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29095 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29096 if test $ac_cv_func_setpgrp_void = yes; then
29097
29098 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29099
29100 fi
29101             # AC_FUNC_FNMATCH    dnl use local version
29102
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29104 $as_echo_n "checking for gettext in -lintl... " >&6; }
29105 if ${ac_cv_lib_intl_gettext+:} false; then :
29106   $as_echo_n "(cached) " >&6
29107 else
29108   ac_check_lib_save_LIBS=$LIBS
29109 LIBS="-lintl  $LIBS"
29110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29111 /* end confdefs.h.  */
29112
29113 /* Override any GCC internal prototype to avoid an error.
29114    Use char because int might match the return type of a GCC
29115    builtin and then its argument prototype would still apply.  */
29116 #ifdef __cplusplus
29117 extern "C"
29118 #endif
29119 char gettext ();
29120 int
29121 main ()
29122 {
29123 return gettext ();
29124   ;
29125   return 0;
29126 }
29127 _ACEOF
29128 if ac_fn_c_try_link "$LINENO"; then :
29129   ac_cv_lib_intl_gettext=yes
29130 else
29131   ac_cv_lib_intl_gettext=no
29132 fi
29133 rm -f core conftest.err conftest.$ac_objext \
29134     conftest$ac_exeext conftest.$ac_ext
29135 LIBS=$ac_check_lib_save_LIBS
29136 fi
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29138 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29139 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29140   LIBS="$LIBS -lintl"
29141 fi
29142
29143
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29145 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29146 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29147   $as_echo_n "(cached) " >&6
29148 else
29149   ac_check_lib_save_LIBS=$LIBS
29150 LIBS="-lsun  $LIBS"
29151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h.  */
29153
29154 /* Override any GCC internal prototype to avoid an error.
29155    Use char because int might match the return type of a GCC
29156    builtin and then its argument prototype would still apply.  */
29157 #ifdef __cplusplus
29158 extern "C"
29159 #endif
29160 char getpwnam ();
29161 int
29162 main ()
29163 {
29164 return getpwnam ();
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 if ac_fn_c_try_link "$LINENO"; then :
29170   ac_cv_lib_sun_getpwnam=yes
29171 else
29172   ac_cv_lib_sun_getpwnam=no
29173 fi
29174 rm -f core conftest.err conftest.$ac_objext \
29175     conftest$ac_exeext conftest.$ac_ext
29176 LIBS=$ac_check_lib_save_LIBS
29177 fi
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29179 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29180 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29181   cat >>confdefs.h <<_ACEOF
29182 #define HAVE_LIBSUN 1
29183 _ACEOF
29184
29185   LIBS="-lsun $LIBS"
29186
29187 fi
29188
29189
29190 for ac_header in zlib.h
29191 do :
29192   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29193 if test "x$ac_cv_header_zlib_h" = xyes; then :
29194   cat >>confdefs.h <<_ACEOF
29195 #define HAVE_ZLIB_H 1
29196 _ACEOF
29197
29198 fi
29199
29200 done
29201
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29203 $as_echo_n "checking for deflate in -lz... " >&6; }
29204 if ${ac_cv_lib_z_deflate+:} false; then :
29205   $as_echo_n "(cached) " >&6
29206 else
29207   ac_check_lib_save_LIBS=$LIBS
29208 LIBS="-lz  $LIBS"
29209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29210 /* end confdefs.h.  */
29211
29212 /* Override any GCC internal prototype to avoid an error.
29213    Use char because int might match the return type of a GCC
29214    builtin and then its argument prototype would still apply.  */
29215 #ifdef __cplusplus
29216 extern "C"
29217 #endif
29218 char deflate ();
29219 int
29220 main ()
29221 {
29222 return deflate ();
29223   ;
29224   return 0;
29225 }
29226 _ACEOF
29227 if ac_fn_c_try_link "$LINENO"; then :
29228   ac_cv_lib_z_deflate=yes
29229 else
29230   ac_cv_lib_z_deflate=no
29231 fi
29232 rm -f core conftest.err conftest.$ac_objext \
29233     conftest$ac_exeext conftest.$ac_ext
29234 LIBS=$ac_check_lib_save_LIBS
29235 fi
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29237 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29238 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29239   ZLIBS="-lz"
29240 fi
29241
29242 have_zlib=no
29243 if test x$ZLIBS = x-lz; then
29244    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29245
29246    have_zlib=yes
29247 fi
29248
29249
29250 AFS_CFLAGS=""
29251 AFS_LIBS=""
29252 support_afs=auto
29253 # Check whether --enable-afs was given.
29254 if test "${enable_afs+set}" = set; then :
29255   enableval=$enable_afs;
29256        if test x$enableval = xyes; then
29257           support_afs=yes
29258        elif test x$enableval = xno; then
29259           support_afs=no
29260        fi
29261
29262
29263 fi
29264
29265
29266 have_afs=no
29267 if test x$support_afs = xyes -o x$support_afs = xauto; then
29268
29269 # Check whether --with-afsdir was given.
29270 if test "${with_afsdir+set}" = set; then :
29271   withval=$with_afsdir; with_afsdir=$withval
29272
29273 fi
29274
29275
29276             if test x$with_afsdir = x; then
29277       for root in /usr /usr/local; do
29278          if test -d ${root}/include/afs/ ; then
29279             with_afsdir=${root}
29280             break
29281          fi
29282          if test -d ${root}/include/openafs/afs/ ; then
29283             with_afsdir=${root}
29284             break
29285          fi
29286       done
29287    fi
29288
29289    if test -d ${with_afsdir}/include/afs/ ; then
29290       AFS_CFLAGS="-I${with_afsdir}/include"
29291    else
29292       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29293          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29294       fi
29295    fi
29296
29297    saved_CFLAGS="${CFLAGS}"
29298    saved_CPPFLAGS="${CPPFLAGS}"
29299    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29300    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29301
29302    for ac_header in afs/afsint.h
29303 do :
29304   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29305 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29306   cat >>confdefs.h <<_ACEOF
29307 #define HAVE_AFS_AFSINT_H 1
29308 _ACEOF
29309
29310 fi
29311
29312 done
29313
29314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29315 /* end confdefs.h.  */
29316
29317           #include <afs/afsint.h>
29318           #include <afs/venus.h>
29319
29320 _ACEOF
29321 if ac_fn_c_try_cpp "$LINENO"; then :
29322
29323 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29324
29325
29326 fi
29327 rm -f conftest.err conftest.i conftest.$ac_ext
29328
29329    CFLAGS="${saved_CFLAGS}"
29330    CPPFLAGS="${saved_CPPFLAGS}"
29331
29332             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29333 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29334    for dir in ${with_afsdir}/lib \
29335               ${with_afsdir}/lib/afs \
29336               ${with_afsdir}/lib/openafs \
29337               ${with_afsdir}/lib64 \
29338               ${with_afsdir}/lib64/afs \
29339               ${with_afsdir}/lib64/openafs
29340    do
29341       for arch_type in .a .so
29342       do
29343          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29344          pkg=$?
29345          if test $pkg = 0; then
29346             have_afs=yes
29347             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29348             break
29349          fi
29350       done
29351    done
29352
29353    if test $have_afs = yes; then
29354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29355 $as_echo "yes" >&6; }
29356    else
29357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29358 $as_echo "no" >&6; }
29359    fi
29360
29361    if test x$support_afs = xyes -a $have_afs != yes; then
29362       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29363   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29364    else
29365       if test $have_afs = yes; then
29366
29367 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29368
29369
29370 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29371
29372       fi
29373    fi
29374 fi
29375
29376
29377
29378
29379 # Check whether --enable-lzo was given.
29380 if test "${enable_lzo+set}" = set; then :
29381   enableval=$enable_lzo;
29382        if test x$enableval = xno; then
29383           support_lzo=no
29384        fi
29385
29386
29387 fi
29388
29389
29390 LZO_INC=
29391 LZO_LIBS=
29392 LZO_LDFLAGS=
29393
29394 have_lzo="no"
29395 if test x$support_lzo = xyes; then
29396
29397 # Check whether --with-lzo was given.
29398 if test "${with_lzo+set}" = set; then :
29399   withval=$with_lzo;
29400           case "$with_lzo" in
29401           no)
29402              :
29403              ;;
29404           yes|*)
29405              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29406                 LZO_INC="-I${with_lzo}/include"
29407                 LZO_LDFLAGS="-L${with_lzo}/lib"
29408                 with_lzo="${with_lzo}/include"
29409              else
29410                 with_lzo="/usr/include"
29411              fi
29412
29413              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29414 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29416
29417
29418 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29419
29420                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29421                     have_lzo="yes"
29422
29423 else
29424
29425                     echo " "
29426                     echo "lzoconf.h not found. lzo turned off ..."
29427                     echo " "
29428
29429
29430 fi
29431
29432
29433              ;;
29434           esac
29435
29436 else
29437
29438          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29439 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29440
29441             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29442 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29443
29444                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29445 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29446 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29447   $as_echo_n "(cached) " >&6
29448 else
29449   ac_check_lib_save_LIBS=$LIBS
29450 LIBS="-llzo2  $LIBS"
29451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29452 /* end confdefs.h.  */
29453
29454 /* Override any GCC internal prototype to avoid an error.
29455    Use char because int might match the return type of a GCC
29456    builtin and then its argument prototype would still apply.  */
29457 #ifdef __cplusplus
29458 extern "C"
29459 #endif
29460 char lzo1x_1_compress ();
29461 int
29462 main ()
29463 {
29464 return lzo1x_1_compress ();
29465   ;
29466   return 0;
29467 }
29468 _ACEOF
29469 if ac_fn_c_try_link "$LINENO"; then :
29470   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29471 else
29472   ac_cv_lib_lzo2_lzo1x_1_compress=no
29473 fi
29474 rm -f core conftest.err conftest.$ac_objext \
29475     conftest$ac_exeext conftest.$ac_ext
29476 LIBS=$ac_check_lib_save_LIBS
29477 fi
29478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29479 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29480 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29481
29482                  LZO_LIBS="-llzo2"
29483
29484 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29485
29486                  have_lzo=yes
29487
29488 fi
29489
29490
29491 fi
29492
29493
29494
29495 fi
29496
29497
29498
29499 fi
29500
29501 fi
29502
29503
29504
29505
29506
29507 support_acl=auto
29508 # Check whether --enable-acl was given.
29509 if test "${enable_acl+set}" = set; then :
29510   enableval=$enable_acl;
29511        if test x$enableval = xyes; then
29512           support_acl=yes
29513        elif test x$enableval = xno; then
29514           support_acl=no
29515        fi
29516
29517
29518 fi
29519
29520
29521 have_acl=no
29522 have_extended_acl=no
29523 if test x$support_acl = xyes -o x$support_acl = xauto; then
29524    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29525 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29526
29527 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29528
29529 fi
29530
29531
29532
29533             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29534 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29535
29536           have_acl=yes
29537
29538
29539 fi
29540
29541
29542             if test $have_acl = no; then
29543       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29544 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29545 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29546   $as_echo_n "(cached) " >&6
29547 else
29548   ac_check_lib_save_LIBS=$LIBS
29549 LIBS="-lacl  $LIBS"
29550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29551 /* end confdefs.h.  */
29552
29553 /* Override any GCC internal prototype to avoid an error.
29554    Use char because int might match the return type of a GCC
29555    builtin and then its argument prototype would still apply.  */
29556 #ifdef __cplusplus
29557 extern "C"
29558 #endif
29559 char acl_get_file ();
29560 int
29561 main ()
29562 {
29563 return acl_get_file ();
29564   ;
29565   return 0;
29566 }
29567 _ACEOF
29568 if ac_fn_c_try_link "$LINENO"; then :
29569   ac_cv_lib_acl_acl_get_file=yes
29570 else
29571   ac_cv_lib_acl_acl_get_file=no
29572 fi
29573 rm -f core conftest.err conftest.$ac_objext \
29574     conftest$ac_exeext conftest.$ac_ext
29575 LIBS=$ac_check_lib_save_LIBS
29576 fi
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29578 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29579 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29580
29581              have_acl=yes
29582              if test $have_afs = yes; then
29583                                                                 if test -d /usr/lib64/; then
29584                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29585                 else
29586                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29587                 fi
29588              else
29589                 FDLIBS="-lacl $FDLIBS"
29590              fi
29591
29592
29593 fi
29594
29595    fi
29596
29597                if test $have_acl = no -a \
29598            x${HAVE_OSF1_OS_TRUE} = x; then
29599       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29600 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29601 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29602   $as_echo_n "(cached) " >&6
29603 else
29604   ac_check_lib_save_LIBS=$LIBS
29605 LIBS="-lpacl  $LIBS"
29606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29607 /* end confdefs.h.  */
29608
29609 /* Override any GCC internal prototype to avoid an error.
29610    Use char because int might match the return type of a GCC
29611    builtin and then its argument prototype would still apply.  */
29612 #ifdef __cplusplus
29613 extern "C"
29614 #endif
29615 char acl_get_file ();
29616 int
29617 main ()
29618 {
29619 return acl_get_file ();
29620   ;
29621   return 0;
29622 }
29623 _ACEOF
29624 if ac_fn_c_try_link "$LINENO"; then :
29625   ac_cv_lib_pacl_acl_get_file=yes
29626 else
29627   ac_cv_lib_pacl_acl_get_file=no
29628 fi
29629 rm -f core conftest.err conftest.$ac_objext \
29630     conftest$ac_exeext conftest.$ac_ext
29631 LIBS=$ac_check_lib_save_LIBS
29632 fi
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29634 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29635 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29636
29637              have_acl=yes
29638              FDLIBS="-lpacl $FDLIBS"
29639
29640
29641 fi
29642
29643
29644       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29645 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29646       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29647       if test $? = 0; then
29648
29649 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29650
29651          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29652 $as_echo "yes" >&6; }
29653       else
29654          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29655 $as_echo "no" >&6; }
29656       fi
29657    fi
29658
29659             if test $have_acl = yes -a \
29660            x${HAVE_DARWIN_OS_TRUE} = x; then
29661       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29662 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29663       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29664       if test $? = 0; then
29665
29666 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29667
29668          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29669 $as_echo "yes" >&6; }
29670       else
29671          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29672 $as_echo "no" >&6; }
29673       fi
29674    fi
29675
29676             if test $have_acl = yes -a \
29677            x${HAVE_FREEBSD_OS_TRUE} = x; then
29678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29679 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29680       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29681       if test $? = 0; then
29682
29683 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29684
29685          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29686 $as_echo "yes" >&6; }
29687       else
29688          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29689 $as_echo "no" >&6; }
29690       fi
29691    fi
29692
29693             if test $have_acl = no -a \
29694            x${HAVE_SUN_OS_TRUE} = x; then
29695       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29696 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29697 if ${ac_cv_lib_sec_acltotext+:} false; then :
29698   $as_echo_n "(cached) " >&6
29699 else
29700   ac_check_lib_save_LIBS=$LIBS
29701 LIBS="-lsec  $LIBS"
29702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29703 /* end confdefs.h.  */
29704
29705 /* Override any GCC internal prototype to avoid an error.
29706    Use char because int might match the return type of a GCC
29707    builtin and then its argument prototype would still apply.  */
29708 #ifdef __cplusplus
29709 extern "C"
29710 #endif
29711 char acltotext ();
29712 int
29713 main ()
29714 {
29715 return acltotext ();
29716   ;
29717   return 0;
29718 }
29719 _ACEOF
29720 if ac_fn_c_try_link "$LINENO"; then :
29721   ac_cv_lib_sec_acltotext=yes
29722 else
29723   ac_cv_lib_sec_acltotext=no
29724 fi
29725 rm -f core conftest.err conftest.$ac_objext \
29726     conftest$ac_exeext conftest.$ac_ext
29727 LIBS=$ac_check_lib_save_LIBS
29728 fi
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29730 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29731 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29732
29733              have_acl=yes
29734              FDLIBS="-lsec $FDLIBS"
29735
29736              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29737 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29738 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29739   $as_echo_n "(cached) " >&6
29740 else
29741   ac_check_lib_save_LIBS=$LIBS
29742 LIBS="-lsec  $LIBS"
29743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29744 /* end confdefs.h.  */
29745
29746 /* Override any GCC internal prototype to avoid an error.
29747    Use char because int might match the return type of a GCC
29748    builtin and then its argument prototype would still apply.  */
29749 #ifdef __cplusplus
29750 extern "C"
29751 #endif
29752 char acl_totext ();
29753 int
29754 main ()
29755 {
29756 return acl_totext ();
29757   ;
29758   return 0;
29759 }
29760 _ACEOF
29761 if ac_fn_c_try_link "$LINENO"; then :
29762   ac_cv_lib_sec_acl_totext=yes
29763 else
29764   ac_cv_lib_sec_acl_totext=no
29765 fi
29766 rm -f core conftest.err conftest.$ac_objext \
29767     conftest$ac_exeext conftest.$ac_ext
29768 LIBS=$ac_check_lib_save_LIBS
29769 fi
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29771 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29772 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29773
29774                     have_extended_acl=yes
29775
29776
29777 fi
29778
29779
29780
29781 fi
29782
29783    fi
29784
29785             if test $have_acl = no -a \
29786            x${HAVE_AIX_OS_TRUE} = x; then
29787       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29788 if test "x$ac_cv_func_acl_get" = xyes; then :
29789
29790              have_acl=yes
29791
29792              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29793 if test "x$ac_cv_func_aclx_get" = xyes; then :
29794
29795                     have_extended_acl=yes
29796
29797
29798 fi
29799
29800
29801
29802 fi
29803
29804    fi
29805
29806    if test x$support_acl = xyes -a $have_acl != yes; then
29807       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29808   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29809    else
29810       if test $have_acl = yes; then
29811
29812 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29813
29814       fi
29815
29816       if test $have_extended_acl = yes; then
29817
29818 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29819
29820       fi
29821    fi
29822 fi
29823
29824 support_xattr=auto
29825 # Check whether --enable-xattr was given.
29826 if test "${enable_xattr+set}" = set; then :
29827   enableval=$enable_xattr;
29828        if test x$enableval = xyes; then
29829           support_xattr=yes
29830        elif test x$enableval = xno; then
29831           support_xattr=no
29832        fi
29833
29834
29835 fi
29836
29837
29838 have_xattr=no
29839 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29840                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29841            x${HAVE_NETBSD_OS_TRUE} = x -o \
29842            x${HAVE_OPENBSD_OS_TRUE} = x; then
29843       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29844 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29845
29846 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29847
29848 fi
29849
29850
29851       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29852 if test "x$ac_cv_header_libutil_h" = xyes; then :
29853
29854 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29855
29856 fi
29857
29858
29859       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29860 do :
29861   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29864   cat >>confdefs.h <<_ACEOF
29865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29866 _ACEOF
29867
29868              have_xattr=yes
29869
29870 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29871
29872
29873 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29874
29875
29876 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29877
29878
29879
29880 fi
29881 done
29882
29883
29884       if test $have_xattr = no; then
29885          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29886 do :
29887   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29889 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29890   cat >>confdefs.h <<_ACEOF
29891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29892 _ACEOF
29893
29894                 have_xattr=yes
29895
29896 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29897
29898
29899 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29900
29901
29902 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29903
29904
29905
29906 fi
29907 done
29908
29909       fi
29910
29911       if test $have_xattr = yes; then
29912          have_extattr_string_in_libc=no
29913          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29914 do :
29915   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29916 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29917 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29918   cat >>confdefs.h <<_ACEOF
29919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29920 _ACEOF
29921
29922                 have_extattr_string_in_libc=yes
29923
29924 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29925
29926
29927 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29928
29929
29930
29931 fi
29932 done
29933
29934
29935                                  if test $have_extattr_string_in_libc = no; then
29936             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29937 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29938 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29939   $as_echo_n "(cached) " >&6
29940 else
29941   ac_check_lib_save_LIBS=$LIBS
29942 LIBS="-lutil  $LIBS"
29943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29944 /* end confdefs.h.  */
29945
29946 /* Override any GCC internal prototype to avoid an error.
29947    Use char because int might match the return type of a GCC
29948    builtin and then its argument prototype would still apply.  */
29949 #ifdef __cplusplus
29950 extern "C"
29951 #endif
29952 char extattr_namespace_to_string extattr_string_to_namespace ();
29953 int
29954 main ()
29955 {
29956 return extattr_namespace_to_string extattr_string_to_namespace ();
29957   ;
29958   return 0;
29959 }
29960 _ACEOF
29961 if ac_fn_c_try_link "$LINENO"; then :
29962   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29963 else
29964   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29965 fi
29966 rm -f core conftest.err conftest.$ac_objext \
29967     conftest$ac_exeext conftest.$ac_ext
29968 LIBS=$ac_check_lib_save_LIBS
29969 fi
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29971 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29972 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29973
29974
29975 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29976
29977
29978 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29979
29980                    FDLIBS="-lutil $FDLIBS"
29981
29982
29983 fi
29984
29985          fi
29986       fi
29987    fi
29988
29989                if test $have_xattr = no -a \
29990            x${HAVE_AIX_OS_TRUE} = x; then
29991       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29992 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29993
29994 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29995
29996 fi
29997
29998
29999       for ac_func in llistea lgetea lsetea
30000 do :
30001   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30002 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30003 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30004   cat >>confdefs.h <<_ACEOF
30005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30006 _ACEOF
30007
30008              have_xattr=yes
30009
30010 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30011
30012
30013 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30014
30015
30016 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30017
30018
30019
30020 fi
30021 done
30022
30023
30024       if test $have_xattr = no; then
30025          for ac_func in listea getea setea
30026 do :
30027   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30030   cat >>confdefs.h <<_ACEOF
30031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30032 _ACEOF
30033
30034                 have_xattr=yes
30035
30036 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30037
30038
30039 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30040
30041
30042 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30043
30044
30045
30046 fi
30047 done
30048
30049       fi
30050    fi
30051
30052                if test $have_xattr = no -a \
30053            x${HAVE_OSF1_OS_TRUE} = x; then
30054       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30055 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30056
30057 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30058
30059 fi
30060
30061
30062       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30063 do :
30064   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30065 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30066 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30067   cat >>confdefs.h <<_ACEOF
30068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30069 _ACEOF
30070
30071              have_xattr=yes
30072
30073 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30074
30075
30076 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30077
30078
30079 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30080
30081
30082 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30083
30084
30085 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30086
30087
30088
30089 fi
30090 done
30091
30092    fi
30093
30094                if test $have_xattr = no -a \
30095            x${HAVE_SUN_OS_TRUE} = x; then
30096       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30097 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30098
30099 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30100
30101 fi
30102
30103
30104       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30105 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30106
30107 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30108
30109 fi
30110
30111
30112       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30113 if test "x$ac_cv_header_attr_h" = xyes; then :
30114
30115 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30116
30117 fi
30118
30119
30120
30121       for ac_func in openat fstatat unlinkat fchownat futimesat
30122 do :
30123   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30125 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30126   cat >>confdefs.h <<_ACEOF
30127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30128 _ACEOF
30129
30130              have_xattr=yes
30131
30132 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30133
30134
30135 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30136
30137
30138 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30139
30140
30141 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30142
30143
30144 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30145
30146
30147
30148 fi
30149 done
30150
30151
30152       if test $have_xattr = yes; then
30153          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30154 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30155 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30156   $as_echo_n "(cached) " >&6
30157 else
30158   ac_check_lib_save_LIBS=$LIBS
30159 LIBS="-lnvpair  $LIBS"
30160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30161 /* end confdefs.h.  */
30162
30163 /* Override any GCC internal prototype to avoid an error.
30164    Use char because int might match the return type of a GCC
30165    builtin and then its argument prototype would still apply.  */
30166 #ifdef __cplusplus
30167 extern "C"
30168 #endif
30169 char nvlist_next_nvpair ();
30170 int
30171 main ()
30172 {
30173 return nvlist_next_nvpair ();
30174   ;
30175   return 0;
30176 }
30177 _ACEOF
30178 if ac_fn_c_try_link "$LINENO"; then :
30179   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30180 else
30181   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30182 fi
30183 rm -f core conftest.err conftest.$ac_objext \
30184     conftest$ac_exeext conftest.$ac_ext
30185 LIBS=$ac_check_lib_save_LIBS
30186 fi
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30188 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30189 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30190
30191
30192 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30193
30194                 FDLIBS="-lnvpair $FDLIBS"
30195
30196
30197 fi
30198
30199       fi
30200    fi
30201
30202             if test $have_xattr = no; then
30203       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30204 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30205
30206 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30207
30208 fi
30209
30210
30211       for ac_func in llistxattr lgetxattr lsetxattr
30212 do :
30213   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30216   cat >>confdefs.h <<_ACEOF
30217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30218 _ACEOF
30219
30220              have_xattr=yes
30221
30222 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30223
30224
30225 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30226
30227
30228 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30229
30230
30231
30232 fi
30233 done
30234
30235
30236       if test $have_xattr = no; then
30237          for ac_func in listxattr getxattr setxattr
30238 do :
30239   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30241 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30242   cat >>confdefs.h <<_ACEOF
30243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30244 _ACEOF
30245
30246                 have_xattr=yes
30247
30248 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30249
30250
30251 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30252
30253
30254 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30255
30256
30257
30258 fi
30259 done
30260
30261       fi
30262    fi
30263
30264    if test x$support_xattr = xyes -a $have_xattr != yes; then
30265       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30266   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30267    else
30268       if test $have_xattr = yes; then
30269
30270 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30271
30272       fi
30273    fi
30274 fi
30275
30276 PTHREAD_LIB=""
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30278 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30279 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30280   $as_echo_n "(cached) " >&6
30281 else
30282   ac_check_lib_save_LIBS=$LIBS
30283 LIBS="-lpthread  $LIBS"
30284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30285 /* end confdefs.h.  */
30286
30287 /* Override any GCC internal prototype to avoid an error.
30288    Use char because int might match the return type of a GCC
30289    builtin and then its argument prototype would still apply.  */
30290 #ifdef __cplusplus
30291 extern "C"
30292 #endif
30293 char pthread_create ();
30294 int
30295 main ()
30296 {
30297 return pthread_create ();
30298   ;
30299   return 0;
30300 }
30301 _ACEOF
30302 if ac_fn_c_try_link "$LINENO"; then :
30303   ac_cv_lib_pthread_pthread_create=yes
30304 else
30305   ac_cv_lib_pthread_pthread_create=no
30306 fi
30307 rm -f core conftest.err conftest.$ac_objext \
30308     conftest$ac_exeext conftest.$ac_ext
30309 LIBS=$ac_check_lib_save_LIBS
30310 fi
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30312 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30313 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30314   PTHREAD_LIB="-lpthread"
30315 else
30316
30317        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30318 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30319 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30320   $as_echo_n "(cached) " >&6
30321 else
30322   ac_check_lib_save_LIBS=$LIBS
30323 LIBS="-lpthreads  $LIBS"
30324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30325 /* end confdefs.h.  */
30326
30327 /* Override any GCC internal prototype to avoid an error.
30328    Use char because int might match the return type of a GCC
30329    builtin and then its argument prototype would still apply.  */
30330 #ifdef __cplusplus
30331 extern "C"
30332 #endif
30333 char pthread_create ();
30334 int
30335 main ()
30336 {
30337 return pthread_create ();
30338   ;
30339   return 0;
30340 }
30341 _ACEOF
30342 if ac_fn_c_try_link "$LINENO"; then :
30343   ac_cv_lib_pthreads_pthread_create=yes
30344 else
30345   ac_cv_lib_pthreads_pthread_create=no
30346 fi
30347 rm -f core conftest.err conftest.$ac_objext \
30348     conftest$ac_exeext conftest.$ac_ext
30349 LIBS=$ac_check_lib_save_LIBS
30350 fi
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30352 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30353 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30354   PTHREAD_LIB="-lpthreads"
30355 else
30356
30357               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30358 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30359 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30360   $as_echo_n "(cached) " >&6
30361 else
30362   ac_check_lib_save_LIBS=$LIBS
30363 LIBS="-lc_r  $LIBS"
30364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30365 /* end confdefs.h.  */
30366
30367 /* Override any GCC internal prototype to avoid an error.
30368    Use char because int might match the return type of a GCC
30369    builtin and then its argument prototype would still apply.  */
30370 #ifdef __cplusplus
30371 extern "C"
30372 #endif
30373 char pthread_create ();
30374 int
30375 main ()
30376 {
30377 return pthread_create ();
30378   ;
30379   return 0;
30380 }
30381 _ACEOF
30382 if ac_fn_c_try_link "$LINENO"; then :
30383   ac_cv_lib_c_r_pthread_create=yes
30384 else
30385   ac_cv_lib_c_r_pthread_create=no
30386 fi
30387 rm -f core conftest.err conftest.$ac_objext \
30388     conftest$ac_exeext conftest.$ac_ext
30389 LIBS=$ac_check_lib_save_LIBS
30390 fi
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30392 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30393 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30394   PTHREAD_LIB="-lc_r"
30395 else
30396
30397                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30398 if test "x$ac_cv_func_pthread_create" = xyes; then :
30399
30400 fi
30401
30402
30403
30404 fi
30405
30406
30407
30408 fi
30409
30410
30411
30412 fi
30413
30414
30415 for ac_header in sys/prctl.h sys/capability.h
30416 do :
30417   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30418 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30420   cat >>confdefs.h <<_ACEOF
30421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30422 _ACEOF
30423
30424 fi
30425
30426 done
30427
30428 for ac_func in prctl setreuid
30429 do :
30430   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30433   cat >>confdefs.h <<_ACEOF
30434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30435 _ACEOF
30436
30437 fi
30438 done
30439
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30441 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30442 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30443   $as_echo_n "(cached) " >&6
30444 else
30445   ac_check_lib_save_LIBS=$LIBS
30446 LIBS="-lcap  $LIBS"
30447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30448 /* end confdefs.h.  */
30449
30450 /* Override any GCC internal prototype to avoid an error.
30451    Use char because int might match the return type of a GCC
30452    builtin and then its argument prototype would still apply.  */
30453 #ifdef __cplusplus
30454 extern "C"
30455 #endif
30456 char cap_set_proc ();
30457 int
30458 main ()
30459 {
30460 return cap_set_proc ();
30461   ;
30462   return 0;
30463 }
30464 _ACEOF
30465 if ac_fn_c_try_link "$LINENO"; then :
30466   ac_cv_lib_cap_cap_set_proc=yes
30467 else
30468   ac_cv_lib_cap_cap_set_proc=no
30469 fi
30470 rm -f core conftest.err conftest.$ac_objext \
30471     conftest$ac_exeext conftest.$ac_ext
30472 LIBS=$ac_check_lib_save_LIBS
30473 fi
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30475 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30476 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30477   CAP_LIBS="-lcap"
30478 else
30479   CAP_LIBS=
30480 fi
30481
30482 if test x$CAP_LIBS = x-lcap; then
30483
30484 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30485
30486 fi
30487
30488
30489
30490 $as_echo "#define FDLIBS 1" >>confdefs.h
30491
30492
30493 CFLAGS=${CFLAGS--O}
30494
30495 if test x$have_gcc = xyes ; then
30496    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30497    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30498 fi
30499 LDFLAGS=${LDFLAGS--O}
30500 CPPFLAGS="$CPPFLAGS"
30501 CFLAGS="$CFLAGS"
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517 OBJLIST=
30518
30519
30520 lld="lld"
30521 llu="llu"
30522
30523 WCFLAGS=
30524 WLDFLAGS=
30525
30526 PSCMD="ps -e"
30527 WIN32=
30528 MACOSX=
30529 COMPRESS_MANPAGES=yes
30530
30531 case "$DISTNAME" in
30532 aix)
30533    DISTVER=`uname -r`
30534    PSCMD="ps -e -o pid,comm"
30535    PFILES="${PFILES} platforms/aix/Makefile"
30536    TAPEDRIVE="/dev/rmt0.1"
30537   ;;
30538 alpha)
30539    DISTVER=`uname -r`
30540    PTHREAD_LIB="-lpthread -lexc"
30541    if test "${CC}" = "gcc" ; then
30542       lld="lld"
30543       llu="llu"
30544    else
30545       lld="ld"
30546       llu="lu"
30547    fi
30548    TAPEDRIVE="/dev/nrmt0"
30549   ;;
30550 bsdi)
30551    DISTVER=`uname -a |awk '{print $3}'`
30552    TAPEDRIVE="/dev/nrmt0"
30553    PTHREAD_LIB="-pthread"
30554    CFLAGS="${CFLAGS} -pthread"
30555    PSCMD="ps -ax -o pid,command"
30556    lld="qd"
30557    llu="qu"
30558    PFILES="${PFILES} \
30559        platforms/bsdi/Makefile \
30560        platforms/bsdi/bacula-fd \
30561        platforms/bsdi/bacula-sd \
30562        platforms/bsdi/bacula-dir"
30563    largefile_support="yes"
30564   ;;
30565 cygwin)
30566    DISTVER=`uname -a |awk '{print $3}'`
30567    TAPEDRIVE="/dev/nrst0"
30568    WIN32=win32
30569    WCFLAGS="-mwindows"
30570    WLDFLAGS="-mwindows"
30571   ;;
30572 darwin)
30573    DISTVER=`uname -r`
30574    TAPEDRIVE="/dev/nst0"
30575    PSCMD="ps -e -o pid,command"
30576    MACOSX=macosx
30577    PFILES="${PFILES} \
30578       platforms/darwin/Makefile"
30579   ;;
30580 osx)
30581    DISTVER=`uname -r`
30582    TAPEDRIVE="/dev/nst0"
30583    PSCMD="ps -e -o pid,command"
30584    MACOSX=macosx
30585    PFILES="${PFILES} \
30586       platforms/osx/Makefile"
30587   ;;
30588 debian)
30589    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30590       DISTNAME="ubuntu"
30591    fi
30592    DISTVER=`cat /etc/debian_version`
30593    if test -f /etc/lsb-release ; then
30594       . /etc/lsb-release
30595       if test "x$DISTRIB_ID" != "x" ; then
30596          DISTNAME=$DISTRIB_ID
30597       fi
30598       if test "x$DISTRIB_RELEASE" != "x" ; then
30599          DISTVER=$DISTRIB_RELEASE
30600       fi
30601    fi
30602    if test "$DISTNAME" = "Ubuntu" ; then
30603       DISTNAME="ubuntu"
30604    fi
30605    TAPEDRIVE="/dev/nst0"
30606    PSCMD="ps -e -o pid,command"
30607    if test "$DISTNAME" = "ubuntu" ; then
30608       PFILES="${PFILES} \
30609          platforms/ubuntu/Makefile \
30610          platforms/ubuntu/bacula-fd \
30611          platforms/ubuntu/bacula-sd \
30612          platforms/ubuntu/bacula-dir"
30613    else
30614       PFILES="${PFILES} \
30615          platforms/debian/Makefile \
30616          platforms/debian/bacula-fd \
30617          platforms/debian/bacula-sd \
30618          platforms/debian/bacula-dir"
30619    fi
30620   ;;
30621 freebsd)
30622    DISTVER=`uname -a |awk '{print $3}'`
30623    VER=`echo $DISTVER | cut -c 1`
30624    if test x$VER = x4 ; then
30625       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30626       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30627    fi
30628    lld="qd"
30629    llu="qu"
30630    TAPEDRIVE="/dev/nrsa0"
30631    PSCMD="ps -ax -o pid,command"
30632    PFILES="${PFILES} \
30633        platforms/freebsd/Makefile \
30634        platforms/freebsd/bacula-fd \
30635        platforms/freebsd/bacula-sd \
30636        platforms/freebsd/bacula-dir"
30637    largefile_support="yes"
30638   ;;
30639 hurd)
30640    DISTVER=`uname -r`
30641    TAPEDRIVE="/dev/nst0"
30642    PSCMD="ps -e -o pid,command"
30643    PFILES="${PFILES} \
30644        platforms/hurd/Makefile \
30645        platforms/hurd/bacula-fd \
30646        platforms/hurd/bacula-sd \
30647        platforms/hurd/bacula-dir"
30648   ;;
30649 hpux)
30650    PSCMD="UNIX95=1; ps -e -o pid,comm"
30651    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30652    DISTVER=`uname -r`
30653    TAPEDRIVE="/dev/rmt/0hnb"
30654    PTHREAD_LIB="-lpthread"
30655    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30656
30657   ;;
30658 irix)
30659    DISTVER=`uname -r`
30660    TAPEDRIVE="/dev/rmt/0cbn"
30661    PSCMD="ps -e -o pid,comm"
30662    PFILES="${PFILES} \
30663        platforms/irix/Makefile \
30664        platforms/irix/bacula-fd \
30665        platforms/irix/bacula-sd \
30666        platforms/irix/bacula-dir"
30667   ;;
30668 netbsd)
30669    DISTVER=`uname -a |awk '{print $3}'`
30670    lld="qd"
30671    llu="qu"
30672    TAPEDRIVE="/dev/nrst0"
30673    PSCMD="ps -ax -o pid,command"
30674    PTHREAD_LIB="-pthread"
30675    CFLAGS="${CFLAGS} -pthread"
30676   ;;
30677 openbsd)
30678    DISTVER=`uname -a |awk '{print $3}'`
30679    lld="qd"
30680    llu="qu"
30681    TAPEDRIVE="/dev/nrst0"
30682    PSCMD="ps -ax -o pid,command"
30683    PTHREAD_LIB="-pthread"
30684    CFLAGS="${CFLAGS} -pthread"
30685    PFILES="${PFILES} \
30686        platforms/openbsd/Makefile \
30687        platforms/openbsd/bacula-fd \
30688        platforms/openbsd/bacula-sd \
30689        platforms/openbsd/bacula-dir"
30690   ;;
30691 redhat)
30692    if test -f /etc/whitebox-release ; then
30693       f=/etc/whitebox-release
30694    else
30695       f=/etc/redhat-release
30696    fi
30697    if test `cat $f | grep release |\
30698          cut -f 3 -d ' '`x = "Enterprise"x ; then
30699       DISTVER="Enterprise "`cat $f | grep release |\
30700           cut -f 6 -d ' '`
30701    else
30702        DISTVER=`cat /etc/redhat-release | grep release |\
30703            cut -f 5 -d ' '`
30704    fi
30705    TAPEDRIVE="/dev/nst0"
30706    PSCMD="ps -e -o pid,command"
30707    PFILES="${PFILES} \
30708        platforms/redhat/Makefile \
30709        platforms/redhat/bacula-fd \
30710        platforms/redhat/bacula-sd \
30711        platforms/redhat/bacula-dir
30712        "
30713   ;;
30714 mandrake)
30715    DISTVER=`cat /etc/mandrake-release | grep release |\
30716       cut -f 5 -d ' '`
30717    TAPEDRIVE="/dev/nst0"
30718    PSCMD="ps -e -o pid,command"
30719    PFILES="${PFILES} \
30720        platforms/mandrake/Makefile \
30721        platforms/mandrake/bacula-fd \
30722        platforms/mandrake/bacula-sd \
30723        platforms/mandrake/bacula-dir \
30724        "
30725   ;;
30726 gentoo)
30727    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30728    TAPEDRIVE="/dev/nst0"
30729    PSCMD="ps -e -o pid,command"
30730    PFILES="${PFILES} \
30731        platforms/gentoo/Makefile \
30732     platforms/gentoo/bacula-init \
30733        platforms/gentoo/bacula-fd \
30734        platforms/gentoo/bacula-sd \
30735        platforms/gentoo/bacula-dir"
30736   ;;
30737 slackware)
30738    DISTVER=`cat /etc/slackware-version`
30739    TAPEDRIVE="/dev/nst0"
30740    PSCMD="ps -e -o pid,command"
30741    PFILES="${PFILES} \
30742        platforms/slackware/Makefile \
30743        platforms/slackware/rc.bacula-fd \
30744        platforms/slackware/rc.bacula-sd \
30745        platforms/slackware/rc.bacula-dir\
30746        platforms/slackware/functions.bacula"
30747   ;;
30748 solaris)
30749    DISTVER=`uname -r`
30750    TAPEDRIVE="/dev/rmt/0cbn"
30751    PSCMD="ps -e -o pid,comm"
30752    PFILES="${PFILES} \
30753        platforms/solaris/Makefile \
30754        platforms/solaris/bacula-fd \
30755        platforms/solaris/bacula-sd \
30756        platforms/solaris/bacula-dir"
30757    COMPRESS_MANPAGES=
30758    case ${DISTVER} in
30759    5.5|5.6)
30760       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30761
30762       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30763
30764       ;;
30765    5.7|5.8)
30766       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30767
30768       ;;
30769    *)
30770       ;;
30771    esac
30772    LIBS="$LIBS -lresolv -lrt"
30773   ;;
30774 suse)
30775    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30776        cut -f 3 -d ' '`
30777    TAPEDRIVE="/dev/nst0"
30778    PSCMD="ps -e -o pid,command"
30779    PFILES="${PFILES} \
30780        platforms/suse/Makefile \
30781        platforms/suse/bacula-fd \
30782        platforms/suse/bacula-sd \
30783        platforms/suse/bacula-dir \
30784        platforms/suse/bacula"
30785   ;;
30786 suse5)
30787    DISTNAME=suse
30788    DISTVER=5.x
30789    TAPEDRIVE="/dev/nst0"
30790    PSCMD="ps -e -o pid,command"
30791    PFILES="${PFILES} \
30792        platforms/suse/Makefile \
30793        platforms/suse/bacula-fd \
30794        platforms/suse/bacula-sd \
30795        platforms/suse/bacula-dir"
30796   ;;
30797 unknown)
30798    DISTVER=unknown
30799    TAPEDRIVE="/dev/nst0"
30800   ;;
30801 *)
30802   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30803   ;;
30804 esac
30805
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30807 $as_echo_n "checking for systemd support... " >&6; }
30808
30809 # Check whether --with-systemd was given.
30810 if test "${with_systemd+set}" = set; then :
30811   withval=$with_systemd;
30812        if test "$withval" != "no"; then
30813            if test "$withval" = "yes"; then
30814                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30815            else
30816                SYSTEMD_UNITDIR="${withval}"
30817            fi
30818
30819            PFILES="${PFILES} \
30820                    platforms/systemd/Makefile \
30821                    platforms/systemd/bacula-dir.service \
30822                    platforms/systemd/bacula-fd.service \
30823                    platforms/systemd/bacula-sd.service"
30824
30825 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30826
30827            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30828 $as_echo "yes" >&6; }
30829            support_systemd="yes"
30830        else
30831            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30832 $as_echo "no" >&6; }
30833            support_systemd="no"
30834        fi
30835
30836 else
30837
30838        support_systemd="no"
30839        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30840 $as_echo "no" >&6; }
30841
30842
30843 fi
30844
30845
30846
30847
30848
30849 LIBS="$PTHREAD_LIB $LIBS"
30850
30851 cat >>confdefs.h <<_ACEOF
30852 #define lld "$lld"
30853 _ACEOF
30854
30855 cat >>confdefs.h <<_ACEOF
30856 #define llu "$llu"
30857 _ACEOF
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867 MCOMMON=./autoconf/Make.common
30868
30869
30870 if test "x${subsysdir}" = "x${sbindir}" ; then
30871    echo " "
30872    echo " "
30873    echo "You have set both --sbindir and --with-subsys-dir"
30874    echo "  equal to: ${subsysdir} "
30875    echo "This is not permitted. Please reconfigure."
30876    echo " "
30877    echo "Aborting configuration ..."
30878    echo " "
30879    echo " "
30880    exit 1
30881 fi
30882
30883
30884 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.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"
30885
30886 ac_config_commands="$ac_config_commands default"
30887
30888 cat >confcache <<\_ACEOF
30889 # This file is a shell script that caches the results of configure
30890 # tests run on this system so they can be shared between configure
30891 # scripts and configure runs, see configure's option --config-cache.
30892 # It is not useful on other systems.  If it contains results you don't
30893 # want to keep, you may remove or edit it.
30894 #
30895 # config.status only pays attention to the cache file if you give it
30896 # the --recheck option to rerun configure.
30897 #
30898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30900 # following values.
30901
30902 _ACEOF
30903
30904 # The following way of writing the cache mishandles newlines in values,
30905 # but we know of no workaround that is simple, portable, and efficient.
30906 # So, we kill variables containing newlines.
30907 # Ultrix sh set writes to stderr and can't be redirected directly,
30908 # and sets the high bit in the cache file unless we assign to the vars.
30909 (
30910   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30911     eval ac_val=\$$ac_var
30912     case $ac_val in #(
30913     *${as_nl}*)
30914       case $ac_var in #(
30915       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30917       esac
30918       case $ac_var in #(
30919       _ | IFS | as_nl) ;; #(
30920       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30921       *) { eval $ac_var=; unset $ac_var;} ;;
30922       esac ;;
30923     esac
30924   done
30925
30926   (set) 2>&1 |
30927     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30928     *${as_nl}ac_space=\ *)
30929       # `set' does not quote correctly, so add quotes: double-quote
30930       # substitution turns \\\\ into \\, and sed turns \\ into \.
30931       sed -n \
30932         "s/'/'\\\\''/g;
30933           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30934       ;; #(
30935     *)
30936       # `set' quotes correctly as required by POSIX, so do not add quotes.
30937       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30938       ;;
30939     esac |
30940     sort
30941 ) |
30942   sed '
30943      /^ac_cv_env_/b end
30944      t clear
30945      :clear
30946      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30947      t end
30948      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30949      :end' >>confcache
30950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30951   if test -w "$cache_file"; then
30952     if test "x$cache_file" != "x/dev/null"; then
30953       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30954 $as_echo "$as_me: updating cache $cache_file" >&6;}
30955       if test ! -f "$cache_file" || test -h "$cache_file"; then
30956         cat confcache >"$cache_file"
30957       else
30958         case $cache_file in #(
30959         */* | ?:*)
30960           mv -f confcache "$cache_file"$$ &&
30961           mv -f "$cache_file"$$ "$cache_file" ;; #(
30962         *)
30963           mv -f confcache "$cache_file" ;;
30964         esac
30965       fi
30966     fi
30967   else
30968     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30970   fi
30971 fi
30972 rm -f confcache
30973
30974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30975 # Let make expand exec_prefix.
30976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30977
30978 DEFS=-DHAVE_CONFIG_H
30979
30980 ac_libobjs=
30981 ac_ltlibobjs=
30982 U=
30983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30984   # 1. Remove the extension, and $U if already installed.
30985   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30986   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30987   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30988   #    will be set to the directory where LIBOBJS objects are built.
30989   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30990   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30991 done
30992 LIBOBJS=$ac_libobjs
30993
30994 LTLIBOBJS=$ac_ltlibobjs
30995
30996
30997
30998
30999 : "${CONFIG_STATUS=./config.status}"
31000 ac_write_fail=0
31001 ac_clean_files_save=$ac_clean_files
31002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31005 as_write_fail=0
31006 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31007 #! $SHELL
31008 # Generated by $as_me.
31009 # Run this file to recreate the current configuration.
31010 # Compiler output produced by configure, useful for debugging
31011 # configure, is in config.log if it exists.
31012
31013 debug=false
31014 ac_cs_recheck=false
31015 ac_cs_silent=false
31016
31017 SHELL=\${CONFIG_SHELL-$SHELL}
31018 export SHELL
31019 _ASEOF
31020 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31021 ## -------------------- ##
31022 ## M4sh Initialization. ##
31023 ## -------------------- ##
31024
31025 # Be more Bourne compatible
31026 DUALCASE=1; export DUALCASE # for MKS sh
31027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31028   emulate sh
31029   NULLCMD=:
31030   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31031   # is contrary to our usage.  Disable this feature.
31032   alias -g '${1+"$@"}'='"$@"'
31033   setopt NO_GLOB_SUBST
31034 else
31035   case `(set -o) 2>/dev/null` in #(
31036   *posix*) :
31037     set -o posix ;; #(
31038   *) :
31039      ;;
31040 esac
31041 fi
31042
31043
31044 as_nl='
31045 '
31046 export as_nl
31047 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31048 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31051 # Prefer a ksh shell builtin over an external printf program on Solaris,
31052 # but without wasting forks for bash or zsh.
31053 if test -z "$BASH_VERSION$ZSH_VERSION" \
31054     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31055   as_echo='print -r --'
31056   as_echo_n='print -rn --'
31057 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31058   as_echo='printf %s\n'
31059   as_echo_n='printf %s'
31060 else
31061   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31062     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31063     as_echo_n='/usr/ucb/echo -n'
31064   else
31065     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31066     as_echo_n_body='eval
31067       arg=$1;
31068       case $arg in #(
31069       *"$as_nl"*)
31070         expr "X$arg" : "X\\(.*\\)$as_nl";
31071         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31072       esac;
31073       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31074     '
31075     export as_echo_n_body
31076     as_echo_n='sh -c $as_echo_n_body as_echo'
31077   fi
31078   export as_echo_body
31079   as_echo='sh -c $as_echo_body as_echo'
31080 fi
31081
31082 # The user is always right.
31083 if test "${PATH_SEPARATOR+set}" != set; then
31084   PATH_SEPARATOR=:
31085   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31086     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31087       PATH_SEPARATOR=';'
31088   }
31089 fi
31090
31091
31092 # IFS
31093 # We need space, tab and new line, in precisely that order.  Quoting is
31094 # there to prevent editors from complaining about space-tab.
31095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31096 # splitting by setting IFS to empty value.)
31097 IFS=" ""        $as_nl"
31098
31099 # Find who we are.  Look in the path if we contain no directory separator.
31100 as_myself=
31101 case $0 in #((
31102   *[\\/]* ) as_myself=$0 ;;
31103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31104 for as_dir in $PATH
31105 do
31106   IFS=$as_save_IFS
31107   test -z "$as_dir" && as_dir=.
31108     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31109   done
31110 IFS=$as_save_IFS
31111
31112      ;;
31113 esac
31114 # We did not find ourselves, most probably we were run as `sh COMMAND'
31115 # in which case we are not to be found in the path.
31116 if test "x$as_myself" = x; then
31117   as_myself=$0
31118 fi
31119 if test ! -f "$as_myself"; then
31120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31121   exit 1
31122 fi
31123
31124 # Unset variables that we do not need and which cause bugs (e.g. in
31125 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31126 # suppresses any "Segmentation fault" message there.  '((' could
31127 # trigger a bug in pdksh 5.2.14.
31128 for as_var in BASH_ENV ENV MAIL MAILPATH
31129 do eval test x\${$as_var+set} = xset \
31130   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31131 done
31132 PS1='$ '
31133 PS2='> '
31134 PS4='+ '
31135
31136 # NLS nuisances.
31137 LC_ALL=C
31138 export LC_ALL
31139 LANGUAGE=C
31140 export LANGUAGE
31141
31142 # CDPATH.
31143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31144
31145
31146 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31147 # ----------------------------------------
31148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31150 # script with STATUS, using 1 if that was 0.
31151 as_fn_error ()
31152 {
31153   as_status=$1; test $as_status -eq 0 && as_status=1
31154   if test "$4"; then
31155     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31156     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31157   fi
31158   $as_echo "$as_me: error: $2" >&2
31159   as_fn_exit $as_status
31160 } # as_fn_error
31161
31162
31163 # as_fn_set_status STATUS
31164 # -----------------------
31165 # Set $? to STATUS, without forking.
31166 as_fn_set_status ()
31167 {
31168   return $1
31169 } # as_fn_set_status
31170
31171 # as_fn_exit STATUS
31172 # -----------------
31173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31174 as_fn_exit ()
31175 {
31176   set +e
31177   as_fn_set_status $1
31178   exit $1
31179 } # as_fn_exit
31180
31181 # as_fn_unset VAR
31182 # ---------------
31183 # Portably unset VAR.
31184 as_fn_unset ()
31185 {
31186   { eval $1=; unset $1;}
31187 }
31188 as_unset=as_fn_unset
31189 # as_fn_append VAR VALUE
31190 # ----------------------
31191 # Append the text in VALUE to the end of the definition contained in VAR. Take
31192 # advantage of any shell optimizations that allow amortized linear growth over
31193 # repeated appends, instead of the typical quadratic growth present in naive
31194 # implementations.
31195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31196   eval 'as_fn_append ()
31197   {
31198     eval $1+=\$2
31199   }'
31200 else
31201   as_fn_append ()
31202   {
31203     eval $1=\$$1\$2
31204   }
31205 fi # as_fn_append
31206
31207 # as_fn_arith ARG...
31208 # ------------------
31209 # Perform arithmetic evaluation on the ARGs, and store the result in the
31210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31211 # must be portable across $(()) and expr.
31212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31213   eval 'as_fn_arith ()
31214   {
31215     as_val=$(( $* ))
31216   }'
31217 else
31218   as_fn_arith ()
31219   {
31220     as_val=`expr "$@" || test $? -eq 1`
31221   }
31222 fi # as_fn_arith
31223
31224
31225 if expr a : '\(a\)' >/dev/null 2>&1 &&
31226    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31227   as_expr=expr
31228 else
31229   as_expr=false
31230 fi
31231
31232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31233   as_basename=basename
31234 else
31235   as_basename=false
31236 fi
31237
31238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31239   as_dirname=dirname
31240 else
31241   as_dirname=false
31242 fi
31243
31244 as_me=`$as_basename -- "$0" ||
31245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31246          X"$0" : 'X\(//\)$' \| \
31247          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31248 $as_echo X/"$0" |
31249     sed '/^.*\/\([^/][^/]*\)\/*$/{
31250             s//\1/
31251             q
31252           }
31253           /^X\/\(\/\/\)$/{
31254             s//\1/
31255             q
31256           }
31257           /^X\/\(\/\).*/{
31258             s//\1/
31259             q
31260           }
31261           s/.*/./; q'`
31262
31263 # Avoid depending upon Character Ranges.
31264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31267 as_cr_digits='0123456789'
31268 as_cr_alnum=$as_cr_Letters$as_cr_digits
31269
31270 ECHO_C= ECHO_N= ECHO_T=
31271 case `echo -n x` in #(((((
31272 -n*)
31273   case `echo 'xy\c'` in
31274   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31275   xy)  ECHO_C='\c';;
31276   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31277        ECHO_T=' ';;
31278   esac;;
31279 *)
31280   ECHO_N='-n';;
31281 esac
31282
31283 rm -f conf$$ conf$$.exe conf$$.file
31284 if test -d conf$$.dir; then
31285   rm -f conf$$.dir/conf$$.file
31286 else
31287   rm -f conf$$.dir
31288   mkdir conf$$.dir 2>/dev/null
31289 fi
31290 if (echo >conf$$.file) 2>/dev/null; then
31291   if ln -s conf$$.file conf$$ 2>/dev/null; then
31292     as_ln_s='ln -s'
31293     # ... but there are two gotchas:
31294     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31295     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31296     # In both cases, we have to default to `cp -pR'.
31297     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31298       as_ln_s='cp -pR'
31299   elif ln conf$$.file conf$$ 2>/dev/null; then
31300     as_ln_s=ln
31301   else
31302     as_ln_s='cp -pR'
31303   fi
31304 else
31305   as_ln_s='cp -pR'
31306 fi
31307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31308 rmdir conf$$.dir 2>/dev/null
31309
31310
31311 # as_fn_mkdir_p
31312 # -------------
31313 # Create "$as_dir" as a directory, including parents if necessary.
31314 as_fn_mkdir_p ()
31315 {
31316
31317   case $as_dir in #(
31318   -*) as_dir=./$as_dir;;
31319   esac
31320   test -d "$as_dir" || eval $as_mkdir_p || {
31321     as_dirs=
31322     while :; do
31323       case $as_dir in #(
31324       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31325       *) as_qdir=$as_dir;;
31326       esac
31327       as_dirs="'$as_qdir' $as_dirs"
31328       as_dir=`$as_dirname -- "$as_dir" ||
31329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31330          X"$as_dir" : 'X\(//\)[^/]' \| \
31331          X"$as_dir" : 'X\(//\)$' \| \
31332          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31333 $as_echo X"$as_dir" |
31334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31335             s//\1/
31336             q
31337           }
31338           /^X\(\/\/\)[^/].*/{
31339             s//\1/
31340             q
31341           }
31342           /^X\(\/\/\)$/{
31343             s//\1/
31344             q
31345           }
31346           /^X\(\/\).*/{
31347             s//\1/
31348             q
31349           }
31350           s/.*/./; q'`
31351       test -d "$as_dir" && break
31352     done
31353     test -z "$as_dirs" || eval "mkdir $as_dirs"
31354   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31355
31356
31357 } # as_fn_mkdir_p
31358 if mkdir -p . 2>/dev/null; then
31359   as_mkdir_p='mkdir -p "$as_dir"'
31360 else
31361   test -d ./-p && rmdir ./-p
31362   as_mkdir_p=false
31363 fi
31364
31365
31366 # as_fn_executable_p FILE
31367 # -----------------------
31368 # Test if FILE is an executable regular file.
31369 as_fn_executable_p ()
31370 {
31371   test -f "$1" && test -x "$1"
31372 } # as_fn_executable_p
31373 as_test_x='test -x'
31374 as_executable_p=as_fn_executable_p
31375
31376 # Sed expression to map a string onto a valid CPP name.
31377 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31378
31379 # Sed expression to map a string onto a valid variable name.
31380 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31381
31382
31383 exec 6>&1
31384 ## ----------------------------------- ##
31385 ## Main body of $CONFIG_STATUS script. ##
31386 ## ----------------------------------- ##
31387 _ASEOF
31388 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31389
31390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31391 # Save the log message, to keep $0 and so on meaningful, and to
31392 # report actual input values of CONFIG_FILES etc. instead of their
31393 # values after options handling.
31394 ac_log="
31395 This file was extended by bacula $as_me 7.2.0, which was
31396 generated by GNU Autoconf 2.69.  Invocation command line was
31397
31398   CONFIG_FILES    = $CONFIG_FILES
31399   CONFIG_HEADERS  = $CONFIG_HEADERS
31400   CONFIG_LINKS    = $CONFIG_LINKS
31401   CONFIG_COMMANDS = $CONFIG_COMMANDS
31402   $ $0 $@
31403
31404 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31405 "
31406
31407 _ACEOF
31408
31409 case $ac_config_files in *"
31410 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31411 esac
31412
31413 case $ac_config_headers in *"
31414 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31415 esac
31416
31417
31418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31419 # Files that config.status was made for.
31420 config_files="$ac_config_files"
31421 config_headers="$ac_config_headers"
31422 config_commands="$ac_config_commands"
31423
31424 _ACEOF
31425
31426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31427 ac_cs_usage="\
31428 \`$as_me' instantiates files and other configuration actions
31429 from templates according to the current configuration.  Unless the files
31430 and actions are specified as TAGs, all are instantiated by default.
31431
31432 Usage: $0 [OPTION]... [TAG]...
31433
31434   -h, --help       print this help, then exit
31435   -V, --version    print version number and configuration settings, then exit
31436       --config     print configuration, then exit
31437   -q, --quiet, --silent
31438                    do not print progress messages
31439   -d, --debug      don't remove temporary files
31440       --recheck    update $as_me by reconfiguring in the same conditions
31441       --file=FILE[:TEMPLATE]
31442                    instantiate the configuration file FILE
31443       --header=FILE[:TEMPLATE]
31444                    instantiate the configuration header FILE
31445
31446 Configuration files:
31447 $config_files
31448
31449 Configuration headers:
31450 $config_headers
31451
31452 Configuration commands:
31453 $config_commands
31454
31455 Report bugs to the package provider."
31456
31457 _ACEOF
31458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31459 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31460 ac_cs_version="\\
31461 bacula config.status 7.2.0
31462 configured by $0, generated by GNU Autoconf 2.69,
31463   with options \\"\$ac_cs_config\\"
31464
31465 Copyright (C) 2012 Free Software Foundation, Inc.
31466 This config.status script is free software; the Free Software Foundation
31467 gives unlimited permission to copy, distribute and modify it."
31468
31469 ac_pwd='$ac_pwd'
31470 srcdir='$srcdir'
31471 INSTALL='$INSTALL'
31472 AWK='$AWK'
31473 test -n "\$AWK" || AWK=awk
31474 _ACEOF
31475
31476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31477 # The default lists apply if the user does not specify any file.
31478 ac_need_defaults=:
31479 while test $# != 0
31480 do
31481   case $1 in
31482   --*=?*)
31483     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31484     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31485     ac_shift=:
31486     ;;
31487   --*=)
31488     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31489     ac_optarg=
31490     ac_shift=:
31491     ;;
31492   *)
31493     ac_option=$1
31494     ac_optarg=$2
31495     ac_shift=shift
31496     ;;
31497   esac
31498
31499   case $ac_option in
31500   # Handling of the options.
31501   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31502     ac_cs_recheck=: ;;
31503   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31504     $as_echo "$ac_cs_version"; exit ;;
31505   --config | --confi | --conf | --con | --co | --c )
31506     $as_echo "$ac_cs_config"; exit ;;
31507   --debug | --debu | --deb | --de | --d | -d )
31508     debug=: ;;
31509   --file | --fil | --fi | --f )
31510     $ac_shift
31511     case $ac_optarg in
31512     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31513     '') as_fn_error $? "missing file argument" ;;
31514     esac
31515     as_fn_append CONFIG_FILES " '$ac_optarg'"
31516     ac_need_defaults=false;;
31517   --header | --heade | --head | --hea )
31518     $ac_shift
31519     case $ac_optarg in
31520     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31521     esac
31522     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31523     ac_need_defaults=false;;
31524   --he | --h)
31525     # Conflict between --help and --header
31526     as_fn_error $? "ambiguous option: \`$1'
31527 Try \`$0 --help' for more information.";;
31528   --help | --hel | -h )
31529     $as_echo "$ac_cs_usage"; exit ;;
31530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31531   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31532     ac_cs_silent=: ;;
31533
31534   # This is an error.
31535   -*) as_fn_error $? "unrecognized option: \`$1'
31536 Try \`$0 --help' for more information." ;;
31537
31538   *) as_fn_append ac_config_targets " $1"
31539      ac_need_defaults=false ;;
31540
31541   esac
31542   shift
31543 done
31544
31545 ac_configure_extra_args=
31546
31547 if $ac_cs_silent; then
31548   exec 6>/dev/null
31549   ac_configure_extra_args="$ac_configure_extra_args --silent"
31550 fi
31551
31552 _ACEOF
31553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31554 if \$ac_cs_recheck; then
31555   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31556   shift
31557   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31558   CONFIG_SHELL='$SHELL'
31559   export CONFIG_SHELL
31560   exec "\$@"
31561 fi
31562
31563 _ACEOF
31564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31565 exec 5>>config.log
31566 {
31567   echo
31568   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31569 ## Running $as_me. ##
31570 _ASBOX
31571   $as_echo "$ac_log"
31572 } >&5
31573
31574 _ACEOF
31575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31576 #
31577 # INIT-COMMANDS
31578 #
31579
31580
31581 # The HP-UX ksh and POSIX shell print the target directory to stdout
31582 # if CDPATH is set.
31583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31584
31585 sed_quote_subst='$sed_quote_subst'
31586 double_quote_subst='$double_quote_subst'
31587 delay_variable_subst='$delay_variable_subst'
31588 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31589 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31590 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31591 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31592 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31593 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31594 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31595 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31596 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31597 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31598 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31599 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31600 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31601 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31602 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31603 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31604 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31605 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31606 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31607 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31608 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31609 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31610 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31611 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31612 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31613 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31614 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31615 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31616 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31617 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31618 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31619 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31620 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31621 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31622 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31623 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31624 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31625 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31626 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31627 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31628 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31629 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31630 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31631 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31632 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31633 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31634 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31635 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31636 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31637 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31638 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31639 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31640 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31641 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31642 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31643 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31644 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"`'
31645 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31646 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31647 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31648 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31649 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31650 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31651 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31652 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31653 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31654 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31655 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31656 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31657 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31658 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31659 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31660 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31661 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31662 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31663 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31664 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31665 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31666 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31667 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31668 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31669 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31670 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31671 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31672 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31673 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31674 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31675 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31676 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31677 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31678 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31679 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31680 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31681 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31682 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31683 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31684 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31685 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31686 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31687 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31688 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31689 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31690 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31691 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31692 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31693 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31694 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31695 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31696 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31697 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31698 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31699 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31700 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31701 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31702 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31703 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31704 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31705 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31706 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31707 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31708 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31709 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31710 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31711 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31712 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31713 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31714 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31715 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31716 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31717 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31718 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31719 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31720 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31721 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31722 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31723 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31724 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31725 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31726 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31727 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31728 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31729 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31730 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31731 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31732 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31733 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31734 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31735 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31736 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31737 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31738 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31739 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31740 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31741 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31742 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31743 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31744 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31745 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31747 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31748 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31749 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31750 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31751 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31752 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31753 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31754 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31755 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31756 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31757 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31758 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31759 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31761 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31762 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31765 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31766 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31767 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31768 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31769 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31770 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31771 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31772
31773 LTCC='$LTCC'
31774 LTCFLAGS='$LTCFLAGS'
31775 compiler='$compiler_DEFAULT'
31776
31777 # A function that is used when there is no print builtin or printf.
31778 func_fallback_echo ()
31779 {
31780   eval 'cat <<_LTECHO_EOF
31781 \$1
31782 _LTECHO_EOF'
31783 }
31784
31785 # Quote evaled strings.
31786 for var in SHELL \
31787 ECHO \
31788 PATH_SEPARATOR \
31789 SED \
31790 GREP \
31791 EGREP \
31792 FGREP \
31793 LD \
31794 NM \
31795 LN_S \
31796 lt_SP2NL \
31797 lt_NL2SP \
31798 reload_flag \
31799 OBJDUMP \
31800 deplibs_check_method \
31801 file_magic_cmd \
31802 file_magic_glob \
31803 want_nocaseglob \
31804 DLLTOOL \
31805 sharedlib_from_linklib_cmd \
31806 AR \
31807 AR_FLAGS \
31808 archiver_list_spec \
31809 STRIP \
31810 RANLIB \
31811 CC \
31812 CFLAGS \
31813 compiler \
31814 lt_cv_sys_global_symbol_pipe \
31815 lt_cv_sys_global_symbol_to_cdecl \
31816 lt_cv_sys_global_symbol_to_c_name_address \
31817 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31818 nm_file_list_spec \
31819 lt_prog_compiler_no_builtin_flag \
31820 lt_prog_compiler_pic \
31821 lt_prog_compiler_wl \
31822 lt_prog_compiler_static \
31823 lt_cv_prog_compiler_c_o \
31824 need_locks \
31825 MANIFEST_TOOL \
31826 DSYMUTIL \
31827 NMEDIT \
31828 LIPO \
31829 OTOOL \
31830 OTOOL64 \
31831 shrext_cmds \
31832 export_dynamic_flag_spec \
31833 whole_archive_flag_spec \
31834 compiler_needs_object \
31835 with_gnu_ld \
31836 allow_undefined_flag \
31837 no_undefined_flag \
31838 hardcode_libdir_flag_spec \
31839 hardcode_libdir_separator \
31840 exclude_expsyms \
31841 include_expsyms \
31842 file_list_spec \
31843 variables_saved_for_relink \
31844 libname_spec \
31845 library_names_spec \
31846 soname_spec \
31847 install_override_mode \
31848 finish_eval \
31849 old_striplib \
31850 striplib \
31851 compiler_lib_search_dirs \
31852 predep_objects \
31853 postdep_objects \
31854 predeps \
31855 postdeps \
31856 compiler_lib_search_path \
31857 LD_CXX \
31858 reload_flag_CXX \
31859 compiler_CXX \
31860 lt_prog_compiler_no_builtin_flag_CXX \
31861 lt_prog_compiler_pic_CXX \
31862 lt_prog_compiler_wl_CXX \
31863 lt_prog_compiler_static_CXX \
31864 lt_cv_prog_compiler_c_o_CXX \
31865 export_dynamic_flag_spec_CXX \
31866 whole_archive_flag_spec_CXX \
31867 compiler_needs_object_CXX \
31868 with_gnu_ld_CXX \
31869 allow_undefined_flag_CXX \
31870 no_undefined_flag_CXX \
31871 hardcode_libdir_flag_spec_CXX \
31872 hardcode_libdir_separator_CXX \
31873 exclude_expsyms_CXX \
31874 include_expsyms_CXX \
31875 file_list_spec_CXX \
31876 compiler_lib_search_dirs_CXX \
31877 predep_objects_CXX \
31878 postdep_objects_CXX \
31879 predeps_CXX \
31880 postdeps_CXX \
31881 compiler_lib_search_path_CXX; do
31882     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31883     *[\\\\\\\`\\"\\\$]*)
31884       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31885       ;;
31886     *)
31887       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31888       ;;
31889     esac
31890 done
31891
31892 # Double-quote double-evaled strings.
31893 for var in reload_cmds \
31894 old_postinstall_cmds \
31895 old_postuninstall_cmds \
31896 old_archive_cmds \
31897 extract_expsyms_cmds \
31898 old_archive_from_new_cmds \
31899 old_archive_from_expsyms_cmds \
31900 archive_cmds \
31901 archive_expsym_cmds \
31902 module_cmds \
31903 module_expsym_cmds \
31904 export_symbols_cmds \
31905 prelink_cmds \
31906 postlink_cmds \
31907 postinstall_cmds \
31908 postuninstall_cmds \
31909 finish_cmds \
31910 sys_lib_search_path_spec \
31911 sys_lib_dlsearch_path_spec \
31912 reload_cmds_CXX \
31913 old_archive_cmds_CXX \
31914 old_archive_from_new_cmds_CXX \
31915 old_archive_from_expsyms_cmds_CXX \
31916 archive_cmds_CXX \
31917 archive_expsym_cmds_CXX \
31918 module_cmds_CXX \
31919 module_expsym_cmds_CXX \
31920 export_symbols_cmds_CXX \
31921 prelink_cmds_CXX \
31922 postlink_cmds_CXX; do
31923     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31924     *[\\\\\\\`\\"\\\$]*)
31925       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31926       ;;
31927     *)
31928       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31929       ;;
31930     esac
31931 done
31932
31933 ac_aux_dir='$ac_aux_dir'
31934 xsi_shell='$xsi_shell'
31935 lt_shell_append='$lt_shell_append'
31936
31937 # See if we are running on zsh, and set the options which allow our
31938 # commands through without removal of \ escapes INIT.
31939 if test -n "\${ZSH_VERSION+set}" ; then
31940    setopt NO_GLOB_SUBST
31941 fi
31942
31943
31944     PACKAGE='$PACKAGE'
31945     VERSION='$VERSION'
31946     TIMESTAMP='$TIMESTAMP'
31947     RM='$RM'
31948     ofile='$ofile'
31949
31950
31951
31952
31953
31954 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31955     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31956     # from automake.
31957     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31958     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31959     LINGUAS="${LINGUAS-%UNSET%}"
31960
31961
31962 _ACEOF
31963
31964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31965
31966 # Handling of arguments.
31967 for ac_config_target in $ac_config_targets
31968 do
31969   case $ac_config_target in
31970     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31971     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31972     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31973     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31974     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31975     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31976     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31977     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31978     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31979     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31980     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31981     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31982     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31983     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31984     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31985     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31986     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31987     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31988     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31989     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31990     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31991     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31992     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31993     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31994     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31995     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31996     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31997     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31998     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31999     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32000     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32001     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32002     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32003     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32004     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32005     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32006     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32007     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32008     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32009     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32010     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32011     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32012     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32013     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32014     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32015     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32016     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32017     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32018     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32019     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32020     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32021     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32022     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32023     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32024     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32025     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32026     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32027     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32028     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32029     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32030     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32031     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32032     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32033     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32034     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32035     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32036     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32037     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32038     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32039     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32040     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32041     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32042     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32043     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32044     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32045     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32046     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32047     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32048     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32049     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32050     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32051     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32052     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32053     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32054     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32055     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32056     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32057     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32058     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32059     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32060     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32061     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32062     "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32063     "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32064     "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32065     "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32066     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32067     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32068     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32069     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32070     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32071     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32072     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32073     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32074     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32075     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32076     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32077
32078   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32079   esac
32080 done
32081
32082
32083 # If the user did not use the arguments to specify the items to instantiate,
32084 # then the envvar interface is used.  Set only those that are not.
32085 # We use the long form for the default assignment because of an extremely
32086 # bizarre bug on SunOS 4.1.3.
32087 if $ac_need_defaults; then
32088   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32089   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32090   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32091 fi
32092
32093 # Have a temporary directory for convenience.  Make it in the build tree
32094 # simply because there is no reason against having it here, and in addition,
32095 # creating and moving files from /tmp can sometimes cause problems.
32096 # Hook for its removal unless debugging.
32097 # Note that there is a small window in which the directory will not be cleaned:
32098 # after its creation but before its name has been assigned to `$tmp'.
32099 $debug ||
32100 {
32101   tmp= ac_tmp=
32102   trap 'exit_status=$?
32103   : "${ac_tmp:=$tmp}"
32104   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32105 ' 0
32106   trap 'as_fn_exit 1' 1 2 13 15
32107 }
32108 # Create a (secure) tmp directory for tmp files.
32109
32110 {
32111   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32112   test -d "$tmp"
32113 }  ||
32114 {
32115   tmp=./conf$$-$RANDOM
32116   (umask 077 && mkdir "$tmp")
32117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32118 ac_tmp=$tmp
32119
32120 # Set up the scripts for CONFIG_FILES section.
32121 # No need to generate them if there are no CONFIG_FILES.
32122 # This happens for instance with `./config.status config.h'.
32123 if test -n "$CONFIG_FILES"; then
32124
32125 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32126   ac_cs_awk_getline=:
32127   ac_cs_awk_pipe_init=
32128   ac_cs_awk_read_file='
32129       while ((getline aline < (F[key])) > 0)
32130         print(aline)
32131       close(F[key])'
32132   ac_cs_awk_pipe_fini=
32133 else
32134   ac_cs_awk_getline=false
32135   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32136   ac_cs_awk_read_file='
32137       print "|#_!!_#|"
32138       print "cat " F[key] " &&"
32139       '$ac_cs_awk_pipe_init
32140   # The final `:' finishes the AND list.
32141   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32142 fi
32143 ac_cr=`echo X | tr X '\015'`
32144 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32145 # But we know of no other shell where ac_cr would be empty at this
32146 # point, so we can use a bashism as a fallback.
32147 if test "x$ac_cr" = x; then
32148   eval ac_cr=\$\'\\r\'
32149 fi
32150 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32151 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32152   ac_cs_awk_cr='\\r'
32153 else
32154   ac_cs_awk_cr=$ac_cr
32155 fi
32156
32157 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32158 _ACEOF
32159
32160 # Create commands to substitute file output variables.
32161 {
32162   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32163   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32164   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32165   echo "_ACAWK" &&
32166   echo "_ACEOF"
32167 } >conf$$files.sh &&
32168 . ./conf$$files.sh ||
32169   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32170 rm -f conf$$files.sh
32171
32172 {
32173   echo "cat >conf$$subs.awk <<_ACEOF" &&
32174   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32175   echo "_ACEOF"
32176 } >conf$$subs.sh ||
32177   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32178 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32179 ac_delim='%!_!# '
32180 for ac_last_try in false false false false false :; do
32181   . ./conf$$subs.sh ||
32182     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32183
32184   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32185   if test $ac_delim_n = $ac_delim_num; then
32186     break
32187   elif $ac_last_try; then
32188     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32189   else
32190     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32191   fi
32192 done
32193 rm -f conf$$subs.sh
32194
32195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32196 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32197 _ACEOF
32198 sed -n '
32199 h
32200 s/^/S["/; s/!.*/"]=/
32201 p
32202 g
32203 s/^[^!]*!//
32204 :repl
32205 t repl
32206 s/'"$ac_delim"'$//
32207 t delim
32208 :nl
32209 h
32210 s/\(.\{148\}\)..*/\1/
32211 t more1
32212 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32213 p
32214 n
32215 b repl
32216 :more1
32217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32218 p
32219 g
32220 s/.\{148\}//
32221 t nl
32222 :delim
32223 h
32224 s/\(.\{148\}\)..*/\1/
32225 t more2
32226 s/["\\]/\\&/g; s/^/"/; s/$/"/
32227 p
32228 b
32229 :more2
32230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32231 p
32232 g
32233 s/.\{148\}//
32234 t delim
32235 ' <conf$$subs.awk | sed '
32236 /^[^""]/{
32237   N
32238   s/\n//
32239 }
32240 ' >>$CONFIG_STATUS || ac_write_fail=1
32241 rm -f conf$$subs.awk
32242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32243 _ACAWK
32244 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32245   for (key in S) S_is_set[key] = 1
32246   FS = "\a"
32247   \$ac_cs_awk_pipe_init
32248 }
32249 {
32250   line = $ 0
32251   nfields = split(line, field, "@")
32252   substed = 0
32253   len = length(field[1])
32254   for (i = 2; i < nfields; i++) {
32255     key = field[i]
32256     keylen = length(key)
32257     if (S_is_set[key]) {
32258       value = S[key]
32259       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32260       len += length(value) + length(field[++i])
32261       substed = 1
32262     } else
32263       len += 1 + keylen
32264   }
32265   if (nfields == 3 && !substed) {
32266     key = field[2]
32267     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32268       \$ac_cs_awk_read_file
32269       next
32270     }
32271   }
32272   print line
32273 }
32274 \$ac_cs_awk_pipe_fini
32275 _ACAWK
32276 _ACEOF
32277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32278 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32279   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32280 else
32281   cat
32282 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32283   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32284 _ACEOF
32285
32286 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32287 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32288 # trailing colons and then remove the whole line if VPATH becomes empty
32289 # (actually we leave an empty line to preserve line numbers).
32290 if test "x$srcdir" = x.; then
32291   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32292 h
32293 s///
32294 s/^/:/
32295 s/[      ]*$/:/
32296 s/:\$(srcdir):/:/g
32297 s/:\${srcdir}:/:/g
32298 s/:@srcdir@:/:/g
32299 s/^:*//
32300 s/:*$//
32301 x
32302 s/\(=[   ]*\).*/\1/
32303 G
32304 s/\n//
32305 s/^[^=]*=[       ]*$//
32306 }'
32307 fi
32308
32309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32310 fi # test -n "$CONFIG_FILES"
32311
32312 # Set up the scripts for CONFIG_HEADERS section.
32313 # No need to generate them if there are no CONFIG_HEADERS.
32314 # This happens for instance with `./config.status Makefile'.
32315 if test -n "$CONFIG_HEADERS"; then
32316 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32317 BEGIN {
32318 _ACEOF
32319
32320 # Transform confdefs.h into an awk script `defines.awk', embedded as
32321 # here-document in config.status, that substitutes the proper values into
32322 # config.h.in to produce config.h.
32323
32324 # Create a delimiter string that does not exist in confdefs.h, to ease
32325 # handling of long lines.
32326 ac_delim='%!_!# '
32327 for ac_last_try in false false :; do
32328   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32329   if test -z "$ac_tt"; then
32330     break
32331   elif $ac_last_try; then
32332     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32333   else
32334     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32335   fi
32336 done
32337
32338 # For the awk script, D is an array of macro values keyed by name,
32339 # likewise P contains macro parameters if any.  Preserve backslash
32340 # newline sequences.
32341
32342 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32343 sed -n '
32344 s/.\{148\}/&'"$ac_delim"'/g
32345 t rset
32346 :rset
32347 s/^[     ]*#[    ]*define[       ][      ]*/ /
32348 t def
32349 d
32350 :def
32351 s/\\$//
32352 t bsnl
32353 s/["\\]/\\&/g
32354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32355 D["\1"]=" \3"/p
32356 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32357 d
32358 :bsnl
32359 s/["\\]/\\&/g
32360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32361 D["\1"]=" \3\\\\\\n"\\/p
32362 t cont
32363 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32364 t cont
32365 d
32366 :cont
32367 n
32368 s/.\{148\}/&'"$ac_delim"'/g
32369 t clear
32370 :clear
32371 s/\\$//
32372 t bsnlc
32373 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32374 d
32375 :bsnlc
32376 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32377 b cont
32378 ' <confdefs.h | sed '
32379 s/'"$ac_delim"'/"\\\
32380 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32381
32382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32383   for (key in D) D_is_set[key] = 1
32384   FS = "\a"
32385 }
32386 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32387   line = \$ 0
32388   split(line, arg, " ")
32389   if (arg[1] == "#") {
32390     defundef = arg[2]
32391     mac1 = arg[3]
32392   } else {
32393     defundef = substr(arg[1], 2)
32394     mac1 = arg[2]
32395   }
32396   split(mac1, mac2, "(") #)
32397   macro = mac2[1]
32398   prefix = substr(line, 1, index(line, defundef) - 1)
32399   if (D_is_set[macro]) {
32400     # Preserve the white space surrounding the "#".
32401     print prefix "define", macro P[macro] D[macro]
32402     next
32403   } else {
32404     # Replace #undef with comments.  This is necessary, for example,
32405     # in the case of _POSIX_SOURCE, which is predefined and required
32406     # on some systems where configure will not decide to define it.
32407     if (defundef == "undef") {
32408       print "/*", prefix defundef, macro, "*/"
32409       next
32410     }
32411   }
32412 }
32413 { print }
32414 _ACAWK
32415 _ACEOF
32416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32417   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32418 fi # test -n "$CONFIG_HEADERS"
32419
32420
32421 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32422 shift
32423 for ac_tag
32424 do
32425   case $ac_tag in
32426   :[FHLC]) ac_mode=$ac_tag; continue;;
32427   esac
32428   case $ac_mode$ac_tag in
32429   :[FHL]*:*);;
32430   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32431   :[FH]-) ac_tag=-:-;;
32432   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32433   esac
32434   ac_save_IFS=$IFS
32435   IFS=:
32436   set x $ac_tag
32437   IFS=$ac_save_IFS
32438   shift
32439   ac_file=$1
32440   shift
32441
32442   case $ac_mode in
32443   :L) ac_source=$1;;
32444   :[FH])
32445     ac_file_inputs=
32446     for ac_f
32447     do
32448       case $ac_f in
32449       -) ac_f="$ac_tmp/stdin";;
32450       *) # Look for the file first in the build tree, then in the source tree
32451          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32452          # because $ac_f cannot contain `:'.
32453          test -f "$ac_f" ||
32454            case $ac_f in
32455            [\\/$]*) false;;
32456            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32457            esac ||
32458            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32459       esac
32460       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32461       as_fn_append ac_file_inputs " '$ac_f'"
32462     done
32463
32464     # Let's still pretend it is `configure' which instantiates (i.e., don't
32465     # use $as_me), people would be surprised to read:
32466     #    /* config.h.  Generated by config.status.  */
32467     configure_input='Generated from '`
32468           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32469         `' by configure.'
32470     if test x"$ac_file" != x-; then
32471       configure_input="$ac_file.  $configure_input"
32472       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32473 $as_echo "$as_me: creating $ac_file" >&6;}
32474     fi
32475     # Neutralize special characters interpreted by sed in replacement strings.
32476     case $configure_input in #(
32477     *\&* | *\|* | *\\* )
32478        ac_sed_conf_input=`$as_echo "$configure_input" |
32479        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32480     *) ac_sed_conf_input=$configure_input;;
32481     esac
32482
32483     case $ac_tag in
32484     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32485       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32486     esac
32487     ;;
32488   esac
32489
32490   ac_dir=`$as_dirname -- "$ac_file" ||
32491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32492          X"$ac_file" : 'X\(//\)[^/]' \| \
32493          X"$ac_file" : 'X\(//\)$' \| \
32494          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32495 $as_echo X"$ac_file" |
32496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32497             s//\1/
32498             q
32499           }
32500           /^X\(\/\/\)[^/].*/{
32501             s//\1/
32502             q
32503           }
32504           /^X\(\/\/\)$/{
32505             s//\1/
32506             q
32507           }
32508           /^X\(\/\).*/{
32509             s//\1/
32510             q
32511           }
32512           s/.*/./; q'`
32513   as_dir="$ac_dir"; as_fn_mkdir_p
32514   ac_builddir=.
32515
32516 case "$ac_dir" in
32517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32518 *)
32519   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32520   # A ".." for each directory in $ac_dir_suffix.
32521   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32522   case $ac_top_builddir_sub in
32523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32525   esac ;;
32526 esac
32527 ac_abs_top_builddir=$ac_pwd
32528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32529 # for backward compatibility:
32530 ac_top_builddir=$ac_top_build_prefix
32531
32532 case $srcdir in
32533   .)  # We are building in place.
32534     ac_srcdir=.
32535     ac_top_srcdir=$ac_top_builddir_sub
32536     ac_abs_top_srcdir=$ac_pwd ;;
32537   [\\/]* | ?:[\\/]* )  # Absolute name.
32538     ac_srcdir=$srcdir$ac_dir_suffix;
32539     ac_top_srcdir=$srcdir
32540     ac_abs_top_srcdir=$srcdir ;;
32541   *) # Relative name.
32542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32543     ac_top_srcdir=$ac_top_build_prefix$srcdir
32544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32545 esac
32546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32547
32548
32549   case $ac_mode in
32550   :F)
32551   #
32552   # CONFIG_FILE
32553   #
32554
32555   case $INSTALL in
32556   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32557   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32558   esac
32559 _ACEOF
32560
32561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32562 # If the template does not know about datarootdir, expand it.
32563 # FIXME: This hack should be removed a few years after 2.60.
32564 ac_datarootdir_hack=; ac_datarootdir_seen=
32565 ac_sed_dataroot='
32566 /datarootdir/ {
32567   p
32568   q
32569 }
32570 /@datadir@/p
32571 /@docdir@/p
32572 /@infodir@/p
32573 /@localedir@/p
32574 /@mandir@/p'
32575 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32576 *datarootdir*) ac_datarootdir_seen=yes;;
32577 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32578   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32579 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32580 _ACEOF
32581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32582   ac_datarootdir_hack='
32583   s&@datadir@&$datadir&g
32584   s&@docdir@&$docdir&g
32585   s&@infodir@&$infodir&g
32586   s&@localedir@&$localedir&g
32587   s&@mandir@&$mandir&g
32588   s&\\\${datarootdir}&$datarootdir&g' ;;
32589 esac
32590 _ACEOF
32591
32592 # Neutralize VPATH when `$srcdir' = `.'.
32593 # Shell code in configure.ac might set extrasub.
32594 # FIXME: do we really want to maintain this feature?
32595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32596 ac_sed_extra="$ac_vpsub
32597 $extrasub
32598 _ACEOF
32599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32600 :t
32601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32602 s|@configure_input@|$ac_sed_conf_input|;t t
32603 s&@top_builddir@&$ac_top_builddir_sub&;t t
32604 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32605 s&@srcdir@&$ac_srcdir&;t t
32606 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32607 s&@top_srcdir@&$ac_top_srcdir&;t t
32608 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32609 s&@builddir@&$ac_builddir&;t t
32610 s&@abs_builddir@&$ac_abs_builddir&;t t
32611 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32612 s&@INSTALL@&$ac_INSTALL&;t t
32613 $ac_datarootdir_hack
32614 "
32615 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32616 if $ac_cs_awk_getline; then
32617   $AWK -f "$ac_tmp/subs.awk"
32618 else
32619   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32620 fi \
32621   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32622
32623 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32624   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32625   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32626       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32627   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32628 which seems to be undefined.  Please make sure it is defined" >&5
32629 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32630 which seems to be undefined.  Please make sure it is defined" >&2;}
32631
32632   rm -f "$ac_tmp/stdin"
32633   case $ac_file in
32634   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32635   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32636   esac \
32637   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32638  ;;
32639   :H)
32640   #
32641   # CONFIG_HEADER
32642   #
32643   if test x"$ac_file" != x-; then
32644     {
32645       $as_echo "/* $configure_input  */" \
32646       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32647     } >"$ac_tmp/config.h" \
32648       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32649     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32650       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32651 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32652     else
32653       rm -f "$ac_file"
32654       mv "$ac_tmp/config.h" "$ac_file" \
32655         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32656     fi
32657   else
32658     $as_echo "/* $configure_input  */" \
32659       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32660       || as_fn_error $? "could not create -" "$LINENO" 5
32661   fi
32662  ;;
32663
32664   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32665 $as_echo "$as_me: executing $ac_file commands" >&6;}
32666  ;;
32667   esac
32668
32669
32670   case $ac_file$ac_mode in
32671     "libtool":C)
32672
32673     # See if we are running on zsh, and set the options which allow our
32674     # commands through without removal of \ escapes.
32675     if test -n "${ZSH_VERSION+set}" ; then
32676       setopt NO_GLOB_SUBST
32677     fi
32678
32679     cfgfile="${ofile}T"
32680     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32681     $RM "$cfgfile"
32682
32683     cat <<_LT_EOF >> "$cfgfile"
32684 #! $SHELL
32685
32686 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32687 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32689 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32690 #
32691 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32692 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32693 #                 Foundation, Inc.
32694 #   Written by Gordon Matzigkeit, 1996
32695 #
32696 #   This file is part of GNU Libtool.
32697 #
32698 # GNU Libtool is free software; you can redistribute it and/or
32699 # modify it under the terms of the GNU General Public License as
32700 # published by the Free Software Foundation; either version 2 of
32701 # the License, or (at your option) any later version.
32702 #
32703 # As a special exception to the GNU General Public License,
32704 # if you distribute this file as part of a program or library that
32705 # is built using GNU Libtool, you may include this file under the
32706 # same distribution terms that you use for the rest of that program.
32707 #
32708 # GNU Libtool is distributed in the hope that it will be useful,
32709 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32710 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32711 # GNU General Public License for more details.
32712 #
32713 # You should have received a copy of the GNU General Public License
32714 # along with GNU Libtool; see the file COPYING.  If not, a copy
32715 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32716 # obtained by writing to the Free Software Foundation, Inc.,
32717 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32718
32719
32720 # The names of the tagged configurations supported by this script.
32721 available_tags="CXX "
32722
32723 # ### BEGIN LIBTOOL CONFIG
32724
32725 # Which release of libtool.m4 was used?
32726 macro_version=$macro_version
32727 macro_revision=$macro_revision
32728
32729 # Whether or not to build shared libraries.
32730 build_libtool_libs=$enable_shared
32731
32732 # Whether or not to build static libraries.
32733 build_old_libs=$enable_static
32734
32735 # What type of objects to build.
32736 pic_mode=$pic_mode
32737
32738 # Whether or not to optimize for fast installation.
32739 fast_install=$enable_fast_install
32740
32741 # Shell to use when invoking shell scripts.
32742 SHELL=$lt_SHELL
32743
32744 # An echo program that protects backslashes.
32745 ECHO=$lt_ECHO
32746
32747 # The PATH separator for the build system.
32748 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32749
32750 # The host system.
32751 host_alias=$host_alias
32752 host=$host
32753 host_os=$host_os
32754
32755 # The build system.
32756 build_alias=$build_alias
32757 build=$build
32758 build_os=$build_os
32759
32760 # A sed program that does not truncate output.
32761 SED=$lt_SED
32762
32763 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32764 Xsed="\$SED -e 1s/^X//"
32765
32766 # A grep program that handles long lines.
32767 GREP=$lt_GREP
32768
32769 # An ERE matcher.
32770 EGREP=$lt_EGREP
32771
32772 # A literal string matcher.
32773 FGREP=$lt_FGREP
32774
32775 # A BSD- or MS-compatible name lister.
32776 NM=$lt_NM
32777
32778 # Whether we need soft or hard links.
32779 LN_S=$lt_LN_S
32780
32781 # What is the maximum length of a command?
32782 max_cmd_len=$max_cmd_len
32783
32784 # Object file suffix (normally "o").
32785 objext=$ac_objext
32786
32787 # Executable file suffix (normally "").
32788 exeext=$exeext
32789
32790 # whether the shell understands "unset".
32791 lt_unset=$lt_unset
32792
32793 # turn spaces into newlines.
32794 SP2NL=$lt_lt_SP2NL
32795
32796 # turn newlines into spaces.
32797 NL2SP=$lt_lt_NL2SP
32798
32799 # convert \$build file names to \$host format.
32800 to_host_file_cmd=$lt_cv_to_host_file_cmd
32801
32802 # convert \$build files to toolchain format.
32803 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32804
32805 # An object symbol dumper.
32806 OBJDUMP=$lt_OBJDUMP
32807
32808 # Method to check whether dependent libraries are shared objects.
32809 deplibs_check_method=$lt_deplibs_check_method
32810
32811 # Command to use when deplibs_check_method = "file_magic".
32812 file_magic_cmd=$lt_file_magic_cmd
32813
32814 # How to find potential files when deplibs_check_method = "file_magic".
32815 file_magic_glob=$lt_file_magic_glob
32816
32817 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32818 want_nocaseglob=$lt_want_nocaseglob
32819
32820 # DLL creation program.
32821 DLLTOOL=$lt_DLLTOOL
32822
32823 # Command to associate shared and link libraries.
32824 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32825
32826 # The archiver.
32827 AR=$lt_AR
32828
32829 # Flags to create an archive.
32830 AR_FLAGS=$lt_AR_FLAGS
32831
32832 # How to feed a file listing to the archiver.
32833 archiver_list_spec=$lt_archiver_list_spec
32834
32835 # A symbol stripping program.
32836 STRIP=$lt_STRIP
32837
32838 # Commands used to install an old-style archive.
32839 RANLIB=$lt_RANLIB
32840 old_postinstall_cmds=$lt_old_postinstall_cmds
32841 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32842
32843 # Whether to use a lock for old archive extraction.
32844 lock_old_archive_extraction=$lock_old_archive_extraction
32845
32846 # A C compiler.
32847 LTCC=$lt_CC
32848
32849 # LTCC compiler flags.
32850 LTCFLAGS=$lt_CFLAGS
32851
32852 # Take the output of nm and produce a listing of raw symbols and C names.
32853 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32854
32855 # Transform the output of nm in a proper C declaration.
32856 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32857
32858 # Transform the output of nm in a C name address pair.
32859 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32860
32861 # Transform the output of nm in a C name address pair when lib prefix is needed.
32862 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32863
32864 # Specify filename containing input files for \$NM.
32865 nm_file_list_spec=$lt_nm_file_list_spec
32866
32867 # The root where to search for dependent libraries,and in which our libraries should be installed.
32868 lt_sysroot=$lt_sysroot
32869
32870 # The name of the directory that contains temporary libtool files.
32871 objdir=$objdir
32872
32873 # Used to examine libraries when file_magic_cmd begins with "file".
32874 MAGIC_CMD=$MAGIC_CMD
32875
32876 # Must we lock files when doing compilation?
32877 need_locks=$lt_need_locks
32878
32879 # Manifest tool.
32880 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32881
32882 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32883 DSYMUTIL=$lt_DSYMUTIL
32884
32885 # Tool to change global to local symbols on Mac OS X.
32886 NMEDIT=$lt_NMEDIT
32887
32888 # Tool to manipulate fat objects and archives on Mac OS X.
32889 LIPO=$lt_LIPO
32890
32891 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32892 OTOOL=$lt_OTOOL
32893
32894 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32895 OTOOL64=$lt_OTOOL64
32896
32897 # Old archive suffix (normally "a").
32898 libext=$libext
32899
32900 # Shared library suffix (normally ".so").
32901 shrext_cmds=$lt_shrext_cmds
32902
32903 # The commands to extract the exported symbol list from a shared archive.
32904 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32905
32906 # Variables whose values should be saved in libtool wrapper scripts and
32907 # restored at link time.
32908 variables_saved_for_relink=$lt_variables_saved_for_relink
32909
32910 # Do we need the "lib" prefix for modules?
32911 need_lib_prefix=$need_lib_prefix
32912
32913 # Do we need a version for libraries?
32914 need_version=$need_version
32915
32916 # Library versioning type.
32917 version_type=$version_type
32918
32919 # Shared library runtime path variable.
32920 runpath_var=$runpath_var
32921
32922 # Shared library path variable.
32923 shlibpath_var=$shlibpath_var
32924
32925 # Is shlibpath searched before the hard-coded library search path?
32926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32927
32928 # Format of library name prefix.
32929 libname_spec=$lt_libname_spec
32930
32931 # List of archive names.  First name is the real one, the rest are links.
32932 # The last name is the one that the linker finds with -lNAME
32933 library_names_spec=$lt_library_names_spec
32934
32935 # The coded name of the library, if different from the real name.
32936 soname_spec=$lt_soname_spec
32937
32938 # Permission mode override for installation of shared libraries.
32939 install_override_mode=$lt_install_override_mode
32940
32941 # Command to use after installation of a shared archive.
32942 postinstall_cmds=$lt_postinstall_cmds
32943
32944 # Command to use after uninstallation of a shared archive.
32945 postuninstall_cmds=$lt_postuninstall_cmds
32946
32947 # Commands used to finish a libtool library installation in a directory.
32948 finish_cmds=$lt_finish_cmds
32949
32950 # As "finish_cmds", except a single script fragment to be evaled but
32951 # not shown.
32952 finish_eval=$lt_finish_eval
32953
32954 # Whether we should hardcode library paths into libraries.
32955 hardcode_into_libs=$hardcode_into_libs
32956
32957 # Compile-time system search path for libraries.
32958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32959
32960 # Run-time system search path for libraries.
32961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32962
32963 # Whether dlopen is supported.
32964 dlopen_support=$enable_dlopen
32965
32966 # Whether dlopen of programs is supported.
32967 dlopen_self=$enable_dlopen_self
32968
32969 # Whether dlopen of statically linked programs is supported.
32970 dlopen_self_static=$enable_dlopen_self_static
32971
32972 # Commands to strip libraries.
32973 old_striplib=$lt_old_striplib
32974 striplib=$lt_striplib
32975
32976
32977 # The linker used to build libraries.
32978 LD=$lt_LD
32979
32980 # How to create reloadable object files.
32981 reload_flag=$lt_reload_flag
32982 reload_cmds=$lt_reload_cmds
32983
32984 # Commands used to build an old-style archive.
32985 old_archive_cmds=$lt_old_archive_cmds
32986
32987 # A language specific compiler.
32988 CC=$lt_compiler
32989
32990 # Is the compiler the GNU compiler?
32991 with_gcc=$GCC
32992
32993 # Compiler flag to turn off builtin functions.
32994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32995
32996 # Additional compiler flags for building library objects.
32997 pic_flag=$lt_lt_prog_compiler_pic
32998
32999 # How to pass a linker flag through the compiler.
33000 wl=$lt_lt_prog_compiler_wl
33001
33002 # Compiler flag to prevent dynamic linking.
33003 link_static_flag=$lt_lt_prog_compiler_static
33004
33005 # Does compiler simultaneously support -c and -o options?
33006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33007
33008 # Whether or not to add -lc for building shared libraries.
33009 build_libtool_need_lc=$archive_cmds_need_lc
33010
33011 # Whether or not to disallow shared libs when runtime libs are static.
33012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33013
33014 # Compiler flag to allow reflexive dlopens.
33015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33016
33017 # Compiler flag to generate shared objects directly from archives.
33018 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33019
33020 # Whether the compiler copes with passing no objects directly.
33021 compiler_needs_object=$lt_compiler_needs_object
33022
33023 # Create an old-style archive from a shared archive.
33024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33025
33026 # Create a temporary old-style archive to link instead of a shared archive.
33027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33028
33029 # Commands used to build a shared archive.
33030 archive_cmds=$lt_archive_cmds
33031 archive_expsym_cmds=$lt_archive_expsym_cmds
33032
33033 # Commands used to build a loadable module if different from building
33034 # a shared archive.
33035 module_cmds=$lt_module_cmds
33036 module_expsym_cmds=$lt_module_expsym_cmds
33037
33038 # Whether we are building with GNU ld or not.
33039 with_gnu_ld=$lt_with_gnu_ld
33040
33041 # Flag that allows shared libraries with undefined symbols to be built.
33042 allow_undefined_flag=$lt_allow_undefined_flag
33043
33044 # Flag that enforces no undefined symbols.
33045 no_undefined_flag=$lt_no_undefined_flag
33046
33047 # Flag to hardcode \$libdir into a binary during linking.
33048 # This must work even if \$libdir does not exist
33049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33050
33051 # Whether we need a single "-rpath" flag with a separated argument.
33052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33053
33054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33055 # DIR into the resulting binary.
33056 hardcode_direct=$hardcode_direct
33057
33058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33059 # DIR into the resulting binary and the resulting library dependency is
33060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33061 # library is relocated.
33062 hardcode_direct_absolute=$hardcode_direct_absolute
33063
33064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33065 # into the resulting binary.
33066 hardcode_minus_L=$hardcode_minus_L
33067
33068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33069 # into the resulting binary.
33070 hardcode_shlibpath_var=$hardcode_shlibpath_var
33071
33072 # Set to "yes" if building a shared library automatically hardcodes DIR
33073 # into the library and all subsequent libraries and executables linked
33074 # against it.
33075 hardcode_automatic=$hardcode_automatic
33076
33077 # Set to yes if linker adds runtime paths of dependent libraries
33078 # to runtime path list.
33079 inherit_rpath=$inherit_rpath
33080
33081 # Whether libtool must link a program against all its dependency libraries.
33082 link_all_deplibs=$link_all_deplibs
33083
33084 # Set to "yes" if exported symbols are required.
33085 always_export_symbols=$always_export_symbols
33086
33087 # The commands to list exported symbols.
33088 export_symbols_cmds=$lt_export_symbols_cmds
33089
33090 # Symbols that should not be listed in the preloaded symbols.
33091 exclude_expsyms=$lt_exclude_expsyms
33092
33093 # Symbols that must always be exported.
33094 include_expsyms=$lt_include_expsyms
33095
33096 # Commands necessary for linking programs (against libraries) with templates.
33097 prelink_cmds=$lt_prelink_cmds
33098
33099 # Commands necessary for finishing linking programs.
33100 postlink_cmds=$lt_postlink_cmds
33101
33102 # Specify filename containing input files.
33103 file_list_spec=$lt_file_list_spec
33104
33105 # How to hardcode a shared library path into an executable.
33106 hardcode_action=$hardcode_action
33107
33108 # The directories searched by this compiler when creating a shared library.
33109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33110
33111 # Dependencies to place before and after the objects being linked to
33112 # create a shared library.
33113 predep_objects=$lt_predep_objects
33114 postdep_objects=$lt_postdep_objects
33115 predeps=$lt_predeps
33116 postdeps=$lt_postdeps
33117
33118 # The library search path used internally by the compiler when linking
33119 # a shared library.
33120 compiler_lib_search_path=$lt_compiler_lib_search_path
33121
33122 # ### END LIBTOOL CONFIG
33123
33124 _LT_EOF
33125
33126   case $host_os in
33127   aix3*)
33128     cat <<\_LT_EOF >> "$cfgfile"
33129 # AIX sometimes has problems with the GCC collect2 program.  For some
33130 # reason, if we set the COLLECT_NAMES environment variable, the problems
33131 # vanish in a puff of smoke.
33132 if test "X${COLLECT_NAMES+set}" != Xset; then
33133   COLLECT_NAMES=
33134   export COLLECT_NAMES
33135 fi
33136 _LT_EOF
33137     ;;
33138   esac
33139
33140
33141 ltmain="$ac_aux_dir/ltmain.sh"
33142
33143
33144   # We use sed instead of cat because bash on DJGPP gets confused if
33145   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33146   # text mode, it properly converts lines to CR/LF.  This bash problem
33147   # is reportedly fixed, but why not run on old versions too?
33148   sed '$q' "$ltmain" >> "$cfgfile" \
33149      || (rm -f "$cfgfile"; exit 1)
33150
33151   if test x"$xsi_shell" = xyes; then
33152   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33153 func_dirname ()\
33154 {\
33155 \    case ${1} in\
33156 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33157 \      *  ) func_dirname_result="${3}" ;;\
33158 \    esac\
33159 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33160   && mv -f "$cfgfile.tmp" "$cfgfile" \
33161     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33162 test 0 -eq $? || _lt_function_replace_fail=:
33163
33164
33165   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33166 func_basename ()\
33167 {\
33168 \    func_basename_result="${1##*/}"\
33169 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33170   && mv -f "$cfgfile.tmp" "$cfgfile" \
33171     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33172 test 0 -eq $? || _lt_function_replace_fail=:
33173
33174
33175   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33176 func_dirname_and_basename ()\
33177 {\
33178 \    case ${1} in\
33179 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33180 \      *  ) func_dirname_result="${3}" ;;\
33181 \    esac\
33182 \    func_basename_result="${1##*/}"\
33183 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33184   && mv -f "$cfgfile.tmp" "$cfgfile" \
33185     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33186 test 0 -eq $? || _lt_function_replace_fail=:
33187
33188
33189   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33190 func_stripname ()\
33191 {\
33192 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33193 \    # positional parameters, so assign one to ordinary parameter first.\
33194 \    func_stripname_result=${3}\
33195 \    func_stripname_result=${func_stripname_result#"${1}"}\
33196 \    func_stripname_result=${func_stripname_result%"${2}"}\
33197 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33198   && mv -f "$cfgfile.tmp" "$cfgfile" \
33199     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33200 test 0 -eq $? || _lt_function_replace_fail=:
33201
33202
33203   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33204 func_split_long_opt ()\
33205 {\
33206 \    func_split_long_opt_name=${1%%=*}\
33207 \    func_split_long_opt_arg=${1#*=}\
33208 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33209   && mv -f "$cfgfile.tmp" "$cfgfile" \
33210     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33211 test 0 -eq $? || _lt_function_replace_fail=:
33212
33213
33214   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33215 func_split_short_opt ()\
33216 {\
33217 \    func_split_short_opt_arg=${1#??}\
33218 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33219 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33220   && mv -f "$cfgfile.tmp" "$cfgfile" \
33221     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33222 test 0 -eq $? || _lt_function_replace_fail=:
33223
33224
33225   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33226 func_lo2o ()\
33227 {\
33228 \    case ${1} in\
33229 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33230 \      *)    func_lo2o_result=${1} ;;\
33231 \    esac\
33232 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33233   && mv -f "$cfgfile.tmp" "$cfgfile" \
33234     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33235 test 0 -eq $? || _lt_function_replace_fail=:
33236
33237
33238   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33239 func_xform ()\
33240 {\
33241     func_xform_result=${1%.*}.lo\
33242 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33243   && mv -f "$cfgfile.tmp" "$cfgfile" \
33244     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33245 test 0 -eq $? || _lt_function_replace_fail=:
33246
33247
33248   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33249 func_arith ()\
33250 {\
33251     func_arith_result=$(( $* ))\
33252 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33253   && mv -f "$cfgfile.tmp" "$cfgfile" \
33254     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33255 test 0 -eq $? || _lt_function_replace_fail=:
33256
33257
33258   sed -e '/^func_len ()$/,/^} # func_len /c\
33259 func_len ()\
33260 {\
33261     func_len_result=${#1}\
33262 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33263   && mv -f "$cfgfile.tmp" "$cfgfile" \
33264     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33265 test 0 -eq $? || _lt_function_replace_fail=:
33266
33267 fi
33268
33269 if test x"$lt_shell_append" = xyes; then
33270   sed -e '/^func_append ()$/,/^} # func_append /c\
33271 func_append ()\
33272 {\
33273     eval "${1}+=\\${2}"\
33274 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33275   && mv -f "$cfgfile.tmp" "$cfgfile" \
33276     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33277 test 0 -eq $? || _lt_function_replace_fail=:
33278
33279
33280   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33281 func_append_quoted ()\
33282 {\
33283 \    func_quote_for_eval "${2}"\
33284 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33285 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33286   && mv -f "$cfgfile.tmp" "$cfgfile" \
33287     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33288 test 0 -eq $? || _lt_function_replace_fail=:
33289
33290
33291   # Save a `func_append' function call where possible by direct use of '+='
33292   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33293     && mv -f "$cfgfile.tmp" "$cfgfile" \
33294       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33295   test 0 -eq $? || _lt_function_replace_fail=:
33296 else
33297   # Save a `func_append' function call even when '+=' is not available
33298   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33299     && mv -f "$cfgfile.tmp" "$cfgfile" \
33300       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33301   test 0 -eq $? || _lt_function_replace_fail=:
33302 fi
33303
33304 if test x"$_lt_function_replace_fail" = x":"; then
33305   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33306 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33307 fi
33308
33309
33310    mv -f "$cfgfile" "$ofile" ||
33311     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33312   chmod +x "$ofile"
33313
33314
33315     cat <<_LT_EOF >> "$ofile"
33316
33317 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33318
33319 # The linker used to build libraries.
33320 LD=$lt_LD_CXX
33321
33322 # How to create reloadable object files.
33323 reload_flag=$lt_reload_flag_CXX
33324 reload_cmds=$lt_reload_cmds_CXX
33325
33326 # Commands used to build an old-style archive.
33327 old_archive_cmds=$lt_old_archive_cmds_CXX
33328
33329 # A language specific compiler.
33330 CC=$lt_compiler_CXX
33331
33332 # Is the compiler the GNU compiler?
33333 with_gcc=$GCC_CXX
33334
33335 # Compiler flag to turn off builtin functions.
33336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33337
33338 # Additional compiler flags for building library objects.
33339 pic_flag=$lt_lt_prog_compiler_pic_CXX
33340
33341 # How to pass a linker flag through the compiler.
33342 wl=$lt_lt_prog_compiler_wl_CXX
33343
33344 # Compiler flag to prevent dynamic linking.
33345 link_static_flag=$lt_lt_prog_compiler_static_CXX
33346
33347 # Does compiler simultaneously support -c and -o options?
33348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33349
33350 # Whether or not to add -lc for building shared libraries.
33351 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33352
33353 # Whether or not to disallow shared libs when runtime libs are static.
33354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33355
33356 # Compiler flag to allow reflexive dlopens.
33357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33358
33359 # Compiler flag to generate shared objects directly from archives.
33360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33361
33362 # Whether the compiler copes with passing no objects directly.
33363 compiler_needs_object=$lt_compiler_needs_object_CXX
33364
33365 # Create an old-style archive from a shared archive.
33366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33367
33368 # Create a temporary old-style archive to link instead of a shared archive.
33369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33370
33371 # Commands used to build a shared archive.
33372 archive_cmds=$lt_archive_cmds_CXX
33373 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33374
33375 # Commands used to build a loadable module if different from building
33376 # a shared archive.
33377 module_cmds=$lt_module_cmds_CXX
33378 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33379
33380 # Whether we are building with GNU ld or not.
33381 with_gnu_ld=$lt_with_gnu_ld_CXX
33382
33383 # Flag that allows shared libraries with undefined symbols to be built.
33384 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33385
33386 # Flag that enforces no undefined symbols.
33387 no_undefined_flag=$lt_no_undefined_flag_CXX
33388
33389 # Flag to hardcode \$libdir into a binary during linking.
33390 # This must work even if \$libdir does not exist
33391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33392
33393 # Whether we need a single "-rpath" flag with a separated argument.
33394 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33395
33396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33397 # DIR into the resulting binary.
33398 hardcode_direct=$hardcode_direct_CXX
33399
33400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33401 # DIR into the resulting binary and the resulting library dependency is
33402 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33403 # library is relocated.
33404 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33405
33406 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33407 # into the resulting binary.
33408 hardcode_minus_L=$hardcode_minus_L_CXX
33409
33410 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33411 # into the resulting binary.
33412 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33413
33414 # Set to "yes" if building a shared library automatically hardcodes DIR
33415 # into the library and all subsequent libraries and executables linked
33416 # against it.
33417 hardcode_automatic=$hardcode_automatic_CXX
33418
33419 # Set to yes if linker adds runtime paths of dependent libraries
33420 # to runtime path list.
33421 inherit_rpath=$inherit_rpath_CXX
33422
33423 # Whether libtool must link a program against all its dependency libraries.
33424 link_all_deplibs=$link_all_deplibs_CXX
33425
33426 # Set to "yes" if exported symbols are required.
33427 always_export_symbols=$always_export_symbols_CXX
33428
33429 # The commands to list exported symbols.
33430 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33431
33432 # Symbols that should not be listed in the preloaded symbols.
33433 exclude_expsyms=$lt_exclude_expsyms_CXX
33434
33435 # Symbols that must always be exported.
33436 include_expsyms=$lt_include_expsyms_CXX
33437
33438 # Commands necessary for linking programs (against libraries) with templates.
33439 prelink_cmds=$lt_prelink_cmds_CXX
33440
33441 # Commands necessary for finishing linking programs.
33442 postlink_cmds=$lt_postlink_cmds_CXX
33443
33444 # Specify filename containing input files.
33445 file_list_spec=$lt_file_list_spec_CXX
33446
33447 # How to hardcode a shared library path into an executable.
33448 hardcode_action=$hardcode_action_CXX
33449
33450 # The directories searched by this compiler when creating a shared library.
33451 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33452
33453 # Dependencies to place before and after the objects being linked to
33454 # create a shared library.
33455 predep_objects=$lt_predep_objects_CXX
33456 postdep_objects=$lt_postdep_objects_CXX
33457 predeps=$lt_predeps_CXX
33458 postdeps=$lt_postdeps_CXX
33459
33460 # The library search path used internally by the compiler when linking
33461 # a shared library.
33462 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33463
33464 # ### END LIBTOOL TAG CONFIG: CXX
33465 _LT_EOF
33466
33467  ;;
33468     "default-1":C)
33469     for ac_file in $CONFIG_FILES; do
33470       # Support "outfile[:infile[:infile...]]"
33471       case "$ac_file" in
33472         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33473       esac
33474       # PO directories have a Makefile.in generated from Makefile.in.in.
33475       case "$ac_file" in */Makefile.in)
33476         # Adjust a relative srcdir.
33477         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33478         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33479         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33480         # In autoconf-2.13 it is called $ac_given_srcdir.
33481         # In autoconf-2.50 it is called $srcdir.
33482         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33483         case "$ac_given_srcdir" in
33484           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33485           /*) top_srcdir="$ac_given_srcdir" ;;
33486           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33487         esac
33488         # Treat a directory as a PO directory if and only if it has a
33489         # POTFILES.in file. This allows packages to have multiple PO
33490         # directories under different names or in different locations.
33491         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33492           rm -f "$ac_dir/POTFILES"
33493           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33494           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33495           POMAKEFILEDEPS="POTFILES.in"
33496           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33497           # on $ac_dir but don't depend on user-specified configuration
33498           # parameters.
33499           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33500             # The LINGUAS file contains the set of available languages.
33501             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33502               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33503             fi
33504             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33505             # Hide the ALL_LINGUAS assigment from automake.
33506             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33507             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33508           else
33509             # The set of available languages was given in configure.in.
33510             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33511           fi
33512           # Compute POFILES
33513           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33514           # Compute UPDATEPOFILES
33515           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33516           # Compute DUMMYPOFILES
33517           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33518           # Compute GMOFILES
33519           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33520           case "$ac_given_srcdir" in
33521             .) srcdirpre= ;;
33522             *) srcdirpre='$(srcdir)/' ;;
33523           esac
33524           POFILES=
33525           UPDATEPOFILES=
33526           DUMMYPOFILES=
33527           GMOFILES=
33528           for lang in $ALL_LINGUAS; do
33529             POFILES="$POFILES $srcdirpre$lang.po"
33530             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33531             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33532             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33533           done
33534           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33535           # environment variable.
33536           INST_LINGUAS=
33537           if test -n "$ALL_LINGUAS"; then
33538             for presentlang in $ALL_LINGUAS; do
33539               useit=no
33540               if test "%UNSET%" != "$LINGUAS"; then
33541                 desiredlanguages="$LINGUAS"
33542               else
33543                 desiredlanguages="$ALL_LINGUAS"
33544               fi
33545               for desiredlang in $desiredlanguages; do
33546                 # Use the presentlang catalog if desiredlang is
33547                 #   a. equal to presentlang, or
33548                 #   b. a variant of presentlang (because in this case,
33549                 #      presentlang can be used as a fallback for messages
33550                 #      which are not translated in the desiredlang catalog).
33551                 case "$desiredlang" in
33552                   "$presentlang"*) useit=yes;;
33553                 esac
33554               done
33555               if test $useit = yes; then
33556                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33557               fi
33558             done
33559           fi
33560           CATALOGS=
33561           if test -n "$INST_LINGUAS"; then
33562             for lang in $INST_LINGUAS; do
33563               CATALOGS="$CATALOGS $lang.gmo"
33564             done
33565           fi
33566           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33567           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"
33568           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33569             if test -f "$f"; then
33570               case "$f" in
33571                 *.orig | *.bak | *~) ;;
33572                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33573               esac
33574             fi
33575           done
33576         fi
33577         ;;
33578       esac
33579     done ;;
33580     "default":C)
33581  ;;
33582
33583   esac
33584 done # for ac_tag
33585
33586
33587 as_fn_exit 0
33588 _ACEOF
33589 ac_clean_files=$ac_clean_files_save
33590
33591 test $ac_write_fail = 0 ||
33592   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33593
33594
33595 # configure is writing to config.log, and then calls config.status.
33596 # config.status does its own redirection, appending to config.log.
33597 # Unfortunately, on DOS this fails, as config.log is still kept open
33598 # by configure, so config.status won't be able to write to it; its
33599 # output is simply discarded.  So we exec the FD to /dev/null,
33600 # effectively closing config.log, so it can be properly (re)opened and
33601 # appended to by config.status.  When coming back to configure, we
33602 # need to make the FD available again.
33603 if test "$no_create" != yes; then
33604   ac_cs_success=:
33605   ac_config_status_args=
33606   test "$silent" = yes &&
33607     ac_config_status_args="$ac_config_status_args --quiet"
33608   exec 5>/dev/null
33609   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33610   exec 5>>config.log
33611   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33612   # would make configure fail if this is the last instruction.
33613   $ac_cs_success || as_fn_exit 1
33614 fi
33615 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33616   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33617 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33618 fi
33619
33620
33621 if test "${support_bat}" = "yes" ; then
33622    if test "x$QMAKE" = "xnone"; then
33623       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33624    fi
33625
33626    cd src/qt-console
33627    echo "Creating bat Makefile"
33628    touch bat
33629    chmod 755 bat
33630    rm -f Makefile
33631    rm -rf moc32 obj32
33632    $QMAKE
33633    ${MAKE:-make} clean
33634    cd ${BUILD_DIR}
33635 fi
33636
33637 if test X"$GCC" = "Xyes" ; then
33638   echo "Doing make of dependencies"
33639   ${MAKE:-make} depend
33640 fi
33641
33642 cd src/qt-console
33643 chmod 755 install_conf_file build-depkgs-qt-console
33644 cd ${BUILD_DIR}
33645
33646 cd scripts
33647 chmod 755 bacula btraceback mtx-changer
33648 chmod 755 dvd-handler dvd-simulator
33649 chmod 755 bconsole disk-changer devel_bacula logrotate
33650 cd ..
33651
33652 c=updatedb
33653 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33654 chmod 755 $c/update_postgresql_tables_10_to_11
33655 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33656 chmod 755 $c/update_postgresql_tables_11_to_12
33657
33658
33659 c=src/cats
33660
33661 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33662 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33663
33664 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33665 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33666
33667 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33668 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33669
33670 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33671 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33672
33673 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33674 chmod 755 $c/sqlite
33675 chmod 755 $c/mysql
33676
33677 chmod 755 $c/install-default-backend
33678
33679 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33680    largefile_support="yes"
33681 fi
33682
33683 if test X"$GCC" = "Xyes" ; then
33684                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33685    if test "x${CCVERSION}" = "x" ; then
33686       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33687    fi
33688    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33689    if test x"${CXXVERSION}" = x ; then
33690       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33691    fi
33692 fi
33693
33694 # clean up any old junk
33695 echo " "
33696 echo "Cleaning up"
33697 echo " "
33698 ${MAKE:-make} clean
33699
33700 echo "
33701 Configuration on `date`:
33702
33703    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33704    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33705    Source code location:     ${srcdir}
33706    Install binaries:         ${sbindir}
33707    Install libraries:        ${libdir}
33708    Install config files:     ${sysconfdir}
33709    Scripts directory:        ${scriptdir}
33710    Archive directory:        ${archivedir}
33711    Working directory:        ${working_dir}
33712    PID directory:            ${piddir}
33713    Subsys directory:         ${subsysdir}
33714    Man directory:            ${mandir}
33715    Data directory:           ${datarootdir}
33716    Plugin directory:         ${plugindir}
33717    C Compiler:               ${CC} ${CCVERSION}
33718    C++ Compiler:             ${CXX} ${CXXVERSION}
33719    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33720    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33721    Libraries:                ${LIBS}
33722    Statically Linked Tools:  ${support_static_tools}
33723    Statically Linked FD:     ${support_static_fd}
33724    Statically Linked SD:     ${support_static_sd}
33725    Statically Linked DIR:    ${support_static_dir}
33726    Statically Linked CONS:   ${support_static_cons}
33727    Database backends:        ${db_backends}
33728    Database port:            ${db_port}
33729    Database name:            ${db_name}
33730    Database user:            ${db_user}
33731
33732    Job Output Email:         ${job_email}
33733    Traceback Email:          ${dump_email}
33734    SMTP Host Address:        ${smtp_host}
33735
33736    Director Port:            ${dir_port}
33737    File daemon Port:         ${fd_port}
33738    Storage daemon Port:      ${sd_port}
33739
33740    Director User:            ${dir_user}
33741    Director Group:           ${dir_group}
33742    Storage Daemon User:      ${sd_user}
33743    Storage DaemonGroup:      ${sd_group}
33744    File Daemon User:         ${fd_user}
33745    File Daemon Group:        ${fd_group}
33746
33747    Large file support:       $largefile_support
33748    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33749    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33750    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33751    TLS support:              ${support_tls}
33752    Encryption support:       ${support_crypto}
33753    ZLIB support:             ${have_zlib}
33754    LZO support:              ${have_lzo}
33755    enable-smartalloc:        ${support_smartalloc}
33756    enable-lockmgr:           ${support_lockmgr}
33757    bat support:              ${support_bat}
33758    client-only:              ${build_client_only}
33759    build-dird:               ${build_dird}
33760    build-stored:             ${build_stored}
33761    Plugin support:           ${have_plugins}
33762    AFS support:              ${have_afs}
33763    ACL support:              ${have_acl}
33764    XATTR support:            ${have_xattr}
33765    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33766    Batch insert enabled:     ${batch_insert_db_backends}
33767
33768   " > config.out
33769
33770 # create a small shell script useful for support with
33771 # configure options and config.out info
33772 cat > scripts/bacula_config << EOF
33773 #!/bin/sh
33774 cat << __EOC__
33775 $ $0 $ac_configure_args
33776 EOF
33777 cat config.out >> scripts/bacula_config
33778 echo __EOC__ >> scripts/bacula_config
33779 chmod 755 scripts/bacula_config
33780
33781 cat config.out