1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for util-linux 2.25.2.
4#
5# Report bugs to <kzak@redhat.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and kzak@redhat.com
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='util-linux'
592PACKAGE_TARNAME='util-linux'
593PACKAGE_VERSION='2.25.2'
594PACKAGE_STRING='util-linux 2.25.2'
595PACKAGE_BUGREPORT='kzak@redhat.com'
596PACKAGE_URL='http://www.kernel.org/pub/linux/utils/util-linux/'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_unique_file="sys-utils/mount.c"
635ac_default_prefix=/usr
636gt_needs=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBOBJS
641ADJTIME_PATH
642SOLIB_LDFLAGS
643SOLIB_CFLAGS
644DAEMON_LDFLAGS
645DAEMON_CFLAGS
646SUID_LDFLAGS
647SUID_CFLAGS
648MAKEINSTALL_DO_SETUID_FALSE
649MAKEINSTALL_DO_SETUID_TRUE
650MAKEINSTALL_DO_CHOWN_FALSE
651MAKEINSTALL_DO_CHOWN_TRUE
652USE_TTY_GROUP_FALSE
653USE_TTY_GROUP_TRUE
654BUILD_PYLIBMOUNT_FALSE
655BUILD_PYLIBMOUNT_TRUE
656PYTHON_LIBS
657PYTHON_CFLAGS
658pkgpyexecdir
659pyexecdir
660pkgpythondir
661pythondir
662PYTHON_PLATFORM
663PYTHON_EXEC_PREFIX
664PYTHON_PREFIX
665PYTHON_VERSION
666PYTHON
667BUILD_BASH_COMPLETION_FALSE
668BUILD_BASH_COMPLETION_TRUE
669bashcompletiondir
670systemdsystemunitdir
671HAVE_SYSTEMD_FALSE
672HAVE_SYSTEMD_TRUE
673SYSTEMD_JOURNAL_LIBS
674SYSTEMD_JOURNAL_CFLAGS
675SYSTEMD_DAEMON_LIBS
676SYSTEMD_DAEMON_CFLAGS
677SYSTEMD_LIBS
678SYSTEMD_CFLAGS
679BUILD_WRITE_FALSE
680BUILD_WRITE_TRUE
681BUILD_WALL_FALSE
682BUILD_WALL_TRUE
683BUILD_CHRT_FALSE
684BUILD_CHRT_TRUE
685BUILD_TASKSET_FALSE
686BUILD_TASKSET_TRUE
687HAVE_SCHED_GETAFFINITY_FALSE
688HAVE_SCHED_GETAFFINITY_TRUE
689BUILD_IONICE_FALSE
690BUILD_IONICE_TRUE
691HAVE_IOPRIO_GET_FALSE
692HAVE_IOPRIO_GET_TRUE
693HAVE_IOPRIO_SET_FALSE
694HAVE_IOPRIO_SET_TRUE
695BUILD_SETTERM_FALSE
696BUILD_SETTERM_TRUE
697BUILD_PG_FALSE
698BUILD_PG_TRUE
699BUILD_MORE_FALSE
700BUILD_MORE_TRUE
701BUILD_UL_FALSE
702BUILD_UL_TRUE
703BUILD_RUNUSER_FALSE
704BUILD_RUNUSER_TRUE
705BUILD_SU_FALSE
706BUILD_SU_TRUE
707BUILD_SULOGIN_FALSE
708BUILD_SULOGIN_TRUE
709BUILD_NOLOGIN_FALSE
710BUILD_NOLOGIN_TRUE
711BUILD_LOGIN_FALSE
712BUILD_LOGIN_TRUE
713CHFN_CHSH_PASSWORD_FALSE
714CHFN_CHSH_PASSWORD_TRUE
715BUILD_CHFN_CHSH_FALSE
716BUILD_CHFN_CHSH_TRUE
717HAVE_USER_FALSE
718HAVE_USER_TRUE
719LIBUSER_LIBS
720LIBUSER_CFLAGS
721BUILD_NEWGRP_FALSE
722BUILD_NEWGRP_TRUE
723BUILD_VIPW_FALSE
724BUILD_VIPW_TRUE
725BUILD_RESET_FALSE
726BUILD_RESET_TRUE
727BUILD_RENAME_FALSE
728BUILD_RENAME_TRUE
729BUILD_RAW_FALSE
730BUILD_RAW_TRUE
731BUILD_MESG_FALSE
732BUILD_MESG_TRUE
733BUILD_LINE_FALSE
734BUILD_LINE_TRUE
735BUILD_UTMPDUMP_FALSE
736BUILD_UTMPDUMP_TRUE
737BUILD_LAST_FALSE
738BUILD_LAST_TRUE
739BUILD_DEPRECATED_LAST_FALSE
740BUILD_DEPRECATED_LAST_TRUE
741BUILD_KILL_FALSE
742BUILD_KILL_TRUE
743BUILD_TUNELP_FALSE
744BUILD_TUNELP_TRUE
745BUILD_TAILF_FALSE
746BUILD_TAILF_TRUE
747BUILD_REV_FALSE
748BUILD_REV_TRUE
749BUILD_HEXDUMP_FALSE
750BUILD_HEXDUMP_TRUE
751BUILD_COLUMN_FALSE
752BUILD_COLUMN_TRUE
753BUILD_COLRM_FALSE
754BUILD_COLRM_TRUE
755BUILD_COLCRT_FALSE
756BUILD_COLCRT_TRUE
757BUILD_COL_FALSE
758BUILD_COL_TRUE
759BUILD_SCRIPTREPLAY_FALSE
760BUILD_SCRIPTREPLAY_TRUE
761BUILD_SCRIPT_FALSE
762BUILD_SCRIPT_TRUE
763BUILD_SETARCH_FALSE
764BUILD_SETARCH_TRUE
765BUILD_RTCWAKE_FALSE
766BUILD_RTCWAKE_TRUE
767BUILD_LDATTACH_FALSE
768BUILD_LDATTACH_TRUE
769BUILD_BLKDISCARD_FALSE
770BUILD_BLKDISCARD_TRUE
771BUILD_FSFREEZE_FALSE
772BUILD_FSFREEZE_TRUE
773BUILD_CTRLALTDEL_FALSE
774BUILD_CTRLALTDEL_TRUE
775BUILD_DMESG_FALSE
776BUILD_DMESG_TRUE
777BUILD_READPROFILE_FALSE
778BUILD_READPROFILE_TRUE
779BUILD_SETSID_FALSE
780BUILD_SETSID_TRUE
781BUILD_RENICE_FALSE
782BUILD_RENICE_TRUE
783BUILD_IPCS_FALSE
784BUILD_IPCS_TRUE
785BUILD_IPCRM_FALSE
786BUILD_IPCRM_TRUE
787BUILD_IPCMK_FALSE
788BUILD_IPCMK_TRUE
789BUILD_FLOCK_FALSE
790BUILD_FLOCK_TRUE
791BUILD_PIVOT_ROOT_FALSE
792BUILD_PIVOT_ROOT_TRUE
793HAVE_PIVOT_ROOT_FALSE
794HAVE_PIVOT_ROOT_TRUE
795BUILD_SWITCH_ROOT_FALSE
796BUILD_SWITCH_ROOT_TRUE
797BUILD_LSLOCKS_FALSE
798BUILD_LSLOCKS_TRUE
799BUILD_PRLIMIT_FALSE
800BUILD_PRLIMIT_TRUE
801HAVE_PRLIMIT64_FALSE
802HAVE_PRLIMIT64_TRUE
803BUILD_BLOCKDEV_FALSE
804BUILD_BLOCKDEV_TRUE
805BUILD_GETOPT_FALSE
806BUILD_GETOPT_TRUE
807BUILD_WHEREIS_FALSE
808BUILD_WHEREIS_TRUE
809BUILD_NAMEI_FALSE
810BUILD_NAMEI_TRUE
811BUILD_MCOOKIE_FALSE
812BUILD_MCOOKIE_TRUE
813BUILD_LOOK_FALSE
814BUILD_LOOK_TRUE
815BUILD_LOGGER_FALSE
816BUILD_LOGGER_TRUE
817BUILD_CAL_FALSE
818BUILD_CAL_TRUE
819BUILD_MKSWAP_FALSE
820BUILD_MKSWAP_TRUE
821BUILD_SWAPLABEL_FALSE
822BUILD_SWAPLABEL_TRUE
823BUILD_WDCTL_FALSE
824BUILD_WDCTL_TRUE
825BUILD_CHCPU_FALSE
826BUILD_CHCPU_TRUE
827BUILD_LSLOGINS_FALSE
828BUILD_LSLOGINS_TRUE
829BUILD_LSCPU_FALSE
830BUILD_LSCPU_TRUE
831BUILD_LSBLK_FALSE
832BUILD_LSBLK_TRUE
833BUILD_SWAPON_FALSE
834BUILD_SWAPON_TRUE
835BUILD_FSTRIM_FALSE
836BUILD_FSTRIM_TRUE
837BUILD_ISOSIZE_FALSE
838BUILD_ISOSIZE_TRUE
839BUILD_MKFS_FALSE
840BUILD_MKFS_TRUE
841BUILD_HWCLOCK_FALSE
842BUILD_HWCLOCK_TRUE
843BUILD_FDFORMAT_FALSE
844BUILD_FDFORMAT_TRUE
845BUILD_MINIX_FALSE
846BUILD_MINIX_TRUE
847BUILD_BFS_FALSE
848BUILD_BFS_TRUE
849BUILD_CRAMFS_FALSE
850BUILD_CRAMFS_TRUE
851BUILD_AGETTY_FALSE
852BUILD_AGETTY_TRUE
853BUILD_EJECT_FALSE
854BUILD_EJECT_TRUE
855BUILD_SETPRIV_FALSE
856BUILD_SETPRIV_TRUE
857HAVE_CAP_NG_FALSE
858HAVE_CAP_NG_TRUE
859BUILD_NSENTER_FALSE
860BUILD_NSENTER_TRUE
861HAVE_SETNS_FALSE
862HAVE_SETNS_TRUE
863BUILD_UNSHARE_FALSE
864BUILD_UNSHARE_TRUE
865HAVE_UNSHARE_FALSE
866HAVE_UNSHARE_TRUE
867BUILD_FALLOCATE_FALSE
868BUILD_FALLOCATE_TRUE
869HAVE_FALLOCATE_FALSE
870HAVE_FALLOCATE_TRUE
871BUILD_MOUNTPOINT_FALSE
872BUILD_MOUNTPOINT_TRUE
873BUILD_FINDMNT_FALSE
874BUILD_FINDMNT_TRUE
875BUILD_WIPEFS_FALSE
876BUILD_WIPEFS_TRUE
877BUILD_FINDFS_FALSE
878BUILD_FINDFS_TRUE
879BUILD_BLKID_FALSE
880BUILD_BLKID_TRUE
881BUILD_UUIDGEN_FALSE
882BUILD_UUIDGEN_TRUE
883BUILD_UUIDD_FALSE
884BUILD_UUIDD_TRUE
885BUILD_PARTX_FALSE
886BUILD_PARTX_TRUE
887BUILD_FSCK_FALSE
888BUILD_FSCK_TRUE
889BUILD_LOSETUP_FALSE
890BUILD_LOSETUP_TRUE
891BUILD_MOUNT_FALSE
892BUILD_MOUNT_TRUE
893BUILD_CFDISK_FALSE
894BUILD_CFDISK_TRUE
895BUILD_SFDISK_FALSE
896BUILD_SFDISK_TRUE
897BUILD_FDISK_FALSE
898BUILD_FDISK_TRUE
899BUILD_LIBFDISK_FALSE
900BUILD_LIBFDISK_TRUE
901LIBSMARTCOLS_VERSION_INFO
902LIBSMARTCOLS_VERSION
903BUILD_LIBSMARTCOLS_TESTS_FALSE
904BUILD_LIBSMARTCOLS_TESTS_TRUE
905BUILD_LIBSMARTCOLS_FALSE
906BUILD_LIBSMARTCOLS_TRUE
907LIBMOUNT_VERSION_INFO
908LIBMOUNT_VERSION
909BUILD_LIBMOUNT_TESTS_FALSE
910BUILD_LIBMOUNT_TESTS_TRUE
911BUILD_LIBMOUNT_FALSE
912BUILD_LIBMOUNT_TRUE
913BUILD_LIBBLKID_TESTS_FALSE
914BUILD_LIBBLKID_TESTS_TRUE
915BUILD_LIBBLKID_FALSE
916BUILD_LIBBLKID_TRUE
917LIBBLKID_VERSION_INFO
918LIBBLKID_VERSION
919LIBBLKID_DATE
920BUILD_LIBUUID_FALSE
921BUILD_LIBUUID_TRUE
922LIBUUID_VERSION_INFO
923LIBUUID_VERSION
924HAVE_UTEMPTER_FALSE
925HAVE_UTEMPTER_TRUE
926HAVE_TINFO_FALSE
927HAVE_TINFO_TRUE
928TINFO_LIBS
929TINFO_CFLAGS
930HAVE_SLANG_FALSE
931HAVE_SLANG_TRUE
932NCURSES_LIBS
933NCURSES_CFLAGS
934NCURSESW_LIBS
935NCURSESW_CFLAGS
936HAVE_NCURSES_FALSE
937HAVE_NCURSES_TRUE
938HAVE_UDEV_FALSE
939HAVE_UDEV_TRUE
940HAVE_AUDIT_FALSE
941HAVE_AUDIT_TRUE
942SELINUX_LIBS_STATIC
943SELINUX_LIBS
944SELINUX_CFLAGS
945HAVE_SELINUX_FALSE
946HAVE_SELINUX_TRUE
947HAVE_LIBCRYPT_FALSE
948HAVE_LIBCRYPT_TRUE
949HAVE_CPU_SET_T_FALSE
950HAVE_CPU_SET_T_TRUE
951HAVE_TERMCAP_FALSE
952HAVE_TERMCAP_TRUE
953HAVE_UTIL_FALSE
954HAVE_UTIL_TRUE
955HAVE_STATIC_BLKID_FALSE
956HAVE_STATIC_BLKID_TRUE
957HAVE_STATIC_SFDISK_FALSE
958HAVE_STATIC_SFDISK_TRUE
959HAVE_STATIC_FDISK_FALSE
960HAVE_STATIC_FDISK_TRUE
961HAVE_STATIC_UMOUNT_FALSE
962HAVE_STATIC_UMOUNT_TRUE
963HAVE_STATIC_MOUNT_FALSE
964HAVE_STATIC_MOUNT_TRUE
965HAVE_STATIC_LOSETUP_FALSE
966HAVE_STATIC_LOSETUP_TRUE
967SOCKET_LIBS
968HAVE_LANGINFO_FALSE
969HAVE_LANGINFO_TRUE
970POSUB
971LTLIBINTL
972LIBINTL
973INTLLIBS
974LTLIBICONV
975LIBICONV
976INTL_MACOSX_LIBS
977XGETTEXT_EXTRA_OPTIONS
978MSGMERGE
979XGETTEXT_015
980XGETTEXT
981GMSGFMT_015
982MSGFMT_015
983GMSGFMT
984MSGFMT
985GETTEXT_MACRO_VERSION
986USE_NLS
987ARCH_HPPA_FALSE
988ARCH_HPPA_TRUE
989ARCH_MIPS_FALSE
990ARCH_MIPS_TRUE
991ARCH_M68K_FALSE
992ARCH_M68K_TRUE
993ARCH_PPC_FALSE
994ARCH_PPC_TRUE
995ARCH_SPARC_FALSE
996ARCH_SPARC_TRUE
997ARCH_S390_FALSE
998ARCH_S390_TRUE
999ARCH_IA64_FALSE
1000ARCH_IA64_TRUE
1001ARCH_86_64_FALSE
1002ARCH_86_64_TRUE
1003ARCH_I86_FALSE
1004ARCH_I86_TRUE
1005BSD_FALSE
1006BSD_TRUE
1007LINUX_FALSE
1008LINUX_TRUE
1009XSLTPROC
1010GTK_DOC_USE_LIBTOOL_FALSE
1011GTK_DOC_USE_LIBTOOL_TRUE
1012ENABLE_GTK_DOC_FALSE
1013ENABLE_GTK_DOC_TRUE
1014GTKDOC_CHECK
1015HTML_DIR
1016PKG_CONFIG_LIBDIR
1017PKG_CONFIG_PATH
1018PKG_CONFIG
1019OTOOL64
1020OTOOL
1021LIPO
1022NMEDIT
1023DSYMUTIL
1024MANIFEST_TOOL
1025RANLIB
1026ac_ct_AR
1027AR
1028DLLTOOL
1029OBJDUMP
1030LN_S
1031NM
1032ac_ct_DUMPBIN
1033DUMPBIN
1034LD
1035FGREP
1036SED
1037LIBTOOL
1038BSD_WARN_CFLAGS
1039WARN_CFLAGS
1040host_os
1041host_vendor
1042host_cpu
1043host
1044build_os
1045build_vendor
1046build_cpu
1047build
1048usrlib_execdir
1049usrsbin_execdir
1050usrbin_execdir
1051AM_BACKSLASH
1052AM_DEFAULT_VERBOSITY
1053AM_DEFAULT_V
1054AM_V
1055am__fastdepCC_FALSE
1056am__fastdepCC_TRUE
1057CCDEPMODE
1058am__nodep
1059AMDEPBACKSLASH
1060AMDEP_FALSE
1061AMDEP_TRUE
1062am__quote
1063am__include
1064DEPDIR
1065am__untar
1066am__tar
1067AMTAR
1068am__leading_dot
1069SET_MAKE
1070AWK
1071mkdir_p
1072MKDIR_P
1073INSTALL_STRIP_PROGRAM
1074STRIP
1075install_sh
1076MAKEINFO
1077AUTOHEADER
1078AUTOMAKE
1079AUTOCONF
1080ACLOCAL
1081VERSION
1082PACKAGE
1083CYGPATH_W
1084am__isrc
1085INSTALL_DATA
1086INSTALL_SCRIPT
1087INSTALL_PROGRAM
1088EGREP
1089GREP
1090CPP
1091OBJEXT
1092EXEEXT
1093ac_ct_CC
1094CPPFLAGS
1095LDFLAGS
1096CFLAGS
1097CC
1098target_alias
1099host_alias
1100build_alias
1101LIBS
1102ECHO_T
1103ECHO_N
1104ECHO_C
1105DEFS
1106mandir
1107localedir
1108libdir
1109psdir
1110pdfdir
1111dvidir
1112htmldir
1113infodir
1114docdir
1115oldincludedir
1116includedir
1117localstatedir
1118sharedstatedir
1119sysconfdir
1120datadir
1121datarootdir
1122libexecdir
1123sbindir
1124bindir
1125program_transform_name
1126prefix
1127exec_prefix
1128PACKAGE_URL
1129PACKAGE_BUGREPORT
1130PACKAGE_STRING
1131PACKAGE_VERSION
1132PACKAGE_TARNAME
1133PACKAGE_NAME
1134PATH_SEPARATOR
1135SHELL'
1136ac_subst_files=''
1137ac_user_opts='
1138enable_option_checking
1139enable_dependency_tracking
1140enable_silent_rules
1141enable_shared
1142enable_static
1143with_pic
1144enable_fast_install
1145with_gnu_ld
1146with_sysroot
1147enable_libtool_lock
1148with_html_dir
1149enable_gtk_doc
1150enable_largefile
1151enable_nls
1152enable_rpath
1153with_libiconv_prefix
1154with_libintl_prefix
1155enable_static_programs
1156enable_all_programs
1157enable_tls
1158with_selinux
1159with_audit
1160with_udev
1161with_ncurses
1162with_slang
1163with_utempter
1164enable_libuuid
1165enable_libblkid
1166enable_libmount
1167enable_libsmartcols
1168enable_mount
1169enable_losetup
1170enable_fsck
1171enable_partx
1172enable_uuidd
1173enable_mountpoint
1174enable_fallocate
1175enable_unshare
1176enable_nsenter
1177enable_setpriv
1178enable_eject
1179enable_agetty
1180enable_cramfs
1181enable_bfs
1182enable_minix
1183enable_fdformat
1184enable_hwclock
1185enable_wdctl
1186enable_switch_root
1187enable_pivot_root
1188enable_tunelp
1189enable_kill
1190enable_deprecated_last
1191enable_last
1192enable_utmpdump
1193enable_line
1194enable_mesg
1195enable_raw
1196enable_rename
1197enable_reset
1198enable_vipw
1199enable_newgrp
1200with_user
1201enable_chfn_chsh_password
1202enable_chfn_chsh
1203enable_chsh_only_listed
1204enable_login
1205enable_login_chown_vcs
1206enable_login_stat_mail
1207enable_nologin
1208enable_sulogin
1209enable_su
1210enable_runuser
1211enable_ul
1212enable_more
1213enable_pg
1214enable_setterm
1215enable_schedutils
1216enable_wall
1217enable_write
1218with_systemd
1219with_systemdsystemunitdir
1220with_smack
1221with_bashcompletiondir
1222enable_bash_completion
1223with_python
1224enable_pylibmount
1225enable_pg_bell
1226enable_fs_paths_default
1227enable_fs_paths_extra
1228enable_use_tty_group
1229enable_sulogin_emergency_mount
1230enable_makeinstall_chown
1231enable_makeinstall_setuid
1232'
1233      ac_precious_vars='build_alias
1234host_alias
1235target_alias
1236CC
1237CFLAGS
1238LDFLAGS
1239LIBS
1240CPPFLAGS
1241CPP
1242PKG_CONFIG
1243PKG_CONFIG_PATH
1244PKG_CONFIG_LIBDIR
1245SELINUX_CFLAGS
1246SELINUX_LIBS
1247NCURSESW_CFLAGS
1248NCURSESW_LIBS
1249NCURSES_CFLAGS
1250NCURSES_LIBS
1251TINFO_CFLAGS
1252TINFO_LIBS
1253LIBUSER_CFLAGS
1254LIBUSER_LIBS
1255SYSTEMD_CFLAGS
1256SYSTEMD_LIBS
1257SYSTEMD_DAEMON_CFLAGS
1258SYSTEMD_DAEMON_LIBS
1259SYSTEMD_JOURNAL_CFLAGS
1260SYSTEMD_JOURNAL_LIBS
1261PYTHON
1262PYTHON_CFLAGS
1263PYTHON_LIBS
1264SUID_CFLAGS
1265SUID_LDFLAGS
1266DAEMON_CFLAGS
1267DAEMON_LDFLAGS
1268SOLIB_CFLAGS
1269SOLIB_LDFLAGS
1270ADJTIME_PATH'
1271
1272
1273# Initialize some variables set by options.
1274ac_init_help=
1275ac_init_version=false
1276ac_unrecognized_opts=
1277ac_unrecognized_sep=
1278# The variables have the same names as the options, with
1279# dashes changed to underlines.
1280cache_file=/dev/null
1281exec_prefix=NONE
1282no_create=
1283no_recursion=
1284prefix=NONE
1285program_prefix=NONE
1286program_suffix=NONE
1287program_transform_name=s,x,x,
1288silent=
1289site=
1290srcdir=
1291verbose=
1292x_includes=NONE
1293x_libraries=NONE
1294
1295# Installation directory options.
1296# These are left unexpanded so users can "make install exec_prefix=/foo"
1297# and all the variables that are supposed to be based on exec_prefix
1298# by default will actually change.
1299# Use braces instead of parens because sh, perl, etc. also accept them.
1300# (The list follows the same order as the GNU Coding Standards.)
1301bindir='${exec_prefix}/bin'
1302sbindir='${exec_prefix}/sbin'
1303libexecdir='${exec_prefix}/libexec'
1304datarootdir='${prefix}/share'
1305datadir='${datarootdir}'
1306sysconfdir='${prefix}/etc'
1307sharedstatedir='${prefix}/com'
1308localstatedir='${prefix}/var'
1309includedir='${prefix}/include'
1310oldincludedir='/usr/include'
1311docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1312infodir='${datarootdir}/info'
1313htmldir='${docdir}'
1314dvidir='${docdir}'
1315pdfdir='${docdir}'
1316psdir='${docdir}'
1317libdir='${exec_prefix}/lib'
1318localedir='${datarootdir}/locale'
1319mandir='${datarootdir}/man'
1320
1321ac_prev=
1322ac_dashdash=
1323for ac_option
1324do
1325  # If the previous option needs an argument, assign it.
1326  if test -n "$ac_prev"; then
1327    eval $ac_prev=\$ac_option
1328    ac_prev=
1329    continue
1330  fi
1331
1332  case $ac_option in
1333  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1334  *=)   ac_optarg= ;;
1335  *)    ac_optarg=yes ;;
1336  esac
1337
1338  # Accept the important Cygnus configure options, so we can diagnose typos.
1339
1340  case $ac_dashdash$ac_option in
1341  --)
1342    ac_dashdash=yes ;;
1343
1344  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1345    ac_prev=bindir ;;
1346  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1347    bindir=$ac_optarg ;;
1348
1349  -build | --build | --buil | --bui | --bu)
1350    ac_prev=build_alias ;;
1351  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1352    build_alias=$ac_optarg ;;
1353
1354  -cache-file | --cache-file | --cache-fil | --cache-fi \
1355  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1356    ac_prev=cache_file ;;
1357  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1358  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1359    cache_file=$ac_optarg ;;
1360
1361  --config-cache | -C)
1362    cache_file=config.cache ;;
1363
1364  -datadir | --datadir | --datadi | --datad)
1365    ac_prev=datadir ;;
1366  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1367    datadir=$ac_optarg ;;
1368
1369  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1370  | --dataroo | --dataro | --datar)
1371    ac_prev=datarootdir ;;
1372  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1373  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1374    datarootdir=$ac_optarg ;;
1375
1376  -disable-* | --disable-*)
1377    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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 feature 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"enable_$ac_useropt"
1386"*) ;;
1387      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1388	 ac_unrecognized_sep=', ';;
1389    esac
1390    eval enable_$ac_useropt=no ;;
1391
1392  -docdir | --docdir | --docdi | --doc | --do)
1393    ac_prev=docdir ;;
1394  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1395    docdir=$ac_optarg ;;
1396
1397  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1398    ac_prev=dvidir ;;
1399  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1400    dvidir=$ac_optarg ;;
1401
1402  -enable-* | --enable-*)
1403    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1404    # Reject names that are not valid shell variable names.
1405    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406      as_fn_error $? "invalid feature name: $ac_useropt"
1407    ac_useropt_orig=$ac_useropt
1408    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1409    case $ac_user_opts in
1410      *"
1411"enable_$ac_useropt"
1412"*) ;;
1413      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1414	 ac_unrecognized_sep=', ';;
1415    esac
1416    eval enable_$ac_useropt=\$ac_optarg ;;
1417
1418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1420  | --exec | --exe | --ex)
1421    ac_prev=exec_prefix ;;
1422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1424  | --exec=* | --exe=* | --ex=*)
1425    exec_prefix=$ac_optarg ;;
1426
1427  -gas | --gas | --ga | --g)
1428    # Obsolete; use --with-gas.
1429    with_gas=yes ;;
1430
1431  -help | --help | --hel | --he | -h)
1432    ac_init_help=long ;;
1433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1434    ac_init_help=recursive ;;
1435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1436    ac_init_help=short ;;
1437
1438  -host | --host | --hos | --ho)
1439    ac_prev=host_alias ;;
1440  -host=* | --host=* | --hos=* | --ho=*)
1441    host_alias=$ac_optarg ;;
1442
1443  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1444    ac_prev=htmldir ;;
1445  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1446  | --ht=*)
1447    htmldir=$ac_optarg ;;
1448
1449  -includedir | --includedir | --includedi | --included | --include \
1450  | --includ | --inclu | --incl | --inc)
1451    ac_prev=includedir ;;
1452  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1453  | --includ=* | --inclu=* | --incl=* | --inc=*)
1454    includedir=$ac_optarg ;;
1455
1456  -infodir | --infodir | --infodi | --infod | --info | --inf)
1457    ac_prev=infodir ;;
1458  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1459    infodir=$ac_optarg ;;
1460
1461  -libdir | --libdir | --libdi | --libd)
1462    ac_prev=libdir ;;
1463  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1464    libdir=$ac_optarg ;;
1465
1466  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1467  | --libexe | --libex | --libe)
1468    ac_prev=libexecdir ;;
1469  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1470  | --libexe=* | --libex=* | --libe=*)
1471    libexecdir=$ac_optarg ;;
1472
1473  -localedir | --localedir | --localedi | --localed | --locale)
1474    ac_prev=localedir ;;
1475  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1476    localedir=$ac_optarg ;;
1477
1478  -localstatedir | --localstatedir | --localstatedi | --localstated \
1479  | --localstate | --localstat | --localsta | --localst | --locals)
1480    ac_prev=localstatedir ;;
1481  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1482  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1483    localstatedir=$ac_optarg ;;
1484
1485  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1486    ac_prev=mandir ;;
1487  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1488    mandir=$ac_optarg ;;
1489
1490  -nfp | --nfp | --nf)
1491    # Obsolete; use --without-fp.
1492    with_fp=no ;;
1493
1494  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1495  | --no-cr | --no-c | -n)
1496    no_create=yes ;;
1497
1498  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1499  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1500    no_recursion=yes ;;
1501
1502  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1503  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1504  | --oldin | --oldi | --old | --ol | --o)
1505    ac_prev=oldincludedir ;;
1506  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1507  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1508  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1509    oldincludedir=$ac_optarg ;;
1510
1511  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1512    ac_prev=prefix ;;
1513  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1514    prefix=$ac_optarg ;;
1515
1516  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1517  | --program-pre | --program-pr | --program-p)
1518    ac_prev=program_prefix ;;
1519  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1520  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1521    program_prefix=$ac_optarg ;;
1522
1523  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1524  | --program-suf | --program-su | --program-s)
1525    ac_prev=program_suffix ;;
1526  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1527  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1528    program_suffix=$ac_optarg ;;
1529
1530  -program-transform-name | --program-transform-name \
1531  | --program-transform-nam | --program-transform-na \
1532  | --program-transform-n | --program-transform- \
1533  | --program-transform | --program-transfor \
1534  | --program-transfo | --program-transf \
1535  | --program-trans | --program-tran \
1536  | --progr-tra | --program-tr | --program-t)
1537    ac_prev=program_transform_name ;;
1538  -program-transform-name=* | --program-transform-name=* \
1539  | --program-transform-nam=* | --program-transform-na=* \
1540  | --program-transform-n=* | --program-transform-=* \
1541  | --program-transform=* | --program-transfor=* \
1542  | --program-transfo=* | --program-transf=* \
1543  | --program-trans=* | --program-tran=* \
1544  | --progr-tra=* | --program-tr=* | --program-t=*)
1545    program_transform_name=$ac_optarg ;;
1546
1547  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1548    ac_prev=pdfdir ;;
1549  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1550    pdfdir=$ac_optarg ;;
1551
1552  -psdir | --psdir | --psdi | --psd | --ps)
1553    ac_prev=psdir ;;
1554  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1555    psdir=$ac_optarg ;;
1556
1557  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558  | -silent | --silent | --silen | --sile | --sil)
1559    silent=yes ;;
1560
1561  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1562    ac_prev=sbindir ;;
1563  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1564  | --sbi=* | --sb=*)
1565    sbindir=$ac_optarg ;;
1566
1567  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1568  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1569  | --sharedst | --shareds | --shared | --share | --shar \
1570  | --sha | --sh)
1571    ac_prev=sharedstatedir ;;
1572  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1573  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1574  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1575  | --sha=* | --sh=*)
1576    sharedstatedir=$ac_optarg ;;
1577
1578  -site | --site | --sit)
1579    ac_prev=site ;;
1580  -site=* | --site=* | --sit=*)
1581    site=$ac_optarg ;;
1582
1583  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1584    ac_prev=srcdir ;;
1585  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1586    srcdir=$ac_optarg ;;
1587
1588  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1589  | --syscon | --sysco | --sysc | --sys | --sy)
1590    ac_prev=sysconfdir ;;
1591  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1592  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1593    sysconfdir=$ac_optarg ;;
1594
1595  -target | --target | --targe | --targ | --tar | --ta | --t)
1596    ac_prev=target_alias ;;
1597  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1598    target_alias=$ac_optarg ;;
1599
1600  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1601    verbose=yes ;;
1602
1603  -version | --version | --versio | --versi | --vers | -V)
1604    ac_init_version=: ;;
1605
1606  -with-* | --with-*)
1607    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1608    # Reject names that are not valid shell variable names.
1609    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1610      as_fn_error $? "invalid package name: $ac_useropt"
1611    ac_useropt_orig=$ac_useropt
1612    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1613    case $ac_user_opts in
1614      *"
1615"with_$ac_useropt"
1616"*) ;;
1617      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1618	 ac_unrecognized_sep=', ';;
1619    esac
1620    eval with_$ac_useropt=\$ac_optarg ;;
1621
1622  -without-* | --without-*)
1623    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1624    # Reject names that are not valid shell variable names.
1625    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1626      as_fn_error $? "invalid package name: $ac_useropt"
1627    ac_useropt_orig=$ac_useropt
1628    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1629    case $ac_user_opts in
1630      *"
1631"with_$ac_useropt"
1632"*) ;;
1633      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1634	 ac_unrecognized_sep=', ';;
1635    esac
1636    eval with_$ac_useropt=no ;;
1637
1638  --x)
1639    # Obsolete; use --with-x.
1640    with_x=yes ;;
1641
1642  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1643  | --x-incl | --x-inc | --x-in | --x-i)
1644    ac_prev=x_includes ;;
1645  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1646  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1647    x_includes=$ac_optarg ;;
1648
1649  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1650  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1651    ac_prev=x_libraries ;;
1652  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1653  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1654    x_libraries=$ac_optarg ;;
1655
1656  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1657Try \`$0 --help' for more information"
1658    ;;
1659
1660  *=*)
1661    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1662    # Reject names that are not valid shell variable names.
1663    case $ac_envvar in #(
1664      '' | [0-9]* | *[!_$as_cr_alnum]* )
1665      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1666    esac
1667    eval $ac_envvar=\$ac_optarg
1668    export $ac_envvar ;;
1669
1670  *)
1671    # FIXME: should be removed in autoconf 3.0.
1672    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1673    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1674      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1675    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1676    ;;
1677
1678  esac
1679done
1680
1681if test -n "$ac_prev"; then
1682  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1683  as_fn_error $? "missing argument to $ac_option"
1684fi
1685
1686if test -n "$ac_unrecognized_opts"; then
1687  case $enable_option_checking in
1688    no) ;;
1689    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1690    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1691  esac
1692fi
1693
1694# Check all directory arguments for consistency.
1695for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1696		datadir sysconfdir sharedstatedir localstatedir includedir \
1697		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1698		libdir localedir mandir
1699do
1700  eval ac_val=\$$ac_var
1701  # Remove trailing slashes.
1702  case $ac_val in
1703    */ )
1704      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1705      eval $ac_var=\$ac_val;;
1706  esac
1707  # Be sure to have absolute directory names.
1708  case $ac_val in
1709    [\\/$]* | ?:[\\/]* )  continue;;
1710    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1711  esac
1712  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1713done
1714
1715# There might be people who depend on the old broken behavior: `$host'
1716# used to hold the argument of --host etc.
1717# FIXME: To remove some day.
1718build=$build_alias
1719host=$host_alias
1720target=$target_alias
1721
1722# FIXME: To remove some day.
1723if test "x$host_alias" != x; then
1724  if test "x$build_alias" = x; then
1725    cross_compiling=maybe
1726  elif test "x$build_alias" != "x$host_alias"; then
1727    cross_compiling=yes
1728  fi
1729fi
1730
1731ac_tool_prefix=
1732test -n "$host_alias" && ac_tool_prefix=$host_alias-
1733
1734test "$silent" = yes && exec 6>/dev/null
1735
1736
1737ac_pwd=`pwd` && test -n "$ac_pwd" &&
1738ac_ls_di=`ls -di .` &&
1739ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1740  as_fn_error $? "working directory cannot be determined"
1741test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1742  as_fn_error $? "pwd does not report name of working directory"
1743
1744
1745# Find the source files, if location was not specified.
1746if test -z "$srcdir"; then
1747  ac_srcdir_defaulted=yes
1748  # Try the directory containing this script, then the parent directory.
1749  ac_confdir=`$as_dirname -- "$as_myself" ||
1750$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1751	 X"$as_myself" : 'X\(//\)[^/]' \| \
1752	 X"$as_myself" : 'X\(//\)$' \| \
1753	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1754$as_echo X"$as_myself" |
1755    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1756	    s//\1/
1757	    q
1758	  }
1759	  /^X\(\/\/\)[^/].*/{
1760	    s//\1/
1761	    q
1762	  }
1763	  /^X\(\/\/\)$/{
1764	    s//\1/
1765	    q
1766	  }
1767	  /^X\(\/\).*/{
1768	    s//\1/
1769	    q
1770	  }
1771	  s/.*/./; q'`
1772  srcdir=$ac_confdir
1773  if test ! -r "$srcdir/$ac_unique_file"; then
1774    srcdir=..
1775  fi
1776else
1777  ac_srcdir_defaulted=no
1778fi
1779if test ! -r "$srcdir/$ac_unique_file"; then
1780  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1781  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1782fi
1783ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1784ac_abs_confdir=`(
1785	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1786	pwd)`
1787# When building in place, set srcdir=.
1788if test "$ac_abs_confdir" = "$ac_pwd"; then
1789  srcdir=.
1790fi
1791# Remove unnecessary trailing slashes from srcdir.
1792# Double slashes in file names in object file debugging info
1793# mess up M-x gdb in Emacs.
1794case $srcdir in
1795*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1796esac
1797for ac_var in $ac_precious_vars; do
1798  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1799  eval ac_env_${ac_var}_value=\$${ac_var}
1800  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1801  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1802done
1803
1804#
1805# Report the --help message.
1806#
1807if test "$ac_init_help" = "long"; then
1808  # Omit some internal or obsolete options to make the list less imposing.
1809  # This message is too long to be a string in the A/UX 3.1 sh.
1810  cat <<_ACEOF
1811\`configure' configures util-linux 2.25.2 to adapt to many kinds of systems.
1812
1813Usage: $0 [OPTION]... [VAR=VALUE]...
1814
1815To assign environment variables (e.g., CC, CFLAGS...), specify them as
1816VAR=VALUE.  See below for descriptions of some of the useful variables.
1817
1818Defaults for the options are specified in brackets.
1819
1820Configuration:
1821  -h, --help              display this help and exit
1822      --help=short        display options specific to this package
1823      --help=recursive    display the short help of all the included packages
1824  -V, --version           display version information and exit
1825  -q, --quiet, --silent   do not print \`checking ...' messages
1826      --cache-file=FILE   cache test results in FILE [disabled]
1827  -C, --config-cache      alias for \`--cache-file=config.cache'
1828  -n, --no-create         do not create output files
1829      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1830
1831Installation directories:
1832  --prefix=PREFIX         install architecture-independent files in PREFIX
1833                          [$ac_default_prefix]
1834  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1835                          [PREFIX]
1836
1837By default, \`make install' will install all the files in
1838\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1839an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1840for instance \`--prefix=\$HOME'.
1841
1842For better control, use the options below.
1843
1844Fine tuning of the installation directories:
1845  --bindir=DIR            user executables [EPREFIX/bin]
1846  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1847  --libexecdir=DIR        program executables [EPREFIX/libexec]
1848  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1849  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1850  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1851  --libdir=DIR            object code libraries [EPREFIX/lib]
1852  --includedir=DIR        C header files [PREFIX/include]
1853  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1854  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1855  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1856  --infodir=DIR           info documentation [DATAROOTDIR/info]
1857  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1858  --mandir=DIR            man documentation [DATAROOTDIR/man]
1859  --docdir=DIR            documentation root [DATAROOTDIR/doc/util-linux]
1860  --htmldir=DIR           html documentation [DOCDIR]
1861  --dvidir=DIR            dvi documentation [DOCDIR]
1862  --pdfdir=DIR            pdf documentation [DOCDIR]
1863  --psdir=DIR             ps documentation [DOCDIR]
1864_ACEOF
1865
1866  cat <<\_ACEOF
1867
1868Program names:
1869  --program-prefix=PREFIX            prepend PREFIX to installed program names
1870  --program-suffix=SUFFIX            append SUFFIX to installed program names
1871  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1872
1873System types:
1874  --build=BUILD     configure for building on BUILD [guessed]
1875  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1876_ACEOF
1877fi
1878
1879if test -n "$ac_init_help"; then
1880  case $ac_init_help in
1881     short | recursive ) echo "Configuration of util-linux 2.25.2:";;
1882   esac
1883  cat <<\_ACEOF
1884
1885Optional Features:
1886  --disable-option-checking  ignore unrecognized --enable/--with options
1887  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1888  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1889  --enable-dependency-tracking
1890                          do not reject slow dependency extractors
1891  --disable-dependency-tracking
1892                          speeds up one-time build
1893  --enable-silent-rules   less verbose build output (undo: "make V=1")
1894  --disable-silent-rules  verbose build output (undo: "make V=0")
1895  --enable-shared[=PKGS]  build shared libraries [default=yes]
1896  --enable-static[=PKGS]  build static libraries [default=yes]
1897  --enable-fast-install[=PKGS]
1898                          optimize for fast installation [default=yes]
1899  --disable-libtool-lock  avoid locking (might break parallel builds)
1900  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1901  --disable-largefile     omit support for large files
1902  --disable-nls           do not use Native Language Support
1903  --disable-rpath         do not hardcode runtime library paths
1904  --enable-static-programs=LIST
1905                          link static the programs in LIST (comma-separated,
1906                          supported for losetup, mount, umount, fdisk, sfdisk,
1907                          blkid)
1908  --disable-all-programs  disable everything, might be overridden by
1909                          --enable-<name>
1910  --disable-tls           disable use of thread local support
1911  --disable-libuuid       do not build libuuid and uuid utilities
1912  --disable-libblkid      do not build libblkid and many related utilities
1913  --disable-libmount      do not build libmount
1914  --disable-libsmartcols  do not build libsmartcols
1915  --disable-mount         do not build mount(8) and umount(8)
1916  --disable-losetup       do not build losetup
1917  --disable-fsck          do not build fsck
1918  --disable-partx         do not build addpart, delpart, partx
1919  --disable-uuidd         do not build the uuid daemon
1920  --disable-mountpoint    do not build mountpoint
1921  --disable-fallocate     do not build fallocate
1922  --disable-unshare       do not build unshare
1923  --disable-nsenter       do not build nsenter
1924  --disable-setpriv       do not build setpriv
1925  --disable-eject         do not build eject
1926  --disable-agetty        do not build agetty
1927  --disable-cramfs        do not build fsck.cramfs, mkfs.cramfs
1928  --disable-bfs           do not build mkfs.bfs
1929  --disable-minix         do not build fsck.minix, mkfs.minix
1930  --disable-fdformat      do not build fdformat
1931  --disable-hwclock       do not build hwclock
1932  --disable-wdctl         do not build wdctl
1933  --disable-switch_root   do not build switch_root
1934  --disable-pivot_root    do not build pivot_root
1935  --enable-tunelp         build tunelp
1936  --disable-kill          do not build kill
1937  --enable-deprecated-last
1938                          build old deprecated last
1939  --disable-last          do not build last
1940  --disable-utmpdump      do not build utmpdump
1941  --enable-line           build line
1942  --disable-mesg          do not build mesg
1943  --disable-raw           do not build raw
1944  --disable-rename        do not build rename
1945  --enable-reset          build reset
1946  --enable-vipw           build vipw
1947  --enable-newgrp         build newgrp
1948  --disable-chfn-chsh-password
1949                          do not require the user to enter the password in
1950                          chfn and chsh
1951  --enable-chfn-chsh      build chfn and chsh
1952  --disable-chsh-only-listed
1953                          chsh: allow shells not in /etc/shells
1954  --disable-login         do not build login
1955  --enable-login-chown-vcs
1956                          let login chown /dev/vcsN
1957  --enable-login-stat-mail
1958                          let login stat() the mailbox
1959  --disable-nologin       do not build nologin
1960  --disable-sulogin       do not build sulogin
1961  --disable-su            do not build su
1962  --disable-runuser       do not build runuser
1963  --disable-ul            do not build ul
1964  --disable-more          do not build more
1965  --disable-pg            do not build pg
1966  --disable-setterm       do not build setterm
1967  --disable-schedutils    do not build chrt, ionice, taskset
1968  --disable-wall          do not build wall
1969  --enable-write          build write
1970  --disable-bash-completion
1971                          do not install bash completion files
1972  --disable-pylibmount    do not build pylibmount
1973  --disable-pg-bell       let pg not ring the bell on invalid keys
1974  --enable-fs-paths-default=paths
1975                          default search path for fs helpers
1976                          [/sbin:/sbin/fs.d:/sbin/fs]
1977  --enable-fs-paths-extra=paths
1978                          additional search paths for fs helpers
1979  --disable-use-tty-group do not install wall and write setgid tty
1980  --enable-sulogin-emergency-mount
1981                          use emergency mount of /dev and /proc for sulogin
1982  --disable-makeinstall-chown
1983                          do not do chown-like operations during "make
1984                          install"
1985  --disable-makeinstall-setuid
1986                          do not do setuid chmod operations during "make
1987                          install"
1988
1989Optional Packages:
1990  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1991  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1992  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1993                          both]
1994  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1995  --with-sysroot=DIR Search for dependent libraries within DIR
1996                        (or the compiler's sysroot if not specified).
1997  --with-html-dir=PATH    path to installed docs
1998  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1999  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2000  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2001  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2002  --without-libintl-prefix     don't search for libintl in includedir and libdir
2003  --with-selinux          compile with SELinux support
2004  --with-audit            compile with audit support
2005  --without-udev          compile without udev support
2006  --with-ncurses          build with non-wide ncurses, default is wide version
2007                          (--without-ncurses disables all ncurses(w) support)
2008  --with-slang            compile cfdisk with slang
2009  --with-utempter         compile script(1) with libutempter
2010  --without-user          compile without libuser (remote chsh)
2011  --with-systemd          build with support for systemd
2012  --with-systemdsystemunitdir=DIR
2013                          directory for systemd service files
2014  --with-smack            build with SMACK support
2015  --with-bashcompletiondir=DIR
2016                          Bash completions directory
2017  --without-python        do not build python bindings, use
2018                          --with-python={2,3} to force version
2019
2020Some influential environment variables:
2021  CC          C compiler command
2022  CFLAGS      C compiler flags
2023  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2024              nonstandard directory <lib dir>
2025  LIBS        libraries to pass to the linker, e.g. -l<library>
2026  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2027              you have headers in a nonstandard directory <include dir>
2028  CPP         C preprocessor
2029  PKG_CONFIG  path to pkg-config utility
2030  PKG_CONFIG_PATH
2031              directories to add to pkg-config's search path
2032  PKG_CONFIG_LIBDIR
2033              path overriding pkg-config's built-in search path
2034  SELINUX_CFLAGS
2035              C compiler flags for SELINUX, overriding pkg-config
2036  SELINUX_LIBS
2037              linker flags for SELINUX, overriding pkg-config
2038  NCURSESW_CFLAGS
2039              C compiler flags for NCURSESW, overriding pkg-config
2040  NCURSESW_LIBS
2041              linker flags for NCURSESW, overriding pkg-config
2042  NCURSES_CFLAGS
2043              C compiler flags for NCURSES, overriding pkg-config
2044  NCURSES_LIBS
2045              linker flags for NCURSES, overriding pkg-config
2046  TINFO_CFLAGS
2047              C compiler flags for TINFO, overriding pkg-config
2048  TINFO_LIBS  linker flags for TINFO, overriding pkg-config
2049  LIBUSER_CFLAGS
2050              C compiler flags for LIBUSER, overriding pkg-config
2051  LIBUSER_LIBS
2052              linker flags for LIBUSER, overriding pkg-config
2053  SYSTEMD_CFLAGS
2054              C compiler flags for SYSTEMD, overriding pkg-config
2055  SYSTEMD_LIBS
2056              linker flags for SYSTEMD, overriding pkg-config
2057  SYSTEMD_DAEMON_CFLAGS
2058              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2059  SYSTEMD_DAEMON_LIBS
2060              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2061  SYSTEMD_JOURNAL_CFLAGS
2062              C compiler flags for SYSTEMD_JOURNAL, overriding pkg-config
2063  SYSTEMD_JOURNAL_LIBS
2064              linker flags for SYSTEMD_JOURNAL, overriding pkg-config
2065  PYTHON      the Python interpreter
2066  PYTHON_CFLAGS
2067              C compiler flags for PYTHON, overriding pkg-config
2068  PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
2069  SUID_CFLAGS CFLAGS used for binaries which are usually with the suid bit
2070  SUID_LDFLAGS
2071              LDFLAGS used for binaries which are usually with the suid bit
2072  DAEMON_CFLAGS
2073              CFLAGS used for binaries which are usually executed as daemons
2074  DAEMON_LDFLAGS
2075              LDFLAGS used for binaries which are usually executed as daemons
2076  SOLIB_CFLAGS
2077              CFLAGS used for shared libraries
2078  SOLIB_LDFLAGS
2079              LDFLAGS used for shared libraries
2080  ADJTIME_PATH
2081              Path to hwclock adjtime file, default /etc/adjtime
2082
2083Use these variables to override the choices made by `configure' or to help
2084it to find libraries and programs with nonstandard names/locations.
2085
2086Report bugs to <kzak@redhat.com>.
2087util-linux home page: <http://www.kernel.org/pub/linux/utils/util-linux/>.
2088_ACEOF
2089ac_status=$?
2090fi
2091
2092if test "$ac_init_help" = "recursive"; then
2093  # If there are subdirs, report their specific --help.
2094  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2095    test -d "$ac_dir" ||
2096      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2097      continue
2098    ac_builddir=.
2099
2100case "$ac_dir" in
2101.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2102*)
2103  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2104  # A ".." for each directory in $ac_dir_suffix.
2105  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2106  case $ac_top_builddir_sub in
2107  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2108  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2109  esac ;;
2110esac
2111ac_abs_top_builddir=$ac_pwd
2112ac_abs_builddir=$ac_pwd$ac_dir_suffix
2113# for backward compatibility:
2114ac_top_builddir=$ac_top_build_prefix
2115
2116case $srcdir in
2117  .)  # We are building in place.
2118    ac_srcdir=.
2119    ac_top_srcdir=$ac_top_builddir_sub
2120    ac_abs_top_srcdir=$ac_pwd ;;
2121  [\\/]* | ?:[\\/]* )  # Absolute name.
2122    ac_srcdir=$srcdir$ac_dir_suffix;
2123    ac_top_srcdir=$srcdir
2124    ac_abs_top_srcdir=$srcdir ;;
2125  *) # Relative name.
2126    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2127    ac_top_srcdir=$ac_top_build_prefix$srcdir
2128    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2129esac
2130ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2131
2132    cd "$ac_dir" || { ac_status=$?; continue; }
2133    # Check for guested configure.
2134    if test -f "$ac_srcdir/configure.gnu"; then
2135      echo &&
2136      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2137    elif test -f "$ac_srcdir/configure"; then
2138      echo &&
2139      $SHELL "$ac_srcdir/configure" --help=recursive
2140    else
2141      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2142    fi || ac_status=$?
2143    cd "$ac_pwd" || { ac_status=$?; break; }
2144  done
2145fi
2146
2147test -n "$ac_init_help" && exit $ac_status
2148if $ac_init_version; then
2149  cat <<\_ACEOF
2150util-linux configure 2.25.2
2151generated by GNU Autoconf 2.69
2152
2153Copyright (C) 2012 Free Software Foundation, Inc.
2154This configure script is free software; the Free Software Foundation
2155gives unlimited permission to copy, distribute and modify it.
2156_ACEOF
2157  exit
2158fi
2159
2160## ------------------------ ##
2161## Autoconf initialization. ##
2162## ------------------------ ##
2163
2164# ac_fn_c_try_compile LINENO
2165# --------------------------
2166# Try to compile conftest.$ac_ext, and return whether this succeeded.
2167ac_fn_c_try_compile ()
2168{
2169  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170  rm -f conftest.$ac_objext
2171  if { { ac_try="$ac_compile"
2172case "(($ac_try" in
2173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174  *) ac_try_echo=$ac_try;;
2175esac
2176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177$as_echo "$ac_try_echo"; } >&5
2178  (eval "$ac_compile") 2>conftest.err
2179  ac_status=$?
2180  if test -s conftest.err; then
2181    grep -v '^ *+' conftest.err >conftest.er1
2182    cat conftest.er1 >&5
2183    mv -f conftest.er1 conftest.err
2184  fi
2185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186  test $ac_status = 0; } && {
2187	 test -z "$ac_c_werror_flag" ||
2188	 test ! -s conftest.err
2189       } && test -s conftest.$ac_objext; then :
2190  ac_retval=0
2191else
2192  $as_echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195	ac_retval=1
2196fi
2197  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198  as_fn_set_status $ac_retval
2199
2200} # ac_fn_c_try_compile
2201
2202# ac_fn_c_try_cpp LINENO
2203# ----------------------
2204# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2205ac_fn_c_try_cpp ()
2206{
2207  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208  if { { ac_try="$ac_cpp conftest.$ac_ext"
2209case "(($ac_try" in
2210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211  *) ac_try_echo=$ac_try;;
2212esac
2213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214$as_echo "$ac_try_echo"; } >&5
2215  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2216  ac_status=$?
2217  if test -s conftest.err; then
2218    grep -v '^ *+' conftest.err >conftest.er1
2219    cat conftest.er1 >&5
2220    mv -f conftest.er1 conftest.err
2221  fi
2222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223  test $ac_status = 0; } > conftest.i && {
2224	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2225	 test ! -s conftest.err
2226       }; then :
2227  ac_retval=0
2228else
2229  $as_echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
2231
2232    ac_retval=1
2233fi
2234  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235  as_fn_set_status $ac_retval
2236
2237} # ac_fn_c_try_cpp
2238
2239# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2240# -------------------------------------------------------
2241# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2242# the include files in INCLUDES and setting the cache variable VAR
2243# accordingly.
2244ac_fn_c_check_header_mongrel ()
2245{
2246  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247  if eval \${$3+:} false; then :
2248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249$as_echo_n "checking for $2... " >&6; }
2250if eval \${$3+:} false; then :
2251  $as_echo_n "(cached) " >&6
2252fi
2253eval ac_res=\$$3
2254	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
2256else
2257  # Is the header compilable?
2258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2259$as_echo_n "checking $2 usability... " >&6; }
2260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h.  */
2262$4
2263#include <$2>
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266  ac_header_compiler=yes
2267else
2268  ac_header_compiler=no
2269fi
2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2272$as_echo "$ac_header_compiler" >&6; }
2273
2274# Is the header present?
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2276$as_echo_n "checking $2 presence... " >&6; }
2277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h.  */
2279#include <$2>
2280_ACEOF
2281if ac_fn_c_try_cpp "$LINENO"; then :
2282  ac_header_preproc=yes
2283else
2284  ac_header_preproc=no
2285fi
2286rm -f conftest.err conftest.i conftest.$ac_ext
2287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2288$as_echo "$ac_header_preproc" >&6; }
2289
2290# So?  What about this header?
2291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2292  yes:no: )
2293    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2294$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2295    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2296$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2297    ;;
2298  no:yes:* )
2299    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2300$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2301    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2302$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2303    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2304$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2305    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2306$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2307    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2308$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2309( $as_echo "## ------------------------------ ##
2310## Report this to kzak@redhat.com ##
2311## ------------------------------ ##"
2312     ) | sed "s/^/$as_me: WARNING:     /" >&2
2313    ;;
2314esac
2315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2316$as_echo_n "checking for $2... " >&6; }
2317if eval \${$3+:} false; then :
2318  $as_echo_n "(cached) " >&6
2319else
2320  eval "$3=\$ac_header_compiler"
2321fi
2322eval ac_res=\$$3
2323	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324$as_echo "$ac_res" >&6; }
2325fi
2326  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327
2328} # ac_fn_c_check_header_mongrel
2329
2330# ac_fn_c_try_run LINENO
2331# ----------------------
2332# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2333# that executables *can* be run.
2334ac_fn_c_try_run ()
2335{
2336  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337  if { { ac_try="$ac_link"
2338case "(($ac_try" in
2339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340  *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343$as_echo "$ac_try_echo"; } >&5
2344  (eval "$ac_link") 2>&5
2345  ac_status=$?
2346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2348  { { case "(($ac_try" in
2349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350  *) ac_try_echo=$ac_try;;
2351esac
2352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353$as_echo "$ac_try_echo"; } >&5
2354  (eval "$ac_try") 2>&5
2355  ac_status=$?
2356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2357  test $ac_status = 0; }; }; then :
2358  ac_retval=0
2359else
2360  $as_echo "$as_me: program exited with status $ac_status" >&5
2361       $as_echo "$as_me: failed program was:" >&5
2362sed 's/^/| /' conftest.$ac_ext >&5
2363
2364       ac_retval=$ac_status
2365fi
2366  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2367  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368  as_fn_set_status $ac_retval
2369
2370} # ac_fn_c_try_run
2371
2372# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2373# -------------------------------------------------------
2374# Tests whether HEADER exists and can be compiled using the include files in
2375# INCLUDES, setting the cache variable VAR accordingly.
2376ac_fn_c_check_header_compile ()
2377{
2378  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380$as_echo_n "checking for $2... " >&6; }
2381if eval \${$3+:} false; then :
2382  $as_echo_n "(cached) " >&6
2383else
2384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385/* end confdefs.h.  */
2386$4
2387#include <$2>
2388_ACEOF
2389if ac_fn_c_try_compile "$LINENO"; then :
2390  eval "$3=yes"
2391else
2392  eval "$3=no"
2393fi
2394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395fi
2396eval ac_res=\$$3
2397	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398$as_echo "$ac_res" >&6; }
2399  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400
2401} # ac_fn_c_check_header_compile
2402
2403# ac_fn_c_try_link LINENO
2404# -----------------------
2405# Try to link conftest.$ac_ext, and return whether this succeeded.
2406ac_fn_c_try_link ()
2407{
2408  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409  rm -f conftest.$ac_objext conftest$ac_exeext
2410  if { { ac_try="$ac_link"
2411case "(($ac_try" in
2412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413  *) ac_try_echo=$ac_try;;
2414esac
2415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416$as_echo "$ac_try_echo"; } >&5
2417  (eval "$ac_link") 2>conftest.err
2418  ac_status=$?
2419  if test -s conftest.err; then
2420    grep -v '^ *+' conftest.err >conftest.er1
2421    cat conftest.er1 >&5
2422    mv -f conftest.er1 conftest.err
2423  fi
2424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425  test $ac_status = 0; } && {
2426	 test -z "$ac_c_werror_flag" ||
2427	 test ! -s conftest.err
2428       } && test -s conftest$ac_exeext && {
2429	 test "$cross_compiling" = yes ||
2430	 test -x conftest$ac_exeext
2431       }; then :
2432  ac_retval=0
2433else
2434  $as_echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437	ac_retval=1
2438fi
2439  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2440  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2441  # interfere with the next link command; also delete a directory that is
2442  # left behind by Apple's compiler.  We do this before executing the actions.
2443  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2444  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2445  as_fn_set_status $ac_retval
2446
2447} # ac_fn_c_try_link
2448
2449# ac_fn_c_check_func LINENO FUNC VAR
2450# ----------------------------------
2451# Tests whether FUNC exists, setting the cache variable VAR accordingly
2452ac_fn_c_check_func ()
2453{
2454  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456$as_echo_n "checking for $2... " >&6; }
2457if eval \${$3+:} false; then :
2458  $as_echo_n "(cached) " >&6
2459else
2460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461/* end confdefs.h.  */
2462/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2463   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2464#define $2 innocuous_$2
2465
2466/* System header to define __stub macros and hopefully few prototypes,
2467    which can conflict with char $2 (); below.
2468    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469    <limits.h> exists even on freestanding compilers.  */
2470
2471#ifdef __STDC__
2472# include <limits.h>
2473#else
2474# include <assert.h>
2475#endif
2476
2477#undef $2
2478
2479/* Override any GCC internal prototype to avoid an error.
2480   Use char because int might match the return type of a GCC
2481   builtin and then its argument prototype would still apply.  */
2482#ifdef __cplusplus
2483extern "C"
2484#endif
2485char $2 ();
2486/* The GNU C library defines this for functions which it implements
2487    to always fail with ENOSYS.  Some functions are actually named
2488    something starting with __ and the normal name is an alias.  */
2489#if defined __stub_$2 || defined __stub___$2
2490choke me
2491#endif
2492
2493int
2494main ()
2495{
2496return $2 ();
2497  ;
2498  return 0;
2499}
2500_ACEOF
2501if ac_fn_c_try_link "$LINENO"; then :
2502  eval "$3=yes"
2503else
2504  eval "$3=no"
2505fi
2506rm -f core conftest.err conftest.$ac_objext \
2507    conftest$ac_exeext conftest.$ac_ext
2508fi
2509eval ac_res=\$$3
2510	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511$as_echo "$ac_res" >&6; }
2512  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513
2514} # ac_fn_c_check_func
2515
2516# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2517# ----------------------------------------------------
2518# Tries to find if the field MEMBER exists in type AGGR, after including
2519# INCLUDES, setting cache variable VAR accordingly.
2520ac_fn_c_check_member ()
2521{
2522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2524$as_echo_n "checking for $2.$3... " >&6; }
2525if eval \${$4+:} false; then :
2526  $as_echo_n "(cached) " >&6
2527else
2528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529/* end confdefs.h.  */
2530$5
2531int
2532main ()
2533{
2534static $2 ac_aggr;
2535if (ac_aggr.$3)
2536return 0;
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541if ac_fn_c_try_compile "$LINENO"; then :
2542  eval "$4=yes"
2543else
2544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545/* end confdefs.h.  */
2546$5
2547int
2548main ()
2549{
2550static $2 ac_aggr;
2551if (sizeof ac_aggr.$3)
2552return 0;
2553  ;
2554  return 0;
2555}
2556_ACEOF
2557if ac_fn_c_try_compile "$LINENO"; then :
2558  eval "$4=yes"
2559else
2560  eval "$4=no"
2561fi
2562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563fi
2564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565fi
2566eval ac_res=\$$4
2567	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568$as_echo "$ac_res" >&6; }
2569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2570
2571} # ac_fn_c_check_member
2572
2573# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2574# ---------------------------------------------
2575# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2576# accordingly.
2577ac_fn_c_check_decl ()
2578{
2579  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580  as_decl_name=`echo $2|sed 's/ *(.*//'`
2581  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2583$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2584if eval \${$3+:} false; then :
2585  $as_echo_n "(cached) " >&6
2586else
2587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588/* end confdefs.h.  */
2589$4
2590int
2591main ()
2592{
2593#ifndef $as_decl_name
2594#ifdef __cplusplus
2595  (void) $as_decl_use;
2596#else
2597  (void) $as_decl_name;
2598#endif
2599#endif
2600
2601  ;
2602  return 0;
2603}
2604_ACEOF
2605if ac_fn_c_try_compile "$LINENO"; then :
2606  eval "$3=yes"
2607else
2608  eval "$3=no"
2609fi
2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611fi
2612eval ac_res=\$$3
2613	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614$as_echo "$ac_res" >&6; }
2615  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2616
2617} # ac_fn_c_check_decl
2618
2619# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2620# -------------------------------------------
2621# Tests whether TYPE exists after having included INCLUDES, setting cache
2622# variable VAR accordingly.
2623ac_fn_c_check_type ()
2624{
2625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2627$as_echo_n "checking for $2... " >&6; }
2628if eval \${$3+:} false; then :
2629  $as_echo_n "(cached) " >&6
2630else
2631  eval "$3=no"
2632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633/* end confdefs.h.  */
2634$4
2635int
2636main ()
2637{
2638if (sizeof ($2))
2639	 return 0;
2640  ;
2641  return 0;
2642}
2643_ACEOF
2644if ac_fn_c_try_compile "$LINENO"; then :
2645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h.  */
2647$4
2648int
2649main ()
2650{
2651if (sizeof (($2)))
2652	    return 0;
2653  ;
2654  return 0;
2655}
2656_ACEOF
2657if ac_fn_c_try_compile "$LINENO"; then :
2658
2659else
2660  eval "$3=yes"
2661fi
2662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663fi
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665fi
2666eval ac_res=\$$3
2667	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668$as_echo "$ac_res" >&6; }
2669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670
2671} # ac_fn_c_check_type
2672cat >config.log <<_ACEOF
2673This file contains any messages produced by compilers while
2674running configure, to aid debugging if configure makes a mistake.
2675
2676It was created by util-linux $as_me 2.25.2, which was
2677generated by GNU Autoconf 2.69.  Invocation command line was
2678
2679  $ $0 $@
2680
2681_ACEOF
2682exec 5>>config.log
2683{
2684cat <<_ASUNAME
2685## --------- ##
2686## Platform. ##
2687## --------- ##
2688
2689hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2690uname -m = `(uname -m) 2>/dev/null || echo unknown`
2691uname -r = `(uname -r) 2>/dev/null || echo unknown`
2692uname -s = `(uname -s) 2>/dev/null || echo unknown`
2693uname -v = `(uname -v) 2>/dev/null || echo unknown`
2694
2695/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2696/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2697
2698/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2699/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2700/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2701/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2702/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2703/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2704/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2705
2706_ASUNAME
2707
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713    $as_echo "PATH: $as_dir"
2714  done
2715IFS=$as_save_IFS
2716
2717} >&5
2718
2719cat >&5 <<_ACEOF
2720
2721
2722## ----------- ##
2723## Core tests. ##
2724## ----------- ##
2725
2726_ACEOF
2727
2728
2729# Keep a trace of the command line.
2730# Strip out --no-create and --no-recursion so they do not pile up.
2731# Strip out --silent because we don't want to record it for future runs.
2732# Also quote any args containing shell meta-characters.
2733# Make two passes to allow for proper duplicate-argument suppression.
2734ac_configure_args=
2735ac_configure_args0=
2736ac_configure_args1=
2737ac_must_keep_next=false
2738for ac_pass in 1 2
2739do
2740  for ac_arg
2741  do
2742    case $ac_arg in
2743    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2744    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2745    | -silent | --silent | --silen | --sile | --sil)
2746      continue ;;
2747    *\'*)
2748      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2749    esac
2750    case $ac_pass in
2751    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752    2)
2753      as_fn_append ac_configure_args1 " '$ac_arg'"
2754      if test $ac_must_keep_next = true; then
2755	ac_must_keep_next=false # Got value, back to normal.
2756      else
2757	case $ac_arg in
2758	  *=* | --config-cache | -C | -disable-* | --disable-* \
2759	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2760	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2761	  | -with-* | --with-* | -without-* | --without-* | --x)
2762	    case "$ac_configure_args0 " in
2763	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2764	    esac
2765	    ;;
2766	  -* ) ac_must_keep_next=true ;;
2767	esac
2768      fi
2769      as_fn_append ac_configure_args " '$ac_arg'"
2770      ;;
2771    esac
2772  done
2773done
2774{ ac_configure_args0=; unset ac_configure_args0;}
2775{ ac_configure_args1=; unset ac_configure_args1;}
2776
2777# When interrupted or exit'd, cleanup temporary files, and complete
2778# config.log.  We remove comments because anyway the quotes in there
2779# would cause problems or look ugly.
2780# WARNING: Use '\'' to represent an apostrophe within the trap.
2781# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2782trap 'exit_status=$?
2783  # Save into config.log some information that might help in debugging.
2784  {
2785    echo
2786
2787    $as_echo "## ---------------- ##
2788## Cache variables. ##
2789## ---------------- ##"
2790    echo
2791    # The following way of writing the cache mishandles newlines in values,
2792(
2793  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2794    eval ac_val=\$$ac_var
2795    case $ac_val in #(
2796    *${as_nl}*)
2797      case $ac_var in #(
2798      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2799$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2800      esac
2801      case $ac_var in #(
2802      _ | IFS | as_nl) ;; #(
2803      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2804      *) { eval $ac_var=; unset $ac_var;} ;;
2805      esac ;;
2806    esac
2807  done
2808  (set) 2>&1 |
2809    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2810    *${as_nl}ac_space=\ *)
2811      sed -n \
2812	"s/'\''/'\''\\\\'\'''\''/g;
2813	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2814      ;; #(
2815    *)
2816      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2817      ;;
2818    esac |
2819    sort
2820)
2821    echo
2822
2823    $as_echo "## ----------------- ##
2824## Output variables. ##
2825## ----------------- ##"
2826    echo
2827    for ac_var in $ac_subst_vars
2828    do
2829      eval ac_val=\$$ac_var
2830      case $ac_val in
2831      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832      esac
2833      $as_echo "$ac_var='\''$ac_val'\''"
2834    done | sort
2835    echo
2836
2837    if test -n "$ac_subst_files"; then
2838      $as_echo "## ------------------- ##
2839## File substitutions. ##
2840## ------------------- ##"
2841      echo
2842      for ac_var in $ac_subst_files
2843      do
2844	eval ac_val=\$$ac_var
2845	case $ac_val in
2846	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847	esac
2848	$as_echo "$ac_var='\''$ac_val'\''"
2849      done | sort
2850      echo
2851    fi
2852
2853    if test -s confdefs.h; then
2854      $as_echo "## ----------- ##
2855## confdefs.h. ##
2856## ----------- ##"
2857      echo
2858      cat confdefs.h
2859      echo
2860    fi
2861    test "$ac_signal" != 0 &&
2862      $as_echo "$as_me: caught signal $ac_signal"
2863    $as_echo "$as_me: exit $exit_status"
2864  } >&5
2865  rm -f core *.core core.conftest.* &&
2866    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2867    exit $exit_status
2868' 0
2869for ac_signal in 1 2 13 15; do
2870  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2871done
2872ac_signal=0
2873
2874# confdefs.h avoids OS command line length limits that DEFS can exceed.
2875rm -f -r conftest* confdefs.h
2876
2877$as_echo "/* confdefs.h */" > confdefs.h
2878
2879# Predefined preprocessor variables.
2880
2881cat >>confdefs.h <<_ACEOF
2882#define PACKAGE_NAME "$PACKAGE_NAME"
2883_ACEOF
2884
2885cat >>confdefs.h <<_ACEOF
2886#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2887_ACEOF
2888
2889cat >>confdefs.h <<_ACEOF
2890#define PACKAGE_VERSION "$PACKAGE_VERSION"
2891_ACEOF
2892
2893cat >>confdefs.h <<_ACEOF
2894#define PACKAGE_STRING "$PACKAGE_STRING"
2895_ACEOF
2896
2897cat >>confdefs.h <<_ACEOF
2898#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2899_ACEOF
2900
2901cat >>confdefs.h <<_ACEOF
2902#define PACKAGE_URL "$PACKAGE_URL"
2903_ACEOF
2904
2905
2906# Let the site file select an alternate cache file if it wants to.
2907# Prefer an explicitly selected file to automatically selected ones.
2908ac_site_file1=NONE
2909ac_site_file2=NONE
2910if test -n "$CONFIG_SITE"; then
2911  # We do not want a PATH search for config.site.
2912  case $CONFIG_SITE in #((
2913    -*)  ac_site_file1=./$CONFIG_SITE;;
2914    */*) ac_site_file1=$CONFIG_SITE;;
2915    *)   ac_site_file1=./$CONFIG_SITE;;
2916  esac
2917elif test "x$prefix" != xNONE; then
2918  ac_site_file1=$prefix/share/config.site
2919  ac_site_file2=$prefix/etc/config.site
2920else
2921  ac_site_file1=$ac_default_prefix/share/config.site
2922  ac_site_file2=$ac_default_prefix/etc/config.site
2923fi
2924for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925do
2926  test "x$ac_site_file" = xNONE && continue
2927  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2928    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2929$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2930    sed 's/^/| /' "$ac_site_file" >&5
2931    . "$ac_site_file" \
2932      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934as_fn_error $? "failed to load site script $ac_site_file
2935See \`config.log' for more details" "$LINENO" 5; }
2936  fi
2937done
2938
2939if test -r "$cache_file"; then
2940  # Some versions of bash will fail to source /dev/null (special files
2941  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2942  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2943    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2944$as_echo "$as_me: loading cache $cache_file" >&6;}
2945    case $cache_file in
2946      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2947      *)                      . "./$cache_file";;
2948    esac
2949  fi
2950else
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2952$as_echo "$as_me: creating cache $cache_file" >&6;}
2953  >$cache_file
2954fi
2955
2956gt_needs="$gt_needs "
2957# Check that the precious variables saved in the cache have kept the same
2958# value.
2959ac_cache_corrupted=false
2960for ac_var in $ac_precious_vars; do
2961  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2962  eval ac_new_set=\$ac_env_${ac_var}_set
2963  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2964  eval ac_new_val=\$ac_env_${ac_var}_value
2965  case $ac_old_set,$ac_new_set in
2966    set,)
2967      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2968$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2969      ac_cache_corrupted=: ;;
2970    ,set)
2971      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2972$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2973      ac_cache_corrupted=: ;;
2974    ,);;
2975    *)
2976      if test "x$ac_old_val" != "x$ac_new_val"; then
2977	# differences in whitespace do not lead to failure.
2978	ac_old_val_w=`echo x $ac_old_val`
2979	ac_new_val_w=`echo x $ac_new_val`
2980	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2981	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2982$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2983	  ac_cache_corrupted=:
2984	else
2985	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2986$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2987	  eval $ac_var=\$ac_old_val
2988	fi
2989	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2990$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2991	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2992$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2993      fi;;
2994  esac
2995  # Pass precious variables to config.status.
2996  if test "$ac_new_set" = set; then
2997    case $ac_new_val in
2998    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2999    *) ac_arg=$ac_var=$ac_new_val ;;
3000    esac
3001    case " $ac_configure_args " in
3002      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3003      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3004    esac
3005  fi
3006done
3007if $ac_cache_corrupted; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3011$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3012  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3013fi
3014## -------------------- ##
3015## Main body of script. ##
3016## -------------------- ##
3017
3018ac_ext=c
3019ac_cpp='$CPP $CPPFLAGS'
3020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025
3026
3027
3028ac_aux_dir=
3029for ac_dir in config "$srcdir"/config; do
3030  if test -f "$ac_dir/install-sh"; then
3031    ac_aux_dir=$ac_dir
3032    ac_install_sh="$ac_aux_dir/install-sh -c"
3033    break
3034  elif test -f "$ac_dir/install.sh"; then
3035    ac_aux_dir=$ac_dir
3036    ac_install_sh="$ac_aux_dir/install.sh -c"
3037    break
3038  elif test -f "$ac_dir/shtool"; then
3039    ac_aux_dir=$ac_dir
3040    ac_install_sh="$ac_aux_dir/shtool install -c"
3041    break
3042  fi
3043done
3044if test -z "$ac_aux_dir"; then
3045  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3046fi
3047
3048# These three variables are undocumented and unsupported,
3049# and are intended to be withdrawn in a future Autoconf release.
3050# They can cause serious problems if a builder's source tree is in a directory
3051# whose full name contains unusual characters.
3052ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3053ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3054ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3055
3056
3057
3058ac_ext=c
3059ac_cpp='$CPP $CPPFLAGS'
3060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3062ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063if test -n "$ac_tool_prefix"; then
3064  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3065set dummy ${ac_tool_prefix}gcc; ac_word=$2
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067$as_echo_n "checking for $ac_word... " >&6; }
3068if ${ac_cv_prog_CC+:} false; then :
3069  $as_echo_n "(cached) " >&6
3070else
3071  if test -n "$CC"; then
3072  ac_cv_prog_CC="$CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  test -z "$as_dir" && as_dir=.
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089fi
3090fi
3091CC=$ac_cv_prog_CC
3092if test -n "$CC"; then
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094$as_echo "$CC" >&6; }
3095else
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098fi
3099
3100
3101fi
3102if test -z "$ac_cv_prog_CC"; then
3103  ac_ct_CC=$CC
3104  # Extract the first word of "gcc", so it can be a program name with args.
3105set dummy gcc; ac_word=$2
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if ${ac_cv_prog_ac_ct_CC+:} false; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  if test -n "$ac_ct_CC"; then
3112  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121    ac_cv_prog_ac_ct_CC="gcc"
3122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123    break 2
3124  fi
3125done
3126  done
3127IFS=$as_save_IFS
3128
3129fi
3130fi
3131ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132if test -n "$ac_ct_CC"; then
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3134$as_echo "$ac_ct_CC" >&6; }
3135else
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137$as_echo "no" >&6; }
3138fi
3139
3140  if test "x$ac_ct_CC" = x; then
3141    CC=""
3142  else
3143    case $cross_compiling:$ac_tool_warned in
3144yes:)
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147ac_tool_warned=yes ;;
3148esac
3149    CC=$ac_ct_CC
3150  fi
3151else
3152  CC="$ac_cv_prog_CC"
3153fi
3154
3155if test -z "$CC"; then
3156          if test -n "$ac_tool_prefix"; then
3157    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3158set dummy ${ac_tool_prefix}cc; 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; }
3161if ${ac_cv_prog_CC+:} false; then :
3162  $as_echo_n "(cached) " >&6
3163else
3164  if test -n "$CC"; then
3165  ac_cv_prog_CC="$CC" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170  IFS=$as_save_IFS
3171  test -z "$as_dir" && as_dir=.
3172    for ac_exec_ext in '' $ac_executable_extensions; do
3173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174    ac_cv_prog_CC="${ac_tool_prefix}cc"
3175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176    break 2
3177  fi
3178done
3179  done
3180IFS=$as_save_IFS
3181
3182fi
3183fi
3184CC=$ac_cv_prog_CC
3185if test -n "$CC"; then
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187$as_echo "$CC" >&6; }
3188else
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191fi
3192
3193
3194  fi
3195fi
3196if test -z "$CC"; then
3197  # Extract the first word of "cc", so it can be a program name with args.
3198set dummy cc; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if ${ac_cv_prog_CC+:} false; then :
3202  $as_echo_n "(cached) " >&6
3203else
3204  if test -n "$CC"; then
3205  ac_cv_prog_CC="$CC" # Let the user override the test.
3206else
3207  ac_prog_rejected=no
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211  IFS=$as_save_IFS
3212  test -z "$as_dir" && as_dir=.
3213    for ac_exec_ext in '' $ac_executable_extensions; do
3214  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3216       ac_prog_rejected=yes
3217       continue
3218     fi
3219    ac_cv_prog_CC="cc"
3220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221    break 2
3222  fi
3223done
3224  done
3225IFS=$as_save_IFS
3226
3227if test $ac_prog_rejected = yes; then
3228  # We found a bogon in the path, so make sure we never use it.
3229  set dummy $ac_cv_prog_CC
3230  shift
3231  if test $# != 0; then
3232    # We chose a different compiler from the bogus one.
3233    # However, it has the same basename, so the bogon will be chosen
3234    # first if we set CC to just the basename; use the full file name.
3235    shift
3236    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3237  fi
3238fi
3239fi
3240fi
3241CC=$ac_cv_prog_CC
3242if test -n "$CC"; then
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244$as_echo "$CC" >&6; }
3245else
3246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251fi
3252if test -z "$CC"; then
3253  if test -n "$ac_tool_prefix"; then
3254  for ac_prog in cl.exe
3255  do
3256    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259$as_echo_n "checking for $ac_word... " >&6; }
3260if ${ac_cv_prog_CC+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  if test -n "$CC"; then
3264  ac_cv_prog_CC="$CC" # Let the user override the test.
3265else
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  test -z "$as_dir" && as_dir=.
3271    for ac_exec_ext in '' $ac_executable_extensions; do
3272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275    break 2
3276  fi
3277done
3278  done
3279IFS=$as_save_IFS
3280
3281fi
3282fi
3283CC=$ac_cv_prog_CC
3284if test -n "$CC"; then
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286$as_echo "$CC" >&6; }
3287else
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289$as_echo "no" >&6; }
3290fi
3291
3292
3293    test -n "$CC" && break
3294  done
3295fi
3296if test -z "$CC"; then
3297  ac_ct_CC=$CC
3298  for ac_prog in cl.exe
3299do
3300  # Extract the first word of "$ac_prog", so it can be a program name with args.
3301set dummy $ac_prog; ac_word=$2
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303$as_echo_n "checking for $ac_word... " >&6; }
3304if ${ac_cv_prog_ac_ct_CC+:} false; then :
3305  $as_echo_n "(cached) " >&6
3306else
3307  if test -n "$ac_ct_CC"; then
3308  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3309else
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313  IFS=$as_save_IFS
3314  test -z "$as_dir" && as_dir=.
3315    for ac_exec_ext in '' $ac_executable_extensions; do
3316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317    ac_cv_prog_ac_ct_CC="$ac_prog"
3318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319    break 2
3320  fi
3321done
3322  done
3323IFS=$as_save_IFS
3324
3325fi
3326fi
3327ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328if test -n "$ac_ct_CC"; then
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330$as_echo "$ac_ct_CC" >&6; }
3331else
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
3334fi
3335
3336
3337  test -n "$ac_ct_CC" && break
3338done
3339
3340  if test "x$ac_ct_CC" = x; then
3341    CC=""
3342  else
3343    case $cross_compiling:$ac_tool_warned in
3344yes:)
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3347ac_tool_warned=yes ;;
3348esac
3349    CC=$ac_ct_CC
3350  fi
3351fi
3352
3353fi
3354
3355
3356test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358as_fn_error $? "no acceptable C compiler found in \$PATH
3359See \`config.log' for more details" "$LINENO" 5; }
3360
3361# Provide some information about the compiler.
3362$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3363set X $ac_compile
3364ac_compiler=$2
3365for ac_option in --version -v -V -qversion; do
3366  { { ac_try="$ac_compiler $ac_option >&5"
3367case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3374  ac_status=$?
3375  if test -s conftest.err; then
3376    sed '10a\
3377... rest of stderr output deleted ...
3378         10q' conftest.err >conftest.er1
3379    cat conftest.er1 >&5
3380  fi
3381  rm -f conftest.er1 conftest.err
3382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383  test $ac_status = 0; }
3384done
3385
3386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h.  */
3388
3389int
3390main ()
3391{
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397ac_clean_files_save=$ac_clean_files
3398ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3399# Try to create an executable without -o first, disregard a.out.
3400# It will help us diagnose broken compilers, and finding out an intuition
3401# of exeext.
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3403$as_echo_n "checking whether the C compiler works... " >&6; }
3404ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3405
3406# The possible output files:
3407ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3408
3409ac_rmfiles=
3410for ac_file in $ac_files
3411do
3412  case $ac_file in
3413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415  esac
3416done
3417rm -f $ac_rmfiles
3418
3419if { { ac_try="$ac_link_default"
3420case "(($ac_try" in
3421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422  *) ac_try_echo=$ac_try;;
3423esac
3424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425$as_echo "$ac_try_echo"; } >&5
3426  (eval "$ac_link_default") 2>&5
3427  ac_status=$?
3428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429  test $ac_status = 0; }; then :
3430  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3431# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3432# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3433# so that the user can short-circuit this test for compilers unknown to
3434# Autoconf.
3435for ac_file in $ac_files ''
3436do
3437  test -f "$ac_file" || continue
3438  case $ac_file in
3439    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3440	;;
3441    [ab].out )
3442	# We found the default executable, but exeext='' is most
3443	# certainly right.
3444	break;;
3445    *.* )
3446	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3447	then :; else
3448	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449	fi
3450	# We set ac_cv_exeext here because the later test for it is not
3451	# safe: cross compilers may not add the suffix if given an `-o'
3452	# argument, so we may need to know it at that point already.
3453	# Even if this section looks crufty: it has the advantage of
3454	# actually working.
3455	break;;
3456    * )
3457	break;;
3458  esac
3459done
3460test "$ac_cv_exeext" = no && ac_cv_exeext=
3461
3462else
3463  ac_file=''
3464fi
3465if test -z "$ac_file"; then :
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467$as_echo "no" >&6; }
3468$as_echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error 77 "C compiler cannot create executables
3474See \`config.log' for more details" "$LINENO" 5; }
3475else
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477$as_echo "yes" >&6; }
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3480$as_echo_n "checking for C compiler default output file name... " >&6; }
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3482$as_echo "$ac_file" >&6; }
3483ac_exeext=$ac_cv_exeext
3484
3485rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3486ac_clean_files=$ac_clean_files_save
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3488$as_echo_n "checking for suffix of executables... " >&6; }
3489if { { ac_try="$ac_link"
3490case "(($ac_try" in
3491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492  *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496  (eval "$ac_link") 2>&5
3497  ac_status=$?
3498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499  test $ac_status = 0; }; then :
3500  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3501# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3502# work properly (i.e., refer to `conftest.exe'), while it won't with
3503# `rm'.
3504for ac_file in conftest.exe conftest conftest.*; do
3505  test -f "$ac_file" || continue
3506  case $ac_file in
3507    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509	  break;;
3510    * ) break;;
3511  esac
3512done
3513else
3514  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3517See \`config.log' for more details" "$LINENO" 5; }
3518fi
3519rm -f conftest conftest$ac_cv_exeext
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3521$as_echo "$ac_cv_exeext" >&6; }
3522
3523rm -f conftest.$ac_ext
3524EXEEXT=$ac_cv_exeext
3525ac_exeext=$EXEEXT
3526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528#include <stdio.h>
3529int
3530main ()
3531{
3532FILE *f = fopen ("conftest.out", "w");
3533 return ferror (f) || fclose (f) != 0;
3534
3535  ;
3536  return 0;
3537}
3538_ACEOF
3539ac_clean_files="$ac_clean_files conftest.out"
3540# Check that the compiler produces executables we can run.  If not, either
3541# the compiler is broken, or we cross compile.
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3543$as_echo_n "checking whether we are cross compiling... " >&6; }
3544if test "$cross_compiling" != yes; then
3545  { { ac_try="$ac_link"
3546case "(($ac_try" in
3547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548  *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
3552  (eval "$ac_link") 2>&5
3553  ac_status=$?
3554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555  test $ac_status = 0; }
3556  if { ac_try='./conftest$ac_cv_exeext'
3557  { { case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562$as_echo "$ac_try_echo"; } >&5
3563  (eval "$ac_try") 2>&5
3564  ac_status=$?
3565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566  test $ac_status = 0; }; }; then
3567    cross_compiling=no
3568  else
3569    if test "$cross_compiling" = maybe; then
3570	cross_compiling=yes
3571    else
3572	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574as_fn_error $? "cannot run C compiled programs.
3575If you meant to cross compile, use \`--host'.
3576See \`config.log' for more details" "$LINENO" 5; }
3577    fi
3578  fi
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3581$as_echo "$cross_compiling" >&6; }
3582
3583rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3584ac_clean_files=$ac_clean_files_save
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3586$as_echo_n "checking for suffix of object files... " >&6; }
3587if ${ac_cv_objext+:} false; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601rm -f conftest.o conftest.obj
3602if { { ac_try="$ac_compile"
3603case "(($ac_try" in
3604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605  *) ac_try_echo=$ac_try;;
3606esac
3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608$as_echo "$ac_try_echo"; } >&5
3609  (eval "$ac_compile") 2>&5
3610  ac_status=$?
3611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612  test $ac_status = 0; }; then :
3613  for ac_file in conftest.o conftest.obj conftest.*; do
3614  test -f "$ac_file" || continue;
3615  case $ac_file in
3616    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618       break;;
3619  esac
3620done
3621else
3622  $as_echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627as_fn_error $? "cannot compute suffix of object files: cannot compile
3628See \`config.log' for more details" "$LINENO" 5; }
3629fi
3630rm -f conftest.$ac_cv_objext conftest.$ac_ext
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3633$as_echo "$ac_cv_objext" >&6; }
3634OBJEXT=$ac_cv_objext
3635ac_objext=$OBJEXT
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3637$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3638if ${ac_cv_c_compiler_gnu+:} false; then :
3639  $as_echo_n "(cached) " >&6
3640else
3641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643
3644int
3645main ()
3646{
3647#ifndef __GNUC__
3648       choke me
3649#endif
3650
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655if ac_fn_c_try_compile "$LINENO"; then :
3656  ac_compiler_gnu=yes
3657else
3658  ac_compiler_gnu=no
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3665$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666if test $ac_compiler_gnu = yes; then
3667  GCC=yes
3668else
3669  GCC=
3670fi
3671ac_test_CFLAGS=${CFLAGS+set}
3672ac_save_CFLAGS=$CFLAGS
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3674$as_echo_n "checking whether $CC accepts -g... " >&6; }
3675if ${ac_cv_prog_cc_g+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  ac_save_c_werror_flag=$ac_c_werror_flag
3679   ac_c_werror_flag=yes
3680   ac_cv_prog_cc_g=no
3681   CFLAGS="-g"
3682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693if ac_fn_c_try_compile "$LINENO"; then :
3694  ac_cv_prog_cc_g=yes
3695else
3696  CFLAGS=""
3697      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708if ac_fn_c_try_compile "$LINENO"; then :
3709
3710else
3711  ac_c_werror_flag=$ac_save_c_werror_flag
3712	 CFLAGS="-g"
3713	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725  ac_cv_prog_cc_g=yes
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730fi
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732   ac_c_werror_flag=$ac_save_c_werror_flag
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3735$as_echo "$ac_cv_prog_cc_g" >&6; }
3736if test "$ac_test_CFLAGS" = set; then
3737  CFLAGS=$ac_save_CFLAGS
3738elif test $ac_cv_prog_cc_g = yes; then
3739  if test "$GCC" = yes; then
3740    CFLAGS="-g -O2"
3741  else
3742    CFLAGS="-g"
3743  fi
3744else
3745  if test "$GCC" = yes; then
3746    CFLAGS="-O2"
3747  else
3748    CFLAGS=
3749  fi
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3752$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3753if ${ac_cv_prog_cc_c89+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  ac_cv_prog_cc_c89=no
3757ac_save_CC=$CC
3758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760#include <stdarg.h>
3761#include <stdio.h>
3762struct stat;
3763/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3764struct buf { int x; };
3765FILE * (*rcsopen) (struct buf *, struct stat *, int);
3766static char *e (p, i)
3767     char **p;
3768     int i;
3769{
3770  return p[i];
3771}
3772static char *f (char * (*g) (char **, int), char **p, ...)
3773{
3774  char *s;
3775  va_list v;
3776  va_start (v,p);
3777  s = g (p, va_arg (v,int));
3778  va_end (v);
3779  return s;
3780}
3781
3782/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3783   function prototypes and stuff, but not '\xHH' hex character constants.
3784   These don't provoke an error unfortunately, instead are silently treated
3785   as 'x'.  The following induces an error, until -std is added to get
3786   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3787   array size at least.  It's necessary to write '\x00'==0 to get something
3788   that's true only with -std.  */
3789int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790
3791/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3792   inside strings and character constants.  */
3793#define FOO(x) 'x'
3794int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795
3796int test (int i, double x);
3797struct s1 {int (*f) (int a);};
3798struct s2 {int (*f) (double a);};
3799int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3800int argc;
3801char **argv;
3802int
3803main ()
3804{
3805return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3806  ;
3807  return 0;
3808}
3809_ACEOF
3810for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3811	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812do
3813  CC="$ac_save_CC $ac_arg"
3814  if ac_fn_c_try_compile "$LINENO"; then :
3815  ac_cv_prog_cc_c89=$ac_arg
3816fi
3817rm -f core conftest.err conftest.$ac_objext
3818  test "x$ac_cv_prog_cc_c89" != "xno" && break
3819done
3820rm -f conftest.$ac_ext
3821CC=$ac_save_CC
3822
3823fi
3824# AC_CACHE_VAL
3825case "x$ac_cv_prog_cc_c89" in
3826  x)
3827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3828$as_echo "none needed" >&6; } ;;
3829  xno)
3830    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3831$as_echo "unsupported" >&6; } ;;
3832  *)
3833    CC="$CC $ac_cv_prog_cc_c89"
3834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3835$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3836esac
3837if test "x$ac_cv_prog_cc_c89" != xno; then :
3838
3839fi
3840
3841ac_ext=c
3842ac_cpp='$CPP $CPPFLAGS'
3843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3854$as_echo_n "checking how to run the C preprocessor... " >&6; }
3855# On Suns, sometimes $CPP names a directory.
3856if test -n "$CPP" && test -d "$CPP"; then
3857  CPP=
3858fi
3859if test -z "$CPP"; then
3860  if ${ac_cv_prog_CPP+:} false; then :
3861  $as_echo_n "(cached) " >&6
3862else
3863      # Double quotes because CPP needs to be expanded
3864    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3865    do
3866      ac_preproc_ok=false
3867for ac_c_preproc_warn_flag in '' yes
3868do
3869  # Use a header file that comes with gcc, so configuring glibc
3870  # with a fresh cross-compiler works.
3871  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872  # <limits.h> exists even on freestanding compilers.
3873  # On the NeXT, cc -E runs the code through the compiler's parser,
3874  # not just through cpp. "Syntax error" is here to catch this case.
3875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h.  */
3877#ifdef __STDC__
3878# include <limits.h>
3879#else
3880# include <assert.h>
3881#endif
3882		     Syntax error
3883_ACEOF
3884if ac_fn_c_try_cpp "$LINENO"; then :
3885
3886else
3887  # Broken: fails on valid input.
3888continue
3889fi
3890rm -f conftest.err conftest.i conftest.$ac_ext
3891
3892  # OK, works on sane cases.  Now check whether nonexistent headers
3893  # can be detected and how.
3894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896#include <ac_nonexistent.h>
3897_ACEOF
3898if ac_fn_c_try_cpp "$LINENO"; then :
3899  # Broken: success on invalid input.
3900continue
3901else
3902  # Passes both tests.
3903ac_preproc_ok=:
3904break
3905fi
3906rm -f conftest.err conftest.i conftest.$ac_ext
3907
3908done
3909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3910rm -f conftest.i conftest.err conftest.$ac_ext
3911if $ac_preproc_ok; then :
3912  break
3913fi
3914
3915    done
3916    ac_cv_prog_CPP=$CPP
3917
3918fi
3919  CPP=$ac_cv_prog_CPP
3920else
3921  ac_cv_prog_CPP=$CPP
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3924$as_echo "$CPP" >&6; }
3925ac_preproc_ok=false
3926for ac_c_preproc_warn_flag in '' yes
3927do
3928  # Use a header file that comes with gcc, so configuring glibc
3929  # with a fresh cross-compiler works.
3930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3931  # <limits.h> exists even on freestanding compilers.
3932  # On the NeXT, cc -E runs the code through the compiler's parser,
3933  # not just through cpp. "Syntax error" is here to catch this case.
3934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h.  */
3936#ifdef __STDC__
3937# include <limits.h>
3938#else
3939# include <assert.h>
3940#endif
3941		     Syntax error
3942_ACEOF
3943if ac_fn_c_try_cpp "$LINENO"; then :
3944
3945else
3946  # Broken: fails on valid input.
3947continue
3948fi
3949rm -f conftest.err conftest.i conftest.$ac_ext
3950
3951  # OK, works on sane cases.  Now check whether nonexistent headers
3952  # can be detected and how.
3953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955#include <ac_nonexistent.h>
3956_ACEOF
3957if ac_fn_c_try_cpp "$LINENO"; then :
3958  # Broken: success on invalid input.
3959continue
3960else
3961  # Passes both tests.
3962ac_preproc_ok=:
3963break
3964fi
3965rm -f conftest.err conftest.i conftest.$ac_ext
3966
3967done
3968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3969rm -f conftest.i conftest.err conftest.$ac_ext
3970if $ac_preproc_ok; then :
3971
3972else
3973  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3976See \`config.log' for more details" "$LINENO" 5; }
3977fi
3978
3979ac_ext=c
3980ac_cpp='$CPP $CPPFLAGS'
3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3987$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3988if ${ac_cv_path_GREP+:} false; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  if test -z "$GREP"; then
3992  ac_path_GREP_found=false
3993  # Loop through the user's path and test for each of PROGNAME-LIST
3994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996do
3997  IFS=$as_save_IFS
3998  test -z "$as_dir" && as_dir=.
3999    for ac_prog in grep ggrep; do
4000    for ac_exec_ext in '' $ac_executable_extensions; do
4001      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4002      as_fn_executable_p "$ac_path_GREP" || continue
4003# Check for GNU ac_path_GREP and select it if it is found.
4004  # Check for GNU $ac_path_GREP
4005case `"$ac_path_GREP" --version 2>&1` in
4006*GNU*)
4007  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4008*)
4009  ac_count=0
4010  $as_echo_n 0123456789 >"conftest.in"
4011  while :
4012  do
4013    cat "conftest.in" "conftest.in" >"conftest.tmp"
4014    mv "conftest.tmp" "conftest.in"
4015    cp "conftest.in" "conftest.nl"
4016    $as_echo 'GREP' >> "conftest.nl"
4017    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019    as_fn_arith $ac_count + 1 && ac_count=$as_val
4020    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4021      # Best one so far, save it but keep looking for a better one
4022      ac_cv_path_GREP="$ac_path_GREP"
4023      ac_path_GREP_max=$ac_count
4024    fi
4025    # 10*(2^10) chars as input seems more than enough
4026    test $ac_count -gt 10 && break
4027  done
4028  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029esac
4030
4031      $ac_path_GREP_found && break 3
4032    done
4033  done
4034  done
4035IFS=$as_save_IFS
4036  if test -z "$ac_cv_path_GREP"; then
4037    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4038  fi
4039else
4040  ac_cv_path_GREP=$GREP
4041fi
4042
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4045$as_echo "$ac_cv_path_GREP" >&6; }
4046 GREP="$ac_cv_path_GREP"
4047
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4050$as_echo_n "checking for egrep... " >&6; }
4051if ${ac_cv_path_EGREP+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4055   then ac_cv_path_EGREP="$GREP -E"
4056   else
4057     if test -z "$EGREP"; then
4058  ac_path_EGREP_found=false
4059  # Loop through the user's path and test for each of PROGNAME-LIST
4060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065    for ac_prog in egrep; do
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4068      as_fn_executable_p "$ac_path_EGREP" || continue
4069# Check for GNU ac_path_EGREP and select it if it is found.
4070  # Check for GNU $ac_path_EGREP
4071case `"$ac_path_EGREP" --version 2>&1` in
4072*GNU*)
4073  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4074*)
4075  ac_count=0
4076  $as_echo_n 0123456789 >"conftest.in"
4077  while :
4078  do
4079    cat "conftest.in" "conftest.in" >"conftest.tmp"
4080    mv "conftest.tmp" "conftest.in"
4081    cp "conftest.in" "conftest.nl"
4082    $as_echo 'EGREP' >> "conftest.nl"
4083    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085    as_fn_arith $ac_count + 1 && ac_count=$as_val
4086    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4087      # Best one so far, save it but keep looking for a better one
4088      ac_cv_path_EGREP="$ac_path_EGREP"
4089      ac_path_EGREP_max=$ac_count
4090    fi
4091    # 10*(2^10) chars as input seems more than enough
4092    test $ac_count -gt 10 && break
4093  done
4094  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4095esac
4096
4097      $ac_path_EGREP_found && break 3
4098    done
4099  done
4100  done
4101IFS=$as_save_IFS
4102  if test -z "$ac_cv_path_EGREP"; then
4103    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4104  fi
4105else
4106  ac_cv_path_EGREP=$EGREP
4107fi
4108
4109   fi
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4112$as_echo "$ac_cv_path_EGREP" >&6; }
4113 EGREP="$ac_cv_path_EGREP"
4114
4115
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4117$as_echo_n "checking for ANSI C header files... " >&6; }
4118if ${ac_cv_header_stdc+:} false; then :
4119  $as_echo_n "(cached) " >&6
4120else
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <stdlib.h>
4124#include <stdarg.h>
4125#include <string.h>
4126#include <float.h>
4127
4128int
4129main ()
4130{
4131
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137  ac_cv_header_stdc=yes
4138else
4139  ac_cv_header_stdc=no
4140fi
4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142
4143if test $ac_cv_header_stdc = yes; then
4144  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147#include <string.h>
4148
4149_ACEOF
4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151  $EGREP "memchr" >/dev/null 2>&1; then :
4152
4153else
4154  ac_cv_header_stdc=no
4155fi
4156rm -f conftest*
4157
4158fi
4159
4160if test $ac_cv_header_stdc = yes; then
4161  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164#include <stdlib.h>
4165
4166_ACEOF
4167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168  $EGREP "free" >/dev/null 2>&1; then :
4169
4170else
4171  ac_cv_header_stdc=no
4172fi
4173rm -f conftest*
4174
4175fi
4176
4177if test $ac_cv_header_stdc = yes; then
4178  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4179  if test "$cross_compiling" = yes; then :
4180  :
4181else
4182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183/* end confdefs.h.  */
4184#include <ctype.h>
4185#include <stdlib.h>
4186#if ((' ' & 0x0FF) == 0x020)
4187# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4188# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4189#else
4190# define ISLOWER(c) \
4191		   (('a' <= (c) && (c) <= 'i') \
4192		     || ('j' <= (c) && (c) <= 'r') \
4193		     || ('s' <= (c) && (c) <= 'z'))
4194# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4195#endif
4196
4197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4198int
4199main ()
4200{
4201  int i;
4202  for (i = 0; i < 256; i++)
4203    if (XOR (islower (i), ISLOWER (i))
4204	|| toupper (i) != TOUPPER (i))
4205      return 2;
4206  return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_run "$LINENO"; then :
4210
4211else
4212  ac_cv_header_stdc=no
4213fi
4214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4215  conftest.$ac_objext conftest.beam conftest.$ac_ext
4216fi
4217
4218fi
4219fi
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4221$as_echo "$ac_cv_header_stdc" >&6; }
4222if test $ac_cv_header_stdc = yes; then
4223
4224$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4225
4226fi
4227
4228# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230		  inttypes.h stdint.h unistd.h
4231do :
4232  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4234"
4235if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4236  cat >>confdefs.h <<_ACEOF
4237#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238_ACEOF
4239
4240fi
4241
4242done
4243
4244
4245
4246  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4247if test "x$ac_cv_header_minix_config_h" = xyes; then :
4248  MINIX=yes
4249else
4250  MINIX=
4251fi
4252
4253
4254  if test "$MINIX" = yes; then
4255
4256$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4257
4258
4259$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4260
4261
4262$as_echo "#define _MINIX 1" >>confdefs.h
4263
4264  fi
4265
4266
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4268$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4269if ${ac_cv_safe_to_define___extensions__+:} false; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273/* end confdefs.h.  */
4274
4275#         define __EXTENSIONS__ 1
4276          $ac_includes_default
4277int
4278main ()
4279{
4280
4281  ;
4282  return 0;
4283}
4284_ACEOF
4285if ac_fn_c_try_compile "$LINENO"; then :
4286  ac_cv_safe_to_define___extensions__=yes
4287else
4288  ac_cv_safe_to_define___extensions__=no
4289fi
4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4293$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4294  test $ac_cv_safe_to_define___extensions__ = yes &&
4295    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4296
4297  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4298
4299  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4300
4301  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4302
4303  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4304
4305
4306am__api_version='1.13'
4307
4308# Find a good install program.  We prefer a C program (faster),
4309# so one script is as good as another.  But avoid the broken or
4310# incompatible versions:
4311# SysV /etc/install, /usr/sbin/install
4312# SunOS /usr/etc/install
4313# IRIX /sbin/install
4314# AIX /bin/install
4315# AmigaOS /C/install, which installs bootblocks on floppy discs
4316# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4317# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4318# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4319# OS/2's system install, which has a completely different semantic
4320# ./install, which can be erroneously created by make from ./install.sh.
4321# Reject install programs that cannot install multiple files.
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4323$as_echo_n "checking for a BSD-compatible install... " >&6; }
4324if test -z "$INSTALL"; then
4325if ${ac_cv_path_install+:} false; then :
4326  $as_echo_n "(cached) " >&6
4327else
4328  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331  IFS=$as_save_IFS
4332  test -z "$as_dir" && as_dir=.
4333    # Account for people who put trailing slashes in PATH elements.
4334case $as_dir/ in #((
4335  ./ | .// | /[cC]/* | \
4336  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4337  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4338  /usr/ucb/* ) ;;
4339  *)
4340    # OSF1 and SCO ODT 3.0 have their own names for install.
4341    # Don't use installbsd from OSF since it installs stuff as root
4342    # by default.
4343    for ac_prog in ginstall scoinst install; do
4344      for ac_exec_ext in '' $ac_executable_extensions; do
4345	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4346	  if test $ac_prog = install &&
4347	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4348	    # AIX install.  It has an incompatible calling convention.
4349	    :
4350	  elif test $ac_prog = install &&
4351	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4352	    # program-specific install script used by HP pwplus--don't use.
4353	    :
4354	  else
4355	    rm -rf conftest.one conftest.two conftest.dir
4356	    echo one > conftest.one
4357	    echo two > conftest.two
4358	    mkdir conftest.dir
4359	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4360	      test -s conftest.one && test -s conftest.two &&
4361	      test -s conftest.dir/conftest.one &&
4362	      test -s conftest.dir/conftest.two
4363	    then
4364	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4365	      break 3
4366	    fi
4367	  fi
4368	fi
4369      done
4370    done
4371    ;;
4372esac
4373
4374  done
4375IFS=$as_save_IFS
4376
4377rm -rf conftest.one conftest.two conftest.dir
4378
4379fi
4380  if test "${ac_cv_path_install+set}" = set; then
4381    INSTALL=$ac_cv_path_install
4382  else
4383    # As a last resort, use the slow shell script.  Don't cache a
4384    # value for INSTALL within a source directory, because that will
4385    # break other packages using the cache if that directory is
4386    # removed, or if the value is a relative name.
4387    INSTALL=$ac_install_sh
4388  fi
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4391$as_echo "$INSTALL" >&6; }
4392
4393# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4394# It thinks the first close brace ends the variable substitution.
4395test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4396
4397test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4398
4399test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4400
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4402$as_echo_n "checking whether build environment is sane... " >&6; }
4403# Reject unsafe characters in $srcdir or the absolute working directory
4404# name.  Accept space and tab only in the latter.
4405am_lf='
4406'
4407case `pwd` in
4408  *[\\\"\#\$\&\'\`$am_lf]*)
4409    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4410esac
4411case $srcdir in
4412  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4413    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4414esac
4415
4416# Do 'set' in a subshell so we don't clobber the current shell's
4417# arguments.  Must try -L first in case configure is actually a
4418# symlink; some systems play weird games with the mod time of symlinks
4419# (eg FreeBSD returns the mod time of the symlink's containing
4420# directory).
4421if (
4422   am_has_slept=no
4423   for am_try in 1 2; do
4424     echo "timestamp, slept: $am_has_slept" > conftest.file
4425     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4426     if test "$*" = "X"; then
4427	# -L didn't work.
4428	set X `ls -t "$srcdir/configure" conftest.file`
4429     fi
4430     if test "$*" != "X $srcdir/configure conftest.file" \
4431	&& test "$*" != "X conftest.file $srcdir/configure"; then
4432
4433	# If neither matched, then we have a broken ls.  This can happen
4434	# if, for instance, CONFIG_SHELL is bash and it inherits a
4435	# broken ls alias from the environment.  This has actually
4436	# happened.  Such a system could not be considered "sane".
4437	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4438  alias in your environment" "$LINENO" 5
4439     fi
4440     if test "$2" = conftest.file || test $am_try -eq 2; then
4441       break
4442     fi
4443     # Just in case.
4444     sleep 1
4445     am_has_slept=yes
4446   done
4447   test "$2" = conftest.file
4448   )
4449then
4450   # Ok.
4451   :
4452else
4453   as_fn_error $? "newly created file is older than distributed files!
4454Check your system clock" "$LINENO" 5
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4457$as_echo "yes" >&6; }
4458# If we didn't sleep, we still need to ensure time stamps of config.status and
4459# generated files are strictly newer.
4460am_sleep_pid=
4461if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4462  ( sleep 1 ) &
4463  am_sleep_pid=$!
4464fi
4465
4466rm -f conftest.file
4467
4468test "$program_prefix" != NONE &&
4469  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4470# Use a double $ so make ignores it.
4471test "$program_suffix" != NONE &&
4472  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4473# Double any \ or $.
4474# By default was `s,x,x', remove it if useless.
4475ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4476program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4477
4478# expand $ac_aux_dir to an absolute path
4479am_aux_dir=`cd $ac_aux_dir && pwd`
4480
4481if test x"${MISSING+set}" != xset; then
4482  case $am_aux_dir in
4483  *\ * | *\	*)
4484    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4485  *)
4486    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4487  esac
4488fi
4489# Use eval to expand $SHELL
4490if eval "$MISSING --is-lightweight"; then
4491  am_missing_run="$MISSING "
4492else
4493  am_missing_run=
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4495$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4496fi
4497
4498if test x"${install_sh}" != xset; then
4499  case $am_aux_dir in
4500  *\ * | *\	*)
4501    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4502  *)
4503    install_sh="\${SHELL} $am_aux_dir/install-sh"
4504  esac
4505fi
4506
4507# Installed binaries are usually stripped using 'strip' when the user
4508# run "make install-strip".  However 'strip' might not be the right
4509# tool to use in cross-compilation environments, therefore Automake
4510# will honor the 'STRIP' environment variable to overrule this program.
4511if test "$cross_compiling" != no; then
4512  if test -n "$ac_tool_prefix"; then
4513  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4514set dummy ${ac_tool_prefix}strip; ac_word=$2
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516$as_echo_n "checking for $ac_word... " >&6; }
4517if ${ac_cv_prog_STRIP+:} false; then :
4518  $as_echo_n "(cached) " >&6
4519else
4520  if test -n "$STRIP"; then
4521  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526  IFS=$as_save_IFS
4527  test -z "$as_dir" && as_dir=.
4528    for ac_exec_ext in '' $ac_executable_extensions; do
4529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532    break 2
4533  fi
4534done
4535  done
4536IFS=$as_save_IFS
4537
4538fi
4539fi
4540STRIP=$ac_cv_prog_STRIP
4541if test -n "$STRIP"; then
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4543$as_echo "$STRIP" >&6; }
4544else
4545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548
4549
4550fi
4551if test -z "$ac_cv_prog_STRIP"; then
4552  ac_ct_STRIP=$STRIP
4553  # Extract the first word of "strip", so it can be a program name with args.
4554set dummy strip; ac_word=$2
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556$as_echo_n "checking for $ac_word... " >&6; }
4557if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  if test -n "$ac_ct_STRIP"; then
4561  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570    ac_cv_prog_ac_ct_STRIP="strip"
4571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572    break 2
4573  fi
4574done
4575  done
4576IFS=$as_save_IFS
4577
4578fi
4579fi
4580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4581if test -n "$ac_ct_STRIP"; then
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4583$as_echo "$ac_ct_STRIP" >&6; }
4584else
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
4587fi
4588
4589  if test "x$ac_ct_STRIP" = x; then
4590    STRIP=":"
4591  else
4592    case $cross_compiling:$ac_tool_warned in
4593yes:)
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596ac_tool_warned=yes ;;
4597esac
4598    STRIP=$ac_ct_STRIP
4599  fi
4600else
4601  STRIP="$ac_cv_prog_STRIP"
4602fi
4603
4604fi
4605INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4608$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4609if test -z "$MKDIR_P"; then
4610  if ${ac_cv_path_mkdir+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4615do
4616  IFS=$as_save_IFS
4617  test -z "$as_dir" && as_dir=.
4618    for ac_prog in mkdir gmkdir; do
4619	 for ac_exec_ext in '' $ac_executable_extensions; do
4620	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4621	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4622	     'mkdir (GNU coreutils) '* | \
4623	     'mkdir (coreutils) '* | \
4624	     'mkdir (fileutils) '4.1*)
4625	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4626	       break 3;;
4627	   esac
4628	 done
4629       done
4630  done
4631IFS=$as_save_IFS
4632
4633fi
4634
4635  test -d ./--version && rmdir ./--version
4636  if test "${ac_cv_path_mkdir+set}" = set; then
4637    MKDIR_P="$ac_cv_path_mkdir -p"
4638  else
4639    # As a last resort, use the slow shell script.  Don't cache a
4640    # value for MKDIR_P within a source directory, because that will
4641    # break other packages using the cache if that directory is
4642    # removed, or if the value is a relative name.
4643    MKDIR_P="$ac_install_sh -d"
4644  fi
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4647$as_echo "$MKDIR_P" >&6; }
4648
4649for ac_prog in gawk mawk nawk awk
4650do
4651  # Extract the first word of "$ac_prog", so it can be a program name with args.
4652set dummy $ac_prog; ac_word=$2
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
4655if ${ac_cv_prog_AWK+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if test -n "$AWK"; then
4659  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  test -z "$as_dir" && as_dir=.
4666    for ac_exec_ext in '' $ac_executable_extensions; do
4667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668    ac_cv_prog_AWK="$ac_prog"
4669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670    break 2
4671  fi
4672done
4673  done
4674IFS=$as_save_IFS
4675
4676fi
4677fi
4678AWK=$ac_cv_prog_AWK
4679if test -n "$AWK"; then
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4681$as_echo "$AWK" >&6; }
4682else
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
4686
4687
4688  test -n "$AWK" && break
4689done
4690
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4692$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4693set x ${MAKE-make}
4694ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4695if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  cat >conftest.make <<\_ACEOF
4699SHELL = /bin/sh
4700all:
4701	@echo '@@@%%%=$(MAKE)=@@@%%%'
4702_ACEOF
4703# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4704case `${MAKE-make} -f conftest.make 2>/dev/null` in
4705  *@@@%%%=?*=@@@%%%*)
4706    eval ac_cv_prog_make_${ac_make}_set=yes;;
4707  *)
4708    eval ac_cv_prog_make_${ac_make}_set=no;;
4709esac
4710rm -f conftest.make
4711fi
4712if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714$as_echo "yes" >&6; }
4715  SET_MAKE=
4716else
4717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
4719  SET_MAKE="MAKE=${MAKE-make}"
4720fi
4721
4722rm -rf .tst 2>/dev/null
4723mkdir .tst 2>/dev/null
4724if test -d .tst; then
4725  am__leading_dot=.
4726else
4727  am__leading_dot=_
4728fi
4729rmdir .tst 2>/dev/null
4730
4731DEPDIR="${am__leading_dot}deps"
4732
4733ac_config_commands="$ac_config_commands depfiles"
4734
4735
4736am_make=${MAKE-make}
4737cat > confinc << 'END'
4738am__doit:
4739	@echo this is the am__doit target
4740.PHONY: am__doit
4741END
4742# If we don't find an include directive, just comment out the code.
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4744$as_echo_n "checking for style of include used by $am_make... " >&6; }
4745am__include="#"
4746am__quote=
4747_am_result=none
4748# First try GNU make style include.
4749echo "include confinc" > confmf
4750# Ignore all kinds of additional output from 'make'.
4751case `$am_make -s -f confmf 2> /dev/null` in #(
4752*the\ am__doit\ target*)
4753  am__include=include
4754  am__quote=
4755  _am_result=GNU
4756  ;;
4757esac
4758# Now try BSD make style include.
4759if test "$am__include" = "#"; then
4760   echo '.include "confinc"' > confmf
4761   case `$am_make -s -f confmf 2> /dev/null` in #(
4762   *the\ am__doit\ target*)
4763     am__include=.include
4764     am__quote="\""
4765     _am_result=BSD
4766     ;;
4767   esac
4768fi
4769
4770
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4772$as_echo "$_am_result" >&6; }
4773rm -f confinc confmf
4774
4775# Check whether --enable-dependency-tracking was given.
4776if test "${enable_dependency_tracking+set}" = set; then :
4777  enableval=$enable_dependency_tracking;
4778fi
4779
4780if test "x$enable_dependency_tracking" != xno; then
4781  am_depcomp="$ac_aux_dir/depcomp"
4782  AMDEPBACKSLASH='\'
4783  am__nodep='_no'
4784fi
4785 if test "x$enable_dependency_tracking" != xno; then
4786  AMDEP_TRUE=
4787  AMDEP_FALSE='#'
4788else
4789  AMDEP_TRUE='#'
4790  AMDEP_FALSE=
4791fi
4792
4793
4794# Check whether --enable-silent-rules was given.
4795if test "${enable_silent_rules+set}" = set; then :
4796  enableval=$enable_silent_rules;
4797fi
4798
4799case $enable_silent_rules in # (((
4800  yes) AM_DEFAULT_VERBOSITY=0;;
4801   no) AM_DEFAULT_VERBOSITY=1;;
4802    *) AM_DEFAULT_VERBOSITY=1;;
4803esac
4804am_make=${MAKE-make}
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4806$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4807if ${am_cv_make_support_nested_variables+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  if $as_echo 'TRUE=$(BAR$(V))
4811BAR0=false
4812BAR1=true
4813V=1
4814am__doit:
4815	@$(TRUE)
4816.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4817  am_cv_make_support_nested_variables=yes
4818else
4819  am_cv_make_support_nested_variables=no
4820fi
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4823$as_echo "$am_cv_make_support_nested_variables" >&6; }
4824if test $am_cv_make_support_nested_variables = yes; then
4825    AM_V='$(V)'
4826  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4827else
4828  AM_V=$AM_DEFAULT_VERBOSITY
4829  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4830fi
4831AM_BACKSLASH='\'
4832
4833if test "`cd $srcdir && pwd`" != "`pwd`"; then
4834  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4835  # is not polluted with repeated "-I."
4836  am__isrc=' -I$(srcdir)'
4837  # test to see if srcdir already configured
4838  if test -f $srcdir/config.status; then
4839    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4840  fi
4841fi
4842
4843# test whether we have cygpath
4844if test -z "$CYGPATH_W"; then
4845  if (cygpath --version) >/dev/null 2>/dev/null; then
4846    CYGPATH_W='cygpath -w'
4847  else
4848    CYGPATH_W=echo
4849  fi
4850fi
4851
4852
4853# Define the identity of the package.
4854 PACKAGE='util-linux'
4855 VERSION='2.25.2'
4856
4857
4858cat >>confdefs.h <<_ACEOF
4859#define PACKAGE "$PACKAGE"
4860_ACEOF
4861
4862
4863cat >>confdefs.h <<_ACEOF
4864#define VERSION "$VERSION"
4865_ACEOF
4866
4867# Some tools Automake needs.
4868
4869ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4870
4871
4872AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4873
4874
4875AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4876
4877
4878AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4879
4880
4881MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4882
4883# For better backward compatibility.  To be removed once Automake 1.9.x
4884# dies out for good.  For more background, see:
4885# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4886# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4887mkdir_p='$(MKDIR_P)'
4888
4889# We need awk for the "check" target.  The system "awk" is bad on
4890# some platforms.
4891# Always define AMTAR for backward compatibility.  Yes, it's still used
4892# in the wild :-(  We should find a proper way to deprecate it ...
4893AMTAR='$${TAR-tar}'
4894
4895
4896# We'll loop over all known methods to create a tar archive until one works.
4897_am_tools='gnutar  pax cpio none'
4898
4899
4900
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
4902$as_echo_n "checking how to create a pax tar archive... " >&6; }
4903
4904  # Go ahead even if we have the value already cached.  We do so because we
4905  # need to set the values for the 'am__tar' and 'am__untar' variables.
4906  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
4907
4908  for _am_tool in $_am_tools; do
4909    case $_am_tool in
4910    gnutar)
4911      for _am_tar in tar gnutar gtar; do
4912        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4913   ($_am_tar --version) >&5 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } && break
4917      done
4918      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
4919      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
4920      am__untar="$_am_tar -xf -"
4921      ;;
4922    plaintar)
4923      # Must skip GNU tar: if it does not support --format= it doesn't create
4924      # ustar tarball either.
4925      (tar --version) >/dev/null 2>&1 && continue
4926      am__tar='tar chf - "$$tardir"'
4927      am__tar_='tar chf - "$tardir"'
4928      am__untar='tar xf -'
4929      ;;
4930    pax)
4931      am__tar='pax -L -x pax -w "$$tardir"'
4932      am__tar_='pax -L -x pax -w "$tardir"'
4933      am__untar='pax -r'
4934      ;;
4935    cpio)
4936      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
4937      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
4938      am__untar='cpio -i -H pax -d'
4939      ;;
4940    none)
4941      am__tar=false
4942      am__tar_=false
4943      am__untar=false
4944      ;;
4945    esac
4946
4947    # If the value was cached, stop now.  We just wanted to have am__tar
4948    # and am__untar set.
4949    test -n "${am_cv_prog_tar_pax}" && break
4950
4951    # tar/untar a dummy directory, and stop if the command works.
4952    rm -rf conftest.dir
4953    mkdir conftest.dir
4954    echo GrepMe > conftest.dir/file
4955    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4956   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); }
4960    rm -rf conftest.dir
4961    if test -s conftest.tar; then
4962      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4963   ($am__untar <conftest.tar) >&5 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }
4967      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4968   (cat conftest.dir/file) >&5 2>&5
4969   ac_status=$?
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); }
4972      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4973    fi
4974  done
4975  rm -rf conftest.dir
4976
4977  if ${am_cv_prog_tar_pax+:} false; then :
4978  $as_echo_n "(cached) " >&6
4979else
4980  am_cv_prog_tar_pax=$_am_tool
4981fi
4982
4983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
4984$as_echo "$am_cv_prog_tar_pax" >&6; }
4985
4986
4987
4988
4989
4990depcc="$CC"   am_compiler_list=
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4993$as_echo_n "checking dependency style of $depcc... " >&6; }
4994if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4998  # We make a subdir and do the tests there.  Otherwise we can end up
4999  # making bogus files that we don't know about and never remove.  For
5000  # instance it was reported that on HP-UX the gcc test will end up
5001  # making a dummy file named 'D' -- because '-MD' means "put the output
5002  # in D".
5003  rm -rf conftest.dir
5004  mkdir conftest.dir
5005  # Copy depcomp to subdir because otherwise we won't find it if we're
5006  # using a relative directory.
5007  cp "$am_depcomp" conftest.dir
5008  cd conftest.dir
5009  # We will build objects and dependencies in a subdirectory because
5010  # it helps to detect inapplicable dependency modes.  For instance
5011  # both Tru64's cc and ICC support -MD to output dependencies as a
5012  # side effect of compilation, but ICC will put the dependencies in
5013  # the current directory while Tru64 will put them in the object
5014  # directory.
5015  mkdir sub
5016
5017  am_cv_CC_dependencies_compiler_type=none
5018  if test "$am_compiler_list" = ""; then
5019     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5020  fi
5021  am__universal=false
5022  case " $depcc " in #(
5023     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5024     esac
5025
5026  for depmode in $am_compiler_list; do
5027    # Setup a source with many dependencies, because some compilers
5028    # like to wrap large dependency lists on column 80 (with \), and
5029    # we should not choose a depcomp mode which is confused by this.
5030    #
5031    # We need to recreate these files for each test, as the compiler may
5032    # overwrite some of them when testing with obscure command lines.
5033    # This happens at least with the AIX C compiler.
5034    : > sub/conftest.c
5035    for i in 1 2 3 4 5 6; do
5036      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5037      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5038      # Solaris 10 /bin/sh.
5039      echo '/* dummy */' > sub/conftst$i.h
5040    done
5041    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5042
5043    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5044    # mode.  It turns out that the SunPro C++ compiler does not properly
5045    # handle '-M -o', and we need to detect this.  Also, some Intel
5046    # versions had trouble with output in subdirs.
5047    am__obj=sub/conftest.${OBJEXT-o}
5048    am__minus_obj="-o $am__obj"
5049    case $depmode in
5050    gcc)
5051      # This depmode causes a compiler race in universal mode.
5052      test "$am__universal" = false || continue
5053      ;;
5054    nosideeffect)
5055      # After this tag, mechanisms are not by side-effect, so they'll
5056      # only be used when explicitly requested.
5057      if test "x$enable_dependency_tracking" = xyes; then
5058	continue
5059      else
5060	break
5061      fi
5062      ;;
5063    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5064      # This compiler won't grok '-c -o', but also, the minuso test has
5065      # not run yet.  These depmodes are late enough in the game, and
5066      # so weak that their functioning should not be impacted.
5067      am__obj=conftest.${OBJEXT-o}
5068      am__minus_obj=
5069      ;;
5070    none) break ;;
5071    esac
5072    if depmode=$depmode \
5073       source=sub/conftest.c object=$am__obj \
5074       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5075       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5076         >/dev/null 2>conftest.err &&
5077       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5078       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5079       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5080       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5081      # icc doesn't choke on unknown options, it will just issue warnings
5082      # or remarks (even with -Werror).  So we grep stderr for any message
5083      # that says an option was ignored or not supported.
5084      # When given -MP, icc 7.0 and 7.1 complain thusly:
5085      #   icc: Command line warning: ignoring option '-M'; no argument required
5086      # The diagnosis changed in icc 8.0:
5087      #   icc: Command line remark: option '-MP' not supported
5088      if (grep 'ignoring option' conftest.err ||
5089          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5090        am_cv_CC_dependencies_compiler_type=$depmode
5091        break
5092      fi
5093    fi
5094  done
5095
5096  cd ..
5097  rm -rf conftest.dir
5098else
5099  am_cv_CC_dependencies_compiler_type=none
5100fi
5101
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5104$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5105CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5106
5107 if
5108  test "x$enable_dependency_tracking" != xno \
5109  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5110  am__fastdepCC_TRUE=
5111  am__fastdepCC_FALSE='#'
5112else
5113  am__fastdepCC_TRUE='#'
5114  am__fastdepCC_FALSE=
5115fi
5116
5117
5118
5119
5120# Check whether --enable-silent-rules was given.
5121if test "${enable_silent_rules+set}" = set; then :
5122  enableval=$enable_silent_rules;
5123fi
5124
5125case $enable_silent_rules in # (((
5126  yes) AM_DEFAULT_VERBOSITY=0;;
5127   no) AM_DEFAULT_VERBOSITY=1;;
5128    *) AM_DEFAULT_VERBOSITY=0;;
5129esac
5130am_make=${MAKE-make}
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5132$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5133if ${am_cv_make_support_nested_variables+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  if $as_echo 'TRUE=$(BAR$(V))
5137BAR0=false
5138BAR1=true
5139V=1
5140am__doit:
5141	@$(TRUE)
5142.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5143  am_cv_make_support_nested_variables=yes
5144else
5145  am_cv_make_support_nested_variables=no
5146fi
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5149$as_echo "$am_cv_make_support_nested_variables" >&6; }
5150if test $am_cv_make_support_nested_variables = yes; then
5151    AM_V='$(V)'
5152  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5153else
5154  AM_V=$AM_DEFAULT_VERBOSITY
5155  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5156fi
5157AM_BACKSLASH='\'
5158
5159
5160
5161
5162
5163PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
5164PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
5165					      | awk -F- '{print $1}')
5166PACKAGE_VERSION_RELEASE=0
5167
5168LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
5169LIBBLKID_DATE="24-Oct-2014"
5170LIBBLKID_LT_MAJOR=1
5171LIBBLKID_LT_MINOR=1
5172LIBBLKID_LT_MICRO=0
5173LIBBLKID_VERSION_INFO=`expr $LIBBLKID_LT_MAJOR + $LIBBLKID_LT_MINOR`:$LIBBLKID_LT_MICRO:$LIBBLKID_LT_MINOR
5174
5175LIBUUID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
5176LIBUUID_LT_MAJOR=1
5177LIBUUID_LT_MINOR=3
5178LIBUUID_LT_MICRO=0
5179LIBUUID_VERSION_INFO=`expr $LIBUUID_LT_MAJOR + $LIBUUID_LT_MINOR`:$LIBUUID_LT_MICRO:$LIBUUID_LT_MINOR
5180
5181LIBMOUNT_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
5182LIBMOUNT_LT_MAJOR=1
5183LIBMOUNT_LT_MINOR=1
5184LIBMOUNT_LT_MICRO=0
5185LIBMOUNT_VERSION_INFO=`expr $LIBMOUNT_LT_MAJOR + $LIBMOUNT_LT_MINOR`:$LIBMOUNT_LT_MICRO:$LIBMOUNT_LT_MINOR
5186
5187LIBSMARTCOLS_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
5188LIBSMARTCOLS_LT_MAJOR=1
5189LIBSMARTCOLS_LT_MINOR=1
5190LIBSMARTCOLS_LT_MICRO=0
5191LIBSMARTCOLS_VERSION_INFO=`expr $LIBSMARTCOLS_LT_MAJOR + $LIBSMARTCOLS_LT_MINOR`:$LIBSMARTCOLS_LT_MICRO:$LIBSMARTCOLS_LT_MINOR
5192
5193# Check whether exec_prefix=/usr:
5194case $exec_prefix:$prefix in #(
5195  NONE:NONE | NONE:/usr | /usr:*) :
5196    { $as_echo "$as_me:${as_lineno-$LINENO}: Default --exec-prefix detected." >&5
5197$as_echo "$as_me: Default --exec-prefix detected." >&6;}
5198   case $bindir in #(
5199  '${exec_prefix}/bin') :
5200    bindir=/bin;   { $as_echo "$as_me:${as_lineno-$LINENO}:   --bindir defaults to /bin" >&5
5201$as_echo "$as_me:   --bindir defaults to /bin" >&6;}   ;; #(
5202  *) :
5203     ;;
5204esac
5205   case $sbindir in #(
5206  '${exec_prefix}/sbin') :
5207    sbindir=/sbin; { $as_echo "$as_me:${as_lineno-$LINENO}:   --sbindir defaults to /sbin" >&5
5208$as_echo "$as_me:   --sbindir defaults to /sbin" >&6;} ;; #(
5209  *) :
5210     ;;
5211esac
5212   case $libdir in #(
5213  '${exec_prefix}/lib') :
5214    libdir=/lib;   { $as_echo "$as_me:${as_lineno-$LINENO}:   --libdir defaults to /lib" >&5
5215$as_echo "$as_me:   --libdir defaults to /lib" >&6;}   ;; #(
5216  *) :
5217     ;;
5218esac
5219
5220 ;; #(
5221  *) :
5222     ;;
5223esac
5224
5225case $prefix:$localstatedir in #(
5226  NONE:'${prefix}/var' | /usr:'${prefix}/var') :
5227    localstatedir=/run
5228     { $as_echo "$as_me:${as_lineno-$LINENO}:   --localstatedir defaults to /run" >&5
5229$as_echo "$as_me:   --localstatedir defaults to /run" >&6;}
5230
5231 ;; #(
5232  *) :
5233     ;;
5234esac
5235
5236
5237
5238# The original default values of {bin,sbin,lib}dir
5239usrbin_execdir='${exec_prefix}/bin'
5240
5241
5242usrsbin_execdir='${exec_prefix}/sbin'
5243
5244
5245case $libdir in #(
5246  '${exec_prefix}/'* | '${prefix}/'* | /usr/* | "${prefix}"/* ) :
5247    usrlib_execdir=$libdir ;; #(
5248  *) :
5249    usrlib_execdir='${exec_prefix}'$libdir
5250 ;;
5251esac
5252
5253
5254
5255if test "x$CC" != xcc; then
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5257$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5258else
5259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5260$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5261fi
5262set dummy $CC; ac_cc=`$as_echo "$2" |
5263		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5264if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268/* end confdefs.h.  */
5269
5270int
5271main ()
5272{
5273
5274  ;
5275  return 0;
5276}
5277_ACEOF
5278# Make sure it works both with $CC and with simple cc.
5279# We do the test twice because some compilers refuse to overwrite an
5280# existing .o file with -o, though they will create one.
5281ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5282rm -f conftest2.*
5283if { { case "(($ac_try" in
5284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285  *) ac_try_echo=$ac_try;;
5286esac
5287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5288$as_echo "$ac_try_echo"; } >&5
5289  (eval "$ac_try") 2>&5
5290  ac_status=$?
5291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292  test $ac_status = 0; } &&
5293   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295  *) ac_try_echo=$ac_try;;
5296esac
5297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298$as_echo "$ac_try_echo"; } >&5
5299  (eval "$ac_try") 2>&5
5300  ac_status=$?
5301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302  test $ac_status = 0; };
5303then
5304  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5305  if test "x$CC" != xcc; then
5306    # Test first that cc exists at all.
5307    if { ac_try='cc -c conftest.$ac_ext >&5'
5308  { { case "(($ac_try" in
5309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310  *) ac_try_echo=$ac_try;;
5311esac
5312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5313$as_echo "$ac_try_echo"; } >&5
5314  (eval "$ac_try") 2>&5
5315  ac_status=$?
5316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317  test $ac_status = 0; }; }; then
5318      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5319      rm -f conftest2.*
5320      if { { case "(($ac_try" in
5321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322  *) ac_try_echo=$ac_try;;
5323esac
5324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5325$as_echo "$ac_try_echo"; } >&5
5326  (eval "$ac_try") 2>&5
5327  ac_status=$?
5328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329  test $ac_status = 0; } &&
5330	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332  *) ac_try_echo=$ac_try;;
5333esac
5334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5335$as_echo "$ac_try_echo"; } >&5
5336  (eval "$ac_try") 2>&5
5337  ac_status=$?
5338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5339  test $ac_status = 0; };
5340      then
5341	# cc works too.
5342	:
5343      else
5344	# cc exists but doesn't like -o.
5345	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5346      fi
5347    fi
5348  fi
5349else
5350  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5351fi
5352rm -f core conftest*
5353
5354fi
5355if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357$as_echo "yes" >&6; }
5358else
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361
5362$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5363
5364fi
5365
5366# FIXME: we rely on the cache variable name because
5367# there is no other way.
5368set dummy $CC
5369am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5370eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5371if test "$am_t" != yes; then
5372   # Losing compiler, so override with the script.
5373   # FIXME: It is wrong to rewrite CC.
5374   # But if we don't then we get into trouble of one sort or another.
5375   # A longer-term fix would be to have automake use am__CC in this case,
5376   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5377   CC="$am_aux_dir/compile $CC"
5378fi
5379
5380
5381   case $ac_cv_prog_cc_stdc in #(
5382  no) :
5383    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5384  *) :
5385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5386$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5387if ${ac_cv_prog_cc_c99+:} false; then :
5388  $as_echo_n "(cached) " >&6
5389else
5390  ac_cv_prog_cc_c99=no
5391ac_save_CC=$CC
5392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h.  */
5394#include <stdarg.h>
5395#include <stdbool.h>
5396#include <stdlib.h>
5397#include <wchar.h>
5398#include <stdio.h>
5399
5400// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5401#define debug(...) fprintf (stderr, __VA_ARGS__)
5402#define showlist(...) puts (#__VA_ARGS__)
5403#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5404static void
5405test_varargs_macros (void)
5406{
5407  int x = 1234;
5408  int y = 5678;
5409  debug ("Flag");
5410  debug ("X = %d\n", x);
5411  showlist (The first, second, and third items.);
5412  report (x>y, "x is %d but y is %d", x, y);
5413}
5414
5415// Check long long types.
5416#define BIG64 18446744073709551615ull
5417#define BIG32 4294967295ul
5418#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5419#if !BIG_OK
5420  your preprocessor is broken;
5421#endif
5422#if BIG_OK
5423#else
5424  your preprocessor is broken;
5425#endif
5426static long long int bignum = -9223372036854775807LL;
5427static unsigned long long int ubignum = BIG64;
5428
5429struct incomplete_array
5430{
5431  int datasize;
5432  double data[];
5433};
5434
5435struct named_init {
5436  int number;
5437  const wchar_t *name;
5438  double average;
5439};
5440
5441typedef const char *ccp;
5442
5443static inline int
5444test_restrict (ccp restrict text)
5445{
5446  // See if C++-style comments work.
5447  // Iterate through items via the restricted pointer.
5448  // Also check for declarations in for loops.
5449  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5450    continue;
5451  return 0;
5452}
5453
5454// Check varargs and va_copy.
5455static void
5456test_varargs (const char *format, ...)
5457{
5458  va_list args;
5459  va_start (args, format);
5460  va_list args_copy;
5461  va_copy (args_copy, args);
5462
5463  const char *str;
5464  int number;
5465  float fnumber;
5466
5467  while (*format)
5468    {
5469      switch (*format++)
5470	{
5471	case 's': // string
5472	  str = va_arg (args_copy, const char *);
5473	  break;
5474	case 'd': // int
5475	  number = va_arg (args_copy, int);
5476	  break;
5477	case 'f': // float
5478	  fnumber = va_arg (args_copy, double);
5479	  break;
5480	default:
5481	  break;
5482	}
5483    }
5484  va_end (args_copy);
5485  va_end (args);
5486}
5487
5488int
5489main ()
5490{
5491
5492  // Check bool.
5493  _Bool success = false;
5494
5495  // Check restrict.
5496  if (test_restrict ("String literal") == 0)
5497    success = true;
5498  char *restrict newvar = "Another string";
5499
5500  // Check varargs.
5501  test_varargs ("s, d' f .", "string", 65, 34.234);
5502  test_varargs_macros ();
5503
5504  // Check flexible array members.
5505  struct incomplete_array *ia =
5506    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5507  ia->datasize = 10;
5508  for (int i = 0; i < ia->datasize; ++i)
5509    ia->data[i] = i * 1.234;
5510
5511  // Check named initializers.
5512  struct named_init ni = {
5513    .number = 34,
5514    .name = L"Test wide string",
5515    .average = 543.34343,
5516  };
5517
5518  ni.number = 58;
5519
5520  int dynamic_array[ni.number];
5521  dynamic_array[ni.number - 1] = 543;
5522
5523  // work around unused variable warnings
5524  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5525	  || dynamic_array[ni.number - 1] != 543);
5526
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5532do
5533  CC="$ac_save_CC $ac_arg"
5534  if ac_fn_c_try_compile "$LINENO"; then :
5535  ac_cv_prog_cc_c99=$ac_arg
5536fi
5537rm -f core conftest.err conftest.$ac_objext
5538  test "x$ac_cv_prog_cc_c99" != "xno" && break
5539done
5540rm -f conftest.$ac_ext
5541CC=$ac_save_CC
5542
5543fi
5544# AC_CACHE_VAL
5545case "x$ac_cv_prog_cc_c99" in
5546  x)
5547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5548$as_echo "none needed" >&6; } ;;
5549  xno)
5550    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5551$as_echo "unsupported" >&6; } ;;
5552  *)
5553    CC="$CC $ac_cv_prog_cc_c99"
5554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5555$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5556esac
5557if test "x$ac_cv_prog_cc_c99" != xno; then :
5558  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5559else
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5561$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5562if ${ac_cv_prog_cc_c89+:} false; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565  ac_cv_prog_cc_c89=no
5566ac_save_CC=$CC
5567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569#include <stdarg.h>
5570#include <stdio.h>
5571struct stat;
5572/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5573struct buf { int x; };
5574FILE * (*rcsopen) (struct buf *, struct stat *, int);
5575static char *e (p, i)
5576     char **p;
5577     int i;
5578{
5579  return p[i];
5580}
5581static char *f (char * (*g) (char **, int), char **p, ...)
5582{
5583  char *s;
5584  va_list v;
5585  va_start (v,p);
5586  s = g (p, va_arg (v,int));
5587  va_end (v);
5588  return s;
5589}
5590
5591/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5592   function prototypes and stuff, but not '\xHH' hex character constants.
5593   These don't provoke an error unfortunately, instead are silently treated
5594   as 'x'.  The following induces an error, until -std is added to get
5595   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5596   array size at least.  It's necessary to write '\x00'==0 to get something
5597   that's true only with -std.  */
5598int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5599
5600/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5601   inside strings and character constants.  */
5602#define FOO(x) 'x'
5603int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5604
5605int test (int i, double x);
5606struct s1 {int (*f) (int a);};
5607struct s2 {int (*f) (double a);};
5608int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5609int argc;
5610char **argv;
5611int
5612main ()
5613{
5614return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5620	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5621do
5622  CC="$ac_save_CC $ac_arg"
5623  if ac_fn_c_try_compile "$LINENO"; then :
5624  ac_cv_prog_cc_c89=$ac_arg
5625fi
5626rm -f core conftest.err conftest.$ac_objext
5627  test "x$ac_cv_prog_cc_c89" != "xno" && break
5628done
5629rm -f conftest.$ac_ext
5630CC=$ac_save_CC
5631
5632fi
5633# AC_CACHE_VAL
5634case "x$ac_cv_prog_cc_c89" in
5635  x)
5636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5637$as_echo "none needed" >&6; } ;;
5638  xno)
5639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5640$as_echo "unsupported" >&6; } ;;
5641  *)
5642    CC="$CC $ac_cv_prog_cc_c89"
5643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5644$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5645esac
5646if test "x$ac_cv_prog_cc_c89" != xno; then :
5647  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5648else
5649  ac_cv_prog_cc_stdc=no
5650fi
5651
5652fi
5653 ;;
5654esac
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5656$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5657  if ${ac_cv_prog_cc_stdc+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659fi
5660
5661  case $ac_cv_prog_cc_stdc in #(
5662  no) :
5663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5664$as_echo "unsupported" >&6; } ;; #(
5665  '') :
5666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5667$as_echo "none needed" >&6; } ;; #(
5668  *) :
5669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5670$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5671esac
5672
5673# Make sure we can run config.sub.
5674$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5675  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5678$as_echo_n "checking build system type... " >&6; }
5679if ${ac_cv_build+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  ac_build_alias=$build_alias
5683test "x$ac_build_alias" = x &&
5684  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5685test "x$ac_build_alias" = x &&
5686  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5687ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5688  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5689
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5692$as_echo "$ac_cv_build" >&6; }
5693case $ac_cv_build in
5694*-*-*) ;;
5695*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5696esac
5697build=$ac_cv_build
5698ac_save_IFS=$IFS; IFS='-'
5699set x $ac_cv_build
5700shift
5701build_cpu=$1
5702build_vendor=$2
5703shift; shift
5704# Remember, the first character of IFS is used to create $*,
5705# except with old shells:
5706build_os=$*
5707IFS=$ac_save_IFS
5708case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5709
5710
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5712$as_echo_n "checking host system type... " >&6; }
5713if ${ac_cv_host+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  if test "x$host_alias" = x; then
5717  ac_cv_host=$ac_cv_build
5718else
5719  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5720    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5721fi
5722
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5725$as_echo "$ac_cv_host" >&6; }
5726case $ac_cv_host in
5727*-*-*) ;;
5728*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5729esac
5730host=$ac_cv_host
5731ac_save_IFS=$IFS; IFS='-'
5732set x $ac_cv_host
5733shift
5734host_cpu=$1
5735host_vendor=$2
5736shift; shift
5737# Remember, the first character of IFS is used to create $*,
5738# except with old shells:
5739host_os=$*
5740IFS=$ac_save_IFS
5741case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5742
5743
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5745$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5746if ${ac_cv_c_const+:} false; then :
5747  $as_echo_n "(cached) " >&6
5748else
5749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h.  */
5751
5752int
5753main ()
5754{
5755
5756#ifndef __cplusplus
5757  /* Ultrix mips cc rejects this sort of thing.  */
5758  typedef int charset[2];
5759  const charset cs = { 0, 0 };
5760  /* SunOS 4.1.1 cc rejects this.  */
5761  char const *const *pcpcc;
5762  char **ppc;
5763  /* NEC SVR4.0.2 mips cc rejects this.  */
5764  struct point {int x, y;};
5765  static struct point const zero = {0,0};
5766  /* AIX XL C 1.02.0.0 rejects this.
5767     It does not let you subtract one const X* pointer from another in
5768     an arm of an if-expression whose if-part is not a constant
5769     expression */
5770  const char *g = "string";
5771  pcpcc = &g + (g ? g-g : 0);
5772  /* HPUX 7.0 cc rejects these. */
5773  ++pcpcc;
5774  ppc = (char**) pcpcc;
5775  pcpcc = (char const *const *) ppc;
5776  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5777    char tx;
5778    char *t = &tx;
5779    char const *s = 0 ? (char *) 0 : (char const *) 0;
5780
5781    *t++ = 0;
5782    if (s) return 0;
5783  }
5784  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5785    int x[] = {25, 17};
5786    const int *foo = &x[0];
5787    ++foo;
5788  }
5789  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5790    typedef const int *iptr;
5791    iptr p = 0;
5792    ++p;
5793  }
5794  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5795       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5796    struct s { int j; const int *ap[3]; } bx;
5797    struct s *b = &bx; b->j = 5;
5798  }
5799  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5800    const int foo = 10;
5801    if (!foo) return 0;
5802  }
5803  return !cs[0] && !zero.x;
5804#endif
5805
5806  ;
5807  return 0;
5808}
5809_ACEOF
5810if ac_fn_c_try_compile "$LINENO"; then :
5811  ac_cv_c_const=yes
5812else
5813  ac_cv_c_const=no
5814fi
5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816fi
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5818$as_echo "$ac_cv_c_const" >&6; }
5819if test $ac_cv_c_const = no; then
5820
5821$as_echo "#define const /**/" >>confdefs.h
5822
5823fi
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5826$as_echo_n "checking for working volatile... " >&6; }
5827if ${ac_cv_c_volatile+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832
5833int
5834main ()
5835{
5836
5837volatile int x;
5838int * volatile y = (int *) 0;
5839return !x && !y;
5840  ;
5841  return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845  ac_cv_c_volatile=yes
5846else
5847  ac_cv_c_volatile=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5852$as_echo "$ac_cv_c_volatile" >&6; }
5853if test $ac_cv_c_volatile = no; then
5854
5855$as_echo "#define volatile /**/" >>confdefs.h
5856
5857fi
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5860$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5861if ${ac_cv_c_bigendian+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  ac_cv_c_bigendian=unknown
5865    # See if we're dealing with a universal compiler.
5866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h.  */
5868#ifndef __APPLE_CC__
5869	       not a universal capable compiler
5870	     #endif
5871	     typedef int dummy;
5872
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then :
5875
5876	# Check for potential -arch flags.  It is not universal unless
5877	# there are at least two -arch flags with different values.
5878	ac_arch=
5879	ac_prev=
5880	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5881	 if test -n "$ac_prev"; then
5882	   case $ac_word in
5883	     i?86 | x86_64 | ppc | ppc64)
5884	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5885		 ac_arch=$ac_word
5886	       else
5887		 ac_cv_c_bigendian=universal
5888		 break
5889	       fi
5890	       ;;
5891	   esac
5892	   ac_prev=
5893	 elif test "x$ac_word" = "x-arch"; then
5894	   ac_prev=arch
5895	 fi
5896       done
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899    if test $ac_cv_c_bigendian = unknown; then
5900      # See if sys/param.h defines the BYTE_ORDER macro.
5901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903#include <sys/types.h>
5904	     #include <sys/param.h>
5905
5906int
5907main ()
5908{
5909#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5910		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5911		     && LITTLE_ENDIAN)
5912	      bogus endian macros
5913	     #endif
5914
5915  ;
5916  return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"; then :
5920  # It does; now see whether it defined to BIG_ENDIAN or not.
5921	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h.  */
5923#include <sys/types.h>
5924		#include <sys/param.h>
5925
5926int
5927main ()
5928{
5929#if BYTE_ORDER != BIG_ENDIAN
5930		 not big endian
5931		#endif
5932
5933  ;
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_compile "$LINENO"; then :
5938  ac_cv_c_bigendian=yes
5939else
5940  ac_cv_c_bigendian=no
5941fi
5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943fi
5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945    fi
5946    if test $ac_cv_c_bigendian = unknown; then
5947      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5948      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h.  */
5950#include <limits.h>
5951
5952int
5953main ()
5954{
5955#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5956	      bogus endian macros
5957	     #endif
5958
5959  ;
5960  return 0;
5961}
5962_ACEOF
5963if ac_fn_c_try_compile "$LINENO"; then :
5964  # It does; now see whether it defined to _BIG_ENDIAN or not.
5965	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967#include <limits.h>
5968
5969int
5970main ()
5971{
5972#ifndef _BIG_ENDIAN
5973		 not big endian
5974		#endif
5975
5976  ;
5977  return 0;
5978}
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981  ac_cv_c_bigendian=yes
5982else
5983  ac_cv_c_bigendian=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986fi
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988    fi
5989    if test $ac_cv_c_bigendian = unknown; then
5990      # Compile a test program.
5991      if test "$cross_compiling" = yes; then :
5992  # Try to guess by grepping values from an object file.
5993	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h.  */
5995short int ascii_mm[] =
5996		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5997		short int ascii_ii[] =
5998		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5999		int use_ascii (int i) {
6000		  return ascii_mm[i] + ascii_ii[i];
6001		}
6002		short int ebcdic_ii[] =
6003		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6004		short int ebcdic_mm[] =
6005		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6006		int use_ebcdic (int i) {
6007		  return ebcdic_mm[i] + ebcdic_ii[i];
6008		}
6009		extern int foo;
6010
6011int
6012main ()
6013{
6014return use_ascii (foo) == use_ebcdic (foo);
6015  ;
6016  return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_compile "$LINENO"; then :
6020  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6021	      ac_cv_c_bigendian=yes
6022	    fi
6023	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6024	      if test "$ac_cv_c_bigendian" = unknown; then
6025		ac_cv_c_bigendian=no
6026	      else
6027		# finding both strings is unlikely to happen, but who knows?
6028		ac_cv_c_bigendian=unknown
6029	      fi
6030	    fi
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033else
6034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036$ac_includes_default
6037int
6038main ()
6039{
6040
6041	     /* Are we little or big endian?  From Harbison&Steele.  */
6042	     union
6043	     {
6044	       long int l;
6045	       char c[sizeof (long int)];
6046	     } u;
6047	     u.l = 1;
6048	     return u.c[sizeof (long int) - 1] == 1;
6049
6050  ;
6051  return 0;
6052}
6053_ACEOF
6054if ac_fn_c_try_run "$LINENO"; then :
6055  ac_cv_c_bigendian=no
6056else
6057  ac_cv_c_bigendian=yes
6058fi
6059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6060  conftest.$ac_objext conftest.beam conftest.$ac_ext
6061fi
6062
6063    fi
6064fi
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6066$as_echo "$ac_cv_c_bigendian" >&6; }
6067 case $ac_cv_c_bigendian in #(
6068   yes)
6069     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6070;; #(
6071   no)
6072      ;; #(
6073   universal)
6074
6075$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6076
6077     ;; #(
6078   *)
6079     as_fn_error $? "unknown endianness
6080 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6081 esac
6082
6083
6084
6085
6086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -fno-common" >&5
6087$as_echo_n "checking whether compiler handles -fno-common... " >&6; }
6088if ${ul_cv_warn__fno_common+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091
6092    ul_save_CPPFLAGS="$CPPFLAGS"
6093    CPPFLAGS="-Werror ${CPPFLAGS} -fno-common"
6094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h.  */
6096
6097int
6098main ()
6099{
6100
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105if ac_fn_c_try_cpp "$LINENO"; then :
6106  ul_cv_warn__fno_common=yes
6107else
6108  ul_cv_warn__fno_common=no
6109fi
6110rm -f conftest.err conftest.i conftest.$ac_ext
6111    CPPFLAGS="$ul_save_CPPFLAGS"
6112
6113fi
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__fno_common" >&5
6115$as_echo "$ul_cv_warn__fno_common" >&6; }
6116  if test "x$ul_cv_warn__fno_common" = xyes; then :
6117  as_fn_append WARN_CFLAGS " -fno-common"
6118fi
6119
6120
6121
6122    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wall" >&5
6123$as_echo_n "checking whether compiler handles -Wall... " >&6; }
6124if ${ul_cv_warn__Wall+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127
6128    ul_save_CPPFLAGS="$CPPFLAGS"
6129    CPPFLAGS="-Werror ${CPPFLAGS} -Wall"
6130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132
6133int
6134main ()
6135{
6136
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141if ac_fn_c_try_cpp "$LINENO"; then :
6142  ul_cv_warn__Wall=yes
6143else
6144  ul_cv_warn__Wall=no
6145fi
6146rm -f conftest.err conftest.i conftest.$ac_ext
6147    CPPFLAGS="$ul_save_CPPFLAGS"
6148
6149fi
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wall" >&5
6151$as_echo "$ul_cv_warn__Wall" >&6; }
6152  if test "x$ul_cv_warn__Wall" = xyes; then :
6153  as_fn_append WARN_CFLAGS " -Wall"
6154fi
6155
6156
6157
6158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Werror=sequence-point" >&5
6159$as_echo_n "checking whether compiler handles -Werror=sequence-point... " >&6; }
6160if ${ul_cv_warn__Werror_sequence_point+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163
6164    ul_save_CPPFLAGS="$CPPFLAGS"
6165    CPPFLAGS="-Werror ${CPPFLAGS} -Werror=sequence-point"
6166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168
6169int
6170main ()
6171{
6172
6173  ;
6174  return 0;
6175}
6176_ACEOF
6177if ac_fn_c_try_cpp "$LINENO"; then :
6178  ul_cv_warn__Werror_sequence_point=yes
6179else
6180  ul_cv_warn__Werror_sequence_point=no
6181fi
6182rm -f conftest.err conftest.i conftest.$ac_ext
6183    CPPFLAGS="$ul_save_CPPFLAGS"
6184
6185fi
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Werror_sequence_point" >&5
6187$as_echo "$ul_cv_warn__Werror_sequence_point" >&6; }
6188  if test "x$ul_cv_warn__Werror_sequence_point" = xyes; then :
6189  as_fn_append WARN_CFLAGS " -Werror=sequence-point"
6190fi
6191
6192
6193
6194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wextra" >&5
6195$as_echo_n "checking whether compiler handles -Wextra... " >&6; }
6196if ${ul_cv_warn__Wextra+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199
6200    ul_save_CPPFLAGS="$CPPFLAGS"
6201    CPPFLAGS="-Werror ${CPPFLAGS} -Wextra"
6202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204
6205int
6206main ()
6207{
6208
6209  ;
6210  return 0;
6211}
6212_ACEOF
6213if ac_fn_c_try_cpp "$LINENO"; then :
6214  ul_cv_warn__Wextra=yes
6215else
6216  ul_cv_warn__Wextra=no
6217fi
6218rm -f conftest.err conftest.i conftest.$ac_ext
6219    CPPFLAGS="$ul_save_CPPFLAGS"
6220
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wextra" >&5
6223$as_echo "$ul_cv_warn__Wextra" >&6; }
6224  if test "x$ul_cv_warn__Wextra" = xyes; then :
6225  as_fn_append WARN_CFLAGS " -Wextra"
6226fi
6227
6228
6229
6230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wmissing-declarations" >&5
6231$as_echo_n "checking whether compiler handles -Wmissing-declarations... " >&6; }
6232if ${ul_cv_warn__Wmissing_declarations+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235
6236    ul_save_CPPFLAGS="$CPPFLAGS"
6237    CPPFLAGS="-Werror ${CPPFLAGS} -Wmissing-declarations"
6238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h.  */
6240
6241int
6242main ()
6243{
6244
6245  ;
6246  return 0;
6247}
6248_ACEOF
6249if ac_fn_c_try_cpp "$LINENO"; then :
6250  ul_cv_warn__Wmissing_declarations=yes
6251else
6252  ul_cv_warn__Wmissing_declarations=no
6253fi
6254rm -f conftest.err conftest.i conftest.$ac_ext
6255    CPPFLAGS="$ul_save_CPPFLAGS"
6256
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wmissing_declarations" >&5
6259$as_echo "$ul_cv_warn__Wmissing_declarations" >&6; }
6260  if test "x$ul_cv_warn__Wmissing_declarations" = xyes; then :
6261  as_fn_append WARN_CFLAGS " -Wmissing-declarations"
6262fi
6263
6264
6265
6266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wmissing-parameter-type" >&5
6267$as_echo_n "checking whether compiler handles -Wmissing-parameter-type... " >&6; }
6268if ${ul_cv_warn__Wmissing_parameter_type+:} false; then :
6269  $as_echo_n "(cached) " >&6
6270else
6271
6272    ul_save_CPPFLAGS="$CPPFLAGS"
6273    CPPFLAGS="-Werror ${CPPFLAGS} -Wmissing-parameter-type"
6274    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276
6277int
6278main ()
6279{
6280
6281  ;
6282  return 0;
6283}
6284_ACEOF
6285if ac_fn_c_try_cpp "$LINENO"; then :
6286  ul_cv_warn__Wmissing_parameter_type=yes
6287else
6288  ul_cv_warn__Wmissing_parameter_type=no
6289fi
6290rm -f conftest.err conftest.i conftest.$ac_ext
6291    CPPFLAGS="$ul_save_CPPFLAGS"
6292
6293fi
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wmissing_parameter_type" >&5
6295$as_echo "$ul_cv_warn__Wmissing_parameter_type" >&6; }
6296  if test "x$ul_cv_warn__Wmissing_parameter_type" = xyes; then :
6297  as_fn_append WARN_CFLAGS " -Wmissing-parameter-type"
6298fi
6299
6300
6301
6302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wmissing-prototypes" >&5
6303$as_echo_n "checking whether compiler handles -Wmissing-prototypes... " >&6; }
6304if ${ul_cv_warn__Wmissing_prototypes+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307
6308    ul_save_CPPFLAGS="$CPPFLAGS"
6309    CPPFLAGS="-Werror ${CPPFLAGS} -Wmissing-prototypes"
6310    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312
6313int
6314main ()
6315{
6316
6317  ;
6318  return 0;
6319}
6320_ACEOF
6321if ac_fn_c_try_cpp "$LINENO"; then :
6322  ul_cv_warn__Wmissing_prototypes=yes
6323else
6324  ul_cv_warn__Wmissing_prototypes=no
6325fi
6326rm -f conftest.err conftest.i conftest.$ac_ext
6327    CPPFLAGS="$ul_save_CPPFLAGS"
6328
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wmissing_prototypes" >&5
6331$as_echo "$ul_cv_warn__Wmissing_prototypes" >&6; }
6332  if test "x$ul_cv_warn__Wmissing_prototypes" = xyes; then :
6333  as_fn_append WARN_CFLAGS " -Wmissing-prototypes"
6334fi
6335
6336
6337
6338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-missing-field-initializers" >&5
6339$as_echo_n "checking whether compiler handles -Wno-missing-field-initializers... " >&6; }
6340if ${ul_cv_warn__Wno_missing_field_initializers+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343
6344    ul_save_CPPFLAGS="$CPPFLAGS"
6345    CPPFLAGS="-Werror ${CPPFLAGS} -Wno-missing-field-initializers"
6346    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h.  */
6348
6349int
6350main ()
6351{
6352
6353  ;
6354  return 0;
6355}
6356_ACEOF
6357if ac_fn_c_try_cpp "$LINENO"; then :
6358  ul_cv_warn__Wno_missing_field_initializers=yes
6359else
6360  ul_cv_warn__Wno_missing_field_initializers=no
6361fi
6362rm -f conftest.err conftest.i conftest.$ac_ext
6363    CPPFLAGS="$ul_save_CPPFLAGS"
6364
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wno_missing_field_initializers" >&5
6367$as_echo "$ul_cv_warn__Wno_missing_field_initializers" >&6; }
6368  if test "x$ul_cv_warn__Wno_missing_field_initializers" = xyes; then :
6369  as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
6370fi
6371
6372
6373
6374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wredundant-decls" >&5
6375$as_echo_n "checking whether compiler handles -Wredundant-decls... " >&6; }
6376if ${ul_cv_warn__Wredundant_decls+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379
6380    ul_save_CPPFLAGS="$CPPFLAGS"
6381    CPPFLAGS="-Werror ${CPPFLAGS} -Wredundant-decls"
6382    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384
6385int
6386main ()
6387{
6388
6389  ;
6390  return 0;
6391}
6392_ACEOF
6393if ac_fn_c_try_cpp "$LINENO"; then :
6394  ul_cv_warn__Wredundant_decls=yes
6395else
6396  ul_cv_warn__Wredundant_decls=no
6397fi
6398rm -f conftest.err conftest.i conftest.$ac_ext
6399    CPPFLAGS="$ul_save_CPPFLAGS"
6400
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wredundant_decls" >&5
6403$as_echo "$ul_cv_warn__Wredundant_decls" >&6; }
6404  if test "x$ul_cv_warn__Wredundant_decls" = xyes; then :
6405  as_fn_append WARN_CFLAGS " -Wredundant-decls"
6406fi
6407
6408
6409
6410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wsign-compare" >&5
6411$as_echo_n "checking whether compiler handles -Wsign-compare... " >&6; }
6412if ${ul_cv_warn__Wsign_compare+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415
6416    ul_save_CPPFLAGS="$CPPFLAGS"
6417    CPPFLAGS="-Werror ${CPPFLAGS} -Wsign-compare"
6418    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h.  */
6420
6421int
6422main ()
6423{
6424
6425  ;
6426  return 0;
6427}
6428_ACEOF
6429if ac_fn_c_try_cpp "$LINENO"; then :
6430  ul_cv_warn__Wsign_compare=yes
6431else
6432  ul_cv_warn__Wsign_compare=no
6433fi
6434rm -f conftest.err conftest.i conftest.$ac_ext
6435    CPPFLAGS="$ul_save_CPPFLAGS"
6436
6437fi
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wsign_compare" >&5
6439$as_echo "$ul_cv_warn__Wsign_compare" >&6; }
6440  if test "x$ul_cv_warn__Wsign_compare" = xyes; then :
6441  as_fn_append WARN_CFLAGS " -Wsign-compare"
6442fi
6443
6444
6445
6446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wtype-limits" >&5
6447$as_echo_n "checking whether compiler handles -Wtype-limits... " >&6; }
6448if ${ul_cv_warn__Wtype_limits+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451
6452    ul_save_CPPFLAGS="$CPPFLAGS"
6453    CPPFLAGS="-Werror ${CPPFLAGS} -Wtype-limits"
6454    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456
6457int
6458main ()
6459{
6460
6461  ;
6462  return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_cpp "$LINENO"; then :
6466  ul_cv_warn__Wtype_limits=yes
6467else
6468  ul_cv_warn__Wtype_limits=no
6469fi
6470rm -f conftest.err conftest.i conftest.$ac_ext
6471    CPPFLAGS="$ul_save_CPPFLAGS"
6472
6473fi
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wtype_limits" >&5
6475$as_echo "$ul_cv_warn__Wtype_limits" >&6; }
6476  if test "x$ul_cv_warn__Wtype_limits" = xyes; then :
6477  as_fn_append WARN_CFLAGS " -Wtype-limits"
6478fi
6479
6480
6481
6482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wuninitialized" >&5
6483$as_echo_n "checking whether compiler handles -Wuninitialized... " >&6; }
6484if ${ul_cv_warn__Wuninitialized+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487
6488    ul_save_CPPFLAGS="$CPPFLAGS"
6489    CPPFLAGS="-Werror ${CPPFLAGS} -Wuninitialized"
6490    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h.  */
6492
6493int
6494main ()
6495{
6496
6497  ;
6498  return 0;
6499}
6500_ACEOF
6501if ac_fn_c_try_cpp "$LINENO"; then :
6502  ul_cv_warn__Wuninitialized=yes
6503else
6504  ul_cv_warn__Wuninitialized=no
6505fi
6506rm -f conftest.err conftest.i conftest.$ac_ext
6507    CPPFLAGS="$ul_save_CPPFLAGS"
6508
6509fi
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wuninitialized" >&5
6511$as_echo "$ul_cv_warn__Wuninitialized" >&6; }
6512  if test "x$ul_cv_warn__Wuninitialized" = xyes; then :
6513  as_fn_append WARN_CFLAGS " -Wuninitialized"
6514fi
6515
6516
6517
6518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wunused-but-set-parameter" >&5
6519$as_echo_n "checking whether compiler handles -Wunused-but-set-parameter... " >&6; }
6520if ${ul_cv_warn__Wunused_but_set_parameter+:} false; then :
6521  $as_echo_n "(cached) " >&6
6522else
6523
6524    ul_save_CPPFLAGS="$CPPFLAGS"
6525    CPPFLAGS="-Werror ${CPPFLAGS} -Wunused-but-set-parameter"
6526    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h.  */
6528
6529int
6530main ()
6531{
6532
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537if ac_fn_c_try_cpp "$LINENO"; then :
6538  ul_cv_warn__Wunused_but_set_parameter=yes
6539else
6540  ul_cv_warn__Wunused_but_set_parameter=no
6541fi
6542rm -f conftest.err conftest.i conftest.$ac_ext
6543    CPPFLAGS="$ul_save_CPPFLAGS"
6544
6545fi
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wunused_but_set_parameter" >&5
6547$as_echo "$ul_cv_warn__Wunused_but_set_parameter" >&6; }
6548  if test "x$ul_cv_warn__Wunused_but_set_parameter" = xyes; then :
6549  as_fn_append WARN_CFLAGS " -Wunused-but-set-parameter"
6550fi
6551
6552
6553
6554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wunused-but-set-variable" >&5
6555$as_echo_n "checking whether compiler handles -Wunused-but-set-variable... " >&6; }
6556if ${ul_cv_warn__Wunused_but_set_variable+:} false; then :
6557  $as_echo_n "(cached) " >&6
6558else
6559
6560    ul_save_CPPFLAGS="$CPPFLAGS"
6561    CPPFLAGS="-Werror ${CPPFLAGS} -Wunused-but-set-variable"
6562    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564
6565int
6566main ()
6567{
6568
6569  ;
6570  return 0;
6571}
6572_ACEOF
6573if ac_fn_c_try_cpp "$LINENO"; then :
6574  ul_cv_warn__Wunused_but_set_variable=yes
6575else
6576  ul_cv_warn__Wunused_but_set_variable=no
6577fi
6578rm -f conftest.err conftest.i conftest.$ac_ext
6579    CPPFLAGS="$ul_save_CPPFLAGS"
6580
6581fi
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wunused_but_set_variable" >&5
6583$as_echo "$ul_cv_warn__Wunused_but_set_variable" >&6; }
6584  if test "x$ul_cv_warn__Wunused_but_set_variable" = xyes; then :
6585  as_fn_append WARN_CFLAGS " -Wunused-but-set-variable"
6586fi
6587
6588
6589
6590    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wunused-parameter" >&5
6591$as_echo_n "checking whether compiler handles -Wunused-parameter... " >&6; }
6592if ${ul_cv_warn__Wunused_parameter+:} false; then :
6593  $as_echo_n "(cached) " >&6
6594else
6595
6596    ul_save_CPPFLAGS="$CPPFLAGS"
6597    CPPFLAGS="-Werror ${CPPFLAGS} -Wunused-parameter"
6598    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600
6601int
6602main ()
6603{
6604
6605  ;
6606  return 0;
6607}
6608_ACEOF
6609if ac_fn_c_try_cpp "$LINENO"; then :
6610  ul_cv_warn__Wunused_parameter=yes
6611else
6612  ul_cv_warn__Wunused_parameter=no
6613fi
6614rm -f conftest.err conftest.i conftest.$ac_ext
6615    CPPFLAGS="$ul_save_CPPFLAGS"
6616
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wunused_parameter" >&5
6619$as_echo "$ul_cv_warn__Wunused_parameter" >&6; }
6620  if test "x$ul_cv_warn__Wunused_parameter" = xyes; then :
6621  as_fn_append WARN_CFLAGS " -Wunused-parameter"
6622fi
6623
6624
6625
6626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wunused-result" >&5
6627$as_echo_n "checking whether compiler handles -Wunused-result... " >&6; }
6628if ${ul_cv_warn__Wunused_result+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631
6632    ul_save_CPPFLAGS="$CPPFLAGS"
6633    CPPFLAGS="-Werror ${CPPFLAGS} -Wunused-result"
6634    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635/* end confdefs.h.  */
6636
6637int
6638main ()
6639{
6640
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645if ac_fn_c_try_cpp "$LINENO"; then :
6646  ul_cv_warn__Wunused_result=yes
6647else
6648  ul_cv_warn__Wunused_result=no
6649fi
6650rm -f conftest.err conftest.i conftest.$ac_ext
6651    CPPFLAGS="$ul_save_CPPFLAGS"
6652
6653fi
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wunused_result" >&5
6655$as_echo "$ul_cv_warn__Wunused_result" >&6; }
6656  if test "x$ul_cv_warn__Wunused_result" = xyes; then :
6657  as_fn_append WARN_CFLAGS " -Wunused-result"
6658fi
6659
6660
6661
6662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wunused-variable" >&5
6663$as_echo_n "checking whether compiler handles -Wunused-variable... " >&6; }
6664if ${ul_cv_warn__Wunused_variable+:} false; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667
6668    ul_save_CPPFLAGS="$CPPFLAGS"
6669    CPPFLAGS="-Werror ${CPPFLAGS} -Wunused-variable"
6670    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h.  */
6672
6673int
6674main ()
6675{
6676
6677  ;
6678  return 0;
6679}
6680_ACEOF
6681if ac_fn_c_try_cpp "$LINENO"; then :
6682  ul_cv_warn__Wunused_variable=yes
6683else
6684  ul_cv_warn__Wunused_variable=no
6685fi
6686rm -f conftest.err conftest.i conftest.$ac_ext
6687    CPPFLAGS="$ul_save_CPPFLAGS"
6688
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wunused_variable" >&5
6691$as_echo "$ul_cv_warn__Wunused_variable" >&6; }
6692  if test "x$ul_cv_warn__Wunused_variable" = xyes; then :
6693  as_fn_append WARN_CFLAGS " -Wunused-variable"
6694fi
6695
6696
6697
6698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wnested-externs" >&5
6699$as_echo_n "checking whether compiler handles -Wnested-externs... " >&6; }
6700if ${ul_cv_warn__Wnested_externs+:} false; then :
6701  $as_echo_n "(cached) " >&6
6702else
6703
6704    ul_save_CPPFLAGS="$CPPFLAGS"
6705    CPPFLAGS="-Werror ${CPPFLAGS} -Wnested-externs"
6706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708
6709int
6710main ()
6711{
6712
6713  ;
6714  return 0;
6715}
6716_ACEOF
6717if ac_fn_c_try_cpp "$LINENO"; then :
6718  ul_cv_warn__Wnested_externs=yes
6719else
6720  ul_cv_warn__Wnested_externs=no
6721fi
6722rm -f conftest.err conftest.i conftest.$ac_ext
6723    CPPFLAGS="$ul_save_CPPFLAGS"
6724
6725fi
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wnested_externs" >&5
6727$as_echo "$ul_cv_warn__Wnested_externs" >&6; }
6728  if test "x$ul_cv_warn__Wnested_externs" = xyes; then :
6729  as_fn_append WARN_CFLAGS " -Wnested-externs"
6730fi
6731
6732
6733
6734    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wpointer-arith" >&5
6735$as_echo_n "checking whether compiler handles -Wpointer-arith... " >&6; }
6736if ${ul_cv_warn__Wpointer_arith+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739
6740    ul_save_CPPFLAGS="$CPPFLAGS"
6741    CPPFLAGS="-Werror ${CPPFLAGS} -Wpointer-arith"
6742    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744
6745int
6746main ()
6747{
6748
6749  ;
6750  return 0;
6751}
6752_ACEOF
6753if ac_fn_c_try_cpp "$LINENO"; then :
6754  ul_cv_warn__Wpointer_arith=yes
6755else
6756  ul_cv_warn__Wpointer_arith=no
6757fi
6758rm -f conftest.err conftest.i conftest.$ac_ext
6759    CPPFLAGS="$ul_save_CPPFLAGS"
6760
6761fi
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wpointer_arith" >&5
6763$as_echo "$ul_cv_warn__Wpointer_arith" >&6; }
6764  if test "x$ul_cv_warn__Wpointer_arith" = xyes; then :
6765  as_fn_append WARN_CFLAGS " -Wpointer-arith"
6766fi
6767
6768
6769
6770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wstrict-prototypes" >&5
6771$as_echo_n "checking whether compiler handles -Wstrict-prototypes... " >&6; }
6772if ${ul_cv_warn__Wstrict_prototypes+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775
6776    ul_save_CPPFLAGS="$CPPFLAGS"
6777    CPPFLAGS="-Werror ${CPPFLAGS} -Wstrict-prototypes"
6778    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h.  */
6780
6781int
6782main ()
6783{
6784
6785  ;
6786  return 0;
6787}
6788_ACEOF
6789if ac_fn_c_try_cpp "$LINENO"; then :
6790  ul_cv_warn__Wstrict_prototypes=yes
6791else
6792  ul_cv_warn__Wstrict_prototypes=no
6793fi
6794rm -f conftest.err conftest.i conftest.$ac_ext
6795    CPPFLAGS="$ul_save_CPPFLAGS"
6796
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wstrict_prototypes" >&5
6799$as_echo "$ul_cv_warn__Wstrict_prototypes" >&6; }
6800  if test "x$ul_cv_warn__Wstrict_prototypes" = xyes; then :
6801  as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
6802fi
6803
6804
6805
6806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wformat-security" >&5
6807$as_echo_n "checking whether compiler handles -Wformat-security... " >&6; }
6808if ${ul_cv_warn__Wformat_security+:} false; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811
6812    ul_save_CPPFLAGS="$CPPFLAGS"
6813    CPPFLAGS="-Werror ${CPPFLAGS} -Wformat-security"
6814    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h.  */
6816
6817int
6818main ()
6819{
6820
6821  ;
6822  return 0;
6823}
6824_ACEOF
6825if ac_fn_c_try_cpp "$LINENO"; then :
6826  ul_cv_warn__Wformat_security=yes
6827else
6828  ul_cv_warn__Wformat_security=no
6829fi
6830rm -f conftest.err conftest.i conftest.$ac_ext
6831    CPPFLAGS="$ul_save_CPPFLAGS"
6832
6833fi
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wformat_security" >&5
6835$as_echo "$ul_cv_warn__Wformat_security" >&6; }
6836  if test "x$ul_cv_warn__Wformat_security" = xyes; then :
6837  as_fn_append WARN_CFLAGS " -Wformat-security"
6838fi
6839
6840
6841
6842
6843
6844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler handles -Wno-clobbered" >&5
6845$as_echo_n "checking whether compiler handles -Wno-clobbered... " >&6; }
6846if ${ul_cv_warn__Wno_clobbered+:} false; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849
6850    ul_save_CPPFLAGS="$CPPFLAGS"
6851    CPPFLAGS="-Werror ${CPPFLAGS} -Wno-clobbered"
6852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h.  */
6854
6855int
6856main ()
6857{
6858
6859  ;
6860  return 0;
6861}
6862_ACEOF
6863if ac_fn_c_try_cpp "$LINENO"; then :
6864  ul_cv_warn__Wno_clobbered=yes
6865else
6866  ul_cv_warn__Wno_clobbered=no
6867fi
6868rm -f conftest.err conftest.i conftest.$ac_ext
6869    CPPFLAGS="$ul_save_CPPFLAGS"
6870
6871fi
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_warn__Wno_clobbered" >&5
6873$as_echo "$ul_cv_warn__Wno_clobbered" >&6; }
6874  if test "x$ul_cv_warn__Wno_clobbered" = xyes; then :
6875  as_fn_append BSD_WARN_CFLAGS " -Wno-clobbered"
6876fi
6877
6878
6879
6880case `pwd` in
6881  *\ * | *\	*)
6882    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6883$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6884esac
6885
6886
6887
6888macro_version='2.4.2'
6889macro_revision='1.3337'
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903ltmain="$ac_aux_dir/ltmain.sh"
6904
6905# Backslashify metacharacters that are still active within
6906# double-quoted strings.
6907sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6908
6909# Same as above, but do not quote variable references.
6910double_quote_subst='s/\(["`\\]\)/\\\1/g'
6911
6912# Sed substitution to delay expansion of an escaped shell variable in a
6913# double_quote_subst'ed string.
6914delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6915
6916# Sed substitution to delay expansion of an escaped single quote.
6917delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6918
6919# Sed substitution to avoid accidental globbing in evaled expressions
6920no_glob_subst='s/\*/\\\*/g'
6921
6922ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6923ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6924ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6925
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6927$as_echo_n "checking how to print strings... " >&6; }
6928# Test print first, because it will be a builtin if present.
6929if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6930   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6931  ECHO='print -r --'
6932elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6933  ECHO='printf %s\n'
6934else
6935  # Use this function as a fallback that always works.
6936  func_fallback_echo ()
6937  {
6938    eval 'cat <<_LTECHO_EOF
6939$1
6940_LTECHO_EOF'
6941  }
6942  ECHO='func_fallback_echo'
6943fi
6944
6945# func_echo_all arg...
6946# Invoke $ECHO with all args, space-separated.
6947func_echo_all ()
6948{
6949    $ECHO ""
6950}
6951
6952case "$ECHO" in
6953  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6954$as_echo "printf" >&6; } ;;
6955  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6956$as_echo "print -r" >&6; } ;;
6957  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6958$as_echo "cat" >&6; } ;;
6959esac
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6975$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6976if ${ac_cv_path_SED+:} false; then :
6977  $as_echo_n "(cached) " >&6
6978else
6979            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6980     for ac_i in 1 2 3 4 5 6 7; do
6981       ac_script="$ac_script$as_nl$ac_script"
6982     done
6983     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6984     { ac_script=; unset ac_script;}
6985     if test -z "$SED"; then
6986  ac_path_SED_found=false
6987  # Loop through the user's path and test for each of PROGNAME-LIST
6988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991  IFS=$as_save_IFS
6992  test -z "$as_dir" && as_dir=.
6993    for ac_prog in sed gsed; do
6994    for ac_exec_ext in '' $ac_executable_extensions; do
6995      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6996      as_fn_executable_p "$ac_path_SED" || continue
6997# Check for GNU ac_path_SED and select it if it is found.
6998  # Check for GNU $ac_path_SED
6999case `"$ac_path_SED" --version 2>&1` in
7000*GNU*)
7001  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7002*)
7003  ac_count=0
7004  $as_echo_n 0123456789 >"conftest.in"
7005  while :
7006  do
7007    cat "conftest.in" "conftest.in" >"conftest.tmp"
7008    mv "conftest.tmp" "conftest.in"
7009    cp "conftest.in" "conftest.nl"
7010    $as_echo '' >> "conftest.nl"
7011    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7012    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7013    as_fn_arith $ac_count + 1 && ac_count=$as_val
7014    if test $ac_count -gt ${ac_path_SED_max-0}; then
7015      # Best one so far, save it but keep looking for a better one
7016      ac_cv_path_SED="$ac_path_SED"
7017      ac_path_SED_max=$ac_count
7018    fi
7019    # 10*(2^10) chars as input seems more than enough
7020    test $ac_count -gt 10 && break
7021  done
7022  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7023esac
7024
7025      $ac_path_SED_found && break 3
7026    done
7027  done
7028  done
7029IFS=$as_save_IFS
7030  if test -z "$ac_cv_path_SED"; then
7031    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7032  fi
7033else
7034  ac_cv_path_SED=$SED
7035fi
7036
7037fi
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7039$as_echo "$ac_cv_path_SED" >&6; }
7040 SED="$ac_cv_path_SED"
7041  rm -f conftest.sed
7042
7043test -z "$SED" && SED=sed
7044Xsed="$SED -e 1s/^X//"
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7057$as_echo_n "checking for fgrep... " >&6; }
7058if ${ac_cv_path_FGREP+:} false; then :
7059  $as_echo_n "(cached) " >&6
7060else
7061  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7062   then ac_cv_path_FGREP="$GREP -F"
7063   else
7064     if test -z "$FGREP"; then
7065  ac_path_FGREP_found=false
7066  # Loop through the user's path and test for each of PROGNAME-LIST
7067  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7069do
7070  IFS=$as_save_IFS
7071  test -z "$as_dir" && as_dir=.
7072    for ac_prog in fgrep; do
7073    for ac_exec_ext in '' $ac_executable_extensions; do
7074      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7075      as_fn_executable_p "$ac_path_FGREP" || continue
7076# Check for GNU ac_path_FGREP and select it if it is found.
7077  # Check for GNU $ac_path_FGREP
7078case `"$ac_path_FGREP" --version 2>&1` in
7079*GNU*)
7080  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7081*)
7082  ac_count=0
7083  $as_echo_n 0123456789 >"conftest.in"
7084  while :
7085  do
7086    cat "conftest.in" "conftest.in" >"conftest.tmp"
7087    mv "conftest.tmp" "conftest.in"
7088    cp "conftest.in" "conftest.nl"
7089    $as_echo 'FGREP' >> "conftest.nl"
7090    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7091    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7092    as_fn_arith $ac_count + 1 && ac_count=$as_val
7093    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7094      # Best one so far, save it but keep looking for a better one
7095      ac_cv_path_FGREP="$ac_path_FGREP"
7096      ac_path_FGREP_max=$ac_count
7097    fi
7098    # 10*(2^10) chars as input seems more than enough
7099    test $ac_count -gt 10 && break
7100  done
7101  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7102esac
7103
7104      $ac_path_FGREP_found && break 3
7105    done
7106  done
7107  done
7108IFS=$as_save_IFS
7109  if test -z "$ac_cv_path_FGREP"; then
7110    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7111  fi
7112else
7113  ac_cv_path_FGREP=$FGREP
7114fi
7115
7116   fi
7117fi
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7119$as_echo "$ac_cv_path_FGREP" >&6; }
7120 FGREP="$ac_cv_path_FGREP"
7121
7122
7123test -z "$GREP" && GREP=grep
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143# Check whether --with-gnu-ld was given.
7144if test "${with_gnu_ld+set}" = set; then :
7145  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7146else
7147  with_gnu_ld=no
7148fi
7149
7150ac_prog=ld
7151if test "$GCC" = yes; then
7152  # Check if gcc -print-prog-name=ld gives a path.
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7154$as_echo_n "checking for ld used by $CC... " >&6; }
7155  case $host in
7156  *-*-mingw*)
7157    # gcc leaves a trailing carriage return which upsets mingw
7158    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7159  *)
7160    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7161  esac
7162  case $ac_prog in
7163    # Accept absolute paths.
7164    [\\/]* | ?:[\\/]*)
7165      re_direlt='/[^/][^/]*/\.\./'
7166      # Canonicalize the pathname of ld
7167      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7168      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7169	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7170      done
7171      test -z "$LD" && LD="$ac_prog"
7172      ;;
7173  "")
7174    # If it fails, then pretend we aren't using GCC.
7175    ac_prog=ld
7176    ;;
7177  *)
7178    # If it is relative, then search for the first ld in PATH.
7179    with_gnu_ld=unknown
7180    ;;
7181  esac
7182elif test "$with_gnu_ld" = yes; then
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7184$as_echo_n "checking for GNU ld... " >&6; }
7185else
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7187$as_echo_n "checking for non-GNU ld... " >&6; }
7188fi
7189if ${lt_cv_path_LD+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  if test -z "$LD"; then
7193  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7194  for ac_dir in $PATH; do
7195    IFS="$lt_save_ifs"
7196    test -z "$ac_dir" && ac_dir=.
7197    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7198      lt_cv_path_LD="$ac_dir/$ac_prog"
7199      # Check to see if the program is GNU ld.  I'd rather use --version,
7200      # but apparently some variants of GNU ld only accept -v.
7201      # Break only if it was the GNU/non-GNU ld that we prefer.
7202      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7203      *GNU* | *'with BFD'*)
7204	test "$with_gnu_ld" != no && break
7205	;;
7206      *)
7207	test "$with_gnu_ld" != yes && break
7208	;;
7209      esac
7210    fi
7211  done
7212  IFS="$lt_save_ifs"
7213else
7214  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7215fi
7216fi
7217
7218LD="$lt_cv_path_LD"
7219if test -n "$LD"; then
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7221$as_echo "$LD" >&6; }
7222else
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
7225fi
7226test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7228$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7229if ${lt_cv_prog_gnu_ld+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7233case `$LD -v 2>&1 </dev/null` in
7234*GNU* | *'with BFD'*)
7235  lt_cv_prog_gnu_ld=yes
7236  ;;
7237*)
7238  lt_cv_prog_gnu_ld=no
7239  ;;
7240esac
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7243$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7244with_gnu_ld=$lt_cv_prog_gnu_ld
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7255$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7256if ${lt_cv_path_NM+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  if test -n "$NM"; then
7260  # Let the user override the test.
7261  lt_cv_path_NM="$NM"
7262else
7263  lt_nm_to_check="${ac_tool_prefix}nm"
7264  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7265    lt_nm_to_check="$lt_nm_to_check nm"
7266  fi
7267  for lt_tmp_nm in $lt_nm_to_check; do
7268    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7269    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7270      IFS="$lt_save_ifs"
7271      test -z "$ac_dir" && ac_dir=.
7272      tmp_nm="$ac_dir/$lt_tmp_nm"
7273      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7274	# Check to see if the nm accepts a BSD-compat flag.
7275	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7276	#   nm: unknown option "B" ignored
7277	# Tru64's nm complains that /dev/null is an invalid object file
7278	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7279	*/dev/null* | *'Invalid file or object type'*)
7280	  lt_cv_path_NM="$tmp_nm -B"
7281	  break
7282	  ;;
7283	*)
7284	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7285	  */dev/null*)
7286	    lt_cv_path_NM="$tmp_nm -p"
7287	    break
7288	    ;;
7289	  *)
7290	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7291	    continue # so that we can try to find one that supports BSD flags
7292	    ;;
7293	  esac
7294	  ;;
7295	esac
7296      fi
7297    done
7298    IFS="$lt_save_ifs"
7299  done
7300  : ${lt_cv_path_NM=no}
7301fi
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7304$as_echo "$lt_cv_path_NM" >&6; }
7305if test "$lt_cv_path_NM" != "no"; then
7306  NM="$lt_cv_path_NM"
7307else
7308  # Didn't find any BSD compatible name lister, look for dumpbin.
7309  if test -n "$DUMPBIN"; then :
7310    # Let the user override the test.
7311  else
7312    if test -n "$ac_tool_prefix"; then
7313  for ac_prog in dumpbin "link -dump"
7314  do
7315    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7316set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if ${ac_cv_prog_DUMPBIN+:} false; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  if test -n "$DUMPBIN"; then
7323  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328  IFS=$as_save_IFS
7329  test -z "$as_dir" && as_dir=.
7330    for ac_exec_ext in '' $ac_executable_extensions; do
7331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334    break 2
7335  fi
7336done
7337  done
7338IFS=$as_save_IFS
7339
7340fi
7341fi
7342DUMPBIN=$ac_cv_prog_DUMPBIN
7343if test -n "$DUMPBIN"; then
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7345$as_echo "$DUMPBIN" >&6; }
7346else
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348$as_echo "no" >&6; }
7349fi
7350
7351
7352    test -n "$DUMPBIN" && break
7353  done
7354fi
7355if test -z "$DUMPBIN"; then
7356  ac_ct_DUMPBIN=$DUMPBIN
7357  for ac_prog in dumpbin "link -dump"
7358do
7359  # Extract the first word of "$ac_prog", so it can be a program name with args.
7360set dummy $ac_prog; ac_word=$2
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362$as_echo_n "checking for $ac_word... " >&6; }
7363if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  if test -n "$ac_ct_DUMPBIN"; then
7367  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374    for ac_exec_ext in '' $ac_executable_extensions; do
7375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381  done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7387if test -n "$ac_ct_DUMPBIN"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7389$as_echo "$ac_ct_DUMPBIN" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395
7396  test -n "$ac_ct_DUMPBIN" && break
7397done
7398
7399  if test "x$ac_ct_DUMPBIN" = x; then
7400    DUMPBIN=":"
7401  else
7402    case $cross_compiling:$ac_tool_warned in
7403yes:)
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406ac_tool_warned=yes ;;
7407esac
7408    DUMPBIN=$ac_ct_DUMPBIN
7409  fi
7410fi
7411
7412    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7413    *COFF*)
7414      DUMPBIN="$DUMPBIN -symbols"
7415      ;;
7416    *)
7417      DUMPBIN=:
7418      ;;
7419    esac
7420  fi
7421
7422  if test "$DUMPBIN" != ":"; then
7423    NM="$DUMPBIN"
7424  fi
7425fi
7426test -z "$NM" && NM=nm
7427
7428
7429
7430
7431
7432
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7434$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7435if ${lt_cv_nm_interface+:} false; then :
7436  $as_echo_n "(cached) " >&6
7437else
7438  lt_cv_nm_interface="BSD nm"
7439  echo "int some_variable = 0;" > conftest.$ac_ext
7440  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7441  (eval "$ac_compile" 2>conftest.err)
7442  cat conftest.err >&5
7443  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7444  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7445  cat conftest.err >&5
7446  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7447  cat conftest.out >&5
7448  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7449    lt_cv_nm_interface="MS dumpbin"
7450  fi
7451  rm -f conftest*
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7454$as_echo "$lt_cv_nm_interface" >&6; }
7455
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7457$as_echo_n "checking whether ln -s works... " >&6; }
7458LN_S=$as_ln_s
7459if test "$LN_S" = "ln -s"; then
7460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7461$as_echo "yes" >&6; }
7462else
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7464$as_echo "no, using $LN_S" >&6; }
7465fi
7466
7467# find the maximum length of command line arguments
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7469$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7470if ${lt_cv_sys_max_cmd_len+:} false; then :
7471  $as_echo_n "(cached) " >&6
7472else
7473    i=0
7474  teststring="ABCD"
7475
7476  case $build_os in
7477  msdosdjgpp*)
7478    # On DJGPP, this test can blow up pretty badly due to problems in libc
7479    # (any single argument exceeding 2000 bytes causes a buffer overrun
7480    # during glob expansion).  Even if it were fixed, the result of this
7481    # check would be larger than it should be.
7482    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7483    ;;
7484
7485  gnu*)
7486    # Under GNU Hurd, this test is not required because there is
7487    # no limit to the length of command line arguments.
7488    # Libtool will interpret -1 as no limit whatsoever
7489    lt_cv_sys_max_cmd_len=-1;
7490    ;;
7491
7492  cygwin* | mingw* | cegcc*)
7493    # On Win9x/ME, this test blows up -- it succeeds, but takes
7494    # about 5 minutes as the teststring grows exponentially.
7495    # Worse, since 9x/ME are not pre-emptively multitasking,
7496    # you end up with a "frozen" computer, even though with patience
7497    # the test eventually succeeds (with a max line length of 256k).
7498    # Instead, let's just punt: use the minimum linelength reported by
7499    # all of the supported platforms: 8192 (on NT/2K/XP).
7500    lt_cv_sys_max_cmd_len=8192;
7501    ;;
7502
7503  mint*)
7504    # On MiNT this can take a long time and run out of memory.
7505    lt_cv_sys_max_cmd_len=8192;
7506    ;;
7507
7508  amigaos*)
7509    # On AmigaOS with pdksh, this test takes hours, literally.
7510    # So we just punt and use a minimum line length of 8192.
7511    lt_cv_sys_max_cmd_len=8192;
7512    ;;
7513
7514  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7515    # This has been around since 386BSD, at least.  Likely further.
7516    if test -x /sbin/sysctl; then
7517      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7518    elif test -x /usr/sbin/sysctl; then
7519      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7520    else
7521      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7522    fi
7523    # And add a safety zone
7524    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7525    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7526    ;;
7527
7528  interix*)
7529    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7530    lt_cv_sys_max_cmd_len=196608
7531    ;;
7532
7533  os2*)
7534    # The test takes a long time on OS/2.
7535    lt_cv_sys_max_cmd_len=8192
7536    ;;
7537
7538  osf*)
7539    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7540    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7541    # nice to cause kernel panics so lets avoid the loop below.
7542    # First set a reasonable default.
7543    lt_cv_sys_max_cmd_len=16384
7544    #
7545    if test -x /sbin/sysconfig; then
7546      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7547        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7548      esac
7549    fi
7550    ;;
7551  sco3.2v5*)
7552    lt_cv_sys_max_cmd_len=102400
7553    ;;
7554  sysv5* | sco5v6* | sysv4.2uw2*)
7555    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7556    if test -n "$kargmax"; then
7557      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7558    else
7559      lt_cv_sys_max_cmd_len=32768
7560    fi
7561    ;;
7562  *)
7563    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7564    if test -n "$lt_cv_sys_max_cmd_len"; then
7565      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7566      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7567    else
7568      # Make teststring a little bigger before we do anything with it.
7569      # a 1K string should be a reasonable start.
7570      for i in 1 2 3 4 5 6 7 8 ; do
7571        teststring=$teststring$teststring
7572      done
7573      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7574      # If test is not a shell built-in, we'll probably end up computing a
7575      # maximum length that is only half of the actual maximum length, but
7576      # we can't tell.
7577      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7578	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7579	      test $i != 17 # 1/2 MB should be enough
7580      do
7581        i=`expr $i + 1`
7582        teststring=$teststring$teststring
7583      done
7584      # Only check the string length outside the loop.
7585      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7586      teststring=
7587      # Add a significant safety factor because C++ compilers can tack on
7588      # massive amounts of additional arguments before passing them to the
7589      # linker.  It appears as though 1/2 is a usable value.
7590      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7591    fi
7592    ;;
7593  esac
7594
7595fi
7596
7597if test -n $lt_cv_sys_max_cmd_len ; then
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7599$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7600else
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7602$as_echo "none" >&6; }
7603fi
7604max_cmd_len=$lt_cv_sys_max_cmd_len
7605
7606
7607
7608
7609
7610
7611: ${CP="cp -f"}
7612: ${MV="mv -f"}
7613: ${RM="rm -f"}
7614
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7616$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7617# Try some XSI features
7618xsi_shell=no
7619( _lt_dummy="a/b/c"
7620  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7621      = c,a/b,b/c, \
7622    && eval 'test $(( 1 + 1 )) -eq 2 \
7623    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7624  && xsi_shell=yes
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7626$as_echo "$xsi_shell" >&6; }
7627
7628
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7630$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7631lt_shell_append=no
7632( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7633    >/dev/null 2>&1 \
7634  && lt_shell_append=yes
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7636$as_echo "$lt_shell_append" >&6; }
7637
7638
7639if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7640  lt_unset=unset
7641else
7642  lt_unset=false
7643fi
7644
7645
7646
7647
7648
7649# test EBCDIC or ASCII
7650case `echo X|tr X '\101'` in
7651 A) # ASCII based system
7652    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7653  lt_SP2NL='tr \040 \012'
7654  lt_NL2SP='tr \015\012 \040\040'
7655  ;;
7656 *) # EBCDIC based system
7657  lt_SP2NL='tr \100 \n'
7658  lt_NL2SP='tr \r\n \100\100'
7659  ;;
7660esac
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7671$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7672if ${lt_cv_to_host_file_cmd+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  case $host in
7676  *-*-mingw* )
7677    case $build in
7678      *-*-mingw* ) # actually msys
7679        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7680        ;;
7681      *-*-cygwin* )
7682        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7683        ;;
7684      * ) # otherwise, assume *nix
7685        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7686        ;;
7687    esac
7688    ;;
7689  *-*-cygwin* )
7690    case $build in
7691      *-*-mingw* ) # actually msys
7692        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7693        ;;
7694      *-*-cygwin* )
7695        lt_cv_to_host_file_cmd=func_convert_file_noop
7696        ;;
7697      * ) # otherwise, assume *nix
7698        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7699        ;;
7700    esac
7701    ;;
7702  * ) # unhandled hosts (and "normal" native builds)
7703    lt_cv_to_host_file_cmd=func_convert_file_noop
7704    ;;
7705esac
7706
7707fi
7708
7709to_host_file_cmd=$lt_cv_to_host_file_cmd
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7711$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7712
7713
7714
7715
7716
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7718$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7719if ${lt_cv_to_tool_file_cmd+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  #assume ordinary cross tools, or native build.
7723lt_cv_to_tool_file_cmd=func_convert_file_noop
7724case $host in
7725  *-*-mingw* )
7726    case $build in
7727      *-*-mingw* ) # actually msys
7728        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7729        ;;
7730    esac
7731    ;;
7732esac
7733
7734fi
7735
7736to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7738$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7739
7740
7741
7742
7743
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7745$as_echo_n "checking for $LD option to reload object files... " >&6; }
7746if ${lt_cv_ld_reload_flag+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  lt_cv_ld_reload_flag='-r'
7750fi
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7752$as_echo "$lt_cv_ld_reload_flag" >&6; }
7753reload_flag=$lt_cv_ld_reload_flag
7754case $reload_flag in
7755"" | " "*) ;;
7756*) reload_flag=" $reload_flag" ;;
7757esac
7758reload_cmds='$LD$reload_flag -o $output$reload_objs'
7759case $host_os in
7760  cygwin* | mingw* | pw32* | cegcc*)
7761    if test "$GCC" != yes; then
7762      reload_cmds=false
7763    fi
7764    ;;
7765  darwin*)
7766    if test "$GCC" = yes; then
7767      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7768    else
7769      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7770    fi
7771    ;;
7772esac
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782if test -n "$ac_tool_prefix"; then
7783  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7784set dummy ${ac_tool_prefix}objdump; ac_word=$2
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786$as_echo_n "checking for $ac_word... " >&6; }
7787if ${ac_cv_prog_OBJDUMP+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  if test -n "$OBJDUMP"; then
7791  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798    for ac_exec_ext in '' $ac_executable_extensions; do
7799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805  done
7806IFS=$as_save_IFS
7807
7808fi
7809fi
7810OBJDUMP=$ac_cv_prog_OBJDUMP
7811if test -n "$OBJDUMP"; then
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7813$as_echo "$OBJDUMP" >&6; }
7814else
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
7817fi
7818
7819
7820fi
7821if test -z "$ac_cv_prog_OBJDUMP"; then
7822  ac_ct_OBJDUMP=$OBJDUMP
7823  # Extract the first word of "objdump", so it can be a program name with args.
7824set dummy objdump; ac_word=$2
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826$as_echo_n "checking for $ac_word... " >&6; }
7827if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7828  $as_echo_n "(cached) " >&6
7829else
7830  if test -n "$ac_ct_OBJDUMP"; then
7831  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7832else
7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836  IFS=$as_save_IFS
7837  test -z "$as_dir" && as_dir=.
7838    for ac_exec_ext in '' $ac_executable_extensions; do
7839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842    break 2
7843  fi
7844done
7845  done
7846IFS=$as_save_IFS
7847
7848fi
7849fi
7850ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7851if test -n "$ac_ct_OBJDUMP"; then
7852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7853$as_echo "$ac_ct_OBJDUMP" >&6; }
7854else
7855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856$as_echo "no" >&6; }
7857fi
7858
7859  if test "x$ac_ct_OBJDUMP" = x; then
7860    OBJDUMP="false"
7861  else
7862    case $cross_compiling:$ac_tool_warned in
7863yes:)
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866ac_tool_warned=yes ;;
7867esac
7868    OBJDUMP=$ac_ct_OBJDUMP
7869  fi
7870else
7871  OBJDUMP="$ac_cv_prog_OBJDUMP"
7872fi
7873
7874test -z "$OBJDUMP" && OBJDUMP=objdump
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7885$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7886if ${lt_cv_deplibs_check_method+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  lt_cv_file_magic_cmd='$MAGIC_CMD'
7890lt_cv_file_magic_test_file=
7891lt_cv_deplibs_check_method='unknown'
7892# Need to set the preceding variable on all platforms that support
7893# interlibrary dependencies.
7894# 'none' -- dependencies not supported.
7895# `unknown' -- same as none, but documents that we really don't know.
7896# 'pass_all' -- all dependencies passed with no checks.
7897# 'test_compile' -- check by making test program.
7898# 'file_magic [[regex]]' -- check by looking for files in library path
7899# which responds to the $file_magic_cmd with a given extended regex.
7900# If you have `file' or equivalent on your system and you're not sure
7901# whether `pass_all' will *always* work, you probably want this one.
7902
7903case $host_os in
7904aix[4-9]*)
7905  lt_cv_deplibs_check_method=pass_all
7906  ;;
7907
7908beos*)
7909  lt_cv_deplibs_check_method=pass_all
7910  ;;
7911
7912bsdi[45]*)
7913  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7914  lt_cv_file_magic_cmd='/usr/bin/file -L'
7915  lt_cv_file_magic_test_file=/shlib/libc.so
7916  ;;
7917
7918cygwin*)
7919  # func_win32_libid is a shell function defined in ltmain.sh
7920  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7921  lt_cv_file_magic_cmd='func_win32_libid'
7922  ;;
7923
7924mingw* | pw32*)
7925  # Base MSYS/MinGW do not provide the 'file' command needed by
7926  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7927  # unless we find 'file', for example because we are cross-compiling.
7928  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7929  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7930    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7931    lt_cv_file_magic_cmd='func_win32_libid'
7932  else
7933    # Keep this pattern in sync with the one in func_win32_libid.
7934    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7935    lt_cv_file_magic_cmd='$OBJDUMP -f'
7936  fi
7937  ;;
7938
7939cegcc*)
7940  # use the weaker test based on 'objdump'. See mingw*.
7941  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7942  lt_cv_file_magic_cmd='$OBJDUMP -f'
7943  ;;
7944
7945darwin* | rhapsody*)
7946  lt_cv_deplibs_check_method=pass_all
7947  ;;
7948
7949freebsd* | dragonfly*)
7950  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7951    case $host_cpu in
7952    i*86 )
7953      # Not sure whether the presence of OpenBSD here was a mistake.
7954      # Let's accept both of them until this is cleared up.
7955      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7956      lt_cv_file_magic_cmd=/usr/bin/file
7957      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7958      ;;
7959    esac
7960  else
7961    lt_cv_deplibs_check_method=pass_all
7962  fi
7963  ;;
7964
7965gnu*)
7966  lt_cv_deplibs_check_method=pass_all
7967  ;;
7968
7969haiku*)
7970  lt_cv_deplibs_check_method=pass_all
7971  ;;
7972
7973hpux10.20* | hpux11*)
7974  lt_cv_file_magic_cmd=/usr/bin/file
7975  case $host_cpu in
7976  ia64*)
7977    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7978    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7979    ;;
7980  hppa*64*)
7981    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]'
7982    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7983    ;;
7984  *)
7985    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7986    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7987    ;;
7988  esac
7989  ;;
7990
7991interix[3-9]*)
7992  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7993  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7994  ;;
7995
7996irix5* | irix6* | nonstopux*)
7997  case $LD in
7998  *-32|*"-32 ") libmagic=32-bit;;
7999  *-n32|*"-n32 ") libmagic=N32;;
8000  *-64|*"-64 ") libmagic=64-bit;;
8001  *) libmagic=never-match;;
8002  esac
8003  lt_cv_deplibs_check_method=pass_all
8004  ;;
8005
8006# This must be glibc/ELF.
8007linux* | k*bsd*-gnu | kopensolaris*-gnu)
8008  lt_cv_deplibs_check_method=pass_all
8009  ;;
8010
8011netbsd*)
8012  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8013    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8014  else
8015    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8016  fi
8017  ;;
8018
8019newos6*)
8020  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8021  lt_cv_file_magic_cmd=/usr/bin/file
8022  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8023  ;;
8024
8025*nto* | *qnx*)
8026  lt_cv_deplibs_check_method=pass_all
8027  ;;
8028
8029openbsd*)
8030  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8031    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8032  else
8033    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8034  fi
8035  ;;
8036
8037osf3* | osf4* | osf5*)
8038  lt_cv_deplibs_check_method=pass_all
8039  ;;
8040
8041rdos*)
8042  lt_cv_deplibs_check_method=pass_all
8043  ;;
8044
8045solaris*)
8046  lt_cv_deplibs_check_method=pass_all
8047  ;;
8048
8049sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8050  lt_cv_deplibs_check_method=pass_all
8051  ;;
8052
8053sysv4 | sysv4.3*)
8054  case $host_vendor in
8055  motorola)
8056    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]'
8057    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8058    ;;
8059  ncr)
8060    lt_cv_deplibs_check_method=pass_all
8061    ;;
8062  sequent)
8063    lt_cv_file_magic_cmd='/bin/file'
8064    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8065    ;;
8066  sni)
8067    lt_cv_file_magic_cmd='/bin/file'
8068    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8069    lt_cv_file_magic_test_file=/lib/libc.so
8070    ;;
8071  siemens)
8072    lt_cv_deplibs_check_method=pass_all
8073    ;;
8074  pc)
8075    lt_cv_deplibs_check_method=pass_all
8076    ;;
8077  esac
8078  ;;
8079
8080tpf*)
8081  lt_cv_deplibs_check_method=pass_all
8082  ;;
8083esac
8084
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8087$as_echo "$lt_cv_deplibs_check_method" >&6; }
8088
8089file_magic_glob=
8090want_nocaseglob=no
8091if test "$build" = "$host"; then
8092  case $host_os in
8093  mingw* | pw32*)
8094    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8095      want_nocaseglob=yes
8096    else
8097      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8098    fi
8099    ;;
8100  esac
8101fi
8102
8103file_magic_cmd=$lt_cv_file_magic_cmd
8104deplibs_check_method=$lt_cv_deplibs_check_method
8105test -z "$deplibs_check_method" && deplibs_check_method=unknown
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128if test -n "$ac_tool_prefix"; then
8129  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8130set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
8133if ${ac_cv_prog_DLLTOOL+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  if test -n "$DLLTOOL"; then
8137  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8138else
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142  IFS=$as_save_IFS
8143  test -z "$as_dir" && as_dir=.
8144    for ac_exec_ext in '' $ac_executable_extensions; do
8145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8146    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148    break 2
8149  fi
8150done
8151  done
8152IFS=$as_save_IFS
8153
8154fi
8155fi
8156DLLTOOL=$ac_cv_prog_DLLTOOL
8157if test -n "$DLLTOOL"; then
8158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8159$as_echo "$DLLTOOL" >&6; }
8160else
8161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
8163fi
8164
8165
8166fi
8167if test -z "$ac_cv_prog_DLLTOOL"; then
8168  ac_ct_DLLTOOL=$DLLTOOL
8169  # Extract the first word of "dlltool", so it can be a program name with args.
8170set dummy dlltool; ac_word=$2
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172$as_echo_n "checking for $ac_word... " >&6; }
8173if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8174  $as_echo_n "(cached) " >&6
8175else
8176  if test -n "$ac_ct_DLLTOOL"; then
8177  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8178else
8179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182  IFS=$as_save_IFS
8183  test -z "$as_dir" && as_dir=.
8184    for ac_exec_ext in '' $ac_executable_extensions; do
8185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188    break 2
8189  fi
8190done
8191  done
8192IFS=$as_save_IFS
8193
8194fi
8195fi
8196ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8197if test -n "$ac_ct_DLLTOOL"; then
8198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8199$as_echo "$ac_ct_DLLTOOL" >&6; }
8200else
8201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202$as_echo "no" >&6; }
8203fi
8204
8205  if test "x$ac_ct_DLLTOOL" = x; then
8206    DLLTOOL="false"
8207  else
8208    case $cross_compiling:$ac_tool_warned in
8209yes:)
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8212ac_tool_warned=yes ;;
8213esac
8214    DLLTOOL=$ac_ct_DLLTOOL
8215  fi
8216else
8217  DLLTOOL="$ac_cv_prog_DLLTOOL"
8218fi
8219
8220test -z "$DLLTOOL" && DLLTOOL=dlltool
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8232$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8233if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  lt_cv_sharedlib_from_linklib_cmd='unknown'
8237
8238case $host_os in
8239cygwin* | mingw* | pw32* | cegcc*)
8240  # two different shell functions defined in ltmain.sh
8241  # decide which to use based on capabilities of $DLLTOOL
8242  case `$DLLTOOL --help 2>&1` in
8243  *--identify-strict*)
8244    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8245    ;;
8246  *)
8247    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8248    ;;
8249  esac
8250  ;;
8251*)
8252  # fallback: assume linklib IS sharedlib
8253  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8254  ;;
8255esac
8256
8257fi
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8259$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8260sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8261test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8262
8263
8264
8265
8266
8267
8268
8269if test -n "$ac_tool_prefix"; then
8270  for ac_prog in ar
8271  do
8272    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if ${ac_cv_prog_AR+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  if test -n "$AR"; then
8280  ac_cv_prog_AR="$AR" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287    for ac_exec_ext in '' $ac_executable_extensions; do
8288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294  done
8295IFS=$as_save_IFS
8296
8297fi
8298fi
8299AR=$ac_cv_prog_AR
8300if test -n "$AR"; then
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8302$as_echo "$AR" >&6; }
8303else
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308
8309    test -n "$AR" && break
8310  done
8311fi
8312if test -z "$AR"; then
8313  ac_ct_AR=$AR
8314  for ac_prog in ar
8315do
8316  # Extract the first word of "$ac_prog", so it can be a program name with args.
8317set dummy $ac_prog; ac_word=$2
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319$as_echo_n "checking for $ac_word... " >&6; }
8320if ${ac_cv_prog_ac_ct_AR+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  if test -n "$ac_ct_AR"; then
8324  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8325else
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329  IFS=$as_save_IFS
8330  test -z "$as_dir" && as_dir=.
8331    for ac_exec_ext in '' $ac_executable_extensions; do
8332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333    ac_cv_prog_ac_ct_AR="$ac_prog"
8334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335    break 2
8336  fi
8337done
8338  done
8339IFS=$as_save_IFS
8340
8341fi
8342fi
8343ac_ct_AR=$ac_cv_prog_ac_ct_AR
8344if test -n "$ac_ct_AR"; then
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8346$as_echo "$ac_ct_AR" >&6; }
8347else
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350fi
8351
8352
8353  test -n "$ac_ct_AR" && break
8354done
8355
8356  if test "x$ac_ct_AR" = x; then
8357    AR="false"
8358  else
8359    case $cross_compiling:$ac_tool_warned in
8360yes:)
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363ac_tool_warned=yes ;;
8364esac
8365    AR=$ac_ct_AR
8366  fi
8367fi
8368
8369: ${AR=ar}
8370: ${AR_FLAGS=cru}
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8383$as_echo_n "checking for archiver @FILE support... " >&6; }
8384if ${lt_cv_ar_at_file+:} false; then :
8385  $as_echo_n "(cached) " >&6
8386else
8387  lt_cv_ar_at_file=no
8388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h.  */
8390
8391int
8392main ()
8393{
8394
8395  ;
8396  return 0;
8397}
8398_ACEOF
8399if ac_fn_c_try_compile "$LINENO"; then :
8400  echo conftest.$ac_objext > conftest.lst
8401      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8402      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8403  (eval $lt_ar_try) 2>&5
8404  ac_status=$?
8405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8406  test $ac_status = 0; }
8407      if test "$ac_status" -eq 0; then
8408	# Ensure the archiver fails upon bogus file names.
8409	rm -f conftest.$ac_objext libconftest.a
8410	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8411  (eval $lt_ar_try) 2>&5
8412  ac_status=$?
8413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8414  test $ac_status = 0; }
8415	if test "$ac_status" -ne 0; then
8416          lt_cv_ar_at_file=@
8417        fi
8418      fi
8419      rm -f conftest.* libconftest.a
8420
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423
8424fi
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8426$as_echo "$lt_cv_ar_at_file" >&6; }
8427
8428if test "x$lt_cv_ar_at_file" = xno; then
8429  archiver_list_spec=
8430else
8431  archiver_list_spec=$lt_cv_ar_at_file
8432fi
8433
8434
8435
8436
8437
8438
8439
8440if test -n "$ac_tool_prefix"; then
8441  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8442set dummy ${ac_tool_prefix}strip; ac_word=$2
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444$as_echo_n "checking for $ac_word... " >&6; }
8445if ${ac_cv_prog_STRIP+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  if test -n "$STRIP"; then
8449  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8450else
8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454  IFS=$as_save_IFS
8455  test -z "$as_dir" && as_dir=.
8456    for ac_exec_ext in '' $ac_executable_extensions; do
8457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460    break 2
8461  fi
8462done
8463  done
8464IFS=$as_save_IFS
8465
8466fi
8467fi
8468STRIP=$ac_cv_prog_STRIP
8469if test -n "$STRIP"; then
8470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8471$as_echo "$STRIP" >&6; }
8472else
8473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474$as_echo "no" >&6; }
8475fi
8476
8477
8478fi
8479if test -z "$ac_cv_prog_STRIP"; then
8480  ac_ct_STRIP=$STRIP
8481  # Extract the first word of "strip", so it can be a program name with args.
8482set dummy strip; ac_word=$2
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484$as_echo_n "checking for $ac_word... " >&6; }
8485if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  if test -n "$ac_ct_STRIP"; then
8489  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8490else
8491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494  IFS=$as_save_IFS
8495  test -z "$as_dir" && as_dir=.
8496    for ac_exec_ext in '' $ac_executable_extensions; do
8497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8498    ac_cv_prog_ac_ct_STRIP="strip"
8499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500    break 2
8501  fi
8502done
8503  done
8504IFS=$as_save_IFS
8505
8506fi
8507fi
8508ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8509if test -n "$ac_ct_STRIP"; then
8510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8511$as_echo "$ac_ct_STRIP" >&6; }
8512else
8513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514$as_echo "no" >&6; }
8515fi
8516
8517  if test "x$ac_ct_STRIP" = x; then
8518    STRIP=":"
8519  else
8520    case $cross_compiling:$ac_tool_warned in
8521yes:)
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8524ac_tool_warned=yes ;;
8525esac
8526    STRIP=$ac_ct_STRIP
8527  fi
8528else
8529  STRIP="$ac_cv_prog_STRIP"
8530fi
8531
8532test -z "$STRIP" && STRIP=:
8533
8534
8535
8536
8537
8538
8539if test -n "$ac_tool_prefix"; then
8540  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8541set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543$as_echo_n "checking for $ac_word... " >&6; }
8544if ${ac_cv_prog_RANLIB+:} false; then :
8545  $as_echo_n "(cached) " >&6
8546else
8547  if test -n "$RANLIB"; then
8548  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8549else
8550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
8552do
8553  IFS=$as_save_IFS
8554  test -z "$as_dir" && as_dir=.
8555    for ac_exec_ext in '' $ac_executable_extensions; do
8556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559    break 2
8560  fi
8561done
8562  done
8563IFS=$as_save_IFS
8564
8565fi
8566fi
8567RANLIB=$ac_cv_prog_RANLIB
8568if test -n "$RANLIB"; then
8569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8570$as_echo "$RANLIB" >&6; }
8571else
8572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573$as_echo "no" >&6; }
8574fi
8575
8576
8577fi
8578if test -z "$ac_cv_prog_RANLIB"; then
8579  ac_ct_RANLIB=$RANLIB
8580  # Extract the first word of "ranlib", so it can be a program name with args.
8581set dummy ranlib; ac_word=$2
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583$as_echo_n "checking for $ac_word... " >&6; }
8584if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8585  $as_echo_n "(cached) " >&6
8586else
8587  if test -n "$ac_ct_RANLIB"; then
8588  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8589else
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593  IFS=$as_save_IFS
8594  test -z "$as_dir" && as_dir=.
8595    for ac_exec_ext in '' $ac_executable_extensions; do
8596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597    ac_cv_prog_ac_ct_RANLIB="ranlib"
8598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599    break 2
8600  fi
8601done
8602  done
8603IFS=$as_save_IFS
8604
8605fi
8606fi
8607ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8608if test -n "$ac_ct_RANLIB"; then
8609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8610$as_echo "$ac_ct_RANLIB" >&6; }
8611else
8612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613$as_echo "no" >&6; }
8614fi
8615
8616  if test "x$ac_ct_RANLIB" = x; then
8617    RANLIB=":"
8618  else
8619    case $cross_compiling:$ac_tool_warned in
8620yes:)
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8623ac_tool_warned=yes ;;
8624esac
8625    RANLIB=$ac_ct_RANLIB
8626  fi
8627else
8628  RANLIB="$ac_cv_prog_RANLIB"
8629fi
8630
8631test -z "$RANLIB" && RANLIB=:
8632
8633
8634
8635
8636
8637
8638# Determine commands to create old-style static archives.
8639old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8640old_postinstall_cmds='chmod 644 $oldlib'
8641old_postuninstall_cmds=
8642
8643if test -n "$RANLIB"; then
8644  case $host_os in
8645  openbsd*)
8646    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8647    ;;
8648  *)
8649    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8650    ;;
8651  esac
8652  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8653fi
8654
8655case $host_os in
8656  darwin*)
8657    lock_old_archive_extraction=yes ;;
8658  *)
8659    lock_old_archive_extraction=no ;;
8660esac
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700# If no C compiler was specified, use CC.
8701LTCC=${LTCC-"$CC"}
8702
8703# If no C compiler flags were specified, use CFLAGS.
8704LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8705
8706# Allow CC to be a program name with arguments.
8707compiler=$CC
8708
8709
8710# Check for command to grab the raw symbol name followed by C symbol from nm.
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8712$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8713if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8714  $as_echo_n "(cached) " >&6
8715else
8716
8717# These are sane defaults that work on at least a few old systems.
8718# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8719
8720# Character class describing NM global symbol codes.
8721symcode='[BCDEGRST]'
8722
8723# Regexp to match symbols that can be accessed directly from C.
8724sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8725
8726# Define system-specific variables.
8727case $host_os in
8728aix*)
8729  symcode='[BCDT]'
8730  ;;
8731cygwin* | mingw* | pw32* | cegcc*)
8732  symcode='[ABCDGISTW]'
8733  ;;
8734hpux*)
8735  if test "$host_cpu" = ia64; then
8736    symcode='[ABCDEGRST]'
8737  fi
8738  ;;
8739irix* | nonstopux*)
8740  symcode='[BCDEGRST]'
8741  ;;
8742osf*)
8743  symcode='[BCDEGQRST]'
8744  ;;
8745solaris*)
8746  symcode='[BDRT]'
8747  ;;
8748sco3.2v5*)
8749  symcode='[DT]'
8750  ;;
8751sysv4.2uw2*)
8752  symcode='[DT]'
8753  ;;
8754sysv5* | sco5v6* | unixware* | OpenUNIX*)
8755  symcode='[ABDT]'
8756  ;;
8757sysv4)
8758  symcode='[DFNSTU]'
8759  ;;
8760esac
8761
8762# If we're using GNU nm, then use its standard symbol codes.
8763case `$NM -V 2>&1` in
8764*GNU* | *'with BFD'*)
8765  symcode='[ABCDGIRSTW]' ;;
8766esac
8767
8768# Transform an extracted symbol line into a proper C declaration.
8769# Some systems (esp. on ia64) link data and code symbols differently,
8770# so use this general approach.
8771lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8772
8773# Transform an extracted symbol line into symbol name and symbol address
8774lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8775lt_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'"
8776
8777# Handle CRLF in mingw tool chain
8778opt_cr=
8779case $build_os in
8780mingw*)
8781  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8782  ;;
8783esac
8784
8785# Try without a prefix underscore, then with it.
8786for ac_symprfx in "" "_"; do
8787
8788  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8789  symxfrm="\\1 $ac_symprfx\\2 \\2"
8790
8791  # Write the raw and C identifiers.
8792  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8793    # Fake it for dumpbin and say T for any non-static function
8794    # and D for any global variable.
8795    # Also find C++ and __fastcall symbols from MSVC++,
8796    # which start with @ or ?.
8797    lt_cv_sys_global_symbol_pipe="$AWK '"\
8798"     {last_section=section; section=\$ 3};"\
8799"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8800"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8801"     \$ 0!~/External *\|/{next};"\
8802"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8803"     {if(hide[section]) next};"\
8804"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8805"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8806"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8807"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8808"     ' prfx=^$ac_symprfx"
8809  else
8810    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8811  fi
8812  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8813
8814  # Check to see that the pipe works correctly.
8815  pipe_works=no
8816
8817  rm -f conftest*
8818  cat > conftest.$ac_ext <<_LT_EOF
8819#ifdef __cplusplus
8820extern "C" {
8821#endif
8822char nm_test_var;
8823void nm_test_func(void);
8824void nm_test_func(void){}
8825#ifdef __cplusplus
8826}
8827#endif
8828int main(){nm_test_var='a';nm_test_func();return(0);}
8829_LT_EOF
8830
8831  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8832  (eval $ac_compile) 2>&5
8833  ac_status=$?
8834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8835  test $ac_status = 0; }; then
8836    # Now try to grab the symbols.
8837    nlist=conftest.nm
8838    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8839  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8840  ac_status=$?
8841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8842  test $ac_status = 0; } && test -s "$nlist"; then
8843      # Try sorting and uniquifying the output.
8844      if sort "$nlist" | uniq > "$nlist"T; then
8845	mv -f "$nlist"T "$nlist"
8846      else
8847	rm -f "$nlist"T
8848      fi
8849
8850      # Make sure that we snagged all the symbols we need.
8851      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8852	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8853	  cat <<_LT_EOF > conftest.$ac_ext
8854/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8855#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8856/* DATA imports from DLLs on WIN32 con't be const, because runtime
8857   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8858# define LT_DLSYM_CONST
8859#elif defined(__osf__)
8860/* This system does not cope well with relocations in const data.  */
8861# define LT_DLSYM_CONST
8862#else
8863# define LT_DLSYM_CONST const
8864#endif
8865
8866#ifdef __cplusplus
8867extern "C" {
8868#endif
8869
8870_LT_EOF
8871	  # Now generate the symbol file.
8872	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8873
8874	  cat <<_LT_EOF >> conftest.$ac_ext
8875
8876/* The mapping between symbol names and symbols.  */
8877LT_DLSYM_CONST struct {
8878  const char *name;
8879  void       *address;
8880}
8881lt__PROGRAM__LTX_preloaded_symbols[] =
8882{
8883  { "@PROGRAM@", (void *) 0 },
8884_LT_EOF
8885	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8886	  cat <<\_LT_EOF >> conftest.$ac_ext
8887  {0, (void *) 0}
8888};
8889
8890/* This works around a problem in FreeBSD linker */
8891#ifdef FREEBSD_WORKAROUND
8892static const void *lt_preloaded_setup() {
8893  return lt__PROGRAM__LTX_preloaded_symbols;
8894}
8895#endif
8896
8897#ifdef __cplusplus
8898}
8899#endif
8900_LT_EOF
8901	  # Now try linking the two files.
8902	  mv conftest.$ac_objext conftstm.$ac_objext
8903	  lt_globsym_save_LIBS=$LIBS
8904	  lt_globsym_save_CFLAGS=$CFLAGS
8905	  LIBS="conftstm.$ac_objext"
8906	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8907	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8908  (eval $ac_link) 2>&5
8909  ac_status=$?
8910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8911  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8912	    pipe_works=yes
8913	  fi
8914	  LIBS=$lt_globsym_save_LIBS
8915	  CFLAGS=$lt_globsym_save_CFLAGS
8916	else
8917	  echo "cannot find nm_test_func in $nlist" >&5
8918	fi
8919      else
8920	echo "cannot find nm_test_var in $nlist" >&5
8921      fi
8922    else
8923      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8924    fi
8925  else
8926    echo "$progname: failed program was:" >&5
8927    cat conftest.$ac_ext >&5
8928  fi
8929  rm -rf conftest* conftst*
8930
8931  # Do not use the global_symbol_pipe unless it works.
8932  if test "$pipe_works" = yes; then
8933    break
8934  else
8935    lt_cv_sys_global_symbol_pipe=
8936  fi
8937done
8938
8939fi
8940
8941if test -z "$lt_cv_sys_global_symbol_pipe"; then
8942  lt_cv_sys_global_symbol_to_cdecl=
8943fi
8944if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8946$as_echo "failed" >&6; }
8947else
8948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8949$as_echo "ok" >&6; }
8950fi
8951
8952# Response file support.
8953if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8954  nm_file_list_spec='@'
8955elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8956  nm_file_list_spec='@'
8957fi
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8986$as_echo_n "checking for sysroot... " >&6; }
8987
8988# Check whether --with-sysroot was given.
8989if test "${with_sysroot+set}" = set; then :
8990  withval=$with_sysroot;
8991else
8992  with_sysroot=no
8993fi
8994
8995
8996lt_sysroot=
8997case ${with_sysroot} in #(
8998 yes)
8999   if test "$GCC" = yes; then
9000     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9001   fi
9002   ;; #(
9003 /*)
9004   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9005   ;; #(
9006 no|'')
9007   ;; #(
9008 *)
9009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9010$as_echo "${with_sysroot}" >&6; }
9011   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9012   ;;
9013esac
9014
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9016$as_echo "${lt_sysroot:-no}" >&6; }
9017
9018
9019
9020
9021
9022# Check whether --enable-libtool-lock was given.
9023if test "${enable_libtool_lock+set}" = set; then :
9024  enableval=$enable_libtool_lock;
9025fi
9026
9027test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9028
9029# Some flags need to be propagated to the compiler or linker for good
9030# libtool support.
9031case $host in
9032ia64-*-hpux*)
9033  # Find out which ABI we are using.
9034  echo 'int i;' > conftest.$ac_ext
9035  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9036  (eval $ac_compile) 2>&5
9037  ac_status=$?
9038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9039  test $ac_status = 0; }; then
9040    case `/usr/bin/file conftest.$ac_objext` in
9041      *ELF-32*)
9042	HPUX_IA64_MODE="32"
9043	;;
9044      *ELF-64*)
9045	HPUX_IA64_MODE="64"
9046	;;
9047    esac
9048  fi
9049  rm -rf conftest*
9050  ;;
9051*-*-irix6*)
9052  # Find out which ABI we are using.
9053  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9054  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9055  (eval $ac_compile) 2>&5
9056  ac_status=$?
9057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9058  test $ac_status = 0; }; then
9059    if test "$lt_cv_prog_gnu_ld" = yes; then
9060      case `/usr/bin/file conftest.$ac_objext` in
9061	*32-bit*)
9062	  LD="${LD-ld} -melf32bsmip"
9063	  ;;
9064	*N32*)
9065	  LD="${LD-ld} -melf32bmipn32"
9066	  ;;
9067	*64-bit*)
9068	  LD="${LD-ld} -melf64bmip"
9069	;;
9070      esac
9071    else
9072      case `/usr/bin/file conftest.$ac_objext` in
9073	*32-bit*)
9074	  LD="${LD-ld} -32"
9075	  ;;
9076	*N32*)
9077	  LD="${LD-ld} -n32"
9078	  ;;
9079	*64-bit*)
9080	  LD="${LD-ld} -64"
9081	  ;;
9082      esac
9083    fi
9084  fi
9085  rm -rf conftest*
9086  ;;
9087
9088x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9089s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9090  # Find out which ABI we are using.
9091  echo 'int i;' > conftest.$ac_ext
9092  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9093  (eval $ac_compile) 2>&5
9094  ac_status=$?
9095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9096  test $ac_status = 0; }; then
9097    case `/usr/bin/file conftest.o` in
9098      *32-bit*)
9099	case $host in
9100	  x86_64-*kfreebsd*-gnu)
9101	    LD="${LD-ld} -m elf_i386_fbsd"
9102	    ;;
9103	  x86_64-*linux*)
9104	    LD="${LD-ld} -m elf_i386"
9105	    ;;
9106	  powerpc64le-*linux*)
9107	    LD="${LD-ld} -m elf32lppclinux"
9108	    ;;
9109	  powerpc64-*linux*)
9110	    LD="${LD-ld} -m elf32ppclinux"
9111	    ;;
9112	  s390x-*linux*)
9113	    LD="${LD-ld} -m elf_s390"
9114	    ;;
9115	  sparc64-*linux*)
9116	    LD="${LD-ld} -m elf32_sparc"
9117	    ;;
9118	esac
9119	;;
9120      *64-bit*)
9121	case $host in
9122	  x86_64-*kfreebsd*-gnu)
9123	    LD="${LD-ld} -m elf_x86_64_fbsd"
9124	    ;;
9125	  x86_64-*linux*)
9126	    LD="${LD-ld} -m elf_x86_64"
9127	    ;;
9128	  powerpcle-*linux*)
9129	    LD="${LD-ld} -m elf64lppc"
9130	    ;;
9131	  powerpc-*linux*)
9132	    LD="${LD-ld} -m elf64ppc"
9133	    ;;
9134	  s390*-*linux*|s390*-*tpf*)
9135	    LD="${LD-ld} -m elf64_s390"
9136	    ;;
9137	  sparc*-*linux*)
9138	    LD="${LD-ld} -m elf64_sparc"
9139	    ;;
9140	esac
9141	;;
9142    esac
9143  fi
9144  rm -rf conftest*
9145  ;;
9146
9147*-*-sco3.2v5*)
9148  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9149  SAVE_CFLAGS="$CFLAGS"
9150  CFLAGS="$CFLAGS -belf"
9151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9152$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9153if ${lt_cv_cc_needs_belf+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  ac_ext=c
9157ac_cpp='$CPP $CPPFLAGS'
9158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9160ac_compiler_gnu=$ac_cv_c_compiler_gnu
9161
9162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h.  */
9164
9165int
9166main ()
9167{
9168
9169  ;
9170  return 0;
9171}
9172_ACEOF
9173if ac_fn_c_try_link "$LINENO"; then :
9174  lt_cv_cc_needs_belf=yes
9175else
9176  lt_cv_cc_needs_belf=no
9177fi
9178rm -f core conftest.err conftest.$ac_objext \
9179    conftest$ac_exeext conftest.$ac_ext
9180     ac_ext=c
9181ac_cpp='$CPP $CPPFLAGS'
9182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184ac_compiler_gnu=$ac_cv_c_compiler_gnu
9185
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9188$as_echo "$lt_cv_cc_needs_belf" >&6; }
9189  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9190    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9191    CFLAGS="$SAVE_CFLAGS"
9192  fi
9193  ;;
9194*-*solaris*)
9195  # Find out which ABI we are using.
9196  echo 'int i;' > conftest.$ac_ext
9197  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9198  (eval $ac_compile) 2>&5
9199  ac_status=$?
9200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201  test $ac_status = 0; }; then
9202    case `/usr/bin/file conftest.o` in
9203    *64-bit*)
9204      case $lt_cv_prog_gnu_ld in
9205      yes*)
9206        case $host in
9207        i?86-*-solaris*)
9208          LD="${LD-ld} -m elf_x86_64"
9209          ;;
9210        sparc*-*-solaris*)
9211          LD="${LD-ld} -m elf64_sparc"
9212          ;;
9213        esac
9214        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9215        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9216          LD="${LD-ld}_sol2"
9217        fi
9218        ;;
9219      *)
9220	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9221	  LD="${LD-ld} -64"
9222	fi
9223	;;
9224      esac
9225      ;;
9226    esac
9227  fi
9228  rm -rf conftest*
9229  ;;
9230esac
9231
9232need_locks="$enable_libtool_lock"
9233
9234if test -n "$ac_tool_prefix"; then
9235  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9236set dummy ${ac_tool_prefix}mt; ac_word=$2
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238$as_echo_n "checking for $ac_word... " >&6; }
9239if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  if test -n "$MANIFEST_TOOL"; then
9243  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9244else
9245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246for as_dir in $PATH
9247do
9248  IFS=$as_save_IFS
9249  test -z "$as_dir" && as_dir=.
9250    for ac_exec_ext in '' $ac_executable_extensions; do
9251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254    break 2
9255  fi
9256done
9257  done
9258IFS=$as_save_IFS
9259
9260fi
9261fi
9262MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9263if test -n "$MANIFEST_TOOL"; then
9264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9265$as_echo "$MANIFEST_TOOL" >&6; }
9266else
9267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268$as_echo "no" >&6; }
9269fi
9270
9271
9272fi
9273if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9274  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9275  # Extract the first word of "mt", so it can be a program name with args.
9276set dummy mt; ac_word=$2
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278$as_echo_n "checking for $ac_word... " >&6; }
9279if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  if test -n "$ac_ct_MANIFEST_TOOL"; then
9283  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9284else
9285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286for as_dir in $PATH
9287do
9288  IFS=$as_save_IFS
9289  test -z "$as_dir" && as_dir=.
9290    for ac_exec_ext in '' $ac_executable_extensions; do
9291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9292    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294    break 2
9295  fi
9296done
9297  done
9298IFS=$as_save_IFS
9299
9300fi
9301fi
9302ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9303if test -n "$ac_ct_MANIFEST_TOOL"; then
9304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9305$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9306else
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308$as_echo "no" >&6; }
9309fi
9310
9311  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9312    MANIFEST_TOOL=":"
9313  else
9314    case $cross_compiling:$ac_tool_warned in
9315yes:)
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9318ac_tool_warned=yes ;;
9319esac
9320    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9321  fi
9322else
9323  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9324fi
9325
9326test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9328$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9329if ${lt_cv_path_mainfest_tool+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  lt_cv_path_mainfest_tool=no
9333  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9334  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9335  cat conftest.err >&5
9336  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9337    lt_cv_path_mainfest_tool=yes
9338  fi
9339  rm -f conftest*
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9342$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9343if test "x$lt_cv_path_mainfest_tool" != xyes; then
9344  MANIFEST_TOOL=:
9345fi
9346
9347
9348
9349
9350
9351
9352  case $host_os in
9353    rhapsody* | darwin*)
9354    if test -n "$ac_tool_prefix"; then
9355  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9356set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358$as_echo_n "checking for $ac_word... " >&6; }
9359if ${ac_cv_prog_DSYMUTIL+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  if test -n "$DSYMUTIL"; then
9363  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9364else
9365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $PATH
9367do
9368  IFS=$as_save_IFS
9369  test -z "$as_dir" && as_dir=.
9370    for ac_exec_ext in '' $ac_executable_extensions; do
9371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9372    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374    break 2
9375  fi
9376done
9377  done
9378IFS=$as_save_IFS
9379
9380fi
9381fi
9382DSYMUTIL=$ac_cv_prog_DSYMUTIL
9383if test -n "$DSYMUTIL"; then
9384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9385$as_echo "$DSYMUTIL" >&6; }
9386else
9387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
9389fi
9390
9391
9392fi
9393if test -z "$ac_cv_prog_DSYMUTIL"; then
9394  ac_ct_DSYMUTIL=$DSYMUTIL
9395  # Extract the first word of "dsymutil", so it can be a program name with args.
9396set dummy dsymutil; ac_word=$2
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9398$as_echo_n "checking for $ac_word... " >&6; }
9399if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9400  $as_echo_n "(cached) " >&6
9401else
9402  if test -n "$ac_ct_DSYMUTIL"; then
9403  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9404else
9405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406for as_dir in $PATH
9407do
9408  IFS=$as_save_IFS
9409  test -z "$as_dir" && as_dir=.
9410    for ac_exec_ext in '' $ac_executable_extensions; do
9411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414    break 2
9415  fi
9416done
9417  done
9418IFS=$as_save_IFS
9419
9420fi
9421fi
9422ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9423if test -n "$ac_ct_DSYMUTIL"; then
9424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9425$as_echo "$ac_ct_DSYMUTIL" >&6; }
9426else
9427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428$as_echo "no" >&6; }
9429fi
9430
9431  if test "x$ac_ct_DSYMUTIL" = x; then
9432    DSYMUTIL=":"
9433  else
9434    case $cross_compiling:$ac_tool_warned in
9435yes:)
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9438ac_tool_warned=yes ;;
9439esac
9440    DSYMUTIL=$ac_ct_DSYMUTIL
9441  fi
9442else
9443  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9444fi
9445
9446    if test -n "$ac_tool_prefix"; then
9447  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9448set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450$as_echo_n "checking for $ac_word... " >&6; }
9451if ${ac_cv_prog_NMEDIT+:} false; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  if test -n "$NMEDIT"; then
9455  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9456else
9457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458for as_dir in $PATH
9459do
9460  IFS=$as_save_IFS
9461  test -z "$as_dir" && as_dir=.
9462    for ac_exec_ext in '' $ac_executable_extensions; do
9463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466    break 2
9467  fi
9468done
9469  done
9470IFS=$as_save_IFS
9471
9472fi
9473fi
9474NMEDIT=$ac_cv_prog_NMEDIT
9475if test -n "$NMEDIT"; then
9476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9477$as_echo "$NMEDIT" >&6; }
9478else
9479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480$as_echo "no" >&6; }
9481fi
9482
9483
9484fi
9485if test -z "$ac_cv_prog_NMEDIT"; then
9486  ac_ct_NMEDIT=$NMEDIT
9487  # Extract the first word of "nmedit", so it can be a program name with args.
9488set dummy nmedit; ac_word=$2
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490$as_echo_n "checking for $ac_word... " >&6; }
9491if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  if test -n "$ac_ct_NMEDIT"; then
9495  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9496else
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500  IFS=$as_save_IFS
9501  test -z "$as_dir" && as_dir=.
9502    for ac_exec_ext in '' $ac_executable_extensions; do
9503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9504    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506    break 2
9507  fi
9508done
9509  done
9510IFS=$as_save_IFS
9511
9512fi
9513fi
9514ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9515if test -n "$ac_ct_NMEDIT"; then
9516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9517$as_echo "$ac_ct_NMEDIT" >&6; }
9518else
9519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520$as_echo "no" >&6; }
9521fi
9522
9523  if test "x$ac_ct_NMEDIT" = x; then
9524    NMEDIT=":"
9525  else
9526    case $cross_compiling:$ac_tool_warned in
9527yes:)
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9530ac_tool_warned=yes ;;
9531esac
9532    NMEDIT=$ac_ct_NMEDIT
9533  fi
9534else
9535  NMEDIT="$ac_cv_prog_NMEDIT"
9536fi
9537
9538    if test -n "$ac_tool_prefix"; then
9539  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9540set dummy ${ac_tool_prefix}lipo; ac_word=$2
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if ${ac_cv_prog_LIPO+:} false; then :
9544  $as_echo_n "(cached) " >&6
9545else
9546  if test -n "$LIPO"; then
9547  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9548else
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552  IFS=$as_save_IFS
9553  test -z "$as_dir" && as_dir=.
9554    for ac_exec_ext in '' $ac_executable_extensions; do
9555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9556    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558    break 2
9559  fi
9560done
9561  done
9562IFS=$as_save_IFS
9563
9564fi
9565fi
9566LIPO=$ac_cv_prog_LIPO
9567if test -n "$LIPO"; then
9568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9569$as_echo "$LIPO" >&6; }
9570else
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
9573fi
9574
9575
9576fi
9577if test -z "$ac_cv_prog_LIPO"; then
9578  ac_ct_LIPO=$LIPO
9579  # Extract the first word of "lipo", so it can be a program name with args.
9580set dummy lipo; ac_word=$2
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582$as_echo_n "checking for $ac_word... " >&6; }
9583if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9584  $as_echo_n "(cached) " >&6
9585else
9586  if test -n "$ac_ct_LIPO"; then
9587  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9588else
9589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590for as_dir in $PATH
9591do
9592  IFS=$as_save_IFS
9593  test -z "$as_dir" && as_dir=.
9594    for ac_exec_ext in '' $ac_executable_extensions; do
9595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9596    ac_cv_prog_ac_ct_LIPO="lipo"
9597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598    break 2
9599  fi
9600done
9601  done
9602IFS=$as_save_IFS
9603
9604fi
9605fi
9606ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9607if test -n "$ac_ct_LIPO"; then
9608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9609$as_echo "$ac_ct_LIPO" >&6; }
9610else
9611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612$as_echo "no" >&6; }
9613fi
9614
9615  if test "x$ac_ct_LIPO" = x; then
9616    LIPO=":"
9617  else
9618    case $cross_compiling:$ac_tool_warned in
9619yes:)
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9622ac_tool_warned=yes ;;
9623esac
9624    LIPO=$ac_ct_LIPO
9625  fi
9626else
9627  LIPO="$ac_cv_prog_LIPO"
9628fi
9629
9630    if test -n "$ac_tool_prefix"; then
9631  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9632set dummy ${ac_tool_prefix}otool; ac_word=$2
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634$as_echo_n "checking for $ac_word... " >&6; }
9635if ${ac_cv_prog_OTOOL+:} false; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  if test -n "$OTOOL"; then
9639  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9640else
9641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644  IFS=$as_save_IFS
9645  test -z "$as_dir" && as_dir=.
9646    for ac_exec_ext in '' $ac_executable_extensions; do
9647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650    break 2
9651  fi
9652done
9653  done
9654IFS=$as_save_IFS
9655
9656fi
9657fi
9658OTOOL=$ac_cv_prog_OTOOL
9659if test -n "$OTOOL"; then
9660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9661$as_echo "$OTOOL" >&6; }
9662else
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664$as_echo "no" >&6; }
9665fi
9666
9667
9668fi
9669if test -z "$ac_cv_prog_OTOOL"; then
9670  ac_ct_OTOOL=$OTOOL
9671  # Extract the first word of "otool", so it can be a program name with args.
9672set dummy otool; ac_word=$2
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
9675if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9676  $as_echo_n "(cached) " >&6
9677else
9678  if test -n "$ac_ct_OTOOL"; then
9679  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684  IFS=$as_save_IFS
9685  test -z "$as_dir" && as_dir=.
9686    for ac_exec_ext in '' $ac_executable_extensions; do
9687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688    ac_cv_prog_ac_ct_OTOOL="otool"
9689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690    break 2
9691  fi
9692done
9693  done
9694IFS=$as_save_IFS
9695
9696fi
9697fi
9698ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9699if test -n "$ac_ct_OTOOL"; then
9700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9701$as_echo "$ac_ct_OTOOL" >&6; }
9702else
9703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
9705fi
9706
9707  if test "x$ac_ct_OTOOL" = x; then
9708    OTOOL=":"
9709  else
9710    case $cross_compiling:$ac_tool_warned in
9711yes:)
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9714ac_tool_warned=yes ;;
9715esac
9716    OTOOL=$ac_ct_OTOOL
9717  fi
9718else
9719  OTOOL="$ac_cv_prog_OTOOL"
9720fi
9721
9722    if test -n "$ac_tool_prefix"; then
9723  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9724set dummy ${ac_tool_prefix}otool64; ac_word=$2
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726$as_echo_n "checking for $ac_word... " >&6; }
9727if ${ac_cv_prog_OTOOL64+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  if test -n "$OTOOL64"; then
9731  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9732else
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736  IFS=$as_save_IFS
9737  test -z "$as_dir" && as_dir=.
9738    for ac_exec_ext in '' $ac_executable_extensions; do
9739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742    break 2
9743  fi
9744done
9745  done
9746IFS=$as_save_IFS
9747
9748fi
9749fi
9750OTOOL64=$ac_cv_prog_OTOOL64
9751if test -n "$OTOOL64"; then
9752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9753$as_echo "$OTOOL64" >&6; }
9754else
9755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
9757fi
9758
9759
9760fi
9761if test -z "$ac_cv_prog_OTOOL64"; then
9762  ac_ct_OTOOL64=$OTOOL64
9763  # Extract the first word of "otool64", so it can be a program name with args.
9764set dummy otool64; ac_word=$2
9765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766$as_echo_n "checking for $ac_word... " >&6; }
9767if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9768  $as_echo_n "(cached) " >&6
9769else
9770  if test -n "$ac_ct_OTOOL64"; then
9771  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9772else
9773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774for as_dir in $PATH
9775do
9776  IFS=$as_save_IFS
9777  test -z "$as_dir" && as_dir=.
9778    for ac_exec_ext in '' $ac_executable_extensions; do
9779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9780    ac_cv_prog_ac_ct_OTOOL64="otool64"
9781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782    break 2
9783  fi
9784done
9785  done
9786IFS=$as_save_IFS
9787
9788fi
9789fi
9790ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9791if test -n "$ac_ct_OTOOL64"; then
9792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9793$as_echo "$ac_ct_OTOOL64" >&6; }
9794else
9795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
9797fi
9798
9799  if test "x$ac_ct_OTOOL64" = x; then
9800    OTOOL64=":"
9801  else
9802    case $cross_compiling:$ac_tool_warned in
9803yes:)
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9806ac_tool_warned=yes ;;
9807esac
9808    OTOOL64=$ac_ct_OTOOL64
9809  fi
9810else
9811  OTOOL64="$ac_cv_prog_OTOOL64"
9812fi
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9841$as_echo_n "checking for -single_module linker flag... " >&6; }
9842if ${lt_cv_apple_cc_single_mod+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  lt_cv_apple_cc_single_mod=no
9846      if test -z "${LT_MULTI_MODULE}"; then
9847	# By default we will add the -single_module flag. You can override
9848	# by either setting the environment variable LT_MULTI_MODULE
9849	# non-empty at configure time, or by adding -multi_module to the
9850	# link flags.
9851	rm -rf libconftest.dylib*
9852	echo "int foo(void){return 1;}" > conftest.c
9853	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9854-dynamiclib -Wl,-single_module conftest.c" >&5
9855	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9856	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9857        _lt_result=$?
9858	# If there is a non-empty error log, and "single_module"
9859	# appears in it, assume the flag caused a linker warning
9860        if test -s conftest.err && $GREP single_module conftest.err; then
9861	  cat conftest.err >&5
9862	# Otherwise, if the output was created with a 0 exit code from
9863	# the compiler, it worked.
9864	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9865	  lt_cv_apple_cc_single_mod=yes
9866	else
9867	  cat conftest.err >&5
9868	fi
9869	rm -rf libconftest.dylib*
9870	rm -f conftest.*
9871      fi
9872fi
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9874$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9875
9876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9877$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9878if ${lt_cv_ld_exported_symbols_list+:} false; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881  lt_cv_ld_exported_symbols_list=no
9882      save_LDFLAGS=$LDFLAGS
9883      echo "_main" > conftest.sym
9884      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9885      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886/* end confdefs.h.  */
9887
9888int
9889main ()
9890{
9891
9892  ;
9893  return 0;
9894}
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897  lt_cv_ld_exported_symbols_list=yes
9898else
9899  lt_cv_ld_exported_symbols_list=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902    conftest$ac_exeext conftest.$ac_ext
9903	LDFLAGS="$save_LDFLAGS"
9904
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9907$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9908
9909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9910$as_echo_n "checking for -force_load linker flag... " >&6; }
9911if ${lt_cv_ld_force_load+:} false; then :
9912  $as_echo_n "(cached) " >&6
9913else
9914  lt_cv_ld_force_load=no
9915      cat > conftest.c << _LT_EOF
9916int forced_loaded() { return 2;}
9917_LT_EOF
9918      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9919      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9920      echo "$AR cru libconftest.a conftest.o" >&5
9921      $AR cru libconftest.a conftest.o 2>&5
9922      echo "$RANLIB libconftest.a" >&5
9923      $RANLIB libconftest.a 2>&5
9924      cat > conftest.c << _LT_EOF
9925int main() { return 0;}
9926_LT_EOF
9927      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9928      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9929      _lt_result=$?
9930      if test -s conftest.err && $GREP force_load conftest.err; then
9931	cat conftest.err >&5
9932      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9933	lt_cv_ld_force_load=yes
9934      else
9935	cat conftest.err >&5
9936      fi
9937        rm -f conftest.err libconftest.a conftest conftest.c
9938        rm -rf conftest.dSYM
9939
9940fi
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9942$as_echo "$lt_cv_ld_force_load" >&6; }
9943    case $host_os in
9944    rhapsody* | darwin1.[012])
9945      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9946    darwin1.*)
9947      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9948    darwin*) # darwin 5.x on
9949      # if running on 10.5 or later, the deployment target defaults
9950      # to the OS version, if on x86, and 10.4, the deployment
9951      # target defaults to 10.4. Don't you love it?
9952      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9953	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9954	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9955	10.[012]*)
9956	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9957	10.*)
9958	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9959      esac
9960    ;;
9961  esac
9962    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9963      _lt_dar_single_mod='$single_module'
9964    fi
9965    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9966      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9967    else
9968      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9969    fi
9970    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9971      _lt_dsymutil='~$DSYMUTIL $lib || :'
9972    else
9973      _lt_dsymutil=
9974    fi
9975    ;;
9976  esac
9977
9978for ac_header in dlfcn.h
9979do :
9980  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9981"
9982if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9983  cat >>confdefs.h <<_ACEOF
9984#define HAVE_DLFCN_H 1
9985_ACEOF
9986
9987fi
9988
9989done
9990
9991
9992
9993
9994
9995# Set options
9996
9997
9998
9999        enable_dlopen=no
10000
10001
10002  enable_win32_dll=no
10003
10004
10005            # Check whether --enable-shared was given.
10006if test "${enable_shared+set}" = set; then :
10007  enableval=$enable_shared; p=${PACKAGE-default}
10008    case $enableval in
10009    yes) enable_shared=yes ;;
10010    no) enable_shared=no ;;
10011    *)
10012      enable_shared=no
10013      # Look at the argument we got.  We use all the common list separators.
10014      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10015      for pkg in $enableval; do
10016	IFS="$lt_save_ifs"
10017	if test "X$pkg" = "X$p"; then
10018	  enable_shared=yes
10019	fi
10020      done
10021      IFS="$lt_save_ifs"
10022      ;;
10023    esac
10024else
10025  enable_shared=yes
10026fi
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036  # Check whether --enable-static was given.
10037if test "${enable_static+set}" = set; then :
10038  enableval=$enable_static; p=${PACKAGE-default}
10039    case $enableval in
10040    yes) enable_static=yes ;;
10041    no) enable_static=no ;;
10042    *)
10043     enable_static=no
10044      # Look at the argument we got.  We use all the common list separators.
10045      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10046      for pkg in $enableval; do
10047	IFS="$lt_save_ifs"
10048	if test "X$pkg" = "X$p"; then
10049	  enable_static=yes
10050	fi
10051      done
10052      IFS="$lt_save_ifs"
10053      ;;
10054    esac
10055else
10056  enable_static=yes
10057fi
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068# Check whether --with-pic was given.
10069if test "${with_pic+set}" = set; then :
10070  withval=$with_pic; lt_p=${PACKAGE-default}
10071    case $withval in
10072    yes|no) pic_mode=$withval ;;
10073    *)
10074      pic_mode=default
10075      # Look at the argument we got.  We use all the common list separators.
10076      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10077      for lt_pkg in $withval; do
10078	IFS="$lt_save_ifs"
10079	if test "X$lt_pkg" = "X$lt_p"; then
10080	  pic_mode=yes
10081	fi
10082      done
10083      IFS="$lt_save_ifs"
10084      ;;
10085    esac
10086else
10087  pic_mode=default
10088fi
10089
10090
10091test -z "$pic_mode" && pic_mode=default
10092
10093
10094
10095
10096
10097
10098
10099  # Check whether --enable-fast-install was given.
10100if test "${enable_fast_install+set}" = set; then :
10101  enableval=$enable_fast_install; p=${PACKAGE-default}
10102    case $enableval in
10103    yes) enable_fast_install=yes ;;
10104    no) enable_fast_install=no ;;
10105    *)
10106      enable_fast_install=no
10107      # Look at the argument we got.  We use all the common list separators.
10108      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10109      for pkg in $enableval; do
10110	IFS="$lt_save_ifs"
10111	if test "X$pkg" = "X$p"; then
10112	  enable_fast_install=yes
10113	fi
10114      done
10115      IFS="$lt_save_ifs"
10116      ;;
10117    esac
10118else
10119  enable_fast_install=yes
10120fi
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132# This can be used to rebuild libtool when needed
10133LIBTOOL_DEPS="$ltmain"
10134
10135# Always use our own libtool.
10136LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167test -z "$LN_S" && LN_S="ln -s"
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182if test -n "${ZSH_VERSION+set}" ; then
10183   setopt NO_GLOB_SUBST
10184fi
10185
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10187$as_echo_n "checking for objdir... " >&6; }
10188if ${lt_cv_objdir+:} false; then :
10189  $as_echo_n "(cached) " >&6
10190else
10191  rm -f .libs 2>/dev/null
10192mkdir .libs 2>/dev/null
10193if test -d .libs; then
10194  lt_cv_objdir=.libs
10195else
10196  # MS-DOS does not allow filenames that begin with a dot.
10197  lt_cv_objdir=_libs
10198fi
10199rmdir .libs 2>/dev/null
10200fi
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10202$as_echo "$lt_cv_objdir" >&6; }
10203objdir=$lt_cv_objdir
10204
10205
10206
10207
10208
10209cat >>confdefs.h <<_ACEOF
10210#define LT_OBJDIR "$lt_cv_objdir/"
10211_ACEOF
10212
10213
10214
10215
10216case $host_os in
10217aix3*)
10218  # AIX sometimes has problems with the GCC collect2 program.  For some
10219  # reason, if we set the COLLECT_NAMES environment variable, the problems
10220  # vanish in a puff of smoke.
10221  if test "X${COLLECT_NAMES+set}" != Xset; then
10222    COLLECT_NAMES=
10223    export COLLECT_NAMES
10224  fi
10225  ;;
10226esac
10227
10228# Global variables:
10229ofile=libtool
10230can_build_shared=yes
10231
10232# All known linkers require a `.a' archive for static linking (except MSVC,
10233# which needs '.lib').
10234libext=a
10235
10236with_gnu_ld="$lt_cv_prog_gnu_ld"
10237
10238old_CC="$CC"
10239old_CFLAGS="$CFLAGS"
10240
10241# Set sane defaults for various variables
10242test -z "$CC" && CC=cc
10243test -z "$LTCC" && LTCC=$CC
10244test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10245test -z "$LD" && LD=ld
10246test -z "$ac_objext" && ac_objext=o
10247
10248for cc_temp in $compiler""; do
10249  case $cc_temp in
10250    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10251    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10252    \-*) ;;
10253    *) break;;
10254  esac
10255done
10256cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10257
10258
10259# Only perform the check for file, if the check method requires it
10260test -z "$MAGIC_CMD" && MAGIC_CMD=file
10261case $deplibs_check_method in
10262file_magic*)
10263  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10265$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10266if ${lt_cv_path_MAGIC_CMD+:} false; then :
10267  $as_echo_n "(cached) " >&6
10268else
10269  case $MAGIC_CMD in
10270[\\/*] |  ?:[\\/]*)
10271  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10272  ;;
10273*)
10274  lt_save_MAGIC_CMD="$MAGIC_CMD"
10275  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10276  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10277  for ac_dir in $ac_dummy; do
10278    IFS="$lt_save_ifs"
10279    test -z "$ac_dir" && ac_dir=.
10280    if test -f $ac_dir/${ac_tool_prefix}file; then
10281      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10282      if test -n "$file_magic_test_file"; then
10283	case $deplibs_check_method in
10284	"file_magic "*)
10285	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10286	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10287	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10288	    $EGREP "$file_magic_regex" > /dev/null; then
10289	    :
10290	  else
10291	    cat <<_LT_EOF 1>&2
10292
10293*** Warning: the command libtool uses to detect shared libraries,
10294*** $file_magic_cmd, produces output that libtool cannot recognize.
10295*** The result is that libtool may fail to recognize shared libraries
10296*** as such.  This will affect the creation of libtool libraries that
10297*** depend on shared libraries, but programs linked with such libtool
10298*** libraries will work regardless of this problem.  Nevertheless, you
10299*** may want to report the problem to your system manager and/or to
10300*** bug-libtool@gnu.org
10301
10302_LT_EOF
10303	  fi ;;
10304	esac
10305      fi
10306      break
10307    fi
10308  done
10309  IFS="$lt_save_ifs"
10310  MAGIC_CMD="$lt_save_MAGIC_CMD"
10311  ;;
10312esac
10313fi
10314
10315MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10316if test -n "$MAGIC_CMD"; then
10317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10318$as_echo "$MAGIC_CMD" >&6; }
10319else
10320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
10322fi
10323
10324
10325
10326
10327
10328if test -z "$lt_cv_path_MAGIC_CMD"; then
10329  if test -n "$ac_tool_prefix"; then
10330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10331$as_echo_n "checking for file... " >&6; }
10332if ${lt_cv_path_MAGIC_CMD+:} false; then :
10333  $as_echo_n "(cached) " >&6
10334else
10335  case $MAGIC_CMD in
10336[\\/*] |  ?:[\\/]*)
10337  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10338  ;;
10339*)
10340  lt_save_MAGIC_CMD="$MAGIC_CMD"
10341  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10342  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10343  for ac_dir in $ac_dummy; do
10344    IFS="$lt_save_ifs"
10345    test -z "$ac_dir" && ac_dir=.
10346    if test -f $ac_dir/file; then
10347      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10348      if test -n "$file_magic_test_file"; then
10349	case $deplibs_check_method in
10350	"file_magic "*)
10351	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10352	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10353	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10354	    $EGREP "$file_magic_regex" > /dev/null; then
10355	    :
10356	  else
10357	    cat <<_LT_EOF 1>&2
10358
10359*** Warning: the command libtool uses to detect shared libraries,
10360*** $file_magic_cmd, produces output that libtool cannot recognize.
10361*** The result is that libtool may fail to recognize shared libraries
10362*** as such.  This will affect the creation of libtool libraries that
10363*** depend on shared libraries, but programs linked with such libtool
10364*** libraries will work regardless of this problem.  Nevertheless, you
10365*** may want to report the problem to your system manager and/or to
10366*** bug-libtool@gnu.org
10367
10368_LT_EOF
10369	  fi ;;
10370	esac
10371      fi
10372      break
10373    fi
10374  done
10375  IFS="$lt_save_ifs"
10376  MAGIC_CMD="$lt_save_MAGIC_CMD"
10377  ;;
10378esac
10379fi
10380
10381MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10382if test -n "$MAGIC_CMD"; then
10383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10384$as_echo "$MAGIC_CMD" >&6; }
10385else
10386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387$as_echo "no" >&6; }
10388fi
10389
10390
10391  else
10392    MAGIC_CMD=:
10393  fi
10394fi
10395
10396  fi
10397  ;;
10398esac
10399
10400# Use C for the default configuration in the libtool script
10401
10402lt_save_CC="$CC"
10403ac_ext=c
10404ac_cpp='$CPP $CPPFLAGS'
10405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407ac_compiler_gnu=$ac_cv_c_compiler_gnu
10408
10409
10410# Source file extension for C test sources.
10411ac_ext=c
10412
10413# Object file extension for compiled C test sources.
10414objext=o
10415objext=$objext
10416
10417# Code to be used in simple compile tests
10418lt_simple_compile_test_code="int some_variable = 0;"
10419
10420# Code to be used in simple link tests
10421lt_simple_link_test_code='int main(){return(0);}'
10422
10423
10424
10425
10426
10427
10428
10429# If no C compiler was specified, use CC.
10430LTCC=${LTCC-"$CC"}
10431
10432# If no C compiler flags were specified, use CFLAGS.
10433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10434
10435# Allow CC to be a program name with arguments.
10436compiler=$CC
10437
10438# Save the default compiler, since it gets overwritten when the other
10439# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10440compiler_DEFAULT=$CC
10441
10442# save warnings/boilerplate of simple test code
10443ac_outfile=conftest.$ac_objext
10444echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10445eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10446_lt_compiler_boilerplate=`cat conftest.err`
10447$RM conftest*
10448
10449ac_outfile=conftest.$ac_objext
10450echo "$lt_simple_link_test_code" >conftest.$ac_ext
10451eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10452_lt_linker_boilerplate=`cat conftest.err`
10453$RM -r conftest*
10454
10455
10456## CAVEAT EMPTOR:
10457## There is no encapsulation within the following macros, do not change
10458## the running order or otherwise move them around unless you know exactly
10459## what you are doing...
10460if test -n "$compiler"; then
10461
10462lt_prog_compiler_no_builtin_flag=
10463
10464if test "$GCC" = yes; then
10465  case $cc_basename in
10466  nvcc*)
10467    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10468  *)
10469    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10470  esac
10471
10472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10473$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10474if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  lt_cv_prog_compiler_rtti_exceptions=no
10478   ac_outfile=conftest.$ac_objext
10479   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10480   lt_compiler_flag="-fno-rtti -fno-exceptions"
10481   # Insert the option either (1) after the last *FLAGS variable, or
10482   # (2) before a word containing "conftest.", or (3) at the end.
10483   # Note that $ac_compile itself does not contain backslashes and begins
10484   # with a dollar sign (not a hyphen), so the echo should work correctly.
10485   # The option is referenced via a variable to avoid confusing sed.
10486   lt_compile=`echo "$ac_compile" | $SED \
10487   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10488   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10489   -e 's:$: $lt_compiler_flag:'`
10490   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10491   (eval "$lt_compile" 2>conftest.err)
10492   ac_status=$?
10493   cat conftest.err >&5
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   if (exit $ac_status) && test -s "$ac_outfile"; then
10496     # The compiler can only warn and ignore the option if not recognized
10497     # So say no if there are warnings other than the usual output.
10498     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10499     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10500     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10501       lt_cv_prog_compiler_rtti_exceptions=yes
10502     fi
10503   fi
10504   $RM conftest*
10505
10506fi
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10508$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10509
10510if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10511    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10512else
10513    :
10514fi
10515
10516fi
10517
10518
10519
10520
10521
10522
10523  lt_prog_compiler_wl=
10524lt_prog_compiler_pic=
10525lt_prog_compiler_static=
10526
10527
10528  if test "$GCC" = yes; then
10529    lt_prog_compiler_wl='-Wl,'
10530    lt_prog_compiler_static='-static'
10531
10532    case $host_os in
10533      aix*)
10534      # All AIX code is PIC.
10535      if test "$host_cpu" = ia64; then
10536	# AIX 5 now supports IA64 processor
10537	lt_prog_compiler_static='-Bstatic'
10538      fi
10539      ;;
10540
10541    amigaos*)
10542      case $host_cpu in
10543      powerpc)
10544            # see comment about AmigaOS4 .so support
10545            lt_prog_compiler_pic='-fPIC'
10546        ;;
10547      m68k)
10548            # FIXME: we need at least 68020 code to build shared libraries, but
10549            # adding the `-m68020' flag to GCC prevents building anything better,
10550            # like `-m68040'.
10551            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10552        ;;
10553      esac
10554      ;;
10555
10556    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10557      # PIC is the default for these OSes.
10558      ;;
10559
10560    mingw* | cygwin* | pw32* | os2* | cegcc*)
10561      # This hack is so that the source file can tell whether it is being
10562      # built for inclusion in a dll (and should export symbols for example).
10563      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10564      # (--disable-auto-import) libraries
10565      lt_prog_compiler_pic='-DDLL_EXPORT'
10566      ;;
10567
10568    darwin* | rhapsody*)
10569      # PIC is the default on this platform
10570      # Common symbols not allowed in MH_DYLIB files
10571      lt_prog_compiler_pic='-fno-common'
10572      ;;
10573
10574    haiku*)
10575      # PIC is the default for Haiku.
10576      # The "-static" flag exists, but is broken.
10577      lt_prog_compiler_static=
10578      ;;
10579
10580    hpux*)
10581      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10582      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10583      # sets the default TLS model and affects inlining.
10584      case $host_cpu in
10585      hppa*64*)
10586	# +Z the default
10587	;;
10588      *)
10589	lt_prog_compiler_pic='-fPIC'
10590	;;
10591      esac
10592      ;;
10593
10594    interix[3-9]*)
10595      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10596      # Instead, we relocate shared libraries at runtime.
10597      ;;
10598
10599    msdosdjgpp*)
10600      # Just because we use GCC doesn't mean we suddenly get shared libraries
10601      # on systems that don't support them.
10602      lt_prog_compiler_can_build_shared=no
10603      enable_shared=no
10604      ;;
10605
10606    *nto* | *qnx*)
10607      # QNX uses GNU C++, but need to define -shared option too, otherwise
10608      # it will coredump.
10609      lt_prog_compiler_pic='-fPIC -shared'
10610      ;;
10611
10612    sysv4*MP*)
10613      if test -d /usr/nec; then
10614	lt_prog_compiler_pic=-Kconform_pic
10615      fi
10616      ;;
10617
10618    *)
10619      lt_prog_compiler_pic='-fPIC'
10620      ;;
10621    esac
10622
10623    case $cc_basename in
10624    nvcc*) # Cuda Compiler Driver 2.2
10625      lt_prog_compiler_wl='-Xlinker '
10626      if test -n "$lt_prog_compiler_pic"; then
10627        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10628      fi
10629      ;;
10630    esac
10631  else
10632    # PORTME Check for flag to pass linker flags through the system compiler.
10633    case $host_os in
10634    aix*)
10635      lt_prog_compiler_wl='-Wl,'
10636      if test "$host_cpu" = ia64; then
10637	# AIX 5 now supports IA64 processor
10638	lt_prog_compiler_static='-Bstatic'
10639      else
10640	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10641      fi
10642      ;;
10643
10644    mingw* | cygwin* | pw32* | os2* | cegcc*)
10645      # This hack is so that the source file can tell whether it is being
10646      # built for inclusion in a dll (and should export symbols for example).
10647      lt_prog_compiler_pic='-DDLL_EXPORT'
10648      ;;
10649
10650    hpux9* | hpux10* | hpux11*)
10651      lt_prog_compiler_wl='-Wl,'
10652      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10653      # not for PA HP-UX.
10654      case $host_cpu in
10655      hppa*64*|ia64*)
10656	# +Z the default
10657	;;
10658      *)
10659	lt_prog_compiler_pic='+Z'
10660	;;
10661      esac
10662      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10663      lt_prog_compiler_static='${wl}-a ${wl}archive'
10664      ;;
10665
10666    irix5* | irix6* | nonstopux*)
10667      lt_prog_compiler_wl='-Wl,'
10668      # PIC (with -KPIC) is the default.
10669      lt_prog_compiler_static='-non_shared'
10670      ;;
10671
10672    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10673      case $cc_basename in
10674      # old Intel for x86_64 which still supported -KPIC.
10675      ecc*)
10676	lt_prog_compiler_wl='-Wl,'
10677	lt_prog_compiler_pic='-KPIC'
10678	lt_prog_compiler_static='-static'
10679        ;;
10680      # icc used to be incompatible with GCC.
10681      # ICC 10 doesn't accept -KPIC any more.
10682      icc* | ifort*)
10683	lt_prog_compiler_wl='-Wl,'
10684	lt_prog_compiler_pic='-fPIC'
10685	lt_prog_compiler_static='-static'
10686        ;;
10687      # Lahey Fortran 8.1.
10688      lf95*)
10689	lt_prog_compiler_wl='-Wl,'
10690	lt_prog_compiler_pic='--shared'
10691	lt_prog_compiler_static='--static'
10692	;;
10693      nagfor*)
10694	# NAG Fortran compiler
10695	lt_prog_compiler_wl='-Wl,-Wl,,'
10696	lt_prog_compiler_pic='-PIC'
10697	lt_prog_compiler_static='-Bstatic'
10698	;;
10699      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10700        # Portland Group compilers (*not* the Pentium gcc compiler,
10701	# which looks to be a dead project)
10702	lt_prog_compiler_wl='-Wl,'
10703	lt_prog_compiler_pic='-fpic'
10704	lt_prog_compiler_static='-Bstatic'
10705        ;;
10706      ccc*)
10707        lt_prog_compiler_wl='-Wl,'
10708        # All Alpha code is PIC.
10709        lt_prog_compiler_static='-non_shared'
10710        ;;
10711      xl* | bgxl* | bgf* | mpixl*)
10712	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10713	lt_prog_compiler_wl='-Wl,'
10714	lt_prog_compiler_pic='-qpic'
10715	lt_prog_compiler_static='-qstaticlink'
10716	;;
10717      *)
10718	case `$CC -V 2>&1 | sed 5q` in
10719	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10720	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10721	  lt_prog_compiler_pic='-KPIC'
10722	  lt_prog_compiler_static='-Bstatic'
10723	  lt_prog_compiler_wl=''
10724	  ;;
10725	*Sun\ F* | *Sun*Fortran*)
10726	  lt_prog_compiler_pic='-KPIC'
10727	  lt_prog_compiler_static='-Bstatic'
10728	  lt_prog_compiler_wl='-Qoption ld '
10729	  ;;
10730	*Sun\ C*)
10731	  # Sun C 5.9
10732	  lt_prog_compiler_pic='-KPIC'
10733	  lt_prog_compiler_static='-Bstatic'
10734	  lt_prog_compiler_wl='-Wl,'
10735	  ;;
10736        *Intel*\ [CF]*Compiler*)
10737	  lt_prog_compiler_wl='-Wl,'
10738	  lt_prog_compiler_pic='-fPIC'
10739	  lt_prog_compiler_static='-static'
10740	  ;;
10741	*Portland\ Group*)
10742	  lt_prog_compiler_wl='-Wl,'
10743	  lt_prog_compiler_pic='-fpic'
10744	  lt_prog_compiler_static='-Bstatic'
10745	  ;;
10746	esac
10747	;;
10748      esac
10749      ;;
10750
10751    newsos6)
10752      lt_prog_compiler_pic='-KPIC'
10753      lt_prog_compiler_static='-Bstatic'
10754      ;;
10755
10756    *nto* | *qnx*)
10757      # QNX uses GNU C++, but need to define -shared option too, otherwise
10758      # it will coredump.
10759      lt_prog_compiler_pic='-fPIC -shared'
10760      ;;
10761
10762    osf3* | osf4* | osf5*)
10763      lt_prog_compiler_wl='-Wl,'
10764      # All OSF/1 code is PIC.
10765      lt_prog_compiler_static='-non_shared'
10766      ;;
10767
10768    rdos*)
10769      lt_prog_compiler_static='-non_shared'
10770      ;;
10771
10772    solaris*)
10773      lt_prog_compiler_pic='-KPIC'
10774      lt_prog_compiler_static='-Bstatic'
10775      case $cc_basename in
10776      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10777	lt_prog_compiler_wl='-Qoption ld ';;
10778      *)
10779	lt_prog_compiler_wl='-Wl,';;
10780      esac
10781      ;;
10782
10783    sunos4*)
10784      lt_prog_compiler_wl='-Qoption ld '
10785      lt_prog_compiler_pic='-PIC'
10786      lt_prog_compiler_static='-Bstatic'
10787      ;;
10788
10789    sysv4 | sysv4.2uw2* | sysv4.3*)
10790      lt_prog_compiler_wl='-Wl,'
10791      lt_prog_compiler_pic='-KPIC'
10792      lt_prog_compiler_static='-Bstatic'
10793      ;;
10794
10795    sysv4*MP*)
10796      if test -d /usr/nec ;then
10797	lt_prog_compiler_pic='-Kconform_pic'
10798	lt_prog_compiler_static='-Bstatic'
10799      fi
10800      ;;
10801
10802    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10803      lt_prog_compiler_wl='-Wl,'
10804      lt_prog_compiler_pic='-KPIC'
10805      lt_prog_compiler_static='-Bstatic'
10806      ;;
10807
10808    unicos*)
10809      lt_prog_compiler_wl='-Wl,'
10810      lt_prog_compiler_can_build_shared=no
10811      ;;
10812
10813    uts4*)
10814      lt_prog_compiler_pic='-pic'
10815      lt_prog_compiler_static='-Bstatic'
10816      ;;
10817
10818    *)
10819      lt_prog_compiler_can_build_shared=no
10820      ;;
10821    esac
10822  fi
10823
10824case $host_os in
10825  # For platforms which do not support PIC, -DPIC is meaningless:
10826  *djgpp*)
10827    lt_prog_compiler_pic=
10828    ;;
10829  *)
10830    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10831    ;;
10832esac
10833
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10835$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10836if ${lt_cv_prog_compiler_pic+:} false; then :
10837  $as_echo_n "(cached) " >&6
10838else
10839  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10840fi
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10842$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10843lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10844
10845#
10846# Check to make sure the PIC flag actually works.
10847#
10848if test -n "$lt_prog_compiler_pic"; then
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10850$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10851if ${lt_cv_prog_compiler_pic_works+:} false; then :
10852  $as_echo_n "(cached) " >&6
10853else
10854  lt_cv_prog_compiler_pic_works=no
10855   ac_outfile=conftest.$ac_objext
10856   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10857   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10858   # Insert the option either (1) after the last *FLAGS variable, or
10859   # (2) before a word containing "conftest.", or (3) at the end.
10860   # Note that $ac_compile itself does not contain backslashes and begins
10861   # with a dollar sign (not a hyphen), so the echo should work correctly.
10862   # The option is referenced via a variable to avoid confusing sed.
10863   lt_compile=`echo "$ac_compile" | $SED \
10864   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10865   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10866   -e 's:$: $lt_compiler_flag:'`
10867   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10868   (eval "$lt_compile" 2>conftest.err)
10869   ac_status=$?
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   if (exit $ac_status) && test -s "$ac_outfile"; then
10873     # The compiler can only warn and ignore the option if not recognized
10874     # So say no if there are warnings other than the usual output.
10875     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10876     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10877     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10878       lt_cv_prog_compiler_pic_works=yes
10879     fi
10880   fi
10881   $RM conftest*
10882
10883fi
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10885$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10886
10887if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10888    case $lt_prog_compiler_pic in
10889     "" | " "*) ;;
10890     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10891     esac
10892else
10893    lt_prog_compiler_pic=
10894     lt_prog_compiler_can_build_shared=no
10895fi
10896
10897fi
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909#
10910# Check to make sure the static flag actually works.
10911#
10912wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10914$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10915if ${lt_cv_prog_compiler_static_works+:} false; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  lt_cv_prog_compiler_static_works=no
10919   save_LDFLAGS="$LDFLAGS"
10920   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10921   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10922   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10923     # The linker can only warn and ignore the option if not recognized
10924     # So say no if there are warnings
10925     if test -s conftest.err; then
10926       # Append any errors to the config.log.
10927       cat conftest.err 1>&5
10928       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10929       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10930       if diff conftest.exp conftest.er2 >/dev/null; then
10931         lt_cv_prog_compiler_static_works=yes
10932       fi
10933     else
10934       lt_cv_prog_compiler_static_works=yes
10935     fi
10936   fi
10937   $RM -r conftest*
10938   LDFLAGS="$save_LDFLAGS"
10939
10940fi
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10942$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10943
10944if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10945    :
10946else
10947    lt_prog_compiler_static=
10948fi
10949
10950
10951
10952
10953
10954
10955
10956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10958if ${lt_cv_prog_compiler_c_o+:} false; then :
10959  $as_echo_n "(cached) " >&6
10960else
10961  lt_cv_prog_compiler_c_o=no
10962   $RM -r conftest 2>/dev/null
10963   mkdir conftest
10964   cd conftest
10965   mkdir out
10966   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10967
10968   lt_compiler_flag="-o out/conftest2.$ac_objext"
10969   # Insert the option either (1) after the last *FLAGS variable, or
10970   # (2) before a word containing "conftest.", or (3) at the end.
10971   # Note that $ac_compile itself does not contain backslashes and begins
10972   # with a dollar sign (not a hyphen), so the echo should work correctly.
10973   lt_compile=`echo "$ac_compile" | $SED \
10974   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10975   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10976   -e 's:$: $lt_compiler_flag:'`
10977   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10978   (eval "$lt_compile" 2>out/conftest.err)
10979   ac_status=$?
10980   cat out/conftest.err >&5
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10983   then
10984     # The compiler can only warn and ignore the option if not recognized
10985     # So say no if there are warnings
10986     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10987     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10988     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10989       lt_cv_prog_compiler_c_o=yes
10990     fi
10991   fi
10992   chmod u+w . 2>&5
10993   $RM conftest*
10994   # SGI C++ compiler will create directory out/ii_files/ for
10995   # template instantiation
10996   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10997   $RM out/* && rmdir out
10998   cd ..
10999   $RM -r conftest
11000   $RM conftest*
11001
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11004$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11005
11006
11007
11008
11009
11010
11011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11012$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11013if ${lt_cv_prog_compiler_c_o+:} false; then :
11014  $as_echo_n "(cached) " >&6
11015else
11016  lt_cv_prog_compiler_c_o=no
11017   $RM -r conftest 2>/dev/null
11018   mkdir conftest
11019   cd conftest
11020   mkdir out
11021   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11022
11023   lt_compiler_flag="-o out/conftest2.$ac_objext"
11024   # Insert the option either (1) after the last *FLAGS variable, or
11025   # (2) before a word containing "conftest.", or (3) at the end.
11026   # Note that $ac_compile itself does not contain backslashes and begins
11027   # with a dollar sign (not a hyphen), so the echo should work correctly.
11028   lt_compile=`echo "$ac_compile" | $SED \
11029   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11030   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11031   -e 's:$: $lt_compiler_flag:'`
11032   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11033   (eval "$lt_compile" 2>out/conftest.err)
11034   ac_status=$?
11035   cat out/conftest.err >&5
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11038   then
11039     # The compiler can only warn and ignore the option if not recognized
11040     # So say no if there are warnings
11041     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11042     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11043     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11044       lt_cv_prog_compiler_c_o=yes
11045     fi
11046   fi
11047   chmod u+w . 2>&5
11048   $RM conftest*
11049   # SGI C++ compiler will create directory out/ii_files/ for
11050   # template instantiation
11051   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11052   $RM out/* && rmdir out
11053   cd ..
11054   $RM -r conftest
11055   $RM conftest*
11056
11057fi
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11059$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11060
11061
11062
11063
11064hard_links="nottested"
11065if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11066  # do not overwrite the value of need_locks provided by the user
11067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11068$as_echo_n "checking if we can lock with hard links... " >&6; }
11069  hard_links=yes
11070  $RM conftest*
11071  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11072  touch conftest.a
11073  ln conftest.a conftest.b 2>&5 || hard_links=no
11074  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11076$as_echo "$hard_links" >&6; }
11077  if test "$hard_links" = no; then
11078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11079$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11080    need_locks=warn
11081  fi
11082else
11083  need_locks=no
11084fi
11085
11086
11087
11088
11089
11090
11091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11092$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11093
11094  runpath_var=
11095  allow_undefined_flag=
11096  always_export_symbols=no
11097  archive_cmds=
11098  archive_expsym_cmds=
11099  compiler_needs_object=no
11100  enable_shared_with_static_runtimes=no
11101  export_dynamic_flag_spec=
11102  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11103  hardcode_automatic=no
11104  hardcode_direct=no
11105  hardcode_direct_absolute=no
11106  hardcode_libdir_flag_spec=
11107  hardcode_libdir_separator=
11108  hardcode_minus_L=no
11109  hardcode_shlibpath_var=unsupported
11110  inherit_rpath=no
11111  link_all_deplibs=unknown
11112  module_cmds=
11113  module_expsym_cmds=
11114  old_archive_from_new_cmds=
11115  old_archive_from_expsyms_cmds=
11116  thread_safe_flag_spec=
11117  whole_archive_flag_spec=
11118  # include_expsyms should be a list of space-separated symbols to be *always*
11119  # included in the symbol list
11120  include_expsyms=
11121  # exclude_expsyms can be an extended regexp of symbols to exclude
11122  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11123  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11124  # as well as any symbol that contains `d'.
11125  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11126  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11127  # platforms (ab)use it in PIC code, but their linkers get confused if
11128  # the symbol is explicitly referenced.  Since portable code cannot
11129  # rely on this symbol name, it's probably fine to never include it in
11130  # preloaded symbol tables.
11131  # Exclude shared library initialization/finalization symbols.
11132  extract_expsyms_cmds=
11133
11134  case $host_os in
11135  cygwin* | mingw* | pw32* | cegcc*)
11136    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11137    # When not using gcc, we currently assume that we are using
11138    # Microsoft Visual C++.
11139    if test "$GCC" != yes; then
11140      with_gnu_ld=no
11141    fi
11142    ;;
11143  interix*)
11144    # we just hope/assume this is gcc and not c89 (= MSVC++)
11145    with_gnu_ld=yes
11146    ;;
11147  openbsd*)
11148    with_gnu_ld=no
11149    ;;
11150  esac
11151
11152  ld_shlibs=yes
11153
11154  # On some targets, GNU ld is compatible enough with the native linker
11155  # that we're better off using the native interface for both.
11156  lt_use_gnu_ld_interface=no
11157  if test "$with_gnu_ld" = yes; then
11158    case $host_os in
11159      aix*)
11160	# The AIX port of GNU ld has always aspired to compatibility
11161	# with the native linker.  However, as the warning in the GNU ld
11162	# block says, versions before 2.19.5* couldn't really create working
11163	# shared libraries, regardless of the interface used.
11164	case `$LD -v 2>&1` in
11165	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11166	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11167	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11168	  *)
11169	    lt_use_gnu_ld_interface=yes
11170	    ;;
11171	esac
11172	;;
11173      *)
11174	lt_use_gnu_ld_interface=yes
11175	;;
11176    esac
11177  fi
11178
11179  if test "$lt_use_gnu_ld_interface" = yes; then
11180    # If archive_cmds runs LD, not CC, wlarc should be empty
11181    wlarc='${wl}'
11182
11183    # Set some defaults for GNU ld with shared library support. These
11184    # are reset later if shared libraries are not supported. Putting them
11185    # here allows them to be overridden if necessary.
11186    runpath_var=LD_RUN_PATH
11187    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11188    export_dynamic_flag_spec='${wl}--export-dynamic'
11189    # ancient GNU ld didn't support --whole-archive et. al.
11190    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11191      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11192    else
11193      whole_archive_flag_spec=
11194    fi
11195    supports_anon_versioning=no
11196    case `$LD -v 2>&1` in
11197      *GNU\ gold*) supports_anon_versioning=yes ;;
11198      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11199      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11200      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11201      *\ 2.11.*) ;; # other 2.11 versions
11202      *) supports_anon_versioning=yes ;;
11203    esac
11204
11205    # See if GNU ld supports shared libraries.
11206    case $host_os in
11207    aix[3-9]*)
11208      # On AIX/PPC, the GNU linker is very broken
11209      if test "$host_cpu" != ia64; then
11210	ld_shlibs=no
11211	cat <<_LT_EOF 1>&2
11212
11213*** Warning: the GNU linker, at least up to release 2.19, is reported
11214*** to be unable to reliably create shared libraries on AIX.
11215*** Therefore, libtool is disabling shared libraries support.  If you
11216*** really care for shared libraries, you may want to install binutils
11217*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11218*** You will then need to restart the configuration process.
11219
11220_LT_EOF
11221      fi
11222      ;;
11223
11224    amigaos*)
11225      case $host_cpu in
11226      powerpc)
11227            # see comment about AmigaOS4 .so support
11228            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229            archive_expsym_cmds=''
11230        ;;
11231      m68k)
11232            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)'
11233            hardcode_libdir_flag_spec='-L$libdir'
11234            hardcode_minus_L=yes
11235        ;;
11236      esac
11237      ;;
11238
11239    beos*)
11240      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11241	allow_undefined_flag=unsupported
11242	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11243	# support --undefined.  This deserves some investigation.  FIXME
11244	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11245      else
11246	ld_shlibs=no
11247      fi
11248      ;;
11249
11250    cygwin* | mingw* | pw32* | cegcc*)
11251      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11252      # as there is no search path for DLLs.
11253      hardcode_libdir_flag_spec='-L$libdir'
11254      export_dynamic_flag_spec='${wl}--export-all-symbols'
11255      allow_undefined_flag=unsupported
11256      always_export_symbols=no
11257      enable_shared_with_static_runtimes=yes
11258      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'
11259      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11260
11261      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11262        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11263	# If the export-symbols file already is a .def file (1st line
11264	# is EXPORTS), use it as is; otherwise, prepend...
11265	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11266	  cp $export_symbols $output_objdir/$soname.def;
11267	else
11268	  echo EXPORTS > $output_objdir/$soname.def;
11269	  cat $export_symbols >> $output_objdir/$soname.def;
11270	fi~
11271	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11272      else
11273	ld_shlibs=no
11274      fi
11275      ;;
11276
11277    haiku*)
11278      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11279      link_all_deplibs=yes
11280      ;;
11281
11282    interix[3-9]*)
11283      hardcode_direct=no
11284      hardcode_shlibpath_var=no
11285      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11286      export_dynamic_flag_spec='${wl}-E'
11287      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11288      # Instead, shared libraries are loaded at an image base (0x10000000 by
11289      # default) and relocated if they conflict, which is a slow very memory
11290      # consuming and fragmenting process.  To avoid this, we pick a random,
11291      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11292      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11293      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11294      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'
11295      ;;
11296
11297    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11298      tmp_diet=no
11299      if test "$host_os" = linux-dietlibc; then
11300	case $cc_basename in
11301	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11302	esac
11303      fi
11304      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11305	 && test "$tmp_diet" = no
11306      then
11307	tmp_addflag=' $pic_flag'
11308	tmp_sharedflag='-shared'
11309	case $cc_basename,$host_cpu in
11310        pgcc*)				# Portland Group C compiler
11311	  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'
11312	  tmp_addflag=' $pic_flag'
11313	  ;;
11314	pgf77* | pgf90* | pgf95* | pgfortran*)
11315					# Portland Group f77 and f90 compilers
11316	  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'
11317	  tmp_addflag=' $pic_flag -Mnomain' ;;
11318	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11319	  tmp_addflag=' -i_dynamic' ;;
11320	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11321	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11322	ifc* | ifort*)			# Intel Fortran compiler
11323	  tmp_addflag=' -nofor_main' ;;
11324	lf95*)				# Lahey Fortran 8.1
11325	  whole_archive_flag_spec=
11326	  tmp_sharedflag='--shared' ;;
11327	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11328	  tmp_sharedflag='-qmkshrobj'
11329	  tmp_addflag= ;;
11330	nvcc*)	# Cuda Compiler Driver 2.2
11331	  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'
11332	  compiler_needs_object=yes
11333	  ;;
11334	esac
11335	case `$CC -V 2>&1 | sed 5q` in
11336	*Sun\ C*)			# Sun C 5.9
11337	  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'
11338	  compiler_needs_object=yes
11339	  tmp_sharedflag='-G' ;;
11340	*Sun\ F*)			# Sun Fortran 8.3
11341	  tmp_sharedflag='-G' ;;
11342	esac
11343	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11344
11345        if test "x$supports_anon_versioning" = xyes; then
11346          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11347	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11348	    echo "local: *; };" >> $output_objdir/$libname.ver~
11349	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11350        fi
11351
11352	case $cc_basename in
11353	xlf* | bgf* | bgxlf* | mpixlf*)
11354	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11355	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11356	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11357	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11358	  if test "x$supports_anon_versioning" = xyes; then
11359	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11360	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11361	      echo "local: *; };" >> $output_objdir/$libname.ver~
11362	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11363	  fi
11364	  ;;
11365	esac
11366      else
11367        ld_shlibs=no
11368      fi
11369      ;;
11370
11371    netbsd*)
11372      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11373	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11374	wlarc=
11375      else
11376	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11377	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11378      fi
11379      ;;
11380
11381    solaris*)
11382      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11383	ld_shlibs=no
11384	cat <<_LT_EOF 1>&2
11385
11386*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11387*** create shared libraries on Solaris systems.  Therefore, libtool
11388*** is disabling shared libraries support.  We urge you to upgrade GNU
11389*** binutils to release 2.9.1 or newer.  Another option is to modify
11390*** your PATH or compiler configuration so that the native linker is
11391*** used, and then restart.
11392
11393_LT_EOF
11394      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11395	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11396	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11397      else
11398	ld_shlibs=no
11399      fi
11400      ;;
11401
11402    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11403      case `$LD -v 2>&1` in
11404        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11405	ld_shlibs=no
11406	cat <<_LT_EOF 1>&2
11407
11408*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11409*** reliably create shared libraries on SCO systems.  Therefore, libtool
11410*** is disabling shared libraries support.  We urge you to upgrade GNU
11411*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11412*** your PATH or compiler configuration so that the native linker is
11413*** used, and then restart.
11414
11415_LT_EOF
11416	;;
11417	*)
11418	  # For security reasons, it is highly recommended that you always
11419	  # use absolute paths for naming shared libraries, and exclude the
11420	  # DT_RUNPATH tag from executables and libraries.  But doing so
11421	  # requires that you compile everything twice, which is a pain.
11422	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11423	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11424	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11425	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11426	  else
11427	    ld_shlibs=no
11428	  fi
11429	;;
11430      esac
11431      ;;
11432
11433    sunos4*)
11434      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11435      wlarc=
11436      hardcode_direct=yes
11437      hardcode_shlibpath_var=no
11438      ;;
11439
11440    *)
11441      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11442	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11443	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11444      else
11445	ld_shlibs=no
11446      fi
11447      ;;
11448    esac
11449
11450    if test "$ld_shlibs" = no; then
11451      runpath_var=
11452      hardcode_libdir_flag_spec=
11453      export_dynamic_flag_spec=
11454      whole_archive_flag_spec=
11455    fi
11456  else
11457    # PORTME fill in a description of your system's linker (not GNU ld)
11458    case $host_os in
11459    aix3*)
11460      allow_undefined_flag=unsupported
11461      always_export_symbols=yes
11462      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'
11463      # Note: this linker hardcodes the directories in LIBPATH if there
11464      # are no directories specified by -L.
11465      hardcode_minus_L=yes
11466      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11467	# Neither direct hardcoding nor static linking is supported with a
11468	# broken collect2.
11469	hardcode_direct=unsupported
11470      fi
11471      ;;
11472
11473    aix[4-9]*)
11474      if test "$host_cpu" = ia64; then
11475	# On IA64, the linker does run time linking by default, so we don't
11476	# have to do anything special.
11477	aix_use_runtimelinking=no
11478	exp_sym_flag='-Bexport'
11479	no_entry_flag=""
11480      else
11481	# If we're using GNU nm, then we don't want the "-C" option.
11482	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11483	# Also, AIX nm treats weak defined symbols like other global
11484	# defined symbols, whereas GNU nm marks them as "W".
11485	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11486	  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'
11487	else
11488	  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'
11489	fi
11490	aix_use_runtimelinking=no
11491
11492	# Test if we are trying to use run time linking or normal
11493	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11494	# need to do runtime linking.
11495	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11496	  for ld_flag in $LDFLAGS; do
11497	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11498	    aix_use_runtimelinking=yes
11499	    break
11500	  fi
11501	  done
11502	  ;;
11503	esac
11504
11505	exp_sym_flag='-bexport'
11506	no_entry_flag='-bnoentry'
11507      fi
11508
11509      # When large executables or shared objects are built, AIX ld can
11510      # have problems creating the table of contents.  If linking a library
11511      # or program results in "error TOC overflow" add -mminimal-toc to
11512      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11513      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11514
11515      archive_cmds=''
11516      hardcode_direct=yes
11517      hardcode_direct_absolute=yes
11518      hardcode_libdir_separator=':'
11519      link_all_deplibs=yes
11520      file_list_spec='${wl}-f,'
11521
11522      if test "$GCC" = yes; then
11523	case $host_os in aix4.[012]|aix4.[012].*)
11524	# We only want to do this on AIX 4.2 and lower, the check
11525	# below for broken collect2 doesn't work under 4.3+
11526	  collect2name=`${CC} -print-prog-name=collect2`
11527	  if test -f "$collect2name" &&
11528	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11529	  then
11530	  # We have reworked collect2
11531	  :
11532	  else
11533	  # We have old collect2
11534	  hardcode_direct=unsupported
11535	  # It fails to find uninstalled libraries when the uninstalled
11536	  # path is not listed in the libpath.  Setting hardcode_minus_L
11537	  # to unsupported forces relinking
11538	  hardcode_minus_L=yes
11539	  hardcode_libdir_flag_spec='-L$libdir'
11540	  hardcode_libdir_separator=
11541	  fi
11542	  ;;
11543	esac
11544	shared_flag='-shared'
11545	if test "$aix_use_runtimelinking" = yes; then
11546	  shared_flag="$shared_flag "'${wl}-G'
11547	fi
11548      else
11549	# not using gcc
11550	if test "$host_cpu" = ia64; then
11551	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11552	# chokes on -Wl,-G. The following line is correct:
11553	  shared_flag='-G'
11554	else
11555	  if test "$aix_use_runtimelinking" = yes; then
11556	    shared_flag='${wl}-G'
11557	  else
11558	    shared_flag='${wl}-bM:SRE'
11559	  fi
11560	fi
11561      fi
11562
11563      export_dynamic_flag_spec='${wl}-bexpall'
11564      # It seems that -bexpall does not export symbols beginning with
11565      # underscore (_), so it is better to generate a list of symbols to export.
11566      always_export_symbols=yes
11567      if test "$aix_use_runtimelinking" = yes; then
11568	# Warning - without using the other runtime loading flags (-brtl),
11569	# -berok will link without error, but may produce a broken library.
11570	allow_undefined_flag='-berok'
11571        # Determine the default libpath from the value encoded in an
11572        # empty executable.
11573        if test "${lt_cv_aix_libpath+set}" = set; then
11574  aix_libpath=$lt_cv_aix_libpath
11575else
11576  if ${lt_cv_aix_libpath_+:} false; then :
11577  $as_echo_n "(cached) " >&6
11578else
11579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580/* end confdefs.h.  */
11581
11582int
11583main ()
11584{
11585
11586  ;
11587  return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_link "$LINENO"; then :
11591
11592  lt_aix_libpath_sed='
11593      /Import File Strings/,/^$/ {
11594	  /^0/ {
11595	      s/^0  *\([^ ]*\) *$/\1/
11596	      p
11597	  }
11598      }'
11599  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11600  # Check for a 64-bit object if we didn't find anything.
11601  if test -z "$lt_cv_aix_libpath_"; then
11602    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11603  fi
11604fi
11605rm -f core conftest.err conftest.$ac_objext \
11606    conftest$ac_exeext conftest.$ac_ext
11607  if test -z "$lt_cv_aix_libpath_"; then
11608    lt_cv_aix_libpath_="/usr/lib:/lib"
11609  fi
11610
11611fi
11612
11613  aix_libpath=$lt_cv_aix_libpath_
11614fi
11615
11616        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11617        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"
11618      else
11619	if test "$host_cpu" = ia64; then
11620	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11621	  allow_undefined_flag="-z nodefs"
11622	  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"
11623	else
11624	 # Determine the default libpath from the value encoded in an
11625	 # empty executable.
11626	 if test "${lt_cv_aix_libpath+set}" = set; then
11627  aix_libpath=$lt_cv_aix_libpath
11628else
11629  if ${lt_cv_aix_libpath_+:} false; then :
11630  $as_echo_n "(cached) " >&6
11631else
11632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633/* end confdefs.h.  */
11634
11635int
11636main ()
11637{
11638
11639  ;
11640  return 0;
11641}
11642_ACEOF
11643if ac_fn_c_try_link "$LINENO"; then :
11644
11645  lt_aix_libpath_sed='
11646      /Import File Strings/,/^$/ {
11647	  /^0/ {
11648	      s/^0  *\([^ ]*\) *$/\1/
11649	      p
11650	  }
11651      }'
11652  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11653  # Check for a 64-bit object if we didn't find anything.
11654  if test -z "$lt_cv_aix_libpath_"; then
11655    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11656  fi
11657fi
11658rm -f core conftest.err conftest.$ac_objext \
11659    conftest$ac_exeext conftest.$ac_ext
11660  if test -z "$lt_cv_aix_libpath_"; then
11661    lt_cv_aix_libpath_="/usr/lib:/lib"
11662  fi
11663
11664fi
11665
11666  aix_libpath=$lt_cv_aix_libpath_
11667fi
11668
11669	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11670	  # Warning - without using the other run time loading flags,
11671	  # -berok will link without error, but may produce a broken library.
11672	  no_undefined_flag=' ${wl}-bernotok'
11673	  allow_undefined_flag=' ${wl}-berok'
11674	  if test "$with_gnu_ld" = yes; then
11675	    # We only use this code for GNU lds that support --whole-archive.
11676	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11677	  else
11678	    # Exported symbols can be pulled into shared objects from archives
11679	    whole_archive_flag_spec='$convenience'
11680	  fi
11681	  archive_cmds_need_lc=yes
11682	  # This is similar to how AIX traditionally builds its shared libraries.
11683	  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'
11684	fi
11685      fi
11686      ;;
11687
11688    amigaos*)
11689      case $host_cpu in
11690      powerpc)
11691            # see comment about AmigaOS4 .so support
11692            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11693            archive_expsym_cmds=''
11694        ;;
11695      m68k)
11696            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)'
11697            hardcode_libdir_flag_spec='-L$libdir'
11698            hardcode_minus_L=yes
11699        ;;
11700      esac
11701      ;;
11702
11703    bsdi[45]*)
11704      export_dynamic_flag_spec=-rdynamic
11705      ;;
11706
11707    cygwin* | mingw* | pw32* | cegcc*)
11708      # When not using gcc, we currently assume that we are using
11709      # Microsoft Visual C++.
11710      # hardcode_libdir_flag_spec is actually meaningless, as there is
11711      # no search path for DLLs.
11712      case $cc_basename in
11713      cl*)
11714	# Native MSVC
11715	hardcode_libdir_flag_spec=' '
11716	allow_undefined_flag=unsupported
11717	always_export_symbols=yes
11718	file_list_spec='@'
11719	# Tell ltmain to make .lib files, not .a files.
11720	libext=lib
11721	# Tell ltmain to make .dll files, not .so files.
11722	shrext_cmds=".dll"
11723	# FIXME: Setting linknames here is a bad hack.
11724	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11725	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11726	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11727	  else
11728	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11729	  fi~
11730	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11731	  linknames='
11732	# The linker will not automatically build a static lib if we build a DLL.
11733	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11734	enable_shared_with_static_runtimes=yes
11735	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11736	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11737	# Don't use ranlib
11738	old_postinstall_cmds='chmod 644 $oldlib'
11739	postlink_cmds='lt_outputfile="@OUTPUT@"~
11740	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11741	  case $lt_outputfile in
11742	    *.exe|*.EXE) ;;
11743	    *)
11744	      lt_outputfile="$lt_outputfile.exe"
11745	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11746	      ;;
11747	  esac~
11748	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11749	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11750	    $RM "$lt_outputfile.manifest";
11751	  fi'
11752	;;
11753      *)
11754	# Assume MSVC wrapper
11755	hardcode_libdir_flag_spec=' '
11756	allow_undefined_flag=unsupported
11757	# Tell ltmain to make .lib files, not .a files.
11758	libext=lib
11759	# Tell ltmain to make .dll files, not .so files.
11760	shrext_cmds=".dll"
11761	# FIXME: Setting linknames here is a bad hack.
11762	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11763	# The linker will automatically build a .lib file if we build a DLL.
11764	old_archive_from_new_cmds='true'
11765	# FIXME: Should let the user specify the lib program.
11766	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11767	enable_shared_with_static_runtimes=yes
11768	;;
11769      esac
11770      ;;
11771
11772    darwin* | rhapsody*)
11773
11774
11775  archive_cmds_need_lc=no
11776  hardcode_direct=no
11777  hardcode_automatic=yes
11778  hardcode_shlibpath_var=unsupported
11779  if test "$lt_cv_ld_force_load" = "yes"; then
11780    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\"`'
11781
11782  else
11783    whole_archive_flag_spec=''
11784  fi
11785  link_all_deplibs=yes
11786  allow_undefined_flag="$_lt_dar_allow_undefined"
11787  case $cc_basename in
11788     ifort*) _lt_dar_can_shared=yes ;;
11789     *) _lt_dar_can_shared=$GCC ;;
11790  esac
11791  if test "$_lt_dar_can_shared" = "yes"; then
11792    output_verbose_link_cmd=func_echo_all
11793    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11794    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11795    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}"
11796    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}"
11797
11798  else
11799  ld_shlibs=no
11800  fi
11801
11802      ;;
11803
11804    dgux*)
11805      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11806      hardcode_libdir_flag_spec='-L$libdir'
11807      hardcode_shlibpath_var=no
11808      ;;
11809
11810    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11811    # support.  Future versions do this automatically, but an explicit c++rt0.o
11812    # does not break anything, and helps significantly (at the cost of a little
11813    # extra space).
11814    freebsd2.2*)
11815      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11816      hardcode_libdir_flag_spec='-R$libdir'
11817      hardcode_direct=yes
11818      hardcode_shlibpath_var=no
11819      ;;
11820
11821    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11822    freebsd2.*)
11823      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11824      hardcode_direct=yes
11825      hardcode_minus_L=yes
11826      hardcode_shlibpath_var=no
11827      ;;
11828
11829    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11830    freebsd* | dragonfly*)
11831      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11832      hardcode_libdir_flag_spec='-R$libdir'
11833      hardcode_direct=yes
11834      hardcode_shlibpath_var=no
11835      ;;
11836
11837    hpux9*)
11838      if test "$GCC" = yes; then
11839	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'
11840      else
11841	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'
11842      fi
11843      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11844      hardcode_libdir_separator=:
11845      hardcode_direct=yes
11846
11847      # hardcode_minus_L: Not really in the search PATH,
11848      # but as the default location of the library.
11849      hardcode_minus_L=yes
11850      export_dynamic_flag_spec='${wl}-E'
11851      ;;
11852
11853    hpux10*)
11854      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11855	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11856      else
11857	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11858      fi
11859      if test "$with_gnu_ld" = no; then
11860	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11861	hardcode_libdir_separator=:
11862	hardcode_direct=yes
11863	hardcode_direct_absolute=yes
11864	export_dynamic_flag_spec='${wl}-E'
11865	# hardcode_minus_L: Not really in the search PATH,
11866	# but as the default location of the library.
11867	hardcode_minus_L=yes
11868      fi
11869      ;;
11870
11871    hpux11*)
11872      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11873	case $host_cpu in
11874	hppa*64*)
11875	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11876	  ;;
11877	ia64*)
11878	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11879	  ;;
11880	*)
11881	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11882	  ;;
11883	esac
11884      else
11885	case $host_cpu in
11886	hppa*64*)
11887	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11888	  ;;
11889	ia64*)
11890	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11891	  ;;
11892	*)
11893
11894	  # Older versions of the 11.00 compiler do not understand -b yet
11895	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11896	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11897$as_echo_n "checking if $CC understands -b... " >&6; }
11898if ${lt_cv_prog_compiler__b+:} false; then :
11899  $as_echo_n "(cached) " >&6
11900else
11901  lt_cv_prog_compiler__b=no
11902   save_LDFLAGS="$LDFLAGS"
11903   LDFLAGS="$LDFLAGS -b"
11904   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11905   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11906     # The linker can only warn and ignore the option if not recognized
11907     # So say no if there are warnings
11908     if test -s conftest.err; then
11909       # Append any errors to the config.log.
11910       cat conftest.err 1>&5
11911       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11912       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11913       if diff conftest.exp conftest.er2 >/dev/null; then
11914         lt_cv_prog_compiler__b=yes
11915       fi
11916     else
11917       lt_cv_prog_compiler__b=yes
11918     fi
11919   fi
11920   $RM -r conftest*
11921   LDFLAGS="$save_LDFLAGS"
11922
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11925$as_echo "$lt_cv_prog_compiler__b" >&6; }
11926
11927if test x"$lt_cv_prog_compiler__b" = xyes; then
11928    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11929else
11930    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11931fi
11932
11933	  ;;
11934	esac
11935      fi
11936      if test "$with_gnu_ld" = no; then
11937	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11938	hardcode_libdir_separator=:
11939
11940	case $host_cpu in
11941	hppa*64*|ia64*)
11942	  hardcode_direct=no
11943	  hardcode_shlibpath_var=no
11944	  ;;
11945	*)
11946	  hardcode_direct=yes
11947	  hardcode_direct_absolute=yes
11948	  export_dynamic_flag_spec='${wl}-E'
11949
11950	  # hardcode_minus_L: Not really in the search PATH,
11951	  # but as the default location of the library.
11952	  hardcode_minus_L=yes
11953	  ;;
11954	esac
11955      fi
11956      ;;
11957
11958    irix5* | irix6* | nonstopux*)
11959      if test "$GCC" = yes; then
11960	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'
11961	# Try to use the -exported_symbol ld option, if it does not
11962	# work, assume that -exports_file does not work either and
11963	# implicitly export all symbols.
11964	# This should be the same for all languages, so no per-tag cache variable.
11965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11966$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11967if ${lt_cv_irix_exported_symbol+:} false; then :
11968  $as_echo_n "(cached) " >&6
11969else
11970  save_LDFLAGS="$LDFLAGS"
11971	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11972	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h.  */
11974int foo (void) { return 0; }
11975_ACEOF
11976if ac_fn_c_try_link "$LINENO"; then :
11977  lt_cv_irix_exported_symbol=yes
11978else
11979  lt_cv_irix_exported_symbol=no
11980fi
11981rm -f core conftest.err conftest.$ac_objext \
11982    conftest$ac_exeext conftest.$ac_ext
11983           LDFLAGS="$save_LDFLAGS"
11984fi
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11986$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11987	if test "$lt_cv_irix_exported_symbol" = yes; then
11988          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'
11989	fi
11990      else
11991	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'
11992	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'
11993      fi
11994      archive_cmds_need_lc='no'
11995      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11996      hardcode_libdir_separator=:
11997      inherit_rpath=yes
11998      link_all_deplibs=yes
11999      ;;
12000
12001    netbsd*)
12002      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12003	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12004      else
12005	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12006      fi
12007      hardcode_libdir_flag_spec='-R$libdir'
12008      hardcode_direct=yes
12009      hardcode_shlibpath_var=no
12010      ;;
12011
12012    newsos6)
12013      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12014      hardcode_direct=yes
12015      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12016      hardcode_libdir_separator=:
12017      hardcode_shlibpath_var=no
12018      ;;
12019
12020    *nto* | *qnx*)
12021      ;;
12022
12023    openbsd*)
12024      if test -f /usr/libexec/ld.so; then
12025	hardcode_direct=yes
12026	hardcode_shlibpath_var=no
12027	hardcode_direct_absolute=yes
12028	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12029	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12030	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12031	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12032	  export_dynamic_flag_spec='${wl}-E'
12033	else
12034	  case $host_os in
12035	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12036	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12037	     hardcode_libdir_flag_spec='-R$libdir'
12038	     ;;
12039	   *)
12040	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12041	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12042	     ;;
12043	  esac
12044	fi
12045      else
12046	ld_shlibs=no
12047      fi
12048      ;;
12049
12050    os2*)
12051      hardcode_libdir_flag_spec='-L$libdir'
12052      hardcode_minus_L=yes
12053      allow_undefined_flag=unsupported
12054      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'
12055      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12056      ;;
12057
12058    osf3*)
12059      if test "$GCC" = yes; then
12060	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12061	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'
12062      else
12063	allow_undefined_flag=' -expect_unresolved \*'
12064	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'
12065      fi
12066      archive_cmds_need_lc='no'
12067      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12068      hardcode_libdir_separator=:
12069      ;;
12070
12071    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12072      if test "$GCC" = yes; then
12073	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12074	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'
12075	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12076      else
12077	allow_undefined_flag=' -expect_unresolved \*'
12078	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'
12079	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~
12080	$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'
12081
12082	# Both c and cxx compiler support -rpath directly
12083	hardcode_libdir_flag_spec='-rpath $libdir'
12084      fi
12085      archive_cmds_need_lc='no'
12086      hardcode_libdir_separator=:
12087      ;;
12088
12089    solaris*)
12090      no_undefined_flag=' -z defs'
12091      if test "$GCC" = yes; then
12092	wlarc='${wl}'
12093	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12094	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12095	  $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'
12096      else
12097	case `$CC -V 2>&1` in
12098	*"Compilers 5.0"*)
12099	  wlarc=''
12100	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12101	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12102	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12103	  ;;
12104	*)
12105	  wlarc='${wl}'
12106	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12107	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12108	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12109	  ;;
12110	esac
12111      fi
12112      hardcode_libdir_flag_spec='-R$libdir'
12113      hardcode_shlibpath_var=no
12114      case $host_os in
12115      solaris2.[0-5] | solaris2.[0-5].*) ;;
12116      *)
12117	# The compiler driver will combine and reorder linker options,
12118	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12119	# but is careful enough not to reorder.
12120	# Supported since Solaris 2.6 (maybe 2.5.1?)
12121	if test "$GCC" = yes; then
12122	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12123	else
12124	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12125	fi
12126	;;
12127      esac
12128      link_all_deplibs=yes
12129      ;;
12130
12131    sunos4*)
12132      if test "x$host_vendor" = xsequent; then
12133	# Use $CC to link under sequent, because it throws in some extra .o
12134	# files that make .init and .fini sections work.
12135	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12136      else
12137	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12138      fi
12139      hardcode_libdir_flag_spec='-L$libdir'
12140      hardcode_direct=yes
12141      hardcode_minus_L=yes
12142      hardcode_shlibpath_var=no
12143      ;;
12144
12145    sysv4)
12146      case $host_vendor in
12147	sni)
12148	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12149	  hardcode_direct=yes # is this really true???
12150	;;
12151	siemens)
12152	  ## LD is ld it makes a PLAMLIB
12153	  ## CC just makes a GrossModule.
12154	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12155	  reload_cmds='$CC -r -o $output$reload_objs'
12156	  hardcode_direct=no
12157        ;;
12158	motorola)
12159	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12160	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12161	;;
12162      esac
12163      runpath_var='LD_RUN_PATH'
12164      hardcode_shlibpath_var=no
12165      ;;
12166
12167    sysv4.3*)
12168      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12169      hardcode_shlibpath_var=no
12170      export_dynamic_flag_spec='-Bexport'
12171      ;;
12172
12173    sysv4*MP*)
12174      if test -d /usr/nec; then
12175	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12176	hardcode_shlibpath_var=no
12177	runpath_var=LD_RUN_PATH
12178	hardcode_runpath_var=yes
12179	ld_shlibs=yes
12180      fi
12181      ;;
12182
12183    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12184      no_undefined_flag='${wl}-z,text'
12185      archive_cmds_need_lc=no
12186      hardcode_shlibpath_var=no
12187      runpath_var='LD_RUN_PATH'
12188
12189      if test "$GCC" = yes; then
12190	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12191	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12192      else
12193	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12194	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12195      fi
12196      ;;
12197
12198    sysv5* | sco3.2v5* | sco5v6*)
12199      # Note: We can NOT use -z defs as we might desire, because we do not
12200      # link with -lc, and that would cause any symbols used from libc to
12201      # always be unresolved, which means just about no library would
12202      # ever link correctly.  If we're not using GNU ld we use -z text
12203      # though, which does catch some bad symbols but isn't as heavy-handed
12204      # as -z defs.
12205      no_undefined_flag='${wl}-z,text'
12206      allow_undefined_flag='${wl}-z,nodefs'
12207      archive_cmds_need_lc=no
12208      hardcode_shlibpath_var=no
12209      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12210      hardcode_libdir_separator=':'
12211      link_all_deplibs=yes
12212      export_dynamic_flag_spec='${wl}-Bexport'
12213      runpath_var='LD_RUN_PATH'
12214
12215      if test "$GCC" = yes; then
12216	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12217	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12218      else
12219	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12220	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12221      fi
12222      ;;
12223
12224    uts4*)
12225      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12226      hardcode_libdir_flag_spec='-L$libdir'
12227      hardcode_shlibpath_var=no
12228      ;;
12229
12230    *)
12231      ld_shlibs=no
12232      ;;
12233    esac
12234
12235    if test x$host_vendor = xsni; then
12236      case $host in
12237      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12238	export_dynamic_flag_spec='${wl}-Blargedynsym'
12239	;;
12240      esac
12241    fi
12242  fi
12243
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12245$as_echo "$ld_shlibs" >&6; }
12246test "$ld_shlibs" = no && can_build_shared=no
12247
12248with_gnu_ld=$with_gnu_ld
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264#
12265# Do we need to explicitly link libc?
12266#
12267case "x$archive_cmds_need_lc" in
12268x|xyes)
12269  # Assume -lc should be added
12270  archive_cmds_need_lc=yes
12271
12272  if test "$enable_shared" = yes && test "$GCC" = yes; then
12273    case $archive_cmds in
12274    *'~'*)
12275      # FIXME: we may have to deal with multi-command sequences.
12276      ;;
12277    '$CC '*)
12278      # Test whether the compiler implicitly links with -lc since on some
12279      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12280      # to ld, don't add -lc before -lgcc.
12281      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12282$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12283if ${lt_cv_archive_cmds_need_lc+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  $RM conftest*
12287	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12288
12289	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12290  (eval $ac_compile) 2>&5
12291  ac_status=$?
12292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12293  test $ac_status = 0; } 2>conftest.err; then
12294	  soname=conftest
12295	  lib=conftest
12296	  libobjs=conftest.$ac_objext
12297	  deplibs=
12298	  wl=$lt_prog_compiler_wl
12299	  pic_flag=$lt_prog_compiler_pic
12300	  compiler_flags=-v
12301	  linker_flags=-v
12302	  verstring=
12303	  output_objdir=.
12304	  libname=conftest
12305	  lt_save_allow_undefined_flag=$allow_undefined_flag
12306	  allow_undefined_flag=
12307	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12308  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12309  ac_status=$?
12310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12311  test $ac_status = 0; }
12312	  then
12313	    lt_cv_archive_cmds_need_lc=no
12314	  else
12315	    lt_cv_archive_cmds_need_lc=yes
12316	  fi
12317	  allow_undefined_flag=$lt_save_allow_undefined_flag
12318	else
12319	  cat conftest.err 1>&5
12320	fi
12321	$RM conftest*
12322
12323fi
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12325$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12326      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12327      ;;
12328    esac
12329  fi
12330  ;;
12331esac
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12485$as_echo_n "checking dynamic linker characteristics... " >&6; }
12486
12487if test "$GCC" = yes; then
12488  case $host_os in
12489    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12490    *) lt_awk_arg="/^libraries:/" ;;
12491  esac
12492  case $host_os in
12493    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12494    *) lt_sed_strip_eq="s,=/,/,g" ;;
12495  esac
12496  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12497  case $lt_search_path_spec in
12498  *\;*)
12499    # if the path contains ";" then we assume it to be the separator
12500    # otherwise default to the standard path separator (i.e. ":") - it is
12501    # assumed that no part of a normal pathname contains ";" but that should
12502    # okay in the real world where ";" in dirpaths is itself problematic.
12503    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12504    ;;
12505  *)
12506    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12507    ;;
12508  esac
12509  # Ok, now we have the path, separated by spaces, we can step through it
12510  # and add multilib dir if necessary.
12511  lt_tmp_lt_search_path_spec=
12512  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12513  for lt_sys_path in $lt_search_path_spec; do
12514    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12515      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12516    else
12517      test -d "$lt_sys_path" && \
12518	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12519    fi
12520  done
12521  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12522BEGIN {RS=" "; FS="/|\n";} {
12523  lt_foo="";
12524  lt_count=0;
12525  for (lt_i = NF; lt_i > 0; lt_i--) {
12526    if ($lt_i != "" && $lt_i != ".") {
12527      if ($lt_i == "..") {
12528        lt_count++;
12529      } else {
12530        if (lt_count == 0) {
12531          lt_foo="/" $lt_i lt_foo;
12532        } else {
12533          lt_count--;
12534        }
12535      }
12536    }
12537  }
12538  if (lt_foo != "") { lt_freq[lt_foo]++; }
12539  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12540}'`
12541  # AWK program above erroneously prepends '/' to C:/dos/paths
12542  # for these hosts.
12543  case $host_os in
12544    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12545      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12546  esac
12547  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12548else
12549  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12550fi
12551library_names_spec=
12552libname_spec='lib$name'
12553soname_spec=
12554shrext_cmds=".so"
12555postinstall_cmds=
12556postuninstall_cmds=
12557finish_cmds=
12558finish_eval=
12559shlibpath_var=
12560shlibpath_overrides_runpath=unknown
12561version_type=none
12562dynamic_linker="$host_os ld.so"
12563sys_lib_dlsearch_path_spec="/lib /usr/lib"
12564need_lib_prefix=unknown
12565hardcode_into_libs=no
12566
12567# when you set need_version to no, make sure it does not cause -set_version
12568# flags to be left without arguments
12569need_version=unknown
12570
12571case $host_os in
12572aix3*)
12573  version_type=linux # correct to gnu/linux during the next big refactor
12574  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12575  shlibpath_var=LIBPATH
12576
12577  # AIX 3 has no versioning support, so we append a major version to the name.
12578  soname_spec='${libname}${release}${shared_ext}$major'
12579  ;;
12580
12581aix[4-9]*)
12582  version_type=linux # correct to gnu/linux during the next big refactor
12583  need_lib_prefix=no
12584  need_version=no
12585  hardcode_into_libs=yes
12586  if test "$host_cpu" = ia64; then
12587    # AIX 5 supports IA64
12588    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12589    shlibpath_var=LD_LIBRARY_PATH
12590  else
12591    # With GCC up to 2.95.x, collect2 would create an import file
12592    # for dependence libraries.  The import file would start with
12593    # the line `#! .'.  This would cause the generated library to
12594    # depend on `.', always an invalid library.  This was fixed in
12595    # development snapshots of GCC prior to 3.0.
12596    case $host_os in
12597      aix4 | aix4.[01] | aix4.[01].*)
12598      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12599	   echo ' yes '
12600	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12601	:
12602      else
12603	can_build_shared=no
12604      fi
12605      ;;
12606    esac
12607    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12608    # soname into executable. Probably we can add versioning support to
12609    # collect2, so additional links can be useful in future.
12610    if test "$aix_use_runtimelinking" = yes; then
12611      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12612      # instead of lib<name>.a to let people know that these are not
12613      # typical AIX shared libraries.
12614      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12615    else
12616      # We preserve .a as extension for shared libraries through AIX4.2
12617      # and later when we are not doing run time linking.
12618      library_names_spec='${libname}${release}.a $libname.a'
12619      soname_spec='${libname}${release}${shared_ext}$major'
12620    fi
12621    shlibpath_var=LIBPATH
12622  fi
12623  ;;
12624
12625amigaos*)
12626  case $host_cpu in
12627  powerpc)
12628    # Since July 2007 AmigaOS4 officially supports .so libraries.
12629    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12630    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631    ;;
12632  m68k)
12633    library_names_spec='$libname.ixlibrary $libname.a'
12634    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12635    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'
12636    ;;
12637  esac
12638  ;;
12639
12640beos*)
12641  library_names_spec='${libname}${shared_ext}'
12642  dynamic_linker="$host_os ld.so"
12643  shlibpath_var=LIBRARY_PATH
12644  ;;
12645
12646bsdi[45]*)
12647  version_type=linux # correct to gnu/linux during the next big refactor
12648  need_version=no
12649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650  soname_spec='${libname}${release}${shared_ext}$major'
12651  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12652  shlibpath_var=LD_LIBRARY_PATH
12653  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12654  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12655  # the default ld.so.conf also contains /usr/contrib/lib and
12656  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12657  # libtool to hard-code these into programs
12658  ;;
12659
12660cygwin* | mingw* | pw32* | cegcc*)
12661  version_type=windows
12662  shrext_cmds=".dll"
12663  need_version=no
12664  need_lib_prefix=no
12665
12666  case $GCC,$cc_basename in
12667  yes,*)
12668    # gcc
12669    library_names_spec='$libname.dll.a'
12670    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12671    postinstall_cmds='base_file=`basename \${file}`~
12672      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12673      dldir=$destdir/`dirname \$dlpath`~
12674      test -d \$dldir || mkdir -p \$dldir~
12675      $install_prog $dir/$dlname \$dldir/$dlname~
12676      chmod a+x \$dldir/$dlname~
12677      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12678        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12679      fi'
12680    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12681      dlpath=$dir/\$dldll~
12682       $RM \$dlpath'
12683    shlibpath_overrides_runpath=yes
12684
12685    case $host_os in
12686    cygwin*)
12687      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12688      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12689
12690      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12691      ;;
12692    mingw* | cegcc*)
12693      # MinGW DLLs use traditional 'lib' prefix
12694      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12695      ;;
12696    pw32*)
12697      # pw32 DLLs use 'pw' prefix rather than 'lib'
12698      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12699      ;;
12700    esac
12701    dynamic_linker='Win32 ld.exe'
12702    ;;
12703
12704  *,cl*)
12705    # Native MSVC
12706    libname_spec='$name'
12707    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12708    library_names_spec='${libname}.dll.lib'
12709
12710    case $build_os in
12711    mingw*)
12712      sys_lib_search_path_spec=
12713      lt_save_ifs=$IFS
12714      IFS=';'
12715      for lt_path in $LIB
12716      do
12717        IFS=$lt_save_ifs
12718        # Let DOS variable expansion print the short 8.3 style file name.
12719        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12720        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12721      done
12722      IFS=$lt_save_ifs
12723      # Convert to MSYS style.
12724      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12725      ;;
12726    cygwin*)
12727      # Convert to unix form, then to dos form, then back to unix form
12728      # but this time dos style (no spaces!) so that the unix form looks
12729      # like /cygdrive/c/PROGRA~1:/cygdr...
12730      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12731      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12732      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12733      ;;
12734    *)
12735      sys_lib_search_path_spec="$LIB"
12736      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12737        # It is most probably a Windows format PATH.
12738        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12739      else
12740        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12741      fi
12742      # FIXME: find the short name or the path components, as spaces are
12743      # common. (e.g. "Program Files" -> "PROGRA~1")
12744      ;;
12745    esac
12746
12747    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12748    postinstall_cmds='base_file=`basename \${file}`~
12749      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12750      dldir=$destdir/`dirname \$dlpath`~
12751      test -d \$dldir || mkdir -p \$dldir~
12752      $install_prog $dir/$dlname \$dldir/$dlname'
12753    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12754      dlpath=$dir/\$dldll~
12755       $RM \$dlpath'
12756    shlibpath_overrides_runpath=yes
12757    dynamic_linker='Win32 link.exe'
12758    ;;
12759
12760  *)
12761    # Assume MSVC wrapper
12762    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12763    dynamic_linker='Win32 ld.exe'
12764    ;;
12765  esac
12766  # FIXME: first we should search . and the directory the executable is in
12767  shlibpath_var=PATH
12768  ;;
12769
12770darwin* | rhapsody*)
12771  dynamic_linker="$host_os dyld"
12772  version_type=darwin
12773  need_lib_prefix=no
12774  need_version=no
12775  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12776  soname_spec='${libname}${release}${major}$shared_ext'
12777  shlibpath_overrides_runpath=yes
12778  shlibpath_var=DYLD_LIBRARY_PATH
12779  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12780
12781  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12782  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12783  ;;
12784
12785dgux*)
12786  version_type=linux # correct to gnu/linux during the next big refactor
12787  need_lib_prefix=no
12788  need_version=no
12789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12790  soname_spec='${libname}${release}${shared_ext}$major'
12791  shlibpath_var=LD_LIBRARY_PATH
12792  ;;
12793
12794freebsd* | dragonfly*)
12795  # DragonFly does not have aout.  When/if they implement a new
12796  # versioning mechanism, adjust this.
12797  if test -x /usr/bin/objformat; then
12798    objformat=`/usr/bin/objformat`
12799  else
12800    case $host_os in
12801    freebsd[23].*) objformat=aout ;;
12802    *) objformat=elf ;;
12803    esac
12804  fi
12805  version_type=freebsd-$objformat
12806  case $version_type in
12807    freebsd-elf*)
12808      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12809      need_version=no
12810      need_lib_prefix=no
12811      ;;
12812    freebsd-*)
12813      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12814      need_version=yes
12815      ;;
12816  esac
12817  shlibpath_var=LD_LIBRARY_PATH
12818  case $host_os in
12819  freebsd2.*)
12820    shlibpath_overrides_runpath=yes
12821    ;;
12822  freebsd3.[01]* | freebsdelf3.[01]*)
12823    shlibpath_overrides_runpath=yes
12824    hardcode_into_libs=yes
12825    ;;
12826  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12827  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12828    shlibpath_overrides_runpath=no
12829    hardcode_into_libs=yes
12830    ;;
12831  *) # from 4.6 on, and DragonFly
12832    shlibpath_overrides_runpath=yes
12833    hardcode_into_libs=yes
12834    ;;
12835  esac
12836  ;;
12837
12838gnu*)
12839  version_type=linux # correct to gnu/linux during the next big refactor
12840  need_lib_prefix=no
12841  need_version=no
12842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12843  soname_spec='${libname}${release}${shared_ext}$major'
12844  shlibpath_var=LD_LIBRARY_PATH
12845  shlibpath_overrides_runpath=no
12846  hardcode_into_libs=yes
12847  ;;
12848
12849haiku*)
12850  version_type=linux # correct to gnu/linux during the next big refactor
12851  need_lib_prefix=no
12852  need_version=no
12853  dynamic_linker="$host_os runtime_loader"
12854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12855  soname_spec='${libname}${release}${shared_ext}$major'
12856  shlibpath_var=LIBRARY_PATH
12857  shlibpath_overrides_runpath=yes
12858  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12859  hardcode_into_libs=yes
12860  ;;
12861
12862hpux9* | hpux10* | hpux11*)
12863  # Give a soname corresponding to the major version so that dld.sl refuses to
12864  # link against other versions.
12865  version_type=sunos
12866  need_lib_prefix=no
12867  need_version=no
12868  case $host_cpu in
12869  ia64*)
12870    shrext_cmds='.so'
12871    hardcode_into_libs=yes
12872    dynamic_linker="$host_os dld.so"
12873    shlibpath_var=LD_LIBRARY_PATH
12874    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876    soname_spec='${libname}${release}${shared_ext}$major'
12877    if test "X$HPUX_IA64_MODE" = X32; then
12878      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12879    else
12880      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12881    fi
12882    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12883    ;;
12884  hppa*64*)
12885    shrext_cmds='.sl'
12886    hardcode_into_libs=yes
12887    dynamic_linker="$host_os dld.sl"
12888    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12889    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891    soname_spec='${libname}${release}${shared_ext}$major'
12892    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12893    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12894    ;;
12895  *)
12896    shrext_cmds='.sl'
12897    dynamic_linker="$host_os dld.sl"
12898    shlibpath_var=SHLIB_PATH
12899    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12900    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901    soname_spec='${libname}${release}${shared_ext}$major'
12902    ;;
12903  esac
12904  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12905  postinstall_cmds='chmod 555 $lib'
12906  # or fails outright, so override atomically:
12907  install_override_mode=555
12908  ;;
12909
12910interix[3-9]*)
12911  version_type=linux # correct to gnu/linux during the next big refactor
12912  need_lib_prefix=no
12913  need_version=no
12914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12915  soname_spec='${libname}${release}${shared_ext}$major'
12916  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12917  shlibpath_var=LD_LIBRARY_PATH
12918  shlibpath_overrides_runpath=no
12919  hardcode_into_libs=yes
12920  ;;
12921
12922irix5* | irix6* | nonstopux*)
12923  case $host_os in
12924    nonstopux*) version_type=nonstopux ;;
12925    *)
12926	if test "$lt_cv_prog_gnu_ld" = yes; then
12927		version_type=linux # correct to gnu/linux during the next big refactor
12928	else
12929		version_type=irix
12930	fi ;;
12931  esac
12932  need_lib_prefix=no
12933  need_version=no
12934  soname_spec='${libname}${release}${shared_ext}$major'
12935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12936  case $host_os in
12937  irix5* | nonstopux*)
12938    libsuff= shlibsuff=
12939    ;;
12940  *)
12941    case $LD in # libtool.m4 will add one of these switches to LD
12942    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12943      libsuff= shlibsuff= libmagic=32-bit;;
12944    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12945      libsuff=32 shlibsuff=N32 libmagic=N32;;
12946    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12947      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12948    *) libsuff= shlibsuff= libmagic=never-match;;
12949    esac
12950    ;;
12951  esac
12952  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12953  shlibpath_overrides_runpath=no
12954  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12955  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12956  hardcode_into_libs=yes
12957  ;;
12958
12959# No shared lib support for Linux oldld, aout, or coff.
12960linux*oldld* | linux*aout* | linux*coff*)
12961  dynamic_linker=no
12962  ;;
12963
12964# This must be glibc/ELF.
12965linux* | k*bsd*-gnu | kopensolaris*-gnu)
12966  version_type=linux # correct to gnu/linux during the next big refactor
12967  need_lib_prefix=no
12968  need_version=no
12969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12970  soname_spec='${libname}${release}${shared_ext}$major'
12971  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12972  shlibpath_var=LD_LIBRARY_PATH
12973  shlibpath_overrides_runpath=no
12974
12975  # Some binutils ld are patched to set DT_RUNPATH
12976  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12977  $as_echo_n "(cached) " >&6
12978else
12979  lt_cv_shlibpath_overrides_runpath=no
12980    save_LDFLAGS=$LDFLAGS
12981    save_libdir=$libdir
12982    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12983	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12984    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12985/* end confdefs.h.  */
12986
12987int
12988main ()
12989{
12990
12991  ;
12992  return 0;
12993}
12994_ACEOF
12995if ac_fn_c_try_link "$LINENO"; then :
12996  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12997  lt_cv_shlibpath_overrides_runpath=yes
12998fi
12999fi
13000rm -f core conftest.err conftest.$ac_objext \
13001    conftest$ac_exeext conftest.$ac_ext
13002    LDFLAGS=$save_LDFLAGS
13003    libdir=$save_libdir
13004
13005fi
13006
13007  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13008
13009  # This implies no fast_install, which is unacceptable.
13010  # Some rework will be needed to allow for fast_install
13011  # before this can be enabled.
13012  hardcode_into_libs=yes
13013
13014  # Add ABI-specific directories to the system library path.
13015  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13016
13017  # Append ld.so.conf contents to the search path
13018  if test -f /etc/ld.so.conf; then
13019    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' ' '`
13020    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13021
13022  fi
13023
13024  # We used to test for /lib/ld.so.1 and disable shared libraries on
13025  # powerpc, because MkLinux only supported shared libraries with the
13026  # GNU dynamic linker.  Since this was broken with cross compilers,
13027  # most powerpc-linux boxes support dynamic linking these days and
13028  # people can always --disable-shared, the test was removed, and we
13029  # assume the GNU/Linux dynamic linker is in use.
13030  dynamic_linker='GNU/Linux ld.so'
13031  ;;
13032
13033netbsd*)
13034  version_type=sunos
13035  need_lib_prefix=no
13036  need_version=no
13037  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13038    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13039    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13040    dynamic_linker='NetBSD (a.out) ld.so'
13041  else
13042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13043    soname_spec='${libname}${release}${shared_ext}$major'
13044    dynamic_linker='NetBSD ld.elf_so'
13045  fi
13046  shlibpath_var=LD_LIBRARY_PATH
13047  shlibpath_overrides_runpath=yes
13048  hardcode_into_libs=yes
13049  ;;
13050
13051newsos6)
13052  version_type=linux # correct to gnu/linux during the next big refactor
13053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13054  shlibpath_var=LD_LIBRARY_PATH
13055  shlibpath_overrides_runpath=yes
13056  ;;
13057
13058*nto* | *qnx*)
13059  version_type=qnx
13060  need_lib_prefix=no
13061  need_version=no
13062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063  soname_spec='${libname}${release}${shared_ext}$major'
13064  shlibpath_var=LD_LIBRARY_PATH
13065  shlibpath_overrides_runpath=no
13066  hardcode_into_libs=yes
13067  dynamic_linker='ldqnx.so'
13068  ;;
13069
13070openbsd*)
13071  version_type=sunos
13072  sys_lib_dlsearch_path_spec="/usr/lib"
13073  need_lib_prefix=no
13074  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13075  case $host_os in
13076    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13077    *)				need_version=no  ;;
13078  esac
13079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13080  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13081  shlibpath_var=LD_LIBRARY_PATH
13082  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13083    case $host_os in
13084      openbsd2.[89] | openbsd2.[89].*)
13085	shlibpath_overrides_runpath=no
13086	;;
13087      *)
13088	shlibpath_overrides_runpath=yes
13089	;;
13090      esac
13091  else
13092    shlibpath_overrides_runpath=yes
13093  fi
13094  ;;
13095
13096os2*)
13097  libname_spec='$name'
13098  shrext_cmds=".dll"
13099  need_lib_prefix=no
13100  library_names_spec='$libname${shared_ext} $libname.a'
13101  dynamic_linker='OS/2 ld.exe'
13102  shlibpath_var=LIBPATH
13103  ;;
13104
13105osf3* | osf4* | osf5*)
13106  version_type=osf
13107  need_lib_prefix=no
13108  need_version=no
13109  soname_spec='${libname}${release}${shared_ext}$major'
13110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111  shlibpath_var=LD_LIBRARY_PATH
13112  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13113  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13114  ;;
13115
13116rdos*)
13117  dynamic_linker=no
13118  ;;
13119
13120solaris*)
13121  version_type=linux # correct to gnu/linux during the next big refactor
13122  need_lib_prefix=no
13123  need_version=no
13124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125  soname_spec='${libname}${release}${shared_ext}$major'
13126  shlibpath_var=LD_LIBRARY_PATH
13127  shlibpath_overrides_runpath=yes
13128  hardcode_into_libs=yes
13129  # ldd complains unless libraries are executable
13130  postinstall_cmds='chmod +x $lib'
13131  ;;
13132
13133sunos4*)
13134  version_type=sunos
13135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13136  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13137  shlibpath_var=LD_LIBRARY_PATH
13138  shlibpath_overrides_runpath=yes
13139  if test "$with_gnu_ld" = yes; then
13140    need_lib_prefix=no
13141  fi
13142  need_version=yes
13143  ;;
13144
13145sysv4 | sysv4.3*)
13146  version_type=linux # correct to gnu/linux during the next big refactor
13147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148  soname_spec='${libname}${release}${shared_ext}$major'
13149  shlibpath_var=LD_LIBRARY_PATH
13150  case $host_vendor in
13151    sni)
13152      shlibpath_overrides_runpath=no
13153      need_lib_prefix=no
13154      runpath_var=LD_RUN_PATH
13155      ;;
13156    siemens)
13157      need_lib_prefix=no
13158      ;;
13159    motorola)
13160      need_lib_prefix=no
13161      need_version=no
13162      shlibpath_overrides_runpath=no
13163      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13164      ;;
13165  esac
13166  ;;
13167
13168sysv4*MP*)
13169  if test -d /usr/nec ;then
13170    version_type=linux # correct to gnu/linux during the next big refactor
13171    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13172    soname_spec='$libname${shared_ext}.$major'
13173    shlibpath_var=LD_LIBRARY_PATH
13174  fi
13175  ;;
13176
13177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13178  version_type=freebsd-elf
13179  need_lib_prefix=no
13180  need_version=no
13181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13182  soname_spec='${libname}${release}${shared_ext}$major'
13183  shlibpath_var=LD_LIBRARY_PATH
13184  shlibpath_overrides_runpath=yes
13185  hardcode_into_libs=yes
13186  if test "$with_gnu_ld" = yes; then
13187    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13188  else
13189    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13190    case $host_os in
13191      sco3.2v5*)
13192        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13193	;;
13194    esac
13195  fi
13196  sys_lib_dlsearch_path_spec='/usr/lib'
13197  ;;
13198
13199tpf*)
13200  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13201  version_type=linux # correct to gnu/linux during the next big refactor
13202  need_lib_prefix=no
13203  need_version=no
13204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205  shlibpath_var=LD_LIBRARY_PATH
13206  shlibpath_overrides_runpath=no
13207  hardcode_into_libs=yes
13208  ;;
13209
13210uts4*)
13211  version_type=linux # correct to gnu/linux during the next big refactor
13212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213  soname_spec='${libname}${release}${shared_ext}$major'
13214  shlibpath_var=LD_LIBRARY_PATH
13215  ;;
13216
13217*)
13218  dynamic_linker=no
13219  ;;
13220esac
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13222$as_echo "$dynamic_linker" >&6; }
13223test "$dynamic_linker" = no && can_build_shared=no
13224
13225variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13226if test "$GCC" = yes; then
13227  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13228fi
13229
13230if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13231  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13232fi
13233if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13234  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13235fi
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13329$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13330hardcode_action=
13331if test -n "$hardcode_libdir_flag_spec" ||
13332   test -n "$runpath_var" ||
13333   test "X$hardcode_automatic" = "Xyes" ; then
13334
13335  # We can hardcode non-existent directories.
13336  if test "$hardcode_direct" != no &&
13337     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13338     # have to relink, otherwise we might link with an installed library
13339     # when we should be linking with a yet-to-be-installed one
13340     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13341     test "$hardcode_minus_L" != no; then
13342    # Linking always hardcodes the temporary library directory.
13343    hardcode_action=relink
13344  else
13345    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13346    hardcode_action=immediate
13347  fi
13348else
13349  # We cannot hardcode anything, or else we can only hardcode existing
13350  # directories.
13351  hardcode_action=unsupported
13352fi
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13354$as_echo "$hardcode_action" >&6; }
13355
13356if test "$hardcode_action" = relink ||
13357   test "$inherit_rpath" = yes; then
13358  # Fast installation is not supported
13359  enable_fast_install=no
13360elif test "$shlibpath_overrides_runpath" = yes ||
13361     test "$enable_shared" = no; then
13362  # Fast installation is not necessary
13363  enable_fast_install=needless
13364fi
13365
13366
13367
13368
13369
13370
13371  if test "x$enable_dlopen" != xyes; then
13372  enable_dlopen=unknown
13373  enable_dlopen_self=unknown
13374  enable_dlopen_self_static=unknown
13375else
13376  lt_cv_dlopen=no
13377  lt_cv_dlopen_libs=
13378
13379  case $host_os in
13380  beos*)
13381    lt_cv_dlopen="load_add_on"
13382    lt_cv_dlopen_libs=
13383    lt_cv_dlopen_self=yes
13384    ;;
13385
13386  mingw* | pw32* | cegcc*)
13387    lt_cv_dlopen="LoadLibrary"
13388    lt_cv_dlopen_libs=
13389    ;;
13390
13391  cygwin*)
13392    lt_cv_dlopen="dlopen"
13393    lt_cv_dlopen_libs=
13394    ;;
13395
13396  darwin*)
13397  # if libdl is installed we need to link against it
13398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13399$as_echo_n "checking for dlopen in -ldl... " >&6; }
13400if ${ac_cv_lib_dl_dlopen+:} false; then :
13401  $as_echo_n "(cached) " >&6
13402else
13403  ac_check_lib_save_LIBS=$LIBS
13404LIBS="-ldl  $LIBS"
13405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406/* end confdefs.h.  */
13407
13408/* Override any GCC internal prototype to avoid an error.
13409   Use char because int might match the return type of a GCC
13410   builtin and then its argument prototype would still apply.  */
13411#ifdef __cplusplus
13412extern "C"
13413#endif
13414char dlopen ();
13415int
13416main ()
13417{
13418return dlopen ();
13419  ;
13420  return 0;
13421}
13422_ACEOF
13423if ac_fn_c_try_link "$LINENO"; then :
13424  ac_cv_lib_dl_dlopen=yes
13425else
13426  ac_cv_lib_dl_dlopen=no
13427fi
13428rm -f core conftest.err conftest.$ac_objext \
13429    conftest$ac_exeext conftest.$ac_ext
13430LIBS=$ac_check_lib_save_LIBS
13431fi
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13433$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13434if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13435  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13436else
13437
13438    lt_cv_dlopen="dyld"
13439    lt_cv_dlopen_libs=
13440    lt_cv_dlopen_self=yes
13441
13442fi
13443
13444    ;;
13445
13446  *)
13447    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13448if test "x$ac_cv_func_shl_load" = xyes; then :
13449  lt_cv_dlopen="shl_load"
13450else
13451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13452$as_echo_n "checking for shl_load in -ldld... " >&6; }
13453if ${ac_cv_lib_dld_shl_load+:} false; then :
13454  $as_echo_n "(cached) " >&6
13455else
13456  ac_check_lib_save_LIBS=$LIBS
13457LIBS="-ldld  $LIBS"
13458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459/* end confdefs.h.  */
13460
13461/* Override any GCC internal prototype to avoid an error.
13462   Use char because int might match the return type of a GCC
13463   builtin and then its argument prototype would still apply.  */
13464#ifdef __cplusplus
13465extern "C"
13466#endif
13467char shl_load ();
13468int
13469main ()
13470{
13471return shl_load ();
13472  ;
13473  return 0;
13474}
13475_ACEOF
13476if ac_fn_c_try_link "$LINENO"; then :
13477  ac_cv_lib_dld_shl_load=yes
13478else
13479  ac_cv_lib_dld_shl_load=no
13480fi
13481rm -f core conftest.err conftest.$ac_objext \
13482    conftest$ac_exeext conftest.$ac_ext
13483LIBS=$ac_check_lib_save_LIBS
13484fi
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13486$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13487if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13488  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13489else
13490  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13491if test "x$ac_cv_func_dlopen" = xyes; then :
13492  lt_cv_dlopen="dlopen"
13493else
13494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13495$as_echo_n "checking for dlopen in -ldl... " >&6; }
13496if ${ac_cv_lib_dl_dlopen+:} false; then :
13497  $as_echo_n "(cached) " >&6
13498else
13499  ac_check_lib_save_LIBS=$LIBS
13500LIBS="-ldl  $LIBS"
13501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503
13504/* Override any GCC internal prototype to avoid an error.
13505   Use char because int might match the return type of a GCC
13506   builtin and then its argument prototype would still apply.  */
13507#ifdef __cplusplus
13508extern "C"
13509#endif
13510char dlopen ();
13511int
13512main ()
13513{
13514return dlopen ();
13515  ;
13516  return 0;
13517}
13518_ACEOF
13519if ac_fn_c_try_link "$LINENO"; then :
13520  ac_cv_lib_dl_dlopen=yes
13521else
13522  ac_cv_lib_dl_dlopen=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext \
13525    conftest$ac_exeext conftest.$ac_ext
13526LIBS=$ac_check_lib_save_LIBS
13527fi
13528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13529$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13530if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13531  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13532else
13533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13534$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13535if ${ac_cv_lib_svld_dlopen+:} false; then :
13536  $as_echo_n "(cached) " >&6
13537else
13538  ac_check_lib_save_LIBS=$LIBS
13539LIBS="-lsvld  $LIBS"
13540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541/* end confdefs.h.  */
13542
13543/* Override any GCC internal prototype to avoid an error.
13544   Use char because int might match the return type of a GCC
13545   builtin and then its argument prototype would still apply.  */
13546#ifdef __cplusplus
13547extern "C"
13548#endif
13549char dlopen ();
13550int
13551main ()
13552{
13553return dlopen ();
13554  ;
13555  return 0;
13556}
13557_ACEOF
13558if ac_fn_c_try_link "$LINENO"; then :
13559  ac_cv_lib_svld_dlopen=yes
13560else
13561  ac_cv_lib_svld_dlopen=no
13562fi
13563rm -f core conftest.err conftest.$ac_objext \
13564    conftest$ac_exeext conftest.$ac_ext
13565LIBS=$ac_check_lib_save_LIBS
13566fi
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13568$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13569if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13570  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13571else
13572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13573$as_echo_n "checking for dld_link in -ldld... " >&6; }
13574if ${ac_cv_lib_dld_dld_link+:} false; then :
13575  $as_echo_n "(cached) " >&6
13576else
13577  ac_check_lib_save_LIBS=$LIBS
13578LIBS="-ldld  $LIBS"
13579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580/* end confdefs.h.  */
13581
13582/* Override any GCC internal prototype to avoid an error.
13583   Use char because int might match the return type of a GCC
13584   builtin and then its argument prototype would still apply.  */
13585#ifdef __cplusplus
13586extern "C"
13587#endif
13588char dld_link ();
13589int
13590main ()
13591{
13592return dld_link ();
13593  ;
13594  return 0;
13595}
13596_ACEOF
13597if ac_fn_c_try_link "$LINENO"; then :
13598  ac_cv_lib_dld_dld_link=yes
13599else
13600  ac_cv_lib_dld_dld_link=no
13601fi
13602rm -f core conftest.err conftest.$ac_objext \
13603    conftest$ac_exeext conftest.$ac_ext
13604LIBS=$ac_check_lib_save_LIBS
13605fi
13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13607$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13608if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13609  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13610fi
13611
13612
13613fi
13614
13615
13616fi
13617
13618
13619fi
13620
13621
13622fi
13623
13624
13625fi
13626
13627    ;;
13628  esac
13629
13630  if test "x$lt_cv_dlopen" != xno; then
13631    enable_dlopen=yes
13632  else
13633    enable_dlopen=no
13634  fi
13635
13636  case $lt_cv_dlopen in
13637  dlopen)
13638    save_CPPFLAGS="$CPPFLAGS"
13639    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13640
13641    save_LDFLAGS="$LDFLAGS"
13642    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13643
13644    save_LIBS="$LIBS"
13645    LIBS="$lt_cv_dlopen_libs $LIBS"
13646
13647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13648$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13649if ${lt_cv_dlopen_self+:} false; then :
13650  $as_echo_n "(cached) " >&6
13651else
13652  	  if test "$cross_compiling" = yes; then :
13653  lt_cv_dlopen_self=cross
13654else
13655  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13656  lt_status=$lt_dlunknown
13657  cat > conftest.$ac_ext <<_LT_EOF
13658#line $LINENO "configure"
13659#include "confdefs.h"
13660
13661#if HAVE_DLFCN_H
13662#include <dlfcn.h>
13663#endif
13664
13665#include <stdio.h>
13666
13667#ifdef RTLD_GLOBAL
13668#  define LT_DLGLOBAL		RTLD_GLOBAL
13669#else
13670#  ifdef DL_GLOBAL
13671#    define LT_DLGLOBAL		DL_GLOBAL
13672#  else
13673#    define LT_DLGLOBAL		0
13674#  endif
13675#endif
13676
13677/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13678   find out it does not work in some platform. */
13679#ifndef LT_DLLAZY_OR_NOW
13680#  ifdef RTLD_LAZY
13681#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13682#  else
13683#    ifdef DL_LAZY
13684#      define LT_DLLAZY_OR_NOW		DL_LAZY
13685#    else
13686#      ifdef RTLD_NOW
13687#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13688#      else
13689#        ifdef DL_NOW
13690#          define LT_DLLAZY_OR_NOW	DL_NOW
13691#        else
13692#          define LT_DLLAZY_OR_NOW	0
13693#        endif
13694#      endif
13695#    endif
13696#  endif
13697#endif
13698
13699/* When -fvisbility=hidden is used, assume the code has been annotated
13700   correspondingly for the symbols needed.  */
13701#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13702int fnord () __attribute__((visibility("default")));
13703#endif
13704
13705int fnord () { return 42; }
13706int main ()
13707{
13708  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13709  int status = $lt_dlunknown;
13710
13711  if (self)
13712    {
13713      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13714      else
13715        {
13716	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13717          else puts (dlerror ());
13718	}
13719      /* dlclose (self); */
13720    }
13721  else
13722    puts (dlerror ());
13723
13724  return status;
13725}
13726_LT_EOF
13727  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13728  (eval $ac_link) 2>&5
13729  ac_status=$?
13730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13731  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13732    (./conftest; exit; ) >&5 2>/dev/null
13733    lt_status=$?
13734    case x$lt_status in
13735      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13736      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13737      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13738    esac
13739  else :
13740    # compilation failed
13741    lt_cv_dlopen_self=no
13742  fi
13743fi
13744rm -fr conftest*
13745
13746
13747fi
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13749$as_echo "$lt_cv_dlopen_self" >&6; }
13750
13751    if test "x$lt_cv_dlopen_self" = xyes; then
13752      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13753      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13754$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13755if ${lt_cv_dlopen_self_static+:} false; then :
13756  $as_echo_n "(cached) " >&6
13757else
13758  	  if test "$cross_compiling" = yes; then :
13759  lt_cv_dlopen_self_static=cross
13760else
13761  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13762  lt_status=$lt_dlunknown
13763  cat > conftest.$ac_ext <<_LT_EOF
13764#line $LINENO "configure"
13765#include "confdefs.h"
13766
13767#if HAVE_DLFCN_H
13768#include <dlfcn.h>
13769#endif
13770
13771#include <stdio.h>
13772
13773#ifdef RTLD_GLOBAL
13774#  define LT_DLGLOBAL		RTLD_GLOBAL
13775#else
13776#  ifdef DL_GLOBAL
13777#    define LT_DLGLOBAL		DL_GLOBAL
13778#  else
13779#    define LT_DLGLOBAL		0
13780#  endif
13781#endif
13782
13783/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13784   find out it does not work in some platform. */
13785#ifndef LT_DLLAZY_OR_NOW
13786#  ifdef RTLD_LAZY
13787#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13788#  else
13789#    ifdef DL_LAZY
13790#      define LT_DLLAZY_OR_NOW		DL_LAZY
13791#    else
13792#      ifdef RTLD_NOW
13793#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13794#      else
13795#        ifdef DL_NOW
13796#          define LT_DLLAZY_OR_NOW	DL_NOW
13797#        else
13798#          define LT_DLLAZY_OR_NOW	0
13799#        endif
13800#      endif
13801#    endif
13802#  endif
13803#endif
13804
13805/* When -fvisbility=hidden is used, assume the code has been annotated
13806   correspondingly for the symbols needed.  */
13807#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13808int fnord () __attribute__((visibility("default")));
13809#endif
13810
13811int fnord () { return 42; }
13812int main ()
13813{
13814  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13815  int status = $lt_dlunknown;
13816
13817  if (self)
13818    {
13819      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13820      else
13821        {
13822	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13823          else puts (dlerror ());
13824	}
13825      /* dlclose (self); */
13826    }
13827  else
13828    puts (dlerror ());
13829
13830  return status;
13831}
13832_LT_EOF
13833  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13834  (eval $ac_link) 2>&5
13835  ac_status=$?
13836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13838    (./conftest; exit; ) >&5 2>/dev/null
13839    lt_status=$?
13840    case x$lt_status in
13841      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13842      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13843      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13844    esac
13845  else :
13846    # compilation failed
13847    lt_cv_dlopen_self_static=no
13848  fi
13849fi
13850rm -fr conftest*
13851
13852
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13855$as_echo "$lt_cv_dlopen_self_static" >&6; }
13856    fi
13857
13858    CPPFLAGS="$save_CPPFLAGS"
13859    LDFLAGS="$save_LDFLAGS"
13860    LIBS="$save_LIBS"
13861    ;;
13862  esac
13863
13864  case $lt_cv_dlopen_self in
13865  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13866  *) enable_dlopen_self=unknown ;;
13867  esac
13868
13869  case $lt_cv_dlopen_self_static in
13870  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13871  *) enable_dlopen_self_static=unknown ;;
13872  esac
13873fi
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891striplib=
13892old_striplib=
13893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13894$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13895if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13896  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13897  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13899$as_echo "yes" >&6; }
13900else
13901# FIXME - insert some real tests, host_os isn't really good enough
13902  case $host_os in
13903  darwin*)
13904    if test -n "$STRIP" ; then
13905      striplib="$STRIP -x"
13906      old_striplib="$STRIP -S"
13907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13908$as_echo "yes" >&6; }
13909    else
13910      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911$as_echo "no" >&6; }
13912    fi
13913    ;;
13914  *)
13915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916$as_echo "no" >&6; }
13917    ;;
13918  esac
13919fi
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932  # Report which library types will actually be built
13933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13934$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13936$as_echo "$can_build_shared" >&6; }
13937
13938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13939$as_echo_n "checking whether to build shared libraries... " >&6; }
13940  test "$can_build_shared" = "no" && enable_shared=no
13941
13942  # On AIX, shared libraries and static libraries use the same namespace, and
13943  # are all built from PIC.
13944  case $host_os in
13945  aix3*)
13946    test "$enable_shared" = yes && enable_static=no
13947    if test -n "$RANLIB"; then
13948      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13949      postinstall_cmds='$RANLIB $lib'
13950    fi
13951    ;;
13952
13953  aix[4-9]*)
13954    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13955      test "$enable_shared" = yes && enable_static=no
13956    fi
13957    ;;
13958  esac
13959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13960$as_echo "$enable_shared" >&6; }
13961
13962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13963$as_echo_n "checking whether to build static libraries... " >&6; }
13964  # Make sure either enable_shared or enable_static is yes.
13965  test "$enable_shared" = yes || enable_static=yes
13966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13967$as_echo "$enable_static" >&6; }
13968
13969
13970
13971
13972fi
13973ac_ext=c
13974ac_cpp='$CPP $CPPFLAGS'
13975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13977ac_compiler_gnu=$ac_cv_c_compiler_gnu
13978
13979CC="$lt_save_CC"
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995        ac_config_commands="$ac_config_commands libtool"
13996
13997
13998
13999
14000# Only expand once:
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14013	if test -n "$ac_tool_prefix"; then
14014  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14015set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017$as_echo_n "checking for $ac_word... " >&6; }
14018if ${ac_cv_path_PKG_CONFIG+:} false; then :
14019  $as_echo_n "(cached) " >&6
14020else
14021  case $PKG_CONFIG in
14022  [\\/]* | ?:[\\/]*)
14023  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14024  ;;
14025  *)
14026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027for as_dir in $PATH
14028do
14029  IFS=$as_save_IFS
14030  test -z "$as_dir" && as_dir=.
14031    for ac_exec_ext in '' $ac_executable_extensions; do
14032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14033    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14035    break 2
14036  fi
14037done
14038  done
14039IFS=$as_save_IFS
14040
14041  ;;
14042esac
14043fi
14044PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14045if test -n "$PKG_CONFIG"; then
14046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14047$as_echo "$PKG_CONFIG" >&6; }
14048else
14049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050$as_echo "no" >&6; }
14051fi
14052
14053
14054fi
14055if test -z "$ac_cv_path_PKG_CONFIG"; then
14056  ac_pt_PKG_CONFIG=$PKG_CONFIG
14057  # Extract the first word of "pkg-config", so it can be a program name with args.
14058set dummy pkg-config; ac_word=$2
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060$as_echo_n "checking for $ac_word... " >&6; }
14061if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14062  $as_echo_n "(cached) " >&6
14063else
14064  case $ac_pt_PKG_CONFIG in
14065  [\\/]* | ?:[\\/]*)
14066  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14067  ;;
14068  *)
14069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070for as_dir in $PATH
14071do
14072  IFS=$as_save_IFS
14073  test -z "$as_dir" && as_dir=.
14074    for ac_exec_ext in '' $ac_executable_extensions; do
14075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14076    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14078    break 2
14079  fi
14080done
14081  done
14082IFS=$as_save_IFS
14083
14084  ;;
14085esac
14086fi
14087ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14088if test -n "$ac_pt_PKG_CONFIG"; then
14089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14090$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14091else
14092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093$as_echo "no" >&6; }
14094fi
14095
14096  if test "x$ac_pt_PKG_CONFIG" = x; then
14097    PKG_CONFIG=""
14098  else
14099    case $cross_compiling:$ac_tool_warned in
14100yes:)
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14103ac_tool_warned=yes ;;
14104esac
14105    PKG_CONFIG=$ac_pt_PKG_CONFIG
14106  fi
14107else
14108  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14109fi
14110
14111fi
14112if test -n "$PKG_CONFIG"; then
14113	_pkg_min_version=0.9.0
14114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14115$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14116	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14118$as_echo "yes" >&6; }
14119	else
14120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121$as_echo "no" >&6; }
14122		PKG_CONFIG=""
14123	fi
14124fi
14125
14126
14127
14128# Check whether --with-html-dir was given.
14129if test "${with_html_dir+set}" = set; then :
14130  withval=$with_html_dir;
14131else
14132  with_html_dir='${datadir}/gtk-doc/html'
14133fi
14134
14135  HTML_DIR="$with_html_dir"
14136
14137
14138    # Check whether --enable-gtk-doc was given.
14139if test "${enable_gtk_doc+set}" = set; then :
14140  enableval=$enable_gtk_doc;
14141else
14142  enable_gtk_doc=no
14143fi
14144
14145
14146  if test x$enable_gtk_doc = xyes; then
14147    if test -n "$PKG_CONFIG" && \
14148    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.10\""; } >&5
14149  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.10") 2>&5
14150  ac_status=$?
14151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14152  test $ac_status = 0; }; then
14153  :
14154else
14155  as_fn_error $? "You need to have gtk-doc >= 1.10 installed to build gtk-doc" "$LINENO" 5
14156fi
14157  fi
14158
14159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14160$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14162$as_echo "$enable_gtk_doc" >&6; }
14163
14164  for ac_prog in gtkdoc-check
14165do
14166  # Extract the first word of "$ac_prog", so it can be a program name with args.
14167set dummy $ac_prog; ac_word=$2
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169$as_echo_n "checking for $ac_word... " >&6; }
14170if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
14171  $as_echo_n "(cached) " >&6
14172else
14173  case $GTKDOC_CHECK in
14174  [\\/]* | ?:[\\/]*)
14175  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
14176  ;;
14177  *)
14178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179for as_dir in $PATH
14180do
14181  IFS=$as_save_IFS
14182  test -z "$as_dir" && as_dir=.
14183    for ac_exec_ext in '' $ac_executable_extensions; do
14184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14185    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
14186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14187    break 2
14188  fi
14189done
14190  done
14191IFS=$as_save_IFS
14192
14193  ;;
14194esac
14195fi
14196GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
14197if test -n "$GTKDOC_CHECK"; then
14198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14199$as_echo "$GTKDOC_CHECK" >&6; }
14200else
14201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202$as_echo "no" >&6; }
14203fi
14204
14205
14206  test -n "$GTKDOC_CHECK" && break
14207done
14208
14209
14210   if test x$enable_gtk_doc = xyes; then
14211  ENABLE_GTK_DOC_TRUE=
14212  ENABLE_GTK_DOC_FALSE='#'
14213else
14214  ENABLE_GTK_DOC_TRUE='#'
14215  ENABLE_GTK_DOC_FALSE=
14216fi
14217
14218   if test -n "$LIBTOOL"; then
14219  GTK_DOC_USE_LIBTOOL_TRUE=
14220  GTK_DOC_USE_LIBTOOL_FALSE='#'
14221else
14222  GTK_DOC_USE_LIBTOOL_TRUE='#'
14223  GTK_DOC_USE_LIBTOOL_FALSE=
14224fi
14225
14226
14227# Extract the first word of "xsltproc", so it can be a program name with args.
14228set dummy xsltproc; ac_word=$2
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14230$as_echo_n "checking for $ac_word... " >&6; }
14231if ${ac_cv_path_XSLTPROC+:} false; then :
14232  $as_echo_n "(cached) " >&6
14233else
14234  case $XSLTPROC in
14235  [\\/]* | ?:[\\/]*)
14236  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
14237  ;;
14238  *)
14239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240for as_dir in $PATH
14241do
14242  IFS=$as_save_IFS
14243  test -z "$as_dir" && as_dir=.
14244    for ac_exec_ext in '' $ac_executable_extensions; do
14245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14246    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
14247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14248    break 2
14249  fi
14250done
14251  done
14252IFS=$as_save_IFS
14253
14254  ;;
14255esac
14256fi
14257XSLTPROC=$ac_cv_path_XSLTPROC
14258if test -n "$XSLTPROC"; then
14259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14260$as_echo "$XSLTPROC" >&6; }
14261else
14262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14263$as_echo "no" >&6; }
14264fi
14265
14266
14267
14268
14269linux_os=no
14270bsd_os=no
14271case ${host_os} in #(
14272  *linux*) :
14273    linux_os=yes ;; #(
14274  *bsd*) :
14275    bsd_os=yes ;; #(
14276  *) :
14277     ;;
14278esac
14279 if test "x$linux_os" = xyes; then
14280  LINUX_TRUE=
14281  LINUX_FALSE='#'
14282else
14283  LINUX_TRUE='#'
14284  LINUX_FALSE=
14285fi
14286
14287 if test "x$bsd_os" = xyes; then
14288  BSD_TRUE=
14289  BSD_FALSE='#'
14290else
14291  BSD_TRUE='#'
14292  BSD_FALSE=
14293fi
14294
14295
14296
14297
14298  cpu_I86=false
14299  case "$host" in
14300   i?86-*) cpu_I86=true ;;
14301  esac
14302   if test "x$cpu_I86" = xtrue; then
14303  ARCH_I86_TRUE=
14304  ARCH_I86_FALSE='#'
14305else
14306  ARCH_I86_TRUE='#'
14307  ARCH_I86_FALSE=
14308fi
14309
14310
14311
14312  cpu_86_64=false
14313  case "$host" in
14314   x86_64*) cpu_86_64=true ;;
14315  esac
14316   if test "x$cpu_86_64" = xtrue; then
14317  ARCH_86_64_TRUE=
14318  ARCH_86_64_FALSE='#'
14319else
14320  ARCH_86_64_TRUE='#'
14321  ARCH_86_64_FALSE=
14322fi
14323
14324
14325
14326  cpu_IA64=false
14327  case "$host" in
14328   ia64*) cpu_IA64=true ;;
14329  esac
14330   if test "x$cpu_IA64" = xtrue; then
14331  ARCH_IA64_TRUE=
14332  ARCH_IA64_FALSE='#'
14333else
14334  ARCH_IA64_TRUE='#'
14335  ARCH_IA64_FALSE=
14336fi
14337
14338
14339
14340  cpu_S390=false
14341  case "$host" in
14342   s390*) cpu_S390=true ;;
14343  esac
14344   if test "x$cpu_S390" = xtrue; then
14345  ARCH_S390_TRUE=
14346  ARCH_S390_FALSE='#'
14347else
14348  ARCH_S390_TRUE='#'
14349  ARCH_S390_FALSE=
14350fi
14351
14352
14353
14354  cpu_SPARC=false
14355  case "$host" in
14356   sparc*) cpu_SPARC=true ;;
14357  esac
14358   if test "x$cpu_SPARC" = xtrue; then
14359  ARCH_SPARC_TRUE=
14360  ARCH_SPARC_FALSE='#'
14361else
14362  ARCH_SPARC_TRUE='#'
14363  ARCH_SPARC_FALSE=
14364fi
14365
14366
14367
14368  cpu_PPC=false
14369  case "$host" in
14370   ppc*|powerpc*) cpu_PPC=true ;;
14371  esac
14372   if test "x$cpu_PPC" = xtrue; then
14373  ARCH_PPC_TRUE=
14374  ARCH_PPC_FALSE='#'
14375else
14376  ARCH_PPC_TRUE='#'
14377  ARCH_PPC_FALSE=
14378fi
14379
14380
14381
14382  cpu_M68K=false
14383  case "$host" in
14384   m68*) cpu_M68K=true ;;
14385  esac
14386   if test "x$cpu_M68K" = xtrue; then
14387  ARCH_M68K_TRUE=
14388  ARCH_M68K_FALSE='#'
14389else
14390  ARCH_M68K_TRUE='#'
14391  ARCH_M68K_FALSE=
14392fi
14393
14394
14395
14396  cpu_MIPS=false
14397  case "$host" in
14398   mips*) cpu_MIPS=true ;;
14399  esac
14400   if test "x$cpu_MIPS" = xtrue; then
14401  ARCH_MIPS_TRUE=
14402  ARCH_MIPS_FALSE='#'
14403else
14404  ARCH_MIPS_TRUE='#'
14405  ARCH_MIPS_FALSE=
14406fi
14407
14408
14409
14410  cpu_HPPA=false
14411  case "$host" in
14412   hppa*) cpu_HPPA=true ;;
14413  esac
14414   if test "x$cpu_HPPA" = xtrue; then
14415  ARCH_HPPA_TRUE=
14416  ARCH_HPPA_FALSE='#'
14417else
14418  ARCH_HPPA_TRUE='#'
14419  ARCH_HPPA_FALSE=
14420fi
14421
14422
14423
14424# Check whether --enable-largefile was given.
14425if test "${enable_largefile+set}" = set; then :
14426  enableval=$enable_largefile;
14427fi
14428
14429if test "$enable_largefile" != no; then
14430
14431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14432$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14433if ${ac_cv_sys_largefile_CC+:} false; then :
14434  $as_echo_n "(cached) " >&6
14435else
14436  ac_cv_sys_largefile_CC=no
14437     if test "$GCC" != yes; then
14438       ac_save_CC=$CC
14439       while :; do
14440	 # IRIX 6.2 and later do not support large files by default,
14441	 # so use the C compiler's -n32 option if that helps.
14442	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h.  */
14444#include <sys/types.h>
14445 /* Check that off_t can represent 2**63 - 1 correctly.
14446    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14447    since some C++ compilers masquerading as C compilers
14448    incorrectly reject 9223372036854775807.  */
14449#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14450  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14451		       && LARGE_OFF_T % 2147483647 == 1)
14452		      ? 1 : -1];
14453int
14454main ()
14455{
14456
14457  ;
14458  return 0;
14459}
14460_ACEOF
14461	 if ac_fn_c_try_compile "$LINENO"; then :
14462  break
14463fi
14464rm -f core conftest.err conftest.$ac_objext
14465	 CC="$CC -n32"
14466	 if ac_fn_c_try_compile "$LINENO"; then :
14467  ac_cv_sys_largefile_CC=' -n32'; break
14468fi
14469rm -f core conftest.err conftest.$ac_objext
14470	 break
14471       done
14472       CC=$ac_save_CC
14473       rm -f conftest.$ac_ext
14474    fi
14475fi
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14477$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14478  if test "$ac_cv_sys_largefile_CC" != no; then
14479    CC=$CC$ac_cv_sys_largefile_CC
14480  fi
14481
14482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14483$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14484if ${ac_cv_sys_file_offset_bits+:} false; then :
14485  $as_echo_n "(cached) " >&6
14486else
14487  while :; do
14488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489/* end confdefs.h.  */
14490#include <sys/types.h>
14491 /* Check that off_t can represent 2**63 - 1 correctly.
14492    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14493    since some C++ compilers masquerading as C compilers
14494    incorrectly reject 9223372036854775807.  */
14495#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14496  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14497		       && LARGE_OFF_T % 2147483647 == 1)
14498		      ? 1 : -1];
14499int
14500main ()
14501{
14502
14503  ;
14504  return 0;
14505}
14506_ACEOF
14507if ac_fn_c_try_compile "$LINENO"; then :
14508  ac_cv_sys_file_offset_bits=no; break
14509fi
14510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512/* end confdefs.h.  */
14513#define _FILE_OFFSET_BITS 64
14514#include <sys/types.h>
14515 /* Check that off_t can represent 2**63 - 1 correctly.
14516    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14517    since some C++ compilers masquerading as C compilers
14518    incorrectly reject 9223372036854775807.  */
14519#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14520  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14521		       && LARGE_OFF_T % 2147483647 == 1)
14522		      ? 1 : -1];
14523int
14524main ()
14525{
14526
14527  ;
14528  return 0;
14529}
14530_ACEOF
14531if ac_fn_c_try_compile "$LINENO"; then :
14532  ac_cv_sys_file_offset_bits=64; break
14533fi
14534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535  ac_cv_sys_file_offset_bits=unknown
14536  break
14537done
14538fi
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14540$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14541case $ac_cv_sys_file_offset_bits in #(
14542  no | unknown) ;;
14543  *)
14544cat >>confdefs.h <<_ACEOF
14545#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14546_ACEOF
14547;;
14548esac
14549rm -rf conftest*
14550  if test $ac_cv_sys_file_offset_bits = unknown; then
14551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14552$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14553if ${ac_cv_sys_large_files+:} false; then :
14554  $as_echo_n "(cached) " >&6
14555else
14556  while :; do
14557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h.  */
14559#include <sys/types.h>
14560 /* Check that off_t can represent 2**63 - 1 correctly.
14561    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14562    since some C++ compilers masquerading as C compilers
14563    incorrectly reject 9223372036854775807.  */
14564#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14565  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14566		       && LARGE_OFF_T % 2147483647 == 1)
14567		      ? 1 : -1];
14568int
14569main ()
14570{
14571
14572  ;
14573  return 0;
14574}
14575_ACEOF
14576if ac_fn_c_try_compile "$LINENO"; then :
14577  ac_cv_sys_large_files=no; break
14578fi
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581/* end confdefs.h.  */
14582#define _LARGE_FILES 1
14583#include <sys/types.h>
14584 /* Check that off_t can represent 2**63 - 1 correctly.
14585    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14586    since some C++ compilers masquerading as C compilers
14587    incorrectly reject 9223372036854775807.  */
14588#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14589  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14590		       && LARGE_OFF_T % 2147483647 == 1)
14591		      ? 1 : -1];
14592int
14593main ()
14594{
14595
14596  ;
14597  return 0;
14598}
14599_ACEOF
14600if ac_fn_c_try_compile "$LINENO"; then :
14601  ac_cv_sys_large_files=1; break
14602fi
14603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604  ac_cv_sys_large_files=unknown
14605  break
14606done
14607fi
14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14609$as_echo "$ac_cv_sys_large_files" >&6; }
14610case $ac_cv_sys_large_files in #(
14611  no | unknown) ;;
14612  *)
14613cat >>confdefs.h <<_ACEOF
14614#define _LARGE_FILES $ac_cv_sys_large_files
14615_ACEOF
14616;;
14617esac
14618rm -rf conftest*
14619  fi
14620
14621
14622fi
14623
14624
14625
14626
14627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14628$as_echo_n "checking whether NLS is requested... " >&6; }
14629    # Check whether --enable-nls was given.
14630if test "${enable_nls+set}" = set; then :
14631  enableval=$enable_nls; USE_NLS=$enableval
14632else
14633  USE_NLS=yes
14634fi
14635
14636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14637$as_echo "$USE_NLS" >&6; }
14638
14639
14640
14641
14642      GETTEXT_MACRO_VERSION=0.18
14643
14644
14645
14646
14647# Prepare PATH_SEPARATOR.
14648# The user is always right.
14649if test "${PATH_SEPARATOR+set}" != set; then
14650  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14651  # contains only /bin. Note that ksh looks also at the FPATH variable,
14652  # so we have to set that as well for the test.
14653  PATH_SEPARATOR=:
14654  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14655    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14656           || PATH_SEPARATOR=';'
14657       }
14658fi
14659
14660# Find out how to test for executable files. Don't use a zero-byte file,
14661# as systems may use methods other than mode bits to determine executability.
14662cat >conf$$.file <<_ASEOF
14663#! /bin/sh
14664exit 0
14665_ASEOF
14666chmod +x conf$$.file
14667if test -x conf$$.file >/dev/null 2>&1; then
14668  ac_executable_p="test -x"
14669else
14670  ac_executable_p="test -f"
14671fi
14672rm -f conf$$.file
14673
14674# Extract the first word of "msgfmt", so it can be a program name with args.
14675set dummy msgfmt; ac_word=$2
14676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14677$as_echo_n "checking for $ac_word... " >&6; }
14678if ${ac_cv_path_MSGFMT+:} false; then :
14679  $as_echo_n "(cached) " >&6
14680else
14681  case "$MSGFMT" in
14682  [\\/]* | ?:[\\/]*)
14683    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14684    ;;
14685  *)
14686    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14687    for ac_dir in $PATH; do
14688      IFS="$ac_save_IFS"
14689      test -z "$ac_dir" && ac_dir=.
14690      for ac_exec_ext in '' $ac_executable_extensions; do
14691        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14692          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14693          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14694     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14695            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14696            break 2
14697          fi
14698        fi
14699      done
14700    done
14701    IFS="$ac_save_IFS"
14702  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14703    ;;
14704esac
14705fi
14706MSGFMT="$ac_cv_path_MSGFMT"
14707if test "$MSGFMT" != ":"; then
14708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14709$as_echo "$MSGFMT" >&6; }
14710else
14711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712$as_echo "no" >&6; }
14713fi
14714
14715  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14716set dummy gmsgfmt; ac_word=$2
14717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718$as_echo_n "checking for $ac_word... " >&6; }
14719if ${ac_cv_path_GMSGFMT+:} false; then :
14720  $as_echo_n "(cached) " >&6
14721else
14722  case $GMSGFMT in
14723  [\\/]* | ?:[\\/]*)
14724  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14725  ;;
14726  *)
14727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728for as_dir in $PATH
14729do
14730  IFS=$as_save_IFS
14731  test -z "$as_dir" && as_dir=.
14732    for ac_exec_ext in '' $ac_executable_extensions; do
14733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14734    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14736    break 2
14737  fi
14738done
14739  done
14740IFS=$as_save_IFS
14741
14742  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14743  ;;
14744esac
14745fi
14746GMSGFMT=$ac_cv_path_GMSGFMT
14747if test -n "$GMSGFMT"; then
14748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14749$as_echo "$GMSGFMT" >&6; }
14750else
14751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752$as_echo "no" >&6; }
14753fi
14754
14755
14756
14757    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14758    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14759    *) MSGFMT_015=$MSGFMT ;;
14760  esac
14761
14762  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14763    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14764    *) GMSGFMT_015=$GMSGFMT ;;
14765  esac
14766
14767
14768
14769# Prepare PATH_SEPARATOR.
14770# The user is always right.
14771if test "${PATH_SEPARATOR+set}" != set; then
14772  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14773  # contains only /bin. Note that ksh looks also at the FPATH variable,
14774  # so we have to set that as well for the test.
14775  PATH_SEPARATOR=:
14776  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14777    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14778           || PATH_SEPARATOR=';'
14779       }
14780fi
14781
14782# Find out how to test for executable files. Don't use a zero-byte file,
14783# as systems may use methods other than mode bits to determine executability.
14784cat >conf$$.file <<_ASEOF
14785#! /bin/sh
14786exit 0
14787_ASEOF
14788chmod +x conf$$.file
14789if test -x conf$$.file >/dev/null 2>&1; then
14790  ac_executable_p="test -x"
14791else
14792  ac_executable_p="test -f"
14793fi
14794rm -f conf$$.file
14795
14796# Extract the first word of "xgettext", so it can be a program name with args.
14797set dummy xgettext; ac_word=$2
14798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799$as_echo_n "checking for $ac_word... " >&6; }
14800if ${ac_cv_path_XGETTEXT+:} false; then :
14801  $as_echo_n "(cached) " >&6
14802else
14803  case "$XGETTEXT" in
14804  [\\/]* | ?:[\\/]*)
14805    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14806    ;;
14807  *)
14808    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14809    for ac_dir in $PATH; do
14810      IFS="$ac_save_IFS"
14811      test -z "$ac_dir" && ac_dir=.
14812      for ac_exec_ext in '' $ac_executable_extensions; do
14813        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14814          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14815          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14816     (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
14817            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14818            break 2
14819          fi
14820        fi
14821      done
14822    done
14823    IFS="$ac_save_IFS"
14824  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14825    ;;
14826esac
14827fi
14828XGETTEXT="$ac_cv_path_XGETTEXT"
14829if test "$XGETTEXT" != ":"; then
14830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14831$as_echo "$XGETTEXT" >&6; }
14832else
14833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834$as_echo "no" >&6; }
14835fi
14836
14837    rm -f messages.po
14838
14839    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14840    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14841    *) XGETTEXT_015=$XGETTEXT ;;
14842  esac
14843
14844
14845
14846# Prepare PATH_SEPARATOR.
14847# The user is always right.
14848if test "${PATH_SEPARATOR+set}" != set; then
14849  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14850  # contains only /bin. Note that ksh looks also at the FPATH variable,
14851  # so we have to set that as well for the test.
14852  PATH_SEPARATOR=:
14853  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14854    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14855           || PATH_SEPARATOR=';'
14856       }
14857fi
14858
14859# Find out how to test for executable files. Don't use a zero-byte file,
14860# as systems may use methods other than mode bits to determine executability.
14861cat >conf$$.file <<_ASEOF
14862#! /bin/sh
14863exit 0
14864_ASEOF
14865chmod +x conf$$.file
14866if test -x conf$$.file >/dev/null 2>&1; then
14867  ac_executable_p="test -x"
14868else
14869  ac_executable_p="test -f"
14870fi
14871rm -f conf$$.file
14872
14873# Extract the first word of "msgmerge", so it can be a program name with args.
14874set dummy msgmerge; ac_word=$2
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876$as_echo_n "checking for $ac_word... " >&6; }
14877if ${ac_cv_path_MSGMERGE+:} false; then :
14878  $as_echo_n "(cached) " >&6
14879else
14880  case "$MSGMERGE" in
14881  [\\/]* | ?:[\\/]*)
14882    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14883    ;;
14884  *)
14885    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14886    for ac_dir in $PATH; do
14887      IFS="$ac_save_IFS"
14888      test -z "$ac_dir" && ac_dir=.
14889      for ac_exec_ext in '' $ac_executable_extensions; do
14890        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14891          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14892          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14893            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14894            break 2
14895          fi
14896        fi
14897      done
14898    done
14899    IFS="$ac_save_IFS"
14900  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14901    ;;
14902esac
14903fi
14904MSGMERGE="$ac_cv_path_MSGMERGE"
14905if test "$MSGMERGE" != ":"; then
14906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14907$as_echo "$MSGMERGE" >&6; }
14908else
14909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910$as_echo "no" >&6; }
14911fi
14912
14913
14914        test -n "$localedir" || localedir='${datadir}/locale'
14915
14916
14917    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14918
14919
14920  ac_config_commands="$ac_config_commands po-directories"
14921
14922
14923
14924      if test "X$prefix" = "XNONE"; then
14925    acl_final_prefix="$ac_default_prefix"
14926  else
14927    acl_final_prefix="$prefix"
14928  fi
14929  if test "X$exec_prefix" = "XNONE"; then
14930    acl_final_exec_prefix='${prefix}'
14931  else
14932    acl_final_exec_prefix="$exec_prefix"
14933  fi
14934  acl_save_prefix="$prefix"
14935  prefix="$acl_final_prefix"
14936  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14937  prefix="$acl_save_prefix"
14938
14939
14940
14941# Check whether --with-gnu-ld was given.
14942if test "${with_gnu_ld+set}" = set; then :
14943  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14944else
14945  with_gnu_ld=no
14946fi
14947
14948# Prepare PATH_SEPARATOR.
14949# The user is always right.
14950if test "${PATH_SEPARATOR+set}" != set; then
14951  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14952  # contains only /bin. Note that ksh looks also at the FPATH variable,
14953  # so we have to set that as well for the test.
14954  PATH_SEPARATOR=:
14955  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14956    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14957           || PATH_SEPARATOR=';'
14958       }
14959fi
14960
14961ac_prog=ld
14962if test "$GCC" = yes; then
14963  # Check if gcc -print-prog-name=ld gives a path.
14964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14965$as_echo_n "checking for ld used by $CC... " >&6; }
14966  case $host in
14967  *-*-mingw*)
14968    # gcc leaves a trailing carriage return which upsets mingw
14969    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14970  *)
14971    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14972  esac
14973  case $ac_prog in
14974    # Accept absolute paths.
14975    [\\/]* | ?:[\\/]*)
14976      re_direlt='/[^/][^/]*/\.\./'
14977      # Canonicalize the pathname of ld
14978      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14979      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14980        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14981      done
14982      test -z "$LD" && LD="$ac_prog"
14983      ;;
14984  "")
14985    # If it fails, then pretend we aren't using GCC.
14986    ac_prog=ld
14987    ;;
14988  *)
14989    # If it is relative, then search for the first ld in PATH.
14990    with_gnu_ld=unknown
14991    ;;
14992  esac
14993elif test "$with_gnu_ld" = yes; then
14994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14995$as_echo_n "checking for GNU ld... " >&6; }
14996else
14997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14998$as_echo_n "checking for non-GNU ld... " >&6; }
14999fi
15000if ${acl_cv_path_LD+:} false; then :
15001  $as_echo_n "(cached) " >&6
15002else
15003  if test -z "$LD"; then
15004  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15005  for ac_dir in $PATH; do
15006    IFS="$acl_save_ifs"
15007    test -z "$ac_dir" && ac_dir=.
15008    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15009      acl_cv_path_LD="$ac_dir/$ac_prog"
15010      # Check to see if the program is GNU ld.  I'd rather use --version,
15011      # but apparently some variants of GNU ld only accept -v.
15012      # Break only if it was the GNU/non-GNU ld that we prefer.
15013      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15014      *GNU* | *'with BFD'*)
15015        test "$with_gnu_ld" != no && break
15016        ;;
15017      *)
15018        test "$with_gnu_ld" != yes && break
15019        ;;
15020      esac
15021    fi
15022  done
15023  IFS="$acl_save_ifs"
15024else
15025  acl_cv_path_LD="$LD" # Let the user override the test with a path.
15026fi
15027fi
15028
15029LD="$acl_cv_path_LD"
15030if test -n "$LD"; then
15031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15032$as_echo "$LD" >&6; }
15033else
15034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035$as_echo "no" >&6; }
15036fi
15037test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15039$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15040if ${acl_cv_prog_gnu_ld+:} false; then :
15041  $as_echo_n "(cached) " >&6
15042else
15043  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15044case `$LD -v 2>&1 </dev/null` in
15045*GNU* | *'with BFD'*)
15046  acl_cv_prog_gnu_ld=yes
15047  ;;
15048*)
15049  acl_cv_prog_gnu_ld=no
15050  ;;
15051esac
15052fi
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15054$as_echo "$acl_cv_prog_gnu_ld" >&6; }
15055with_gnu_ld=$acl_cv_prog_gnu_ld
15056
15057
15058
15059
15060                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15061$as_echo_n "checking for shared library run path origin... " >&6; }
15062if ${acl_cv_rpath+:} false; then :
15063  $as_echo_n "(cached) " >&6
15064else
15065
15066    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15067    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15068    . ./conftest.sh
15069    rm -f ./conftest.sh
15070    acl_cv_rpath=done
15071
15072fi
15073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15074$as_echo "$acl_cv_rpath" >&6; }
15075  wl="$acl_cv_wl"
15076  acl_libext="$acl_cv_libext"
15077  acl_shlibext="$acl_cv_shlibext"
15078  acl_libname_spec="$acl_cv_libname_spec"
15079  acl_library_names_spec="$acl_cv_library_names_spec"
15080  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15081  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15082  acl_hardcode_direct="$acl_cv_hardcode_direct"
15083  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15084    # Check whether --enable-rpath was given.
15085if test "${enable_rpath+set}" = set; then :
15086  enableval=$enable_rpath; :
15087else
15088  enable_rpath=yes
15089fi
15090
15091
15092
15093
15094  acl_libdirstem=lib
15095  acl_libdirstem2=
15096  case "$host_os" in
15097    solaris*)
15098                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15099$as_echo_n "checking for 64-bit host... " >&6; }
15100if ${gl_cv_solaris_64bit+:} false; then :
15101  $as_echo_n "(cached) " >&6
15102else
15103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105
15106#ifdef _LP64
15107sixtyfour bits
15108#endif
15109
15110_ACEOF
15111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15112  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15113  gl_cv_solaris_64bit=yes
15114else
15115  gl_cv_solaris_64bit=no
15116fi
15117rm -f conftest*
15118
15119
15120fi
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15122$as_echo "$gl_cv_solaris_64bit" >&6; }
15123      if test $gl_cv_solaris_64bit = yes; then
15124        acl_libdirstem=lib/64
15125        case "$host_cpu" in
15126          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15127          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15128        esac
15129      fi
15130      ;;
15131    *)
15132      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15133      if test -n "$searchpath"; then
15134        acl_save_IFS="${IFS= 	}"; IFS=":"
15135        for searchdir in $searchpath; do
15136          if test -d "$searchdir"; then
15137            case "$searchdir" in
15138              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15139              */../ | */.. )
15140                # Better ignore directories of this form. They are misleading.
15141                ;;
15142              *) searchdir=`cd "$searchdir" && pwd`
15143                 case "$searchdir" in
15144                   */lib64 ) acl_libdirstem=lib64 ;;
15145                 esac ;;
15146            esac
15147          fi
15148        done
15149        IFS="$acl_save_IFS"
15150      fi
15151      ;;
15152  esac
15153  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166    use_additional=yes
15167
15168  acl_save_prefix="$prefix"
15169  prefix="$acl_final_prefix"
15170  acl_save_exec_prefix="$exec_prefix"
15171  exec_prefix="$acl_final_exec_prefix"
15172
15173    eval additional_includedir=\"$includedir\"
15174    eval additional_libdir=\"$libdir\"
15175
15176  exec_prefix="$acl_save_exec_prefix"
15177  prefix="$acl_save_prefix"
15178
15179
15180# Check whether --with-libiconv-prefix was given.
15181if test "${with_libiconv_prefix+set}" = set; then :
15182  withval=$with_libiconv_prefix;
15183    if test "X$withval" = "Xno"; then
15184      use_additional=no
15185    else
15186      if test "X$withval" = "X"; then
15187
15188  acl_save_prefix="$prefix"
15189  prefix="$acl_final_prefix"
15190  acl_save_exec_prefix="$exec_prefix"
15191  exec_prefix="$acl_final_exec_prefix"
15192
15193          eval additional_includedir=\"$includedir\"
15194          eval additional_libdir=\"$libdir\"
15195
15196  exec_prefix="$acl_save_exec_prefix"
15197  prefix="$acl_save_prefix"
15198
15199      else
15200        additional_includedir="$withval/include"
15201        additional_libdir="$withval/$acl_libdirstem"
15202        if test "$acl_libdirstem2" != "$acl_libdirstem" \
15203           && ! test -d "$withval/$acl_libdirstem"; then
15204          additional_libdir="$withval/$acl_libdirstem2"
15205        fi
15206      fi
15207    fi
15208
15209fi
15210
15211      LIBICONV=
15212  LTLIBICONV=
15213  INCICONV=
15214  LIBICONV_PREFIX=
15215      HAVE_LIBICONV=
15216  rpathdirs=
15217  ltrpathdirs=
15218  names_already_handled=
15219  names_next_round='iconv '
15220  while test -n "$names_next_round"; do
15221    names_this_round="$names_next_round"
15222    names_next_round=
15223    for name in $names_this_round; do
15224      already_handled=
15225      for n in $names_already_handled; do
15226        if test "$n" = "$name"; then
15227          already_handled=yes
15228          break
15229        fi
15230      done
15231      if test -z "$already_handled"; then
15232        names_already_handled="$names_already_handled $name"
15233                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15234        eval value=\"\$HAVE_LIB$uppername\"
15235        if test -n "$value"; then
15236          if test "$value" = yes; then
15237            eval value=\"\$LIB$uppername\"
15238            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15239            eval value=\"\$LTLIB$uppername\"
15240            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15241          else
15242                                    :
15243          fi
15244        else
15245                              found_dir=
15246          found_la=
15247          found_so=
15248          found_a=
15249          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15250          if test -n "$acl_shlibext"; then
15251            shrext=".$acl_shlibext"             # typically: shrext=.so
15252          else
15253            shrext=
15254          fi
15255          if test $use_additional = yes; then
15256            dir="$additional_libdir"
15257                                    if test -n "$acl_shlibext"; then
15258              if test -f "$dir/$libname$shrext"; then
15259                found_dir="$dir"
15260                found_so="$dir/$libname$shrext"
15261              else
15262                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15263                  ver=`(cd "$dir" && \
15264                        for f in "$libname$shrext".*; do echo "$f"; done \
15265                        | sed -e "s,^$libname$shrext\\\\.,," \
15266                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15267                        | sed 1q ) 2>/dev/null`
15268                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15269                    found_dir="$dir"
15270                    found_so="$dir/$libname$shrext.$ver"
15271                  fi
15272                else
15273                  eval library_names=\"$acl_library_names_spec\"
15274                  for f in $library_names; do
15275                    if test -f "$dir/$f"; then
15276                      found_dir="$dir"
15277                      found_so="$dir/$f"
15278                      break
15279                    fi
15280                  done
15281                fi
15282              fi
15283            fi
15284                        if test "X$found_dir" = "X"; then
15285              if test -f "$dir/$libname.$acl_libext"; then
15286                found_dir="$dir"
15287                found_a="$dir/$libname.$acl_libext"
15288              fi
15289            fi
15290            if test "X$found_dir" != "X"; then
15291              if test -f "$dir/$libname.la"; then
15292                found_la="$dir/$libname.la"
15293              fi
15294            fi
15295          fi
15296          if test "X$found_dir" = "X"; then
15297            for x in $LDFLAGS $LTLIBICONV; do
15298
15299  acl_save_prefix="$prefix"
15300  prefix="$acl_final_prefix"
15301  acl_save_exec_prefix="$exec_prefix"
15302  exec_prefix="$acl_final_exec_prefix"
15303  eval x=\"$x\"
15304  exec_prefix="$acl_save_exec_prefix"
15305  prefix="$acl_save_prefix"
15306
15307              case "$x" in
15308                -L*)
15309                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15310                                    if test -n "$acl_shlibext"; then
15311                    if test -f "$dir/$libname$shrext"; then
15312                      found_dir="$dir"
15313                      found_so="$dir/$libname$shrext"
15314                    else
15315                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15316                        ver=`(cd "$dir" && \
15317                              for f in "$libname$shrext".*; do echo "$f"; done \
15318                              | sed -e "s,^$libname$shrext\\\\.,," \
15319                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15320                              | sed 1q ) 2>/dev/null`
15321                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15322                          found_dir="$dir"
15323                          found_so="$dir/$libname$shrext.$ver"
15324                        fi
15325                      else
15326                        eval library_names=\"$acl_library_names_spec\"
15327                        for f in $library_names; do
15328                          if test -f "$dir/$f"; then
15329                            found_dir="$dir"
15330                            found_so="$dir/$f"
15331                            break
15332                          fi
15333                        done
15334                      fi
15335                    fi
15336                  fi
15337                                    if test "X$found_dir" = "X"; then
15338                    if test -f "$dir/$libname.$acl_libext"; then
15339                      found_dir="$dir"
15340                      found_a="$dir/$libname.$acl_libext"
15341                    fi
15342                  fi
15343                  if test "X$found_dir" != "X"; then
15344                    if test -f "$dir/$libname.la"; then
15345                      found_la="$dir/$libname.la"
15346                    fi
15347                  fi
15348                  ;;
15349              esac
15350              if test "X$found_dir" != "X"; then
15351                break
15352              fi
15353            done
15354          fi
15355          if test "X$found_dir" != "X"; then
15356                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15357            if test "X$found_so" != "X"; then
15358                                                        if test "$enable_rpath" = no \
15359                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15360                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15361                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15362              else
15363                                                                                haveit=
15364                for x in $ltrpathdirs; do
15365                  if test "X$x" = "X$found_dir"; then
15366                    haveit=yes
15367                    break
15368                  fi
15369                done
15370                if test -z "$haveit"; then
15371                  ltrpathdirs="$ltrpathdirs $found_dir"
15372                fi
15373                                if test "$acl_hardcode_direct" = yes; then
15374                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15375                else
15376                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15377                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15378                                                            haveit=
15379                    for x in $rpathdirs; do
15380                      if test "X$x" = "X$found_dir"; then
15381                        haveit=yes
15382                        break
15383                      fi
15384                    done
15385                    if test -z "$haveit"; then
15386                      rpathdirs="$rpathdirs $found_dir"
15387                    fi
15388                  else
15389                                                                                haveit=
15390                    for x in $LDFLAGS $LIBICONV; do
15391
15392  acl_save_prefix="$prefix"
15393  prefix="$acl_final_prefix"
15394  acl_save_exec_prefix="$exec_prefix"
15395  exec_prefix="$acl_final_exec_prefix"
15396  eval x=\"$x\"
15397  exec_prefix="$acl_save_exec_prefix"
15398  prefix="$acl_save_prefix"
15399
15400                      if test "X$x" = "X-L$found_dir"; then
15401                        haveit=yes
15402                        break
15403                      fi
15404                    done
15405                    if test -z "$haveit"; then
15406                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15407                    fi
15408                    if test "$acl_hardcode_minus_L" != no; then
15409                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15410                    else
15411                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15412                    fi
15413                  fi
15414                fi
15415              fi
15416            else
15417              if test "X$found_a" != "X"; then
15418                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15419              else
15420                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15421              fi
15422            fi
15423                        additional_includedir=
15424            case "$found_dir" in
15425              */$acl_libdirstem | */$acl_libdirstem/)
15426                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15427                if test "$name" = 'iconv'; then
15428                  LIBICONV_PREFIX="$basedir"
15429                fi
15430                additional_includedir="$basedir/include"
15431                ;;
15432              */$acl_libdirstem2 | */$acl_libdirstem2/)
15433                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15434                if test "$name" = 'iconv'; then
15435                  LIBICONV_PREFIX="$basedir"
15436                fi
15437                additional_includedir="$basedir/include"
15438                ;;
15439            esac
15440            if test "X$additional_includedir" != "X"; then
15441                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15442                haveit=
15443                if test "X$additional_includedir" = "X/usr/local/include"; then
15444                  if test -n "$GCC"; then
15445                    case $host_os in
15446                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15447                    esac
15448                  fi
15449                fi
15450                if test -z "$haveit"; then
15451                  for x in $CPPFLAGS $INCICONV; do
15452
15453  acl_save_prefix="$prefix"
15454  prefix="$acl_final_prefix"
15455  acl_save_exec_prefix="$exec_prefix"
15456  exec_prefix="$acl_final_exec_prefix"
15457  eval x=\"$x\"
15458  exec_prefix="$acl_save_exec_prefix"
15459  prefix="$acl_save_prefix"
15460
15461                    if test "X$x" = "X-I$additional_includedir"; then
15462                      haveit=yes
15463                      break
15464                    fi
15465                  done
15466                  if test -z "$haveit"; then
15467                    if test -d "$additional_includedir"; then
15468                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15469                    fi
15470                  fi
15471                fi
15472              fi
15473            fi
15474                        if test -n "$found_la"; then
15475                                                        save_libdir="$libdir"
15476              case "$found_la" in
15477                */* | *\\*) . "$found_la" ;;
15478                *) . "./$found_la" ;;
15479              esac
15480              libdir="$save_libdir"
15481                            for dep in $dependency_libs; do
15482                case "$dep" in
15483                  -L*)
15484                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15485                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15486                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15487                      haveit=
15488                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15489                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15490                        if test -n "$GCC"; then
15491                          case $host_os in
15492                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15493                          esac
15494                        fi
15495                      fi
15496                      if test -z "$haveit"; then
15497                        haveit=
15498                        for x in $LDFLAGS $LIBICONV; do
15499
15500  acl_save_prefix="$prefix"
15501  prefix="$acl_final_prefix"
15502  acl_save_exec_prefix="$exec_prefix"
15503  exec_prefix="$acl_final_exec_prefix"
15504  eval x=\"$x\"
15505  exec_prefix="$acl_save_exec_prefix"
15506  prefix="$acl_save_prefix"
15507
15508                          if test "X$x" = "X-L$additional_libdir"; then
15509                            haveit=yes
15510                            break
15511                          fi
15512                        done
15513                        if test -z "$haveit"; then
15514                          if test -d "$additional_libdir"; then
15515                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15516                          fi
15517                        fi
15518                        haveit=
15519                        for x in $LDFLAGS $LTLIBICONV; do
15520
15521  acl_save_prefix="$prefix"
15522  prefix="$acl_final_prefix"
15523  acl_save_exec_prefix="$exec_prefix"
15524  exec_prefix="$acl_final_exec_prefix"
15525  eval x=\"$x\"
15526  exec_prefix="$acl_save_exec_prefix"
15527  prefix="$acl_save_prefix"
15528
15529                          if test "X$x" = "X-L$additional_libdir"; then
15530                            haveit=yes
15531                            break
15532                          fi
15533                        done
15534                        if test -z "$haveit"; then
15535                          if test -d "$additional_libdir"; then
15536                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15537                          fi
15538                        fi
15539                      fi
15540                    fi
15541                    ;;
15542                  -R*)
15543                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15544                    if test "$enable_rpath" != no; then
15545                                                                  haveit=
15546                      for x in $rpathdirs; do
15547                        if test "X$x" = "X$dir"; then
15548                          haveit=yes
15549                          break
15550                        fi
15551                      done
15552                      if test -z "$haveit"; then
15553                        rpathdirs="$rpathdirs $dir"
15554                      fi
15555                                                                  haveit=
15556                      for x in $ltrpathdirs; do
15557                        if test "X$x" = "X$dir"; then
15558                          haveit=yes
15559                          break
15560                        fi
15561                      done
15562                      if test -z "$haveit"; then
15563                        ltrpathdirs="$ltrpathdirs $dir"
15564                      fi
15565                    fi
15566                    ;;
15567                  -l*)
15568                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15569                    ;;
15570                  *.la)
15571                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15572                    ;;
15573                  *)
15574                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15575                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15576                    ;;
15577                esac
15578              done
15579            fi
15580          else
15581                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15582            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15583          fi
15584        fi
15585      fi
15586    done
15587  done
15588  if test "X$rpathdirs" != "X"; then
15589    if test -n "$acl_hardcode_libdir_separator"; then
15590                        alldirs=
15591      for found_dir in $rpathdirs; do
15592        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15593      done
15594            acl_save_libdir="$libdir"
15595      libdir="$alldirs"
15596      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15597      libdir="$acl_save_libdir"
15598      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15599    else
15600            for found_dir in $rpathdirs; do
15601        acl_save_libdir="$libdir"
15602        libdir="$found_dir"
15603        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15604        libdir="$acl_save_libdir"
15605        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15606      done
15607    fi
15608  fi
15609  if test "X$ltrpathdirs" != "X"; then
15610            for found_dir in $ltrpathdirs; do
15611      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15612    done
15613  fi
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15646$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15647if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15648  $as_echo_n "(cached) " >&6
15649else
15650  gt_save_LIBS="$LIBS"
15651     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15652     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653/* end confdefs.h.  */
15654#include <CoreFoundation/CFPreferences.h>
15655int
15656main ()
15657{
15658CFPreferencesCopyAppValue(NULL, NULL)
15659  ;
15660  return 0;
15661}
15662_ACEOF
15663if ac_fn_c_try_link "$LINENO"; then :
15664  gt_cv_func_CFPreferencesCopyAppValue=yes
15665else
15666  gt_cv_func_CFPreferencesCopyAppValue=no
15667fi
15668rm -f core conftest.err conftest.$ac_objext \
15669    conftest$ac_exeext conftest.$ac_ext
15670     LIBS="$gt_save_LIBS"
15671fi
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15673$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15674  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15675
15676$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15677
15678  fi
15679    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15680$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15681if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15682  $as_echo_n "(cached) " >&6
15683else
15684  gt_save_LIBS="$LIBS"
15685     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687/* end confdefs.h.  */
15688#include <CoreFoundation/CFLocale.h>
15689int
15690main ()
15691{
15692CFLocaleCopyCurrent();
15693  ;
15694  return 0;
15695}
15696_ACEOF
15697if ac_fn_c_try_link "$LINENO"; then :
15698  gt_cv_func_CFLocaleCopyCurrent=yes
15699else
15700  gt_cv_func_CFLocaleCopyCurrent=no
15701fi
15702rm -f core conftest.err conftest.$ac_objext \
15703    conftest$ac_exeext conftest.$ac_ext
15704     LIBS="$gt_save_LIBS"
15705fi
15706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15707$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15708  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15709
15710$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15711
15712  fi
15713  INTL_MACOSX_LIBS=
15714  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15715    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15716  fi
15717
15718
15719
15720
15721
15722
15723  LIBINTL=
15724  LTLIBINTL=
15725  POSUB=
15726
15727    case " $gt_needs " in
15728    *" need-formatstring-macros "*) gt_api_version=3 ;;
15729    *" need-ngettext "*) gt_api_version=2 ;;
15730    *) gt_api_version=1 ;;
15731  esac
15732  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15733  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15734
15735    if test "$USE_NLS" = "yes"; then
15736    gt_use_preinstalled_gnugettext=no
15737
15738
15739        if test $gt_api_version -ge 3; then
15740          gt_revision_test_code='
15741#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15742#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15743#endif
15744typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15745'
15746        else
15747          gt_revision_test_code=
15748        fi
15749        if test $gt_api_version -ge 2; then
15750          gt_expression_test_code=' + * ngettext ("", "", 0)'
15751        else
15752          gt_expression_test_code=
15753        fi
15754
15755        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15756$as_echo_n "checking for GNU gettext in libc... " >&6; }
15757if eval \${$gt_func_gnugettext_libc+:} false; then :
15758  $as_echo_n "(cached) " >&6
15759else
15760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761/* end confdefs.h.  */
15762
15763#include <libintl.h>
15764$gt_revision_test_code
15765extern int _nl_msg_cat_cntr;
15766extern int *_nl_domain_bindings;
15767
15768int
15769main ()
15770{
15771
15772bindtextdomain ("", "");
15773return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15774
15775  ;
15776  return 0;
15777}
15778_ACEOF
15779if ac_fn_c_try_link "$LINENO"; then :
15780  eval "$gt_func_gnugettext_libc=yes"
15781else
15782  eval "$gt_func_gnugettext_libc=no"
15783fi
15784rm -f core conftest.err conftest.$ac_objext \
15785    conftest$ac_exeext conftest.$ac_ext
15786fi
15787eval ac_res=\$$gt_func_gnugettext_libc
15788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15789$as_echo "$ac_res" >&6; }
15790
15791        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15792
15793
15794
15795
15796
15797          am_save_CPPFLAGS="$CPPFLAGS"
15798
15799  for element in $INCICONV; do
15800    haveit=
15801    for x in $CPPFLAGS; do
15802
15803  acl_save_prefix="$prefix"
15804  prefix="$acl_final_prefix"
15805  acl_save_exec_prefix="$exec_prefix"
15806  exec_prefix="$acl_final_exec_prefix"
15807  eval x=\"$x\"
15808  exec_prefix="$acl_save_exec_prefix"
15809  prefix="$acl_save_prefix"
15810
15811      if test "X$x" = "X$element"; then
15812        haveit=yes
15813        break
15814      fi
15815    done
15816    if test -z "$haveit"; then
15817      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15818    fi
15819  done
15820
15821
15822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15823$as_echo_n "checking for iconv... " >&6; }
15824if ${am_cv_func_iconv+:} false; then :
15825  $as_echo_n "(cached) " >&6
15826else
15827
15828    am_cv_func_iconv="no, consider installing GNU libiconv"
15829    am_cv_lib_iconv=no
15830    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831/* end confdefs.h.  */
15832
15833#include <stdlib.h>
15834#include <iconv.h>
15835
15836int
15837main ()
15838{
15839iconv_t cd = iconv_open("","");
15840           iconv(cd,NULL,NULL,NULL,NULL);
15841           iconv_close(cd);
15842  ;
15843  return 0;
15844}
15845_ACEOF
15846if ac_fn_c_try_link "$LINENO"; then :
15847  am_cv_func_iconv=yes
15848fi
15849rm -f core conftest.err conftest.$ac_objext \
15850    conftest$ac_exeext conftest.$ac_ext
15851    if test "$am_cv_func_iconv" != yes; then
15852      am_save_LIBS="$LIBS"
15853      LIBS="$LIBS $LIBICONV"
15854      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855/* end confdefs.h.  */
15856
15857#include <stdlib.h>
15858#include <iconv.h>
15859
15860int
15861main ()
15862{
15863iconv_t cd = iconv_open("","");
15864             iconv(cd,NULL,NULL,NULL,NULL);
15865             iconv_close(cd);
15866  ;
15867  return 0;
15868}
15869_ACEOF
15870if ac_fn_c_try_link "$LINENO"; then :
15871  am_cv_lib_iconv=yes
15872        am_cv_func_iconv=yes
15873fi
15874rm -f core conftest.err conftest.$ac_objext \
15875    conftest$ac_exeext conftest.$ac_ext
15876      LIBS="$am_save_LIBS"
15877    fi
15878
15879fi
15880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15881$as_echo "$am_cv_func_iconv" >&6; }
15882  if test "$am_cv_func_iconv" = yes; then
15883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15884$as_echo_n "checking for working iconv... " >&6; }
15885if ${am_cv_func_iconv_works+:} false; then :
15886  $as_echo_n "(cached) " >&6
15887else
15888
15889                  am_save_LIBS="$LIBS"
15890      if test $am_cv_lib_iconv = yes; then
15891        LIBS="$LIBS $LIBICONV"
15892      fi
15893      if test "$cross_compiling" = yes; then :
15894
15895         case "$host_os" in
15896           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15897           *)            am_cv_func_iconv_works="guessing yes" ;;
15898         esac
15899
15900else
15901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902/* end confdefs.h.  */
15903
15904#include <iconv.h>
15905#include <string.h>
15906int main ()
15907{
15908  int result = 0;
15909  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15910     returns.  */
15911  {
15912    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15913    if (cd_utf8_to_88591 != (iconv_t)(-1))
15914      {
15915        static const char input[] = "\342\202\254"; /* EURO SIGN */
15916        char buf[10];
15917        const char *inptr = input;
15918        size_t inbytesleft = strlen (input);
15919        char *outptr = buf;
15920        size_t outbytesleft = sizeof (buf);
15921        size_t res = iconv (cd_utf8_to_88591,
15922                            (char **) &inptr, &inbytesleft,
15923                            &outptr, &outbytesleft);
15924        if (res == 0)
15925          result |= 1;
15926        iconv_close (cd_utf8_to_88591);
15927      }
15928  }
15929  /* Test against Solaris 10 bug: Failures are not distinguishable from
15930     successful returns.  */
15931  {
15932    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15933    if (cd_ascii_to_88591 != (iconv_t)(-1))
15934      {
15935        static const char input[] = "\263";
15936        char buf[10];
15937        const char *inptr = input;
15938        size_t inbytesleft = strlen (input);
15939        char *outptr = buf;
15940        size_t outbytesleft = sizeof (buf);
15941        size_t res = iconv (cd_ascii_to_88591,
15942                            (char **) &inptr, &inbytesleft,
15943                            &outptr, &outbytesleft);
15944        if (res == 0)
15945          result |= 2;
15946        iconv_close (cd_ascii_to_88591);
15947      }
15948  }
15949  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
15950  {
15951    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15952    if (cd_88591_to_utf8 != (iconv_t)(-1))
15953      {
15954        static const char input[] = "\304";
15955        static char buf[2] = { (char)0xDE, (char)0xAD };
15956        const char *inptr = input;
15957        size_t inbytesleft = 1;
15958        char *outptr = buf;
15959        size_t outbytesleft = 1;
15960        size_t res = iconv (cd_88591_to_utf8,
15961                            (char **) &inptr, &inbytesleft,
15962                            &outptr, &outbytesleft);
15963        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15964          result |= 4;
15965        iconv_close (cd_88591_to_utf8);
15966      }
15967  }
15968#if 0 /* This bug could be worked around by the caller.  */
15969  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15970  {
15971    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15972    if (cd_88591_to_utf8 != (iconv_t)(-1))
15973      {
15974        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15975        char buf[50];
15976        const char *inptr = input;
15977        size_t inbytesleft = strlen (input);
15978        char *outptr = buf;
15979        size_t outbytesleft = sizeof (buf);
15980        size_t res = iconv (cd_88591_to_utf8,
15981                            (char **) &inptr, &inbytesleft,
15982                            &outptr, &outbytesleft);
15983        if ((int)res > 0)
15984          result |= 8;
15985        iconv_close (cd_88591_to_utf8);
15986      }
15987  }
15988#endif
15989  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15990     provided.  */
15991  if (/* Try standardized names.  */
15992      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15993      /* Try IRIX, OSF/1 names.  */
15994      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15995      /* Try AIX names.  */
15996      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15997      /* Try HP-UX names.  */
15998      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15999    result |= 16;
16000  return result;
16001}
16002_ACEOF
16003if ac_fn_c_try_run "$LINENO"; then :
16004  am_cv_func_iconv_works=yes
16005else
16006  am_cv_func_iconv_works=no
16007fi
16008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16009  conftest.$ac_objext conftest.beam conftest.$ac_ext
16010fi
16011
16012      LIBS="$am_save_LIBS"
16013
16014fi
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16016$as_echo "$am_cv_func_iconv_works" >&6; }
16017    case "$am_cv_func_iconv_works" in
16018      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16019      *)   am_func_iconv=yes ;;
16020    esac
16021  else
16022    am_func_iconv=no am_cv_lib_iconv=no
16023  fi
16024  if test "$am_func_iconv" = yes; then
16025
16026$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16027
16028  fi
16029  if test "$am_cv_lib_iconv" = yes; then
16030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16031$as_echo_n "checking how to link with libiconv... " >&6; }
16032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16033$as_echo "$LIBICONV" >&6; }
16034  else
16035            CPPFLAGS="$am_save_CPPFLAGS"
16036    LIBICONV=
16037    LTLIBICONV=
16038  fi
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050    use_additional=yes
16051
16052  acl_save_prefix="$prefix"
16053  prefix="$acl_final_prefix"
16054  acl_save_exec_prefix="$exec_prefix"
16055  exec_prefix="$acl_final_exec_prefix"
16056
16057    eval additional_includedir=\"$includedir\"
16058    eval additional_libdir=\"$libdir\"
16059
16060  exec_prefix="$acl_save_exec_prefix"
16061  prefix="$acl_save_prefix"
16062
16063
16064# Check whether --with-libintl-prefix was given.
16065if test "${with_libintl_prefix+set}" = set; then :
16066  withval=$with_libintl_prefix;
16067    if test "X$withval" = "Xno"; then
16068      use_additional=no
16069    else
16070      if test "X$withval" = "X"; then
16071
16072  acl_save_prefix="$prefix"
16073  prefix="$acl_final_prefix"
16074  acl_save_exec_prefix="$exec_prefix"
16075  exec_prefix="$acl_final_exec_prefix"
16076
16077          eval additional_includedir=\"$includedir\"
16078          eval additional_libdir=\"$libdir\"
16079
16080  exec_prefix="$acl_save_exec_prefix"
16081  prefix="$acl_save_prefix"
16082
16083      else
16084        additional_includedir="$withval/include"
16085        additional_libdir="$withval/$acl_libdirstem"
16086        if test "$acl_libdirstem2" != "$acl_libdirstem" \
16087           && ! test -d "$withval/$acl_libdirstem"; then
16088          additional_libdir="$withval/$acl_libdirstem2"
16089        fi
16090      fi
16091    fi
16092
16093fi
16094
16095      LIBINTL=
16096  LTLIBINTL=
16097  INCINTL=
16098  LIBINTL_PREFIX=
16099      HAVE_LIBINTL=
16100  rpathdirs=
16101  ltrpathdirs=
16102  names_already_handled=
16103  names_next_round='intl '
16104  while test -n "$names_next_round"; do
16105    names_this_round="$names_next_round"
16106    names_next_round=
16107    for name in $names_this_round; do
16108      already_handled=
16109      for n in $names_already_handled; do
16110        if test "$n" = "$name"; then
16111          already_handled=yes
16112          break
16113        fi
16114      done
16115      if test -z "$already_handled"; then
16116        names_already_handled="$names_already_handled $name"
16117                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16118        eval value=\"\$HAVE_LIB$uppername\"
16119        if test -n "$value"; then
16120          if test "$value" = yes; then
16121            eval value=\"\$LIB$uppername\"
16122            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16123            eval value=\"\$LTLIB$uppername\"
16124            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16125          else
16126                                    :
16127          fi
16128        else
16129                              found_dir=
16130          found_la=
16131          found_so=
16132          found_a=
16133          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16134          if test -n "$acl_shlibext"; then
16135            shrext=".$acl_shlibext"             # typically: shrext=.so
16136          else
16137            shrext=
16138          fi
16139          if test $use_additional = yes; then
16140            dir="$additional_libdir"
16141                                    if test -n "$acl_shlibext"; then
16142              if test -f "$dir/$libname$shrext"; then
16143                found_dir="$dir"
16144                found_so="$dir/$libname$shrext"
16145              else
16146                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16147                  ver=`(cd "$dir" && \
16148                        for f in "$libname$shrext".*; do echo "$f"; done \
16149                        | sed -e "s,^$libname$shrext\\\\.,," \
16150                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16151                        | sed 1q ) 2>/dev/null`
16152                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16153                    found_dir="$dir"
16154                    found_so="$dir/$libname$shrext.$ver"
16155                  fi
16156                else
16157                  eval library_names=\"$acl_library_names_spec\"
16158                  for f in $library_names; do
16159                    if test -f "$dir/$f"; then
16160                      found_dir="$dir"
16161                      found_so="$dir/$f"
16162                      break
16163                    fi
16164                  done
16165                fi
16166              fi
16167            fi
16168                        if test "X$found_dir" = "X"; then
16169              if test -f "$dir/$libname.$acl_libext"; then
16170                found_dir="$dir"
16171                found_a="$dir/$libname.$acl_libext"
16172              fi
16173            fi
16174            if test "X$found_dir" != "X"; then
16175              if test -f "$dir/$libname.la"; then
16176                found_la="$dir/$libname.la"
16177              fi
16178            fi
16179          fi
16180          if test "X$found_dir" = "X"; then
16181            for x in $LDFLAGS $LTLIBINTL; do
16182
16183  acl_save_prefix="$prefix"
16184  prefix="$acl_final_prefix"
16185  acl_save_exec_prefix="$exec_prefix"
16186  exec_prefix="$acl_final_exec_prefix"
16187  eval x=\"$x\"
16188  exec_prefix="$acl_save_exec_prefix"
16189  prefix="$acl_save_prefix"
16190
16191              case "$x" in
16192                -L*)
16193                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16194                                    if test -n "$acl_shlibext"; then
16195                    if test -f "$dir/$libname$shrext"; then
16196                      found_dir="$dir"
16197                      found_so="$dir/$libname$shrext"
16198                    else
16199                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16200                        ver=`(cd "$dir" && \
16201                              for f in "$libname$shrext".*; do echo "$f"; done \
16202                              | sed -e "s,^$libname$shrext\\\\.,," \
16203                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16204                              | sed 1q ) 2>/dev/null`
16205                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16206                          found_dir="$dir"
16207                          found_so="$dir/$libname$shrext.$ver"
16208                        fi
16209                      else
16210                        eval library_names=\"$acl_library_names_spec\"
16211                        for f in $library_names; do
16212                          if test -f "$dir/$f"; then
16213                            found_dir="$dir"
16214                            found_so="$dir/$f"
16215                            break
16216                          fi
16217                        done
16218                      fi
16219                    fi
16220                  fi
16221                                    if test "X$found_dir" = "X"; then
16222                    if test -f "$dir/$libname.$acl_libext"; then
16223                      found_dir="$dir"
16224                      found_a="$dir/$libname.$acl_libext"
16225                    fi
16226                  fi
16227                  if test "X$found_dir" != "X"; then
16228                    if test -f "$dir/$libname.la"; then
16229                      found_la="$dir/$libname.la"
16230                    fi
16231                  fi
16232                  ;;
16233              esac
16234              if test "X$found_dir" != "X"; then
16235                break
16236              fi
16237            done
16238          fi
16239          if test "X$found_dir" != "X"; then
16240                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16241            if test "X$found_so" != "X"; then
16242                                                        if test "$enable_rpath" = no \
16243                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16244                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16245                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16246              else
16247                                                                                haveit=
16248                for x in $ltrpathdirs; do
16249                  if test "X$x" = "X$found_dir"; then
16250                    haveit=yes
16251                    break
16252                  fi
16253                done
16254                if test -z "$haveit"; then
16255                  ltrpathdirs="$ltrpathdirs $found_dir"
16256                fi
16257                                if test "$acl_hardcode_direct" = yes; then
16258                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16259                else
16260                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16261                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16262                                                            haveit=
16263                    for x in $rpathdirs; do
16264                      if test "X$x" = "X$found_dir"; then
16265                        haveit=yes
16266                        break
16267                      fi
16268                    done
16269                    if test -z "$haveit"; then
16270                      rpathdirs="$rpathdirs $found_dir"
16271                    fi
16272                  else
16273                                                                                haveit=
16274                    for x in $LDFLAGS $LIBINTL; do
16275
16276  acl_save_prefix="$prefix"
16277  prefix="$acl_final_prefix"
16278  acl_save_exec_prefix="$exec_prefix"
16279  exec_prefix="$acl_final_exec_prefix"
16280  eval x=\"$x\"
16281  exec_prefix="$acl_save_exec_prefix"
16282  prefix="$acl_save_prefix"
16283
16284                      if test "X$x" = "X-L$found_dir"; then
16285                        haveit=yes
16286                        break
16287                      fi
16288                    done
16289                    if test -z "$haveit"; then
16290                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16291                    fi
16292                    if test "$acl_hardcode_minus_L" != no; then
16293                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16294                    else
16295                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16296                    fi
16297                  fi
16298                fi
16299              fi
16300            else
16301              if test "X$found_a" != "X"; then
16302                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16303              else
16304                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16305              fi
16306            fi
16307                        additional_includedir=
16308            case "$found_dir" in
16309              */$acl_libdirstem | */$acl_libdirstem/)
16310                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16311                if test "$name" = 'intl'; then
16312                  LIBINTL_PREFIX="$basedir"
16313                fi
16314                additional_includedir="$basedir/include"
16315                ;;
16316              */$acl_libdirstem2 | */$acl_libdirstem2/)
16317                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16318                if test "$name" = 'intl'; then
16319                  LIBINTL_PREFIX="$basedir"
16320                fi
16321                additional_includedir="$basedir/include"
16322                ;;
16323            esac
16324            if test "X$additional_includedir" != "X"; then
16325                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16326                haveit=
16327                if test "X$additional_includedir" = "X/usr/local/include"; then
16328                  if test -n "$GCC"; then
16329                    case $host_os in
16330                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16331                    esac
16332                  fi
16333                fi
16334                if test -z "$haveit"; then
16335                  for x in $CPPFLAGS $INCINTL; do
16336
16337  acl_save_prefix="$prefix"
16338  prefix="$acl_final_prefix"
16339  acl_save_exec_prefix="$exec_prefix"
16340  exec_prefix="$acl_final_exec_prefix"
16341  eval x=\"$x\"
16342  exec_prefix="$acl_save_exec_prefix"
16343  prefix="$acl_save_prefix"
16344
16345                    if test "X$x" = "X-I$additional_includedir"; then
16346                      haveit=yes
16347                      break
16348                    fi
16349                  done
16350                  if test -z "$haveit"; then
16351                    if test -d "$additional_includedir"; then
16352                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16353                    fi
16354                  fi
16355                fi
16356              fi
16357            fi
16358                        if test -n "$found_la"; then
16359                                                        save_libdir="$libdir"
16360              case "$found_la" in
16361                */* | *\\*) . "$found_la" ;;
16362                *) . "./$found_la" ;;
16363              esac
16364              libdir="$save_libdir"
16365                            for dep in $dependency_libs; do
16366                case "$dep" in
16367                  -L*)
16368                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16369                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16370                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16371                      haveit=
16372                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16373                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16374                        if test -n "$GCC"; then
16375                          case $host_os in
16376                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16377                          esac
16378                        fi
16379                      fi
16380                      if test -z "$haveit"; then
16381                        haveit=
16382                        for x in $LDFLAGS $LIBINTL; do
16383
16384  acl_save_prefix="$prefix"
16385  prefix="$acl_final_prefix"
16386  acl_save_exec_prefix="$exec_prefix"
16387  exec_prefix="$acl_final_exec_prefix"
16388  eval x=\"$x\"
16389  exec_prefix="$acl_save_exec_prefix"
16390  prefix="$acl_save_prefix"
16391
16392                          if test "X$x" = "X-L$additional_libdir"; then
16393                            haveit=yes
16394                            break
16395                          fi
16396                        done
16397                        if test -z "$haveit"; then
16398                          if test -d "$additional_libdir"; then
16399                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16400                          fi
16401                        fi
16402                        haveit=
16403                        for x in $LDFLAGS $LTLIBINTL; do
16404
16405  acl_save_prefix="$prefix"
16406  prefix="$acl_final_prefix"
16407  acl_save_exec_prefix="$exec_prefix"
16408  exec_prefix="$acl_final_exec_prefix"
16409  eval x=\"$x\"
16410  exec_prefix="$acl_save_exec_prefix"
16411  prefix="$acl_save_prefix"
16412
16413                          if test "X$x" = "X-L$additional_libdir"; then
16414                            haveit=yes
16415                            break
16416                          fi
16417                        done
16418                        if test -z "$haveit"; then
16419                          if test -d "$additional_libdir"; then
16420                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16421                          fi
16422                        fi
16423                      fi
16424                    fi
16425                    ;;
16426                  -R*)
16427                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16428                    if test "$enable_rpath" != no; then
16429                                                                  haveit=
16430                      for x in $rpathdirs; do
16431                        if test "X$x" = "X$dir"; then
16432                          haveit=yes
16433                          break
16434                        fi
16435                      done
16436                      if test -z "$haveit"; then
16437                        rpathdirs="$rpathdirs $dir"
16438                      fi
16439                                                                  haveit=
16440                      for x in $ltrpathdirs; do
16441                        if test "X$x" = "X$dir"; then
16442                          haveit=yes
16443                          break
16444                        fi
16445                      done
16446                      if test -z "$haveit"; then
16447                        ltrpathdirs="$ltrpathdirs $dir"
16448                      fi
16449                    fi
16450                    ;;
16451                  -l*)
16452                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16453                    ;;
16454                  *.la)
16455                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16456                    ;;
16457                  *)
16458                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16459                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16460                    ;;
16461                esac
16462              done
16463            fi
16464          else
16465                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16466            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16467          fi
16468        fi
16469      fi
16470    done
16471  done
16472  if test "X$rpathdirs" != "X"; then
16473    if test -n "$acl_hardcode_libdir_separator"; then
16474                        alldirs=
16475      for found_dir in $rpathdirs; do
16476        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16477      done
16478            acl_save_libdir="$libdir"
16479      libdir="$alldirs"
16480      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16481      libdir="$acl_save_libdir"
16482      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16483    else
16484            for found_dir in $rpathdirs; do
16485        acl_save_libdir="$libdir"
16486        libdir="$found_dir"
16487        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16488        libdir="$acl_save_libdir"
16489        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16490      done
16491    fi
16492  fi
16493  if test "X$ltrpathdirs" != "X"; then
16494            for found_dir in $ltrpathdirs; do
16495      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16496    done
16497  fi
16498
16499
16500
16501
16502
16503
16504          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16505$as_echo_n "checking for GNU gettext in libintl... " >&6; }
16506if eval \${$gt_func_gnugettext_libintl+:} false; then :
16507  $as_echo_n "(cached) " >&6
16508else
16509  gt_save_CPPFLAGS="$CPPFLAGS"
16510            CPPFLAGS="$CPPFLAGS $INCINTL"
16511            gt_save_LIBS="$LIBS"
16512            LIBS="$LIBS $LIBINTL"
16513                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514/* end confdefs.h.  */
16515
16516#include <libintl.h>
16517$gt_revision_test_code
16518extern int _nl_msg_cat_cntr;
16519extern
16520#ifdef __cplusplus
16521"C"
16522#endif
16523const char *_nl_expand_alias (const char *);
16524
16525int
16526main ()
16527{
16528
16529bindtextdomain ("", "");
16530return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16531
16532  ;
16533  return 0;
16534}
16535_ACEOF
16536if ac_fn_c_try_link "$LINENO"; then :
16537  eval "$gt_func_gnugettext_libintl=yes"
16538else
16539  eval "$gt_func_gnugettext_libintl=no"
16540fi
16541rm -f core conftest.err conftest.$ac_objext \
16542    conftest$ac_exeext conftest.$ac_ext
16543                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16544              LIBS="$LIBS $LIBICONV"
16545              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546/* end confdefs.h.  */
16547
16548#include <libintl.h>
16549$gt_revision_test_code
16550extern int _nl_msg_cat_cntr;
16551extern
16552#ifdef __cplusplus
16553"C"
16554#endif
16555const char *_nl_expand_alias (const char *);
16556
16557int
16558main ()
16559{
16560
16561bindtextdomain ("", "");
16562return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16563
16564  ;
16565  return 0;
16566}
16567_ACEOF
16568if ac_fn_c_try_link "$LINENO"; then :
16569  LIBINTL="$LIBINTL $LIBICONV"
16570                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16571                 eval "$gt_func_gnugettext_libintl=yes"
16572
16573fi
16574rm -f core conftest.err conftest.$ac_objext \
16575    conftest$ac_exeext conftest.$ac_ext
16576            fi
16577            CPPFLAGS="$gt_save_CPPFLAGS"
16578            LIBS="$gt_save_LIBS"
16579fi
16580eval ac_res=\$$gt_func_gnugettext_libintl
16581	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16582$as_echo "$ac_res" >&6; }
16583        fi
16584
16585                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16586           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16587                && test "$PACKAGE" != gettext-runtime \
16588                && test "$PACKAGE" != gettext-tools; }; then
16589          gt_use_preinstalled_gnugettext=yes
16590        else
16591                    LIBINTL=
16592          LTLIBINTL=
16593          INCINTL=
16594        fi
16595
16596
16597
16598    if test -n "$INTL_MACOSX_LIBS"; then
16599      if test "$gt_use_preinstalled_gnugettext" = "yes" \
16600         || test "$nls_cv_use_gnu_gettext" = "yes"; then
16601                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16602        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16603      fi
16604    fi
16605
16606    if test "$gt_use_preinstalled_gnugettext" = "yes" \
16607       || test "$nls_cv_use_gnu_gettext" = "yes"; then
16608
16609$as_echo "#define ENABLE_NLS 1" >>confdefs.h
16610
16611    else
16612      USE_NLS=no
16613    fi
16614  fi
16615
16616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16617$as_echo_n "checking whether to use NLS... " >&6; }
16618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16619$as_echo "$USE_NLS" >&6; }
16620  if test "$USE_NLS" = "yes"; then
16621    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16622$as_echo_n "checking where the gettext function comes from... " >&6; }
16623    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16624      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16625        gt_source="external libintl"
16626      else
16627        gt_source="libc"
16628      fi
16629    else
16630      gt_source="included intl directory"
16631    fi
16632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16633$as_echo "$gt_source" >&6; }
16634  fi
16635
16636  if test "$USE_NLS" = "yes"; then
16637
16638    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16639      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16640        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16641$as_echo_n "checking how to link with libintl... " >&6; }
16642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16643$as_echo "$LIBINTL" >&6; }
16644
16645  for element in $INCINTL; do
16646    haveit=
16647    for x in $CPPFLAGS; do
16648
16649  acl_save_prefix="$prefix"
16650  prefix="$acl_final_prefix"
16651  acl_save_exec_prefix="$exec_prefix"
16652  exec_prefix="$acl_final_exec_prefix"
16653  eval x=\"$x\"
16654  exec_prefix="$acl_save_exec_prefix"
16655  prefix="$acl_save_prefix"
16656
16657      if test "X$x" = "X$element"; then
16658        haveit=yes
16659        break
16660      fi
16661    done
16662    if test -z "$haveit"; then
16663      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16664    fi
16665  done
16666
16667      fi
16668
16669
16670$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16671
16672
16673$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16674
16675    fi
16676
16677        POSUB=po
16678  fi
16679
16680
16681
16682    INTLLIBS="$LIBINTL"
16683
16684
16685
16686
16687
16688
16689
16690if test -d "$srcdir/po"; then :
16691
16692  ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
16693
16694else
16695
16696  ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
16697
16698fi
16699
16700for ac_header in linux/compiler.h linux/blkpg.h linux/major.h
16701do :
16702  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16703ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16704#ifdef HAVE_LINUX_COMPILER_H
16705#include <linux/compiler.h>
16706#endif
16707
16708"
16709if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16710  cat >>confdefs.h <<_ACEOF
16711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16712_ACEOF
16713
16714fi
16715
16716done
16717
16718for ac_header in  \
16719	asm/io.h \
16720	err.h \
16721	errno.h \
16722	fcntl.h \
16723	getopt.h \
16724	inttypes.h \
16725	linux/cdrom.h \
16726	linux/falloc.h \
16727	linux/watchdog.h \
16728	linux/fd.h \
16729	linux/raw.h \
16730	linux/tiocl.h \
16731	linux/version.h \
16732	linux/securebits.h \
16733	locale.h \
16734	mntent.h \
16735	net/if.h \
16736	net/if_dl.h \
16737	netinet/in.h \
16738	paths.h \
16739	pty.h \
16740	security/pam_misc.h \
16741	stdint.h \
16742	stdio_ext.h \
16743	stdlib.h \
16744	endian.h \
16745	byteswap.h \
16746	sys/endian.h \
16747	sys/disk.h \
16748	sys/disklabel.h \
16749	sys/file.h \
16750	sys/io.h \
16751	sys/ioccom.h \
16752	sys/ioctl.h \
16753	sys/mkdev.h \
16754	sys/prctl.h \
16755	sys/queue.h \
16756	sys/resource.h \
16757	sys/socket.h \
16758	sys/sockio.h \
16759	sys/stat.h \
16760	sys/swap.h \
16761	sys/syscall.h \
16762	sys/time.h \
16763	sys/ttydefaults.h \
16764	sys/types.h \
16765	sys/un.h \
16766	unistd.h \
16767
16768do :
16769  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16770ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16771if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16772  cat >>confdefs.h <<_ACEOF
16773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16774_ACEOF
16775
16776fi
16777
16778done
16779
16780
16781for ac_header in langinfo.h
16782do :
16783  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
16784if test "x$ac_cv_header_langinfo_h" = xyes; then :
16785  cat >>confdefs.h <<_ACEOF
16786#define HAVE_LANGINFO_H 1
16787_ACEOF
16788  if true; then
16789  HAVE_LANGINFO_TRUE=
16790  HAVE_LANGINFO_FALSE='#'
16791else
16792  HAVE_LANGINFO_TRUE='#'
16793  HAVE_LANGINFO_FALSE=
16794fi
16795
16796else
16797   if false; then
16798  HAVE_LANGINFO_TRUE=
16799  HAVE_LANGINFO_FALSE='#'
16800else
16801  HAVE_LANGINFO_TRUE='#'
16802  HAVE_LANGINFO_FALSE=
16803fi
16804
16805fi
16806
16807done
16808
16809
16810have_linux_raw_h=$ac_cv_header_linux_raw_h
16811have_linux_securebits_h=$ac_cv_header_linux_securebits_h
16812have_linux_watchdog_h=$ac_cv_header_linux_watchdog_h
16813have_security_pam_misc_h=$ac_cv_header_security_pam_misc_h
16814
16815
16816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817/* end confdefs.h.  */
16818
16819#include <time.h>
16820#include <unistd.h>
16821
16822int
16823main ()
16824{
16825
16826    int a = 0;
16827    struct tm *tm = localtime(0);
16828    if (a == -1)  /* false */
16829	sleep(tm->tm_gmtoff);
16830
16831  ;
16832  return 0;
16833}
16834_ACEOF
16835if ac_fn_c_try_compile "$LINENO"; then :
16836
16837$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16838
16839
16840fi
16841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842
16843ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "#include <termios.h>
16844"
16845if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
16846
16847cat >>confdefs.h <<_ACEOF
16848#define HAVE_STRUCT_TERMIOS_C_LINE 1
16849_ACEOF
16850
16851
16852fi
16853
16854
16855ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h>
16856"
16857if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
16858
16859cat >>confdefs.h <<_ACEOF
16860#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
16861_ACEOF
16862
16863
16864fi
16865
16866
16867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868/* end confdefs.h.  */
16869
16870#ifdef HAVE_SYS_SWAP_H
16871# include <sys/swap.h>
16872#endif
16873#include <unistd.h>
16874
16875int
16876main ()
16877{
16878swapon("/dev/null", 0);
16879  ;
16880  return 0;
16881}
16882_ACEOF
16883if ac_fn_c_try_compile "$LINENO"; then :
16884
16885$as_echo "#define SWAPON_HAS_TWO_ARGS 1" >>confdefs.h
16886
16887
16888else
16889  { $as_echo "$as_me:${as_lineno-$LINENO}: Your libc thinks that swapon has 1 arg only." >&5
16890$as_echo "$as_me: Your libc thinks that swapon has 1 arg only." >&6;}
16891
16892fi
16893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894
16895
16896ac_fn_c_check_decl "$LINENO" "_NL_TIME_WEEK_1STDAY" "ac_cv_have_decl__NL_TIME_WEEK_1STDAY" "#include <langinfo.h>
16897"
16898if test "x$ac_cv_have_decl__NL_TIME_WEEK_1STDAY" = xyes; then :
16899  ac_have_decl=1
16900else
16901  ac_have_decl=0
16902fi
16903
16904cat >>confdefs.h <<_ACEOF
16905#define HAVE_DECL__NL_TIME_WEEK_1STDAY $ac_have_decl
16906_ACEOF
16907
16908
16909ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
16910"
16911if test "x$ac_cv_have_decl_llseek" = xyes; then :
16912
16913$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
16914
16915fi
16916
16917
16918ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
16919	 #define _LARGEFILE64_SOURCE
16920	 #include <unistd.h>
16921"
16922if test "x$ac_cv_have_decl_lseek64" = xyes; then :
16923
16924$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
16925
16926fi
16927
16928
16929ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16930if test "x$ac_cv_have_decl_environ" = xyes; then :
16931
16932$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16933
16934fi
16935
16936
16937ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
16938if test "x$ac_cv_have_decl_strsignal" = xyes; then :
16939
16940$as_echo "#define HAVE_STRSIGNAL_DECL 1" >>confdefs.h
16941
16942fi
16943
16944
16945for ac_func in  \
16946	__fpending \
16947	secure_getenv \
16948	__secure_getenv \
16949	err \
16950	errx \
16951	fsync \
16952	utimensat \
16953	getdomainname \
16954	getdtablesize \
16955	getexecname \
16956	getmntinfo \
16957	getrlimit \
16958	inotify_init \
16959	jrand48 \
16960	lchown \
16961	llseek \
16962	lseek64 \
16963	mempcpy \
16964	nanosleep \
16965	open_memstream \
16966	personality \
16967	posix_fadvise \
16968	prctl \
16969	qsort_r \
16970	rpmatch \
16971	scandirat \
16972	setresgid \
16973	setresuid \
16974	sigqueue \
16975	srandom \
16976	strnchr \
16977	strndup \
16978	strnlen \
16979	strtoull \
16980	sysconf \
16981	sysinfo \
16982	updwtmp \
16983	usleep \
16984	warn \
16985	warnx \
16986
16987do :
16988  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16989ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16990if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16991  cat >>confdefs.h <<_ACEOF
16992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16993_ACEOF
16994
16995fi
16996done
16997
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16999$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17000if ${ac_cv_sys_largefile_source+:} false; then :
17001  $as_echo_n "(cached) " >&6
17002else
17003  while :; do
17004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005/* end confdefs.h.  */
17006#include <sys/types.h> /* for off_t */
17007     #include <stdio.h>
17008int
17009main ()
17010{
17011int (*fp) (FILE *, off_t, int) = fseeko;
17012     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17013  ;
17014  return 0;
17015}
17016_ACEOF
17017if ac_fn_c_try_link "$LINENO"; then :
17018  ac_cv_sys_largefile_source=no; break
17019fi
17020rm -f core conftest.err conftest.$ac_objext \
17021    conftest$ac_exeext conftest.$ac_ext
17022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023/* end confdefs.h.  */
17024#define _LARGEFILE_SOURCE 1
17025#include <sys/types.h> /* for off_t */
17026     #include <stdio.h>
17027int
17028main ()
17029{
17030int (*fp) (FILE *, off_t, int) = fseeko;
17031     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17032  ;
17033  return 0;
17034}
17035_ACEOF
17036if ac_fn_c_try_link "$LINENO"; then :
17037  ac_cv_sys_largefile_source=1; break
17038fi
17039rm -f core conftest.err conftest.$ac_objext \
17040    conftest$ac_exeext conftest.$ac_ext
17041  ac_cv_sys_largefile_source=unknown
17042  break
17043done
17044fi
17045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17046$as_echo "$ac_cv_sys_largefile_source" >&6; }
17047case $ac_cv_sys_largefile_source in #(
17048  no | unknown) ;;
17049  *)
17050cat >>confdefs.h <<_ACEOF
17051#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17052_ACEOF
17053;;
17054esac
17055rm -rf conftest*
17056
17057# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17058# in glibc 2.1.3, but that breaks too many other things.
17059# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17060if test $ac_cv_sys_largefile_source != unknown; then
17061
17062$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17063
17064fi
17065
17066
17067for ac_func in openat fstatat unlinkat
17068do :
17069  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17070ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17071if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17072  cat >>confdefs.h <<_ACEOF
17073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17074_ACEOF
17075 have_openat=yes
17076else
17077  have_openat=no
17078fi
17079done
17080
17081for ac_func in ioperm iopl
17082do :
17083  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17085if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17086  cat >>confdefs.h <<_ACEOF
17087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17088_ACEOF
17089 have_io=yes
17090fi
17091done
17092
17093
17094ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
17095	 #include <sys/socket.h>
17096"
17097if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
17098
17099cat >>confdefs.h <<_ACEOF
17100#define HAVE_SA_LEN 1
17101_ACEOF
17102
17103fi
17104
17105
17106SOCKET_LIBS=
17107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17108$as_echo_n "checking for library containing socket... " >&6; }
17109if ${ac_cv_search_socket+:} false; then :
17110  $as_echo_n "(cached) " >&6
17111else
17112  ac_func_search_save_LIBS=$LIBS
17113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114/* end confdefs.h.  */
17115
17116/* Override any GCC internal prototype to avoid an error.
17117   Use char because int might match the return type of a GCC
17118   builtin and then its argument prototype would still apply.  */
17119#ifdef __cplusplus
17120extern "C"
17121#endif
17122char socket ();
17123int
17124main ()
17125{
17126return socket ();
17127  ;
17128  return 0;
17129}
17130_ACEOF
17131for ac_lib in '' socket; do
17132  if test -z "$ac_lib"; then
17133    ac_res="none required"
17134  else
17135    ac_res=-l$ac_lib
17136    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17137  fi
17138  if ac_fn_c_try_link "$LINENO"; then :
17139  ac_cv_search_socket=$ac_res
17140fi
17141rm -f core conftest.err conftest.$ac_objext \
17142    conftest$ac_exeext
17143  if ${ac_cv_search_socket+:} false; then :
17144  break
17145fi
17146done
17147if ${ac_cv_search_socket+:} false; then :
17148
17149else
17150  ac_cv_search_socket=no
17151fi
17152rm conftest.$ac_ext
17153LIBS=$ac_func_search_save_LIBS
17154fi
17155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17156$as_echo "$ac_cv_search_socket" >&6; }
17157ac_res=$ac_cv_search_socket
17158if test "$ac_res" != no; then :
17159  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17160  if test x"$ac_cv_search_socket" != x"none required"; then :
17161  SOCKET_LIBS="$SOCKET_LIBS -lsocket"
17162fi
17163
17164fi
17165
17166
17167
17168
17169have_dirfd=no
17170for ac_func in dirfd
17171do :
17172  ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
17173if test "x$ac_cv_func_dirfd" = xyes; then :
17174  cat >>confdefs.h <<_ACEOF
17175#define HAVE_DIRFD 1
17176_ACEOF
17177 have_dirfd=yes
17178else
17179  have_dirfd=no
17180fi
17181done
17182
17183if test x"$have_dirfd" = xno; then :
17184
17185	ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17186		 #include <dirent.h>
17187"
17188if test "x$ac_cv_have_decl_dirfd" = xyes; then :
17189  ac_have_decl=1
17190else
17191  ac_have_decl=0
17192fi
17193
17194cat >>confdefs.h <<_ACEOF
17195#define HAVE_DECL_DIRFD $ac_have_decl
17196_ACEOF
17197if test $ac_have_decl = 1; then :
17198  have_dirfd=yes
17199else
17200  have_dirfd=no
17201fi
17202
17203
17204fi
17205
17206have_ddfd=no
17207if test x"$have_dirfd" = xno; then :
17208
17209	ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
17210		 #include <dirent.h>
17211"
17212if test "x$ac_cv_member_DIR_dd_fd" = xyes; then :
17213
17214cat >>confdefs.h <<_ACEOF
17215#define HAVE_DIR_DD_FD 1
17216_ACEOF
17217
17218have_ddfd=yes
17219else
17220  have_ddfd=no
17221fi
17222
17223
17224fi
17225
17226case $have_dirfd:$have_ddfd in #(
17227  no:no) :
17228    as_fn_error $? "cannot find a method to get filedescriptor of directory" "$LINENO" 5
17229 ;; #(
17230  *) :
17231     ;;
17232esac
17233
17234
17235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17236$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
17237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238/* end confdefs.h.  */
17239
17240	#include <argp.h>
17241
17242int
17243main ()
17244{
17245
17246	program_invocation_short_name = "test";
17247
17248  ;
17249  return 0;
17250}
17251_ACEOF
17252if ac_fn_c_try_compile "$LINENO"; then :
17253
17254	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17255$as_echo "yes" >&6; }
17256
17257$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17258
17259
17260else
17261
17262	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263$as_echo "no" >&6; }
17264
17265fi
17266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17267
17268
17269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined" >&5
17270$as_echo_n "checking whether __progname is defined... " >&6; }
17271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272/* end confdefs.h.  */
17273extern char *__progname;
17274int
17275main ()
17276{
17277if (*__progname == 0) return;
17278  ;
17279  return 0;
17280}
17281_ACEOF
17282if ac_fn_c_try_link "$LINENO"; then :
17283
17284$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
17285
17286	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17287$as_echo "yes" >&6; }
17288else
17289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17290$as_echo "no" >&6; }
17291fi
17292rm -f core conftest.err conftest.$ac_objext \
17293    conftest$ac_exeext conftest.$ac_ext
17294
17295
17296
17297# Check whether --enable-static-programs was given.
17298if test "${enable_static_programs+set}" = set; then :
17299  enableval=$enable_static_programs;
17300fi
17301
17302
17303case $enable_static_programs in #(
17304  yes) :
17305    enable_static_programs=losetup,mount,umount,fdisk,sfdisk,blkid ;; #(
17306  no) :
17307    enable_static_programs=
17308 ;; #(
17309  *) :
17310     ;;
17311esac
17312
17313
17314  case ,$enable_static_programs, in #(
17315  *,losetup,*) :
17316    static_losetup=yes
17317   ;; #(
17318  *) :
17319     ;;
17320esac
17321  if test "x$static_losetup" = xyes; then :
17322  { $as_echo "$as_me:${as_lineno-$LINENO}: enable static build: losetup." >&5
17323$as_echo "$as_me: enable static build: losetup." >&6;}
17324fi
17325   if test "x$static_losetup" = xyes; then
17326  HAVE_STATIC_LOSETUP_TRUE=
17327  HAVE_STATIC_LOSETUP_FALSE='#'
17328else
17329  HAVE_STATIC_LOSETUP_TRUE='#'
17330  HAVE_STATIC_LOSETUP_FALSE=
17331fi
17332
17333
17334  case ,$enable_static_programs, in #(
17335  *,mount,*) :
17336    static_mount=yes
17337   ;; #(
17338  *) :
17339     ;;
17340esac
17341  if test "x$static_mount" = xyes; then :
17342  { $as_echo "$as_me:${as_lineno-$LINENO}: enable static build: mount." >&5
17343$as_echo "$as_me: enable static build: mount." >&6;}
17344fi
17345   if test "x$static_mount" = xyes; then
17346  HAVE_STATIC_MOUNT_TRUE=
17347  HAVE_STATIC_MOUNT_FALSE='#'
17348else
17349  HAVE_STATIC_MOUNT_TRUE='#'
17350  HAVE_STATIC_MOUNT_FALSE=
17351fi
17352
17353
17354  case ,$enable_static_programs, in #(
17355  *,umount,*) :
17356    static_umount=yes
17357   ;; #(
17358  *) :
17359     ;;
17360esac
17361  if test "x$static_umount" = xyes; then :
17362  { $as_echo "$as_me:${as_lineno-$LINENO}: enable static build: umount." >&5
17363$as_echo "$as_me: enable static build: umount." >&6;}
17364fi
17365   if test "x$static_umount" = xyes; then
17366  HAVE_STATIC_UMOUNT_TRUE=
17367  HAVE_STATIC_UMOUNT_FALSE='#'
17368else
17369  HAVE_STATIC_UMOUNT_TRUE='#'
17370  HAVE_STATIC_UMOUNT_FALSE=
17371fi
17372
17373
17374  case ,$enable_static_programs, in #(
17375  *,fdisk,*) :
17376    static_fdisk=yes
17377   ;; #(
17378  *) :
17379     ;;
17380esac
17381  if test "x$static_fdisk" = xyes; then :
17382  { $as_echo "$as_me:${as_lineno-$LINENO}: enable static build: fdisk." >&5
17383$as_echo "$as_me: enable static build: fdisk." >&6;}
17384fi
17385   if test "x$static_fdisk" = xyes; then
17386  HAVE_STATIC_FDISK_TRUE=
17387  HAVE_STATIC_FDISK_FALSE='#'
17388else
17389  HAVE_STATIC_FDISK_TRUE='#'
17390  HAVE_STATIC_FDISK_FALSE=
17391fi
17392
17393
17394  case ,$enable_static_programs, in #(
17395  *,sfdisk,*) :
17396    static_sfdisk=yes
17397   ;; #(
17398  *) :
17399     ;;
17400esac
17401  if test "x$static_sfdisk" = xyes; then :
17402  { $as_echo "$as_me:${as_lineno-$LINENO}: enable static build: sfdisk." >&5
17403$as_echo "$as_me: enable static build: sfdisk." >&6;}
17404fi
17405   if test "x$static_sfdisk" = xyes; then
17406  HAVE_STATIC_SFDISK_TRUE=
17407  HAVE_STATIC_SFDISK_FALSE='#'
17408else
17409  HAVE_STATIC_SFDISK_TRUE='#'
17410  HAVE_STATIC_SFDISK_FALSE=
17411fi
17412
17413
17414  case ,$enable_static_programs, in #(
17415  *,blkid,*) :
17416    static_blkid=yes
17417   ;; #(
17418  *) :
17419     ;;
17420esac
17421  if test "x$static_blkid" = xyes; then :
17422  { $as_echo "$as_me:${as_lineno-$LINENO}: enable static build: blkid." >&5
17423$as_echo "$as_me: enable static build: blkid." >&6;}
17424fi
17425   if test "x$static_blkid" = xyes; then
17426  HAVE_STATIC_BLKID_TRUE=
17427  HAVE_STATIC_BLKID_FALSE='#'
17428else
17429  HAVE_STATIC_BLKID_TRUE='#'
17430  HAVE_STATIC_BLKID_FALSE=
17431fi
17432
17433
17434
17435
17436# Check whether --enable-all-programs was given.
17437if test "${enable_all_programs+set}" = set; then :
17438  enableval=$enable_all_programs;
17439else
17440  enable_all_programs=undefined
17441
17442fi
17443
17444
17445case $enable_all_programs in #(
17446  yes) :
17447    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: force to build all programs by default" >&5
17448$as_echo "$as_me: WARNING: force to build all programs by default" >&2;}
17449          ul_default_estate=check ;; #(
17450  no) :
17451    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable all programs by default" >&5
17452$as_echo "$as_me: WARNING: disable all programs by default" >&2;}
17453          ul_default_estate=no
17454 ;; #(
17455  *) :
17456     ;;
17457esac
17458
17459
17460
17461
17462
17463
17464  # Check whether --enable-tls was given.
17465if test "${enable_tls+set}" = set; then :
17466  enableval=$enable_tls;
17467else
17468  enable_tls=yes
17469fi
17470
17471
17472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
17473$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
17474if ${ax_cv_have_tls+:} false; then :
17475  $as_echo_n "(cached) " >&6
17476else
17477
17478    if test "$cross_compiling" = yes; then :
17479                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480/* end confdefs.h.  */
17481__thread int a; int b; int main() { return a = b; }
17482_ACEOF
17483if ac_fn_c_try_link "$LINENO"; then :
17484  chktls_save_LDFLAGS="$LDFLAGS"
17485	  	  	  case $host in
17486	    *-*-linux*)
17487	      LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
17488	      ;;
17489	  esac
17490	  chktls_save_CFLAGS="$CFLAGS"
17491	  CFLAGS="-fPIC $CFLAGS"
17492	  	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493/* end confdefs.h.  */
17494int f() { return 0; }
17495_ACEOF
17496if ac_fn_c_try_link "$LINENO"; then :
17497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498/* end confdefs.h.  */
17499__thread int a; int b; int f() { return a = b; }
17500_ACEOF
17501if ac_fn_c_try_link "$LINENO"; then :
17502  ax_cv_have_tls=yes
17503else
17504  ax_cv_have_tls=no
17505fi
17506rm -f core conftest.err conftest.$ac_objext \
17507    conftest$ac_exeext conftest.$ac_ext
17508else
17509  ax_cv_have_tls=yes
17510fi
17511rm -f core conftest.err conftest.$ac_objext \
17512    conftest$ac_exeext conftest.$ac_ext
17513	  CFLAGS="$chktls_save_CFLAGS"
17514	  LDFLAGS="$chktls_save_LDFLAGS"
17515else
17516  ax_cv_have_tls=no
17517fi
17518rm -f core conftest.err conftest.$ac_objext \
17519    conftest$ac_exeext conftest.$ac_ext
17520
17521
17522else
17523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h.  */
17525__thread int a; int b; int main() { return a = b; }
17526_ACEOF
17527if ac_fn_c_try_run "$LINENO"; then :
17528                      chktls_save_LDFLAGS="$LDFLAGS"
17529      LDFLAGS="-static $LDFLAGS"
17530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h.  */
17532int main() { return 0; }
17533_ACEOF
17534if ac_fn_c_try_link "$LINENO"; then :
17535  if test "$cross_compiling" = yes; then :
17536  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17538as_fn_error $? "cannot run test program while cross compiling
17539See \`config.log' for more details" "$LINENO" 5; }
17540else
17541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17542/* end confdefs.h.  */
17543__thread int a; int b; int main() { return a = b; }
17544_ACEOF
17545if ac_fn_c_try_run "$LINENO"; then :
17546  ax_cv_have_tls=yes
17547else
17548  ax_cv_have_tls=no
17549fi
17550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17551  conftest.$ac_objext conftest.beam conftest.$ac_ext
17552fi
17553
17554else
17555  ax_cv_have_tls=yes
17556fi
17557rm -f core conftest.err conftest.$ac_objext \
17558    conftest$ac_exeext conftest.$ac_ext
17559      LDFLAGS="$chktls_save_LDFLAGS"
17560      if test $ax_cv_have_tls = yes; then
17561						chktls_save_CFLAGS="$CFLAGS"
17562	thread_CFLAGS=failed
17563	for flag in '' '-pthread' '-lpthread'; do
17564	  CFLAGS="$flag $chktls_save_CFLAGS"
17565	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566/* end confdefs.h.  */
17567#include <pthread.h>
17568		void *g(void *d) { return NULL; }
17569int
17570main ()
17571{
17572pthread_t t; pthread_create(&t,NULL,g,NULL);
17573  ;
17574  return 0;
17575}
17576_ACEOF
17577if ac_fn_c_try_link "$LINENO"; then :
17578  thread_CFLAGS="$flag"
17579fi
17580rm -f core conftest.err conftest.$ac_objext \
17581    conftest$ac_exeext conftest.$ac_ext
17582	  if test "X$thread_CFLAGS" != Xfailed; then
17583	    break
17584	  fi
17585	done
17586	CFLAGS="$chktls_save_CFLAGS"
17587	if test "X$thread_CFLAGS" != Xfailed; then
17588	  CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17589	  if test "$cross_compiling" = yes; then :
17590  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17592as_fn_error $? "cannot run test program while cross compiling
17593See \`config.log' for more details" "$LINENO" 5; }
17594else
17595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596/* end confdefs.h.  */
17597#include <pthread.h>
17598		__thread int a;
17599		static int *a_in_other_thread;
17600		static void *
17601		thread_func (void *arg)
17602		{
17603		  a_in_other_thread = &a;
17604		  return (void *)0;
17605		}
17606int
17607main ()
17608{
17609pthread_t thread;
17610		void *thread_retval;
17611		int *a_in_main_thread;
17612		if (pthread_create (&thread, (pthread_attr_t *)0,
17613				    thread_func, (void *)0))
17614		  return 0;
17615		a_in_main_thread = &a;
17616		if (pthread_join (thread, &thread_retval))
17617		  return 0;
17618		return (a_in_other_thread == a_in_main_thread);
17619  ;
17620  return 0;
17621}
17622_ACEOF
17623if ac_fn_c_try_run "$LINENO"; then :
17624  ax_cv_have_tls=yes
17625else
17626  ax_cv_have_tls=no
17627fi
17628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17629  conftest.$ac_objext conftest.beam conftest.$ac_ext
17630fi
17631
17632	  CFLAGS="$chktls_save_CFLAGS"
17633	fi
17634      fi
17635else
17636  ax_cv_have_tls=no
17637fi
17638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17639  conftest.$ac_objext conftest.beam conftest.$ac_ext
17640fi
17641
17642fi
17643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_tls" >&5
17644$as_echo "$ax_cv_have_tls" >&6; }
17645
17646  if test "$enable_tls $ax_cv_have_tls" = "yes yes"; then
17647
17648$as_echo "#define HAVE_TLS 1" >>confdefs.h
17649
17650  fi
17651
17652
17653
17654
17655if ${scanf_cv_alloc_modifier+:} false; then :
17656  $as_echo_n "(cached) " >&6
17657else
17658  if test "$cross_compiling" = yes; then :
17659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660/* end confdefs.h.  */
17661
17662     #include <stdio.h>
17663     #include <unistd.h>
17664
17665     #ifdef __GLIBC__
17666
17667     #if !(__GLIBC_PREREQ(2, 7))
17668     #error %m is not available
17669     #endif
17670
17671     #elif defined(_POSIX_VERSION)
17672
17673     #if _POSIX_VERSION < 200809L
17674     #error %m is not available
17675     #endif
17676
17677     #else
17678     #error Your C-library is not supported.
17679     #endif
17680
17681_ACEOF
17682if ac_fn_c_try_compile "$LINENO"; then :
17683  scanf_cv_alloc_modifier=ms
17684else
17685  scanf_cv_alloc_modifier=no
17686fi
17687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688
17689else
17690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691/* end confdefs.h.  */
17692# include <stdio.h>
17693int main()
17694{
17695	int i;
17696	char *s;
17697	i = sscanf("x", "%ms", &s);
17698	if (i == 1)
17699		return 0;
17700	return 1;
17701}
17702_ACEOF
17703if ac_fn_c_try_run "$LINENO"; then :
17704  scanf_cv_alloc_modifier=ms
17705else
17706  if test "$cross_compiling" = yes; then :
17707  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17709as_fn_error $? "cannot run test program while cross compiling
17710See \`config.log' for more details" "$LINENO" 5; }
17711else
17712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713/* end confdefs.h.  */
17714# include <stdio.h>
17715int main()
17716{
17717	int i;
17718	char *s;
17719	i = sscanf("x", "%as", &s);
17720	if (i == 1)
17721		return 0;
17722	return 1;
17723}
17724_ACEOF
17725if ac_fn_c_try_run "$LINENO"; then :
17726  scanf_cv_alloc_modifier=as
17727else
17728  scanf_cv_alloc_modifier=no
17729
17730fi
17731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17732  conftest.$ac_objext conftest.beam conftest.$ac_ext
17733fi
17734
17735
17736fi
17737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17738  conftest.$ac_objext conftest.beam conftest.$ac_ext
17739fi
17740
17741
17742fi
17743
17744
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking scanf string alloc modifiers" >&5
17746$as_echo_n "checking scanf string alloc modifiers... " >&6; }
17747case $scanf_cv_alloc_modifier in #(
17748  ms) :
17749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (%ms) yes" >&5
17750$as_echo "(%ms) yes" >&6; }
17751
17752$as_echo "#define HAVE_SCANF_MS_MODIFIER 1" >>confdefs.h
17753
17754     have_scanf_alloc_modifier=yes ;; #(
17755  as) :
17756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (%as) yes" >&5
17757$as_echo "(%as) yes" >&6; }
17758     have_scanf_alloc_modifier=yes
17759
17760$as_echo "#define HAVE_SCANF_AS_MODIFIER 1" >>confdefs.h
17761 ;; #(
17762  *) :
17763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17764$as_echo "no" >&6; }
17765   have_scanf_alloc_modifier=no
17766 ;;
17767esac
17768
17769
17770
17771  have_util=yes
17772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
17773$as_echo_n "checking for openpty in -lutil... " >&6; }
17774if ${ac_cv_lib_util_openpty+:} false; then :
17775  $as_echo_n "(cached) " >&6
17776else
17777  ac_check_lib_save_LIBS=$LIBS
17778LIBS="-lutil  $LIBS"
17779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780/* end confdefs.h.  */
17781
17782/* Override any GCC internal prototype to avoid an error.
17783   Use char because int might match the return type of a GCC
17784   builtin and then its argument prototype would still apply.  */
17785#ifdef __cplusplus
17786extern "C"
17787#endif
17788char openpty ();
17789int
17790main ()
17791{
17792return openpty ();
17793  ;
17794  return 0;
17795}
17796_ACEOF
17797if ac_fn_c_try_link "$LINENO"; then :
17798  ac_cv_lib_util_openpty=yes
17799else
17800  ac_cv_lib_util_openpty=no
17801fi
17802rm -f core conftest.err conftest.$ac_objext \
17803    conftest$ac_exeext conftest.$ac_ext
17804LIBS=$ac_check_lib_save_LIBS
17805fi
17806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
17807$as_echo "$ac_cv_lib_util_openpty" >&6; }
17808if test "x$ac_cv_lib_util_openpty" = xyes; then :
17809  cat >>confdefs.h <<_ACEOF
17810#define HAVE_LIBUTIL 1
17811_ACEOF
17812
17813  LIBS="-lutil $LIBS"
17814
17815else
17816  have_util=no
17817fi
17818
17819   if test $have_util = yes; then
17820  HAVE_UTIL_TRUE=
17821  HAVE_UTIL_FALSE='#'
17822else
17823  HAVE_UTIL_TRUE='#'
17824  HAVE_UTIL_FALSE=
17825fi
17826
17827
17828
17829
17830  have_termcap=yes
17831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetnum in -ltermcap" >&5
17832$as_echo_n "checking for tgetnum in -ltermcap... " >&6; }
17833if ${ac_cv_lib_termcap_tgetnum+:} false; then :
17834  $as_echo_n "(cached) " >&6
17835else
17836  ac_check_lib_save_LIBS=$LIBS
17837LIBS="-ltermcap  $LIBS"
17838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839/* end confdefs.h.  */
17840
17841/* Override any GCC internal prototype to avoid an error.
17842   Use char because int might match the return type of a GCC
17843   builtin and then its argument prototype would still apply.  */
17844#ifdef __cplusplus
17845extern "C"
17846#endif
17847char tgetnum ();
17848int
17849main ()
17850{
17851return tgetnum ();
17852  ;
17853  return 0;
17854}
17855_ACEOF
17856if ac_fn_c_try_link "$LINENO"; then :
17857  ac_cv_lib_termcap_tgetnum=yes
17858else
17859  ac_cv_lib_termcap_tgetnum=no
17860fi
17861rm -f core conftest.err conftest.$ac_objext \
17862    conftest$ac_exeext conftest.$ac_ext
17863LIBS=$ac_check_lib_save_LIBS
17864fi
17865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetnum" >&5
17866$as_echo "$ac_cv_lib_termcap_tgetnum" >&6; }
17867if test "x$ac_cv_lib_termcap_tgetnum" = xyes; then :
17868  cat >>confdefs.h <<_ACEOF
17869#define HAVE_LIBTERMCAP 1
17870_ACEOF
17871
17872  LIBS="-ltermcap $LIBS"
17873
17874else
17875  have_termcap=no
17876fi
17877
17878   if test $have_termcap = yes; then
17879  HAVE_TERMCAP_TRUE=
17880  HAVE_TERMCAP_FALSE='#'
17881else
17882  HAVE_TERMCAP_TRUE='#'
17883  HAVE_TERMCAP_FALSE=
17884fi
17885
17886
17887
17888ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
17889#include <sys/sem.h>
17890
17891"
17892if test "x$ac_cv_type_union_semun" = xyes; then :
17893
17894cat >>confdefs.h <<_ACEOF
17895#define HAVE_UNION_SEMUN 1
17896_ACEOF
17897
17898
17899fi
17900
17901ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
17902if test "x$ac_cv_type_loff_t" = xyes; then :
17903
17904cat >>confdefs.h <<_ACEOF
17905#define HAVE_LOFF_T 1
17906_ACEOF
17907
17908
17909fi
17910
17911
17912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913/* end confdefs.h.  */
17914
17915#include <wchar.h>
17916#include <wctype.h>
17917#include <stdio.h>
17918
17919int
17920main ()
17921{
17922
17923  wchar_t wc;
17924  wint_t w;
17925  w = fgetwc(stdin);
17926  if (w == WEOF) exit(1);
17927  wc = w;
17928  fputwc(wc,stdout);
17929
17930  ;
17931  return 0;
17932}
17933_ACEOF
17934if ac_fn_c_try_compile "$LINENO"; then :
17935
17936$as_echo "#define HAVE_WIDECHAR 1" >>confdefs.h
17937
17938
17939fi
17940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941
17942ac_fn_c_check_type "$LINENO" "cpu_set_t" "ac_cv_type_cpu_set_t" "
17943#include <sched.h>
17944
17945"
17946if test "x$ac_cv_type_cpu_set_t" = xyes; then :
17947
17948cat >>confdefs.h <<_ACEOF
17949#define HAVE_CPU_SET_T 1
17950_ACEOF
17951
17952have_cpu_set_t=yes
17953fi
17954
17955
17956 if test "x$have_cpu_set_t" = xyes; then
17957  HAVE_CPU_SET_T_TRUE=
17958  HAVE_CPU_SET_T_FALSE='#'
17959else
17960  HAVE_CPU_SET_T_TRUE='#'
17961  HAVE_CPU_SET_T_FALSE=
17962fi
17963
17964
17965ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
17966#include <signal.h>
17967
17968"
17969if test "x$ac_cv_type_sighandler_t" = xyes; then :
17970
17971cat >>confdefs.h <<_ACEOF
17972#define HAVE_SIGHANDLER_T 1
17973_ACEOF
17974
17975
17976fi
17977
17978
17979ac_fn_c_check_decl "$LINENO" "CPU_ALLOC" "ac_cv_have_decl_CPU_ALLOC" "
17980#include <sched.h>
17981
17982"
17983if test "x$ac_cv_have_decl_CPU_ALLOC" = xyes; then :
17984  ac_have_decl=1
17985else
17986  ac_have_decl=0
17987fi
17988
17989cat >>confdefs.h <<_ACEOF
17990#define HAVE_DECL_CPU_ALLOC $ac_have_decl
17991_ACEOF
17992
17993
17994# on Solaris, you can't mix and match standards, since we use c99
17995# aparently at this stage, XOPEN_SOURCE will conflict.  As workaround,
17996# check for crypt.h and use that without XOPEN_SOURCE.
17997for ac_header in crypt.h
17998do :
17999  ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
18000if test "x$ac_cv_header_crypt_h" = xyes; then :
18001  cat >>confdefs.h <<_ACEOF
18002#define HAVE_CRYPT_H 1
18003_ACEOF
18004
18005fi
18006
18007done
18008
18009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010/* end confdefs.h.  */
18011
18012#ifdef HAVE_CRYPT_H
18013#include <crypt.h>
18014#else
18015#define _XOPEN_SOURCE
18016#include <unistd.h>
18017#endif
18018
18019int
18020main ()
18021{
18022
18023char *c = crypt("abc","pw");
18024
18025  ;
18026  return 0;
18027}
18028_ACEOF
18029if ac_fn_c_try_link "$LINENO"; then :
18030
18031else
18032
18033  LIBS="$LIBS -lcrypt"
18034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035/* end confdefs.h.  */
18036
18037  #ifdef HAVE_CRYPT_H
18038  #include <crypt.h>
18039  #else
18040  #define _XOPEN_SOURCE
18041  #include <unistd.h>
18042  #endif
18043
18044int
18045main ()
18046{
18047
18048  char *c = crypt("abc","pw");
18049
18050  ;
18051  return 0;
18052}
18053_ACEOF
18054if ac_fn_c_try_compile "$LINENO"; then :
18055
18056
18057$as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
18058
18059  have_libcrypt=yes
18060
18061else
18062
18063  as_fn_error $? "crypt() is not available" "$LINENO" 5
18064
18065fi
18066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067
18068fi
18069rm -f core conftest.err conftest.$ac_objext \
18070    conftest$ac_exeext conftest.$ac_ext
18071 if test "x$have_libcrypt" = xyes; then
18072  HAVE_LIBCRYPT_TRUE=
18073  HAVE_LIBCRYPT_FALSE='#'
18074else
18075  HAVE_LIBCRYPT_TRUE='#'
18076  HAVE_LIBCRYPT_FALSE=
18077fi
18078
18079
18080
18081
18082# Check whether --with-selinux was given.
18083if test "${with_selinux+set}" = set; then :
18084  withval=$with_selinux;
18085else
18086  with_selinux=no
18087
18088fi
18089
18090
18091if test "x$with_selinux" = xno; then :
18092
18093   if false; then
18094  HAVE_SELINUX_TRUE=
18095  HAVE_SELINUX_FALSE='#'
18096else
18097  HAVE_SELINUX_TRUE='#'
18098  HAVE_SELINUX_FALSE=
18099fi
18100
18101
18102else
18103
18104
18105pkg_failed=no
18106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
18107$as_echo_n "checking for SELINUX... " >&6; }
18108
18109if test -n "$SELINUX_CFLAGS"; then
18110    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
18111 elif test -n "$PKG_CONFIG"; then
18112    if test -n "$PKG_CONFIG" && \
18113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 2.0\""; } >&5
18114  ($PKG_CONFIG --exists --print-errors "libselinux >= 2.0") 2>&5
18115  ac_status=$?
18116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18117  test $ac_status = 0; }; then
18118  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux >= 2.0" 2>/dev/null`
18119		      test "x$?" != "x0" && pkg_failed=yes
18120else
18121  pkg_failed=yes
18122fi
18123 else
18124    pkg_failed=untried
18125fi
18126if test -n "$SELINUX_LIBS"; then
18127    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
18128 elif test -n "$PKG_CONFIG"; then
18129    if test -n "$PKG_CONFIG" && \
18130    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux >= 2.0\""; } >&5
18131  ($PKG_CONFIG --exists --print-errors "libselinux >= 2.0") 2>&5
18132  ac_status=$?
18133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18134  test $ac_status = 0; }; then
18135  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux >= 2.0" 2>/dev/null`
18136		      test "x$?" != "x0" && pkg_failed=yes
18137else
18138  pkg_failed=yes
18139fi
18140 else
18141    pkg_failed=untried
18142fi
18143
18144
18145
18146if test $pkg_failed = yes; then
18147   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148$as_echo "no" >&6; }
18149
18150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18151        _pkg_short_errors_supported=yes
18152else
18153        _pkg_short_errors_supported=no
18154fi
18155        if test $_pkg_short_errors_supported = yes; then
18156	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux >= 2.0" 2>&1`
18157        else
18158	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux >= 2.0" 2>&1`
18159        fi
18160	# Put the nasty error message in config.log where it belongs
18161	echo "$SELINUX_PKG_ERRORS" >&5
18162
18163	have_selinux=no
18164elif test $pkg_failed = untried; then
18165     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18166$as_echo "no" >&6; }
18167	have_selinux=no
18168else
18169	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
18170	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
18171        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18172$as_echo "yes" >&6; }
18173
18174$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18175
18176
18177  if { { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config --exists --print-errors \"libselinux\""; } >&5
18178  (pkg-config --exists --print-errors "libselinux") 2>&5
18179  ac_status=$?
18180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18181  test $ac_status = 0; }; then
18182    SELINUX_LIBS_STATIC=`pkg-config --libs --static "libselinux"`
18183  else
18184    as_fn_error $? "pkg-config description of libselinux, needed for static build, is not available" "$LINENO" 5
18185  fi
18186
18187	  if true; then
18188  HAVE_SELINUX_TRUE=
18189  HAVE_SELINUX_FALSE='#'
18190else
18191  HAVE_SELINUX_TRUE='#'
18192  HAVE_SELINUX_FALSE=
18193fi
18194
18195	 have_selinux=yes
18196fi
18197
18198  case $with_selinux:$have_selinux in #(
18199  yes:no) :
18200    as_fn_error $? "SELinux selected but libselinux not found or too old" "$LINENO" 5
18201   ;; #(
18202  *) :
18203     ;;
18204esac
18205
18206  if test "x$have_selinux" = xyes; then :
18207
18208
18209  old_CFLAGS="$CFLAGS"
18210  old_CPPFLAGS="$CPPFLAGS"
18211  old_LDFLAGS="$LDFLAGS"
18212  CFLAGS="$CFLAGS "
18213  CPPFLAGS="$CPPFLAGS "
18214  LDFLAGS="$LDFLAGS $SELINUX_LIBS"
18215
18216    # This function is missing in old libselinux 1.xx versions
18217    for ac_func in security_get_initial_context
18218do :
18219  ac_fn_c_check_func "$LINENO" "security_get_initial_context" "ac_cv_func_security_get_initial_context"
18220if test "x$ac_cv_func_security_get_initial_context" = xyes; then :
18221  cat >>confdefs.h <<_ACEOF
18222#define HAVE_SECURITY_GET_INITIAL_CONTEXT 1
18223_ACEOF
18224
18225fi
18226done
18227
18228
18229  CFLAGS="$old_CFLAGS"
18230  CPPFLAGS="$old_CPPFLAGS"
18231  LDFLAGS="$old_LDFLAGS"
18232
18233
18234fi
18235
18236fi
18237
18238
18239
18240
18241# Check whether --with-audit was given.
18242if test "${with_audit+set}" = set; then :
18243  withval=$with_audit;
18244else
18245  with_audit=no
18246
18247fi
18248
18249
18250if test "x$with_audit" = xno; then :
18251
18252   if false; then
18253  HAVE_AUDIT_TRUE=
18254  HAVE_AUDIT_FALSE='#'
18255else
18256  HAVE_AUDIT_TRUE='#'
18257  HAVE_AUDIT_FALSE=
18258fi
18259
18260
18261else
18262
18263
18264
18265  have_audit=yes
18266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_message in -laudit" >&5
18267$as_echo_n "checking for audit_log_user_message in -laudit... " >&6; }
18268if ${ac_cv_lib_audit_audit_log_user_message+:} false; then :
18269  $as_echo_n "(cached) " >&6
18270else
18271  ac_check_lib_save_LIBS=$LIBS
18272LIBS="-laudit  $LIBS"
18273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274/* end confdefs.h.  */
18275
18276/* Override any GCC internal prototype to avoid an error.
18277   Use char because int might match the return type of a GCC
18278   builtin and then its argument prototype would still apply.  */
18279#ifdef __cplusplus
18280extern "C"
18281#endif
18282char audit_log_user_message ();
18283int
18284main ()
18285{
18286return audit_log_user_message ();
18287  ;
18288  return 0;
18289}
18290_ACEOF
18291if ac_fn_c_try_link "$LINENO"; then :
18292  ac_cv_lib_audit_audit_log_user_message=yes
18293else
18294  ac_cv_lib_audit_audit_log_user_message=no
18295fi
18296rm -f core conftest.err conftest.$ac_objext \
18297    conftest$ac_exeext conftest.$ac_ext
18298LIBS=$ac_check_lib_save_LIBS
18299fi
18300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_message" >&5
18301$as_echo "$ac_cv_lib_audit_audit_log_user_message" >&6; }
18302if test "x$ac_cv_lib_audit_audit_log_user_message" = xyes; then :
18303  cat >>confdefs.h <<_ACEOF
18304#define HAVE_LIBAUDIT 1
18305_ACEOF
18306
18307  LIBS="-laudit $LIBS"
18308
18309else
18310  have_audit=no
18311fi
18312
18313   if test $have_audit = yes; then
18314  HAVE_AUDIT_TRUE=
18315  HAVE_AUDIT_FALSE='#'
18316else
18317  HAVE_AUDIT_TRUE='#'
18318  HAVE_AUDIT_FALSE=
18319fi
18320
18321
18322  case $with_audit:$have_audit in #(
18323  yes:no) :
18324    as_fn_error $? "Audit selected but libaudit not found (or does not support audit_log_user_message())" "$LINENO" 5
18325   ;; #(
18326  *) :
18327     ;;
18328esac
18329
18330fi
18331
18332
18333# Check whether --with-udev was given.
18334if test "${with_udev+set}" = set; then :
18335  withval=$with_udev;
18336else
18337  with_udev=auto
18338
18339fi
18340
18341
18342if test "x$with_udev" = xno; then :
18343
18344   if false; then
18345  HAVE_UDEV_TRUE=
18346  HAVE_UDEV_FALSE='#'
18347else
18348  HAVE_UDEV_TRUE='#'
18349  HAVE_UDEV_FALSE=
18350fi
18351
18352
18353else
18354
18355
18356
18357  have_udev=yes
18358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5
18359$as_echo_n "checking for udev_new in -ludev... " >&6; }
18360if ${ac_cv_lib_udev_udev_new+:} false; then :
18361  $as_echo_n "(cached) " >&6
18362else
18363  ac_check_lib_save_LIBS=$LIBS
18364LIBS="-ludev  $LIBS"
18365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366/* end confdefs.h.  */
18367
18368/* Override any GCC internal prototype to avoid an error.
18369   Use char because int might match the return type of a GCC
18370   builtin and then its argument prototype would still apply.  */
18371#ifdef __cplusplus
18372extern "C"
18373#endif
18374char udev_new ();
18375int
18376main ()
18377{
18378return udev_new ();
18379  ;
18380  return 0;
18381}
18382_ACEOF
18383if ac_fn_c_try_link "$LINENO"; then :
18384  ac_cv_lib_udev_udev_new=yes
18385else
18386  ac_cv_lib_udev_udev_new=no
18387fi
18388rm -f core conftest.err conftest.$ac_objext \
18389    conftest$ac_exeext conftest.$ac_ext
18390LIBS=$ac_check_lib_save_LIBS
18391fi
18392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5
18393$as_echo "$ac_cv_lib_udev_udev_new" >&6; }
18394if test "x$ac_cv_lib_udev_udev_new" = xyes; then :
18395  cat >>confdefs.h <<_ACEOF
18396#define HAVE_LIBUDEV 1
18397_ACEOF
18398
18399  LIBS="-ludev $LIBS"
18400
18401else
18402  have_udev=no
18403fi
18404
18405   if test $have_udev = yes; then
18406  HAVE_UDEV_TRUE=
18407  HAVE_UDEV_FALSE='#'
18408else
18409  HAVE_UDEV_TRUE='#'
18410  HAVE_UDEV_FALSE=
18411fi
18412
18413
18414  case $with_udev:$have_udev in #(
18415  yes:no) :
18416    as_fn_error $? "udev selected but libudev not found" "$LINENO" 5
18417   ;; #(
18418  *) :
18419     ;;
18420esac
18421
18422fi
18423
18424
18425# Check whether --with-ncurses was given.
18426if test "${with_ncurses+set}" = set; then :
18427  withval=$with_ncurses;
18428else
18429  with_ncurses=auto
18430
18431fi
18432
18433 if false; then
18434  HAVE_NCURSES_TRUE=
18435  HAVE_NCURSES_FALSE='#'
18436else
18437  HAVE_NCURSES_TRUE='#'
18438  HAVE_NCURSES_FALSE=
18439fi
18440
18441
18442if test "x$with_ncurses" != xno; then :
18443
18444  have_ncurses=no
18445
18446
18447pkg_failed=no
18448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSESW" >&5
18449$as_echo_n "checking for NCURSESW... " >&6; }
18450
18451if test -n "$NCURSESW_CFLAGS"; then
18452    pkg_cv_NCURSESW_CFLAGS="$NCURSESW_CFLAGS"
18453 elif test -n "$PKG_CONFIG"; then
18454    if test -n "$PKG_CONFIG" && \
18455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
18456  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
18457  ac_status=$?
18458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18459  test $ac_status = 0; }; then
18460  pkg_cv_NCURSESW_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
18461		      test "x$?" != "x0" && pkg_failed=yes
18462else
18463  pkg_failed=yes
18464fi
18465 else
18466    pkg_failed=untried
18467fi
18468if test -n "$NCURSESW_LIBS"; then
18469    pkg_cv_NCURSESW_LIBS="$NCURSESW_LIBS"
18470 elif test -n "$PKG_CONFIG"; then
18471    if test -n "$PKG_CONFIG" && \
18472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
18473  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
18474  ac_status=$?
18475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18476  test $ac_status = 0; }; then
18477  pkg_cv_NCURSESW_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
18478		      test "x$?" != "x0" && pkg_failed=yes
18479else
18480  pkg_failed=yes
18481fi
18482 else
18483    pkg_failed=untried
18484fi
18485
18486
18487
18488if test $pkg_failed = yes; then
18489   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18490$as_echo "no" >&6; }
18491
18492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18493        _pkg_short_errors_supported=yes
18494else
18495        _pkg_short_errors_supported=no
18496fi
18497        if test $_pkg_short_errors_supported = yes; then
18498	        NCURSESW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
18499        else
18500	        NCURSESW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
18501        fi
18502	# Put the nasty error message in config.log where it belongs
18503	echo "$NCURSESW_PKG_ERRORS" >&5
18504
18505
18506
18507pkg_failed=no
18508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSES" >&5
18509$as_echo_n "checking for NCURSES... " >&6; }
18510
18511if test -n "$NCURSES_CFLAGS"; then
18512    pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
18513 elif test -n "$PKG_CONFIG"; then
18514    if test -n "$PKG_CONFIG" && \
18515    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18516  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18517  ac_status=$?
18518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18519  test $ac_status = 0; }; then
18520  pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
18521		      test "x$?" != "x0" && pkg_failed=yes
18522else
18523  pkg_failed=yes
18524fi
18525 else
18526    pkg_failed=untried
18527fi
18528if test -n "$NCURSES_LIBS"; then
18529    pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
18530 elif test -n "$PKG_CONFIG"; then
18531    if test -n "$PKG_CONFIG" && \
18532    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18533  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18534  ac_status=$?
18535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536  test $ac_status = 0; }; then
18537  pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
18538		      test "x$?" != "x0" && pkg_failed=yes
18539else
18540  pkg_failed=yes
18541fi
18542 else
18543    pkg_failed=untried
18544fi
18545
18546
18547
18548if test $pkg_failed = yes; then
18549   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18550$as_echo "no" >&6; }
18551
18552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18553        _pkg_short_errors_supported=yes
18554else
18555        _pkg_short_errors_supported=no
18556fi
18557        if test $_pkg_short_errors_supported = yes; then
18558	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
18559        else
18560	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
18561        fi
18562	# Put the nasty error message in config.log where it belongs
18563	echo "$NCURSES_PKG_ERRORS" >&5
18564
18565	:
18566elif test $pkg_failed = untried; then
18567     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568$as_echo "no" >&6; }
18569	:
18570else
18571	NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
18572	NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
18573        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18574$as_echo "yes" >&6; }
18575
18576      have_ncurses=yes
18577      $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18578
18579      CURSES_LIB_NAME="ncursesw"
18580
18581fi
18582
18583elif test $pkg_failed = untried; then
18584     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18585$as_echo "no" >&6; }
18586
18587
18588pkg_failed=no
18589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NCURSES" >&5
18590$as_echo_n "checking for NCURSES... " >&6; }
18591
18592if test -n "$NCURSES_CFLAGS"; then
18593    pkg_cv_NCURSES_CFLAGS="$NCURSES_CFLAGS"
18594 elif test -n "$PKG_CONFIG"; then
18595    if test -n "$PKG_CONFIG" && \
18596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18597  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18598  ac_status=$?
18599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18600  test $ac_status = 0; }; then
18601  pkg_cv_NCURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
18602		      test "x$?" != "x0" && pkg_failed=yes
18603else
18604  pkg_failed=yes
18605fi
18606 else
18607    pkg_failed=untried
18608fi
18609if test -n "$NCURSES_LIBS"; then
18610    pkg_cv_NCURSES_LIBS="$NCURSES_LIBS"
18611 elif test -n "$PKG_CONFIG"; then
18612    if test -n "$PKG_CONFIG" && \
18613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
18614  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
18615  ac_status=$?
18616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18617  test $ac_status = 0; }; then
18618  pkg_cv_NCURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
18619		      test "x$?" != "x0" && pkg_failed=yes
18620else
18621  pkg_failed=yes
18622fi
18623 else
18624    pkg_failed=untried
18625fi
18626
18627
18628
18629if test $pkg_failed = yes; then
18630   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631$as_echo "no" >&6; }
18632
18633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18634        _pkg_short_errors_supported=yes
18635else
18636        _pkg_short_errors_supported=no
18637fi
18638        if test $_pkg_short_errors_supported = yes; then
18639	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
18640        else
18641	        NCURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
18642        fi
18643	# Put the nasty error message in config.log where it belongs
18644	echo "$NCURSES_PKG_ERRORS" >&5
18645
18646	:
18647elif test $pkg_failed = untried; then
18648     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649$as_echo "no" >&6; }
18650	:
18651else
18652	NCURSES_CFLAGS=$pkg_cv_NCURSES_CFLAGS
18653	NCURSES_LIBS=$pkg_cv_NCURSES_LIBS
18654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18655$as_echo "yes" >&6; }
18656
18657      have_ncurses=yes
18658      $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18659
18660      CURSES_LIB_NAME="ncursesw"
18661
18662fi
18663
18664else
18665	NCURSESW_CFLAGS=$pkg_cv_NCURSESW_CFLAGS
18666	NCURSESW_LIBS=$pkg_cv_NCURSESW_LIBS
18667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18668$as_echo "yes" >&6; }
18669
18670    have_ncurses=yes
18671    NCURSES_LIBS=${NCURSESW_LIBS}
18672    NCURSES_CFLAGS=${NCURSESW_CFLAGS}
18673    $as_echo "#define HAVE_LIBNCURSESW 1" >>confdefs.h
18674
18675    CURSES_LIB_NAME="ncursesw"
18676
18677fi
18678
18679  if test "x$have_ncurses" = xyes; then :
18680
18681        save_CPPFLAGS="$CPPFLAGS"
18682    CPPFLAGS="$CPPFLAGS $NCURSES_CFLAGS"
18683    for ac_header in ncurses.h
18684do :
18685  ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
18686if test "x$ac_cv_header_ncurses_h" = xyes; then :
18687  cat >>confdefs.h <<_ACEOF
18688#define HAVE_NCURSES_H 1
18689_ACEOF
18690
18691fi
18692
18693done
18694
18695    CPPFLAGS="$save_CPPFLAGS"
18696
18697else
18698
18699        for ac_header in ncurses.h ncurses/ncurses.h
18700do :
18701  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18702ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18704  cat >>confdefs.h <<_ACEOF
18705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18706_ACEOF
18707
18708      if test "x$with_ncurses" = xauto; then :
18709
18710
18711
18712  have_ncurses=yes
18713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
18714$as_echo_n "checking for initscr in -lncursesw... " >&6; }
18715if ${ac_cv_lib_ncursesw_initscr+:} false; then :
18716  $as_echo_n "(cached) " >&6
18717else
18718  ac_check_lib_save_LIBS=$LIBS
18719LIBS="-lncursesw  $LIBS"
18720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721/* end confdefs.h.  */
18722
18723/* Override any GCC internal prototype to avoid an error.
18724   Use char because int might match the return type of a GCC
18725   builtin and then its argument prototype would still apply.  */
18726#ifdef __cplusplus
18727extern "C"
18728#endif
18729char initscr ();
18730int
18731main ()
18732{
18733return initscr ();
18734  ;
18735  return 0;
18736}
18737_ACEOF
18738if ac_fn_c_try_link "$LINENO"; then :
18739  ac_cv_lib_ncursesw_initscr=yes
18740else
18741  ac_cv_lib_ncursesw_initscr=no
18742fi
18743rm -f core conftest.err conftest.$ac_objext \
18744    conftest$ac_exeext conftest.$ac_ext
18745LIBS=$ac_check_lib_save_LIBS
18746fi
18747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
18748$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
18749if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
18750  cat >>confdefs.h <<_ACEOF
18751#define HAVE_LIBNCURSESW 1
18752_ACEOF
18753
18754  LIBS="-lncursesw $LIBS"
18755
18756else
18757  have_ncurses=no
18758fi
18759
18760   if test $have_ncurses = yes; then
18761  HAVE_NCURSES_TRUE=
18762  HAVE_NCURSES_FALSE='#'
18763else
18764  HAVE_NCURSES_TRUE='#'
18765  HAVE_NCURSES_FALSE=
18766fi
18767
18768
18769	if test "x$have_ncurses" = xyes; then :
18770
18771	  for ac_header in ncursesw/ncurses.h
18772do :
18773  ac_fn_c_check_header_mongrel "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
18774if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes; then :
18775  cat >>confdefs.h <<_ACEOF
18776#define HAVE_NCURSESW_NCURSES_H 1
18777_ACEOF
18778
18779fi
18780
18781done
18782
18783	  NCURSES_LIBS="-lncursesw"
18784	  CURSES_LIB_NAME="ncursesw"
18785
18786fi
18787
18788fi
18789      if test "x$have_ncurses" = xno; then :
18790
18791
18792
18793  have_ncurses=yes
18794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
18795$as_echo_n "checking for initscr in -lncurses... " >&6; }
18796if ${ac_cv_lib_ncurses_initscr+:} false; then :
18797  $as_echo_n "(cached) " >&6
18798else
18799  ac_check_lib_save_LIBS=$LIBS
18800LIBS="-lncurses  $LIBS"
18801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802/* end confdefs.h.  */
18803
18804/* Override any GCC internal prototype to avoid an error.
18805   Use char because int might match the return type of a GCC
18806   builtin and then its argument prototype would still apply.  */
18807#ifdef __cplusplus
18808extern "C"
18809#endif
18810char initscr ();
18811int
18812main ()
18813{
18814return initscr ();
18815  ;
18816  return 0;
18817}
18818_ACEOF
18819if ac_fn_c_try_link "$LINENO"; then :
18820  ac_cv_lib_ncurses_initscr=yes
18821else
18822  ac_cv_lib_ncurses_initscr=no
18823fi
18824rm -f core conftest.err conftest.$ac_objext \
18825    conftest$ac_exeext conftest.$ac_ext
18826LIBS=$ac_check_lib_save_LIBS
18827fi
18828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
18829$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
18830if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
18831  cat >>confdefs.h <<_ACEOF
18832#define HAVE_LIBNCURSES 1
18833_ACEOF
18834
18835  LIBS="-lncurses $LIBS"
18836
18837else
18838  have_ncurses=no
18839fi
18840
18841   if test $have_ncurses = yes; then
18842  HAVE_NCURSES_TRUE=
18843  HAVE_NCURSES_FALSE='#'
18844else
18845  HAVE_NCURSES_TRUE='#'
18846  HAVE_NCURSES_FALSE=
18847fi
18848
18849
18850	if test "x$have_ncurses" = xyes; then :
18851
18852	  NCURSES_LIBS="-lncurses"
18853	  CURSES_LIB_NAME="ncurses"
18854
18855fi
18856
18857fi
18858
18859fi
18860
18861done
18862
18863
18864fi
18865
18866  if test "x$have_ncurses" = xno; then :
18867
18868    as_fn_error $? "ncurses or ncursesw selected, but library not found (--without-ncurses to disable)" "$LINENO" 5
18869
18870fi
18871
18872fi
18873
18874
18875
18876
18877
18878# Check whether --with-slang was given.
18879if test "${with_slang+set}" = set; then :
18880  withval=$with_slang;
18881else
18882  with_slang=no
18883
18884fi
18885
18886have_slang=no
18887if test "x$with_slang" = xyes; then :
18888
18889  for ac_header in slang.h slang/slang.h
18890do :
18891  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18892ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18894  cat >>confdefs.h <<_ACEOF
18895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18896_ACEOF
18897
18898fi
18899
18900done
18901
18902  for ac_header in slcurses.h slang/slcurses.h
18903do :
18904  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18905ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18906#ifdef HAVE_SLANG_H
18907#include <slang.h>
18908#elif defined(HAVE_SLANG_SLANG_H)
18909#include <slang/slang.h>
18910#endif
18911
18912"
18913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18914  cat >>confdefs.h <<_ACEOF
18915#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18916_ACEOF
18917 have_slang=yes
18918fi
18919
18920done
18921
18922  if test "x$have_slang" = xno; then :
18923
18924    as_fn_error $? "slang selected but slcurses.h not found" "$LINENO" 5
18925else
18926  CURSES_LIB_NAME=slang
18927
18928fi
18929
18930fi
18931 if test "x$have_slang" = xyes; then
18932  HAVE_SLANG_TRUE=
18933  HAVE_SLANG_FALSE='#'
18934else
18935  HAVE_SLANG_TRUE='#'
18936  HAVE_SLANG_FALSE=
18937fi
18938
18939
18940
18941if test "x$have_slang" = xyes -o "x$have_ncurses" = xyes; then :
18942
18943	as_ac_Lib=`$as_echo "ac_cv_lib_$CURSES_LIB_NAME''_use_default_colors" | $as_tr_sh`
18944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_default_colors in -l$CURSES_LIB_NAME" >&5
18945$as_echo_n "checking for use_default_colors in -l$CURSES_LIB_NAME... " >&6; }
18946if eval \${$as_ac_Lib+:} false; then :
18947  $as_echo_n "(cached) " >&6
18948else
18949  ac_check_lib_save_LIBS=$LIBS
18950LIBS="-l$CURSES_LIB_NAME  $LIBS"
18951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952/* end confdefs.h.  */
18953
18954/* Override any GCC internal prototype to avoid an error.
18955   Use char because int might match the return type of a GCC
18956   builtin and then its argument prototype would still apply.  */
18957#ifdef __cplusplus
18958extern "C"
18959#endif
18960char use_default_colors ();
18961int
18962main ()
18963{
18964return use_default_colors ();
18965  ;
18966  return 0;
18967}
18968_ACEOF
18969if ac_fn_c_try_link "$LINENO"; then :
18970  eval "$as_ac_Lib=yes"
18971else
18972  eval "$as_ac_Lib=no"
18973fi
18974rm -f core conftest.err conftest.$ac_objext \
18975    conftest$ac_exeext conftest.$ac_ext
18976LIBS=$ac_check_lib_save_LIBS
18977fi
18978eval ac_res=\$$as_ac_Lib
18979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18980$as_echo "$ac_res" >&6; }
18981if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18982
18983
18984$as_echo "#define HAVE_USE_DEFAULT_COLORS 1" >>confdefs.h
18985
18986
18987fi
18988
18989	as_ac_Lib=`$as_echo "ac_cv_lib_$CURSES_LIB_NAME''_resizeterm" | $as_tr_sh`
18990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm in -l$CURSES_LIB_NAME" >&5
18991$as_echo_n "checking for resizeterm in -l$CURSES_LIB_NAME... " >&6; }
18992if eval \${$as_ac_Lib+:} false; then :
18993  $as_echo_n "(cached) " >&6
18994else
18995  ac_check_lib_save_LIBS=$LIBS
18996LIBS="-l$CURSES_LIB_NAME  $LIBS"
18997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998/* end confdefs.h.  */
18999
19000/* Override any GCC internal prototype to avoid an error.
19001   Use char because int might match the return type of a GCC
19002   builtin and then its argument prototype would still apply.  */
19003#ifdef __cplusplus
19004extern "C"
19005#endif
19006char resizeterm ();
19007int
19008main ()
19009{
19010return resizeterm ();
19011  ;
19012  return 0;
19013}
19014_ACEOF
19015if ac_fn_c_try_link "$LINENO"; then :
19016  eval "$as_ac_Lib=yes"
19017else
19018  eval "$as_ac_Lib=no"
19019fi
19020rm -f core conftest.err conftest.$ac_objext \
19021    conftest$ac_exeext conftest.$ac_ext
19022LIBS=$ac_check_lib_save_LIBS
19023fi
19024eval ac_res=\$$as_ac_Lib
19025	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19026$as_echo "$ac_res" >&6; }
19027if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19028
19029
19030$as_echo "#define HAVE_RESIZETERM 1" >>confdefs.h
19031
19032
19033fi
19034
19035
19036fi
19037
19038
19039
19040pkg_failed=no
19041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TINFO" >&5
19042$as_echo_n "checking for TINFO... " >&6; }
19043
19044if test -n "$TINFO_CFLAGS"; then
19045    pkg_cv_TINFO_CFLAGS="$TINFO_CFLAGS"
19046 elif test -n "$PKG_CONFIG"; then
19047    if test -n "$PKG_CONFIG" && \
19048    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5
19049  ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5
19050  ac_status=$?
19051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19052  test $ac_status = 0; }; then
19053  pkg_cv_TINFO_CFLAGS=`$PKG_CONFIG --cflags "tinfo" 2>/dev/null`
19054		      test "x$?" != "x0" && pkg_failed=yes
19055else
19056  pkg_failed=yes
19057fi
19058 else
19059    pkg_failed=untried
19060fi
19061if test -n "$TINFO_LIBS"; then
19062    pkg_cv_TINFO_LIBS="$TINFO_LIBS"
19063 elif test -n "$PKG_CONFIG"; then
19064    if test -n "$PKG_CONFIG" && \
19065    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tinfo\""; } >&5
19066  ($PKG_CONFIG --exists --print-errors "tinfo") 2>&5
19067  ac_status=$?
19068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19069  test $ac_status = 0; }; then
19070  pkg_cv_TINFO_LIBS=`$PKG_CONFIG --libs "tinfo" 2>/dev/null`
19071		      test "x$?" != "x0" && pkg_failed=yes
19072else
19073  pkg_failed=yes
19074fi
19075 else
19076    pkg_failed=untried
19077fi
19078
19079
19080
19081if test $pkg_failed = yes; then
19082   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19083$as_echo "no" >&6; }
19084
19085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19086        _pkg_short_errors_supported=yes
19087else
19088        _pkg_short_errors_supported=no
19089fi
19090        if test $_pkg_short_errors_supported = yes; then
19091	        TINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tinfo" 2>&1`
19092        else
19093	        TINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tinfo" 2>&1`
19094        fi
19095	# Put the nasty error message in config.log where it belongs
19096	echo "$TINFO_PKG_ERRORS" >&5
19097
19098
19099        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
19100$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
19101if ${ac_cv_lib_tinfo_tgetent+:} false; then :
19102  $as_echo_n "(cached) " >&6
19103else
19104  ac_check_lib_save_LIBS=$LIBS
19105LIBS="-ltinfo  $LIBS"
19106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107/* end confdefs.h.  */
19108
19109/* Override any GCC internal prototype to avoid an error.
19110   Use char because int might match the return type of a GCC
19111   builtin and then its argument prototype would still apply.  */
19112#ifdef __cplusplus
19113extern "C"
19114#endif
19115char tgetent ();
19116int
19117main ()
19118{
19119return tgetent ();
19120  ;
19121  return 0;
19122}
19123_ACEOF
19124if ac_fn_c_try_link "$LINENO"; then :
19125  ac_cv_lib_tinfo_tgetent=yes
19126else
19127  ac_cv_lib_tinfo_tgetent=no
19128fi
19129rm -f core conftest.err conftest.$ac_objext \
19130    conftest$ac_exeext conftest.$ac_ext
19131LIBS=$ac_check_lib_save_LIBS
19132fi
19133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
19134$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
19135if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
19136
19137       have_tinfo=yes
19138       TINFO_LIBS="-ltinfo"
19139       TINFO_CFLAGS=""
19140fi
19141
19142
19143elif test $pkg_failed = untried; then
19144     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19145$as_echo "no" >&6; }
19146
19147        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
19148$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
19149if ${ac_cv_lib_tinfo_tgetent+:} false; then :
19150  $as_echo_n "(cached) " >&6
19151else
19152  ac_check_lib_save_LIBS=$LIBS
19153LIBS="-ltinfo  $LIBS"
19154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155/* end confdefs.h.  */
19156
19157/* Override any GCC internal prototype to avoid an error.
19158   Use char because int might match the return type of a GCC
19159   builtin and then its argument prototype would still apply.  */
19160#ifdef __cplusplus
19161extern "C"
19162#endif
19163char tgetent ();
19164int
19165main ()
19166{
19167return tgetent ();
19168  ;
19169  return 0;
19170}
19171_ACEOF
19172if ac_fn_c_try_link "$LINENO"; then :
19173  ac_cv_lib_tinfo_tgetent=yes
19174else
19175  ac_cv_lib_tinfo_tgetent=no
19176fi
19177rm -f core conftest.err conftest.$ac_objext \
19178    conftest$ac_exeext conftest.$ac_ext
19179LIBS=$ac_check_lib_save_LIBS
19180fi
19181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
19182$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
19183if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
19184
19185       have_tinfo=yes
19186       TINFO_LIBS="-ltinfo"
19187       TINFO_CFLAGS=""
19188fi
19189
19190
19191else
19192	TINFO_CFLAGS=$pkg_cv_TINFO_CFLAGS
19193	TINFO_LIBS=$pkg_cv_TINFO_LIBS
19194        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19195$as_echo "yes" >&6; }
19196	have_tinfo=yes
19197fi
19198
19199
19200 if test "x$have_tinfo" = xyes; then
19201  HAVE_TINFO_TRUE=
19202  HAVE_TINFO_FALSE='#'
19203else
19204  HAVE_TINFO_TRUE='#'
19205  HAVE_TINFO_FALSE=
19206fi
19207
19208
19209
19210
19211# Check whether --with-utempter was given.
19212if test "${with_utempter+set}" = set; then :
19213  withval=$with_utempter;
19214else
19215  with_utempter=no
19216
19217fi
19218
19219
19220if test "x$with_utempter" = xyes; then :
19221
19222
19223
19224  have_utempter=yes
19225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utempter_add_record in -lutempter" >&5
19226$as_echo_n "checking for utempter_add_record in -lutempter... " >&6; }
19227if ${ac_cv_lib_utempter_utempter_add_record+:} false; then :
19228  $as_echo_n "(cached) " >&6
19229else
19230  ac_check_lib_save_LIBS=$LIBS
19231LIBS="-lutempter  $LIBS"
19232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233/* end confdefs.h.  */
19234
19235/* Override any GCC internal prototype to avoid an error.
19236   Use char because int might match the return type of a GCC
19237   builtin and then its argument prototype would still apply.  */
19238#ifdef __cplusplus
19239extern "C"
19240#endif
19241char utempter_add_record ();
19242int
19243main ()
19244{
19245return utempter_add_record ();
19246  ;
19247  return 0;
19248}
19249_ACEOF
19250if ac_fn_c_try_link "$LINENO"; then :
19251  ac_cv_lib_utempter_utempter_add_record=yes
19252else
19253  ac_cv_lib_utempter_utempter_add_record=no
19254fi
19255rm -f core conftest.err conftest.$ac_objext \
19256    conftest$ac_exeext conftest.$ac_ext
19257LIBS=$ac_check_lib_save_LIBS
19258fi
19259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utempter_utempter_add_record" >&5
19260$as_echo "$ac_cv_lib_utempter_utempter_add_record" >&6; }
19261if test "x$ac_cv_lib_utempter_utempter_add_record" = xyes; then :
19262  cat >>confdefs.h <<_ACEOF
19263#define HAVE_LIBUTEMPTER 1
19264_ACEOF
19265
19266  LIBS="-lutempter $LIBS"
19267
19268else
19269  have_utempter=no
19270fi
19271
19272   if test $have_utempter = yes; then
19273  HAVE_UTEMPTER_TRUE=
19274  HAVE_UTEMPTER_FALSE='#'
19275else
19276  HAVE_UTEMPTER_TRUE='#'
19277  HAVE_UTEMPTER_FALSE=
19278fi
19279
19280
19281  if test "x$have_utempter" = xno; then :
19282
19283    as_fn_error $? "utempter selected but libutempter not found" "$LINENO" 5
19284
19285fi
19286
19287else
19288
19289   if false; then
19290  HAVE_UTEMPTER_TRUE=
19291  HAVE_UTEMPTER_FALSE='#'
19292else
19293  HAVE_UTEMPTER_TRUE='#'
19294  HAVE_UTEMPTER_FALSE=
19295fi
19296
19297
19298fi
19299
19300
19301
19302# Check whether --enable-libuuid was given.
19303if test "${enable_libuuid+set}" = set; then :
19304  enableval=$enable_libuuid;
19305else
19306
19307
19308  if test "x$ul_default_estate" != x; then
19309    enable_libuuid=$ul_default_estate
19310  else
19311    enable_libuuid=yes
19312  fi
19313
19314
19315fi
19316
19317
19318
19319  if test "x$enable_libuuid" = xno; then
19320   build_libuuid=no
19321else
19322   build_libuuid=yes
19323fi
19324
19325
19326
19327 if test "x$build_libuuid" = xyes; then
19328  BUILD_LIBUUID_TRUE=
19329  BUILD_LIBUUID_FALSE='#'
19330else
19331  BUILD_LIBUUID_TRUE='#'
19332  BUILD_LIBUUID_FALSE=
19333fi
19334
19335
19336if test "x$build_libuuid" = xyes; then :
19337
19338
19339$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
19340
19341
19342fi
19343
19344# Check whether --enable-libblkid was given.
19345if test "${enable_libblkid+set}" = set; then :
19346  enableval=$enable_libblkid;
19347else
19348
19349
19350  if test "x$ul_default_estate" != x; then
19351    enable_libblkid=$ul_default_estate
19352  else
19353    enable_libblkid=yes
19354  fi
19355
19356
19357fi
19358
19359
19360
19361  if test "x$enable_libblkid" = xno; then
19362   build_libblkid=no
19363else
19364   build_libblkid=yes
19365fi
19366
19367
19368
19369
19370
19371cat >>confdefs.h <<_ACEOF
19372#define LIBBLKID_VERSION "$LIBBLKID_VERSION"
19373_ACEOF
19374
19375
19376cat >>confdefs.h <<_ACEOF
19377#define LIBBLKID_DATE "$LIBBLKID_DATE"
19378_ACEOF
19379
19380if test "x$build_libblkid" = xyes; then :
19381
19382
19383$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
19384
19385
19386fi
19387 if test "x$build_libblkid" = xyes; then
19388  BUILD_LIBBLKID_TRUE=
19389  BUILD_LIBBLKID_FALSE='#'
19390else
19391  BUILD_LIBBLKID_TRUE='#'
19392  BUILD_LIBBLKID_FALSE=
19393fi
19394
19395 if test "x$build_libblkid" = xyes -a "x$enable_static" = xyes; then
19396  BUILD_LIBBLKID_TESTS_TRUE=
19397  BUILD_LIBBLKID_TESTS_FALSE='#'
19398else
19399  BUILD_LIBBLKID_TESTS_TRUE='#'
19400  BUILD_LIBBLKID_TESTS_FALSE=
19401fi
19402
19403
19404# Check whether --enable-libmount was given.
19405if test "${enable_libmount+set}" = set; then :
19406  enableval=$enable_libmount;
19407else
19408
19409
19410  if test "x$ul_default_estate" != x; then
19411    enable_libmount=$ul_default_estate
19412  else
19413    enable_libmount=check
19414  fi
19415
19416
19417fi
19418
19419
19420
19421  if test "x$enable_libmount" = xno; then
19422   build_libmount=no
19423else
19424   build_libmount=yes
19425fi
19426
19427
19428
19429
19430  if test "x$build_libmount" != xno; then
19431    case $enable_libmount:$build_libblkid in #(
19432    no:*)
19433      build_libmount=no ;;
19434    yes:yes)
19435      build_libmount=yes ;;
19436    yes:*)
19437      as_fn_error $? "libblkid is needed to build libmount" "$LINENO" 5;;
19438    check:yes)
19439      build_libmount=yes ;;
19440    check:*)
19441      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building libmount" >&5
19442$as_echo "$as_me: WARNING: libblkid disabled; not building libmount" >&2;}
19443      build_libmount=no ;;
19444    esac
19445  fi
19446
19447
19448
19449
19450  if test "x$build_libmount" != xno; then
19451
19452    ul_haveone_libmount=no
19453
19454      if test "x$have_scanf_alloc_modifier" = xyes; then
19455        ul_haveone_libmount=yes
19456      fi
19457
19458    case $enable_libmount:$ul_haveone_libmount in #(
19459    no:*)
19460      build_libmount=no ;;
19461    yes:yes)
19462      build_libmount=yes ;;
19463    yes:*)
19464      as_fn_error $? "libmount selected, but required scanf string alloc modifier not available" "$LINENO" 5;;
19465    check:yes)
19466      build_libmount=yes ;;
19467    check:*)
19468      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: scanf string alloc modifier not found; not building libmount" >&5
19469$as_echo "$as_me: WARNING: scanf string alloc modifier not found; not building libmount" >&2;}
19470      build_libmount=no ;;
19471    esac
19472  fi
19473
19474 if test "x$build_libmount" = xyes; then
19475  BUILD_LIBMOUNT_TRUE=
19476  BUILD_LIBMOUNT_FALSE='#'
19477else
19478  BUILD_LIBMOUNT_TRUE='#'
19479  BUILD_LIBMOUNT_FALSE=
19480fi
19481
19482 if test "x$build_libmount" = xyes -a "x$enable_static" = xyes; then
19483  BUILD_LIBMOUNT_TESTS_TRUE=
19484  BUILD_LIBMOUNT_TESTS_FALSE='#'
19485else
19486  BUILD_LIBMOUNT_TESTS_TRUE='#'
19487  BUILD_LIBMOUNT_TESTS_FALSE=
19488fi
19489
19490
19491
19492
19493
19494cat >>confdefs.h <<_ACEOF
19495#define LIBMOUNT_VERSION "$LIBMOUNT_VERSION"
19496_ACEOF
19497
19498
19499
19500# Check whether --enable-libsmartcols was given.
19501if test "${enable_libsmartcols+set}" = set; then :
19502  enableval=$enable_libsmartcols;
19503else
19504
19505
19506  if test "x$ul_default_estate" != x; then
19507    enable_libsmartcols=$ul_default_estate
19508  else
19509    enable_libsmartcols=yes
19510  fi
19511
19512
19513fi
19514
19515
19516
19517  if test "x$enable_libsmartcols" = xno; then
19518   build_libsmartcols=no
19519else
19520   build_libsmartcols=yes
19521fi
19522
19523 if test "x$build_libsmartcols" = xyes; then
19524  BUILD_LIBSMARTCOLS_TRUE=
19525  BUILD_LIBSMARTCOLS_FALSE='#'
19526else
19527  BUILD_LIBSMARTCOLS_TRUE='#'
19528  BUILD_LIBSMARTCOLS_FALSE=
19529fi
19530
19531 if test "x$build_libsmartcols" = xyes -a "x$enable_static" = xyes; then
19532  BUILD_LIBSMARTCOLS_TESTS_TRUE=
19533  BUILD_LIBSMARTCOLS_TESTS_FALSE='#'
19534else
19535  BUILD_LIBSMARTCOLS_TESTS_TRUE='#'
19536  BUILD_LIBSMARTCOLS_TESTS_FALSE=
19537fi
19538
19539
19540
19541
19542
19543cat >>confdefs.h <<_ACEOF
19544#define LIBSMARTCOLS_VERSION "$LIBSMARTCOLS_VERSION"
19545_ACEOF
19546
19547
19548
19549
19550
19551  if test "x$ul_default_estate" != x; then
19552  enable_libfdisk=$ul_default_estate
19553  build_libfdisk=yes
19554  if test "x$ul_default_estate" = xno; then
19555    build_libfdisk=no
19556  fi
19557else
19558
19559  build_libfdisk=yes
19560  enable_libfdisk=check
19561fi
19562
19563
19564
19565
19566  if test "x$build_libfdisk" != xno; then
19567    case $enable_libfdisk:$build_libuuid in #(
19568    no:*)
19569      build_libfdisk=no ;;
19570    yes:yes)
19571      build_libfdisk=yes ;;
19572    yes:*)
19573      as_fn_error $? "libuuid is needed to build libfdisk" "$LINENO" 5;;
19574    check:yes)
19575      build_libfdisk=yes ;;
19576    check:*)
19577      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libuuid disabled; not building libfdisk" >&5
19578$as_echo "$as_me: WARNING: libuuid disabled; not building libfdisk" >&2;}
19579      build_libfdisk=no ;;
19580    esac
19581  fi
19582
19583
19584
19585
19586  if test "x$build_libfdisk" != xno; then
19587    case $enable_libfdisk:$build_libsmartcols in #(
19588    no:*)
19589      build_libfdisk=no ;;
19590    yes:yes)
19591      build_libfdisk=yes ;;
19592    yes:*)
19593      as_fn_error $? "libsmartcols is needed to build libfdisk" "$LINENO" 5;;
19594    check:yes)
19595      build_libfdisk=yes ;;
19596    check:*)
19597      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building libfdisk" >&5
19598$as_echo "$as_me: WARNING: libsmartcols disabled; not building libfdisk" >&2;}
19599      build_libfdisk=no ;;
19600    esac
19601  fi
19602
19603 if test "x$build_libfdisk" = xyes; then
19604  BUILD_LIBFDISK_TRUE=
19605  BUILD_LIBFDISK_FALSE='#'
19606else
19607  BUILD_LIBFDISK_TRUE='#'
19608  BUILD_LIBFDISK_FALSE=
19609fi
19610
19611
19612
19613
19614  if test "x$ul_default_estate" != x; then
19615  enable_fdisk=$ul_default_estate
19616  build_fdisk=yes
19617  if test "x$ul_default_estate" = xno; then
19618    build_fdisk=no
19619  fi
19620else
19621
19622  build_fdisk=yes
19623  enable_fdisk=check
19624fi
19625
19626
19627
19628
19629  if test "x$build_fdisk" != xno; then
19630    case $enable_fdisk:$build_libfdisk in #(
19631    no:*)
19632      build_fdisk=no ;;
19633    yes:yes)
19634      build_fdisk=yes ;;
19635    yes:*)
19636      as_fn_error $? "libfdisk is needed to build fdisk" "$LINENO" 5;;
19637    check:yes)
19638      build_fdisk=yes ;;
19639    check:*)
19640      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libfdisk disabled; not building fdisk" >&5
19641$as_echo "$as_me: WARNING: libfdisk disabled; not building fdisk" >&2;}
19642      build_fdisk=no ;;
19643    esac
19644  fi
19645
19646 if test "x$build_fdisk" = xyes; then
19647  BUILD_FDISK_TRUE=
19648  BUILD_FDISK_FALSE='#'
19649else
19650  BUILD_FDISK_TRUE='#'
19651  BUILD_FDISK_FALSE=
19652fi
19653
19654
19655
19656
19657
19658  if test "x$ul_default_estate" != x; then
19659  enable_sfdisk=$ul_default_estate
19660  build_sfdisk=yes
19661  if test "x$ul_default_estate" = xno; then
19662    build_sfdisk=no
19663  fi
19664else
19665
19666  build_sfdisk=yes
19667  enable_sfdisk=check
19668fi
19669
19670
19671
19672  if test "x$build_sfdisk" != xno; then
19673
19674    case $enable_sfdisk:"$host" in #(
19675    no:*)
19676      build_sfdisk=no ;;
19677    yes:sparc*)
19678      as_fn_error $? "sfdisk selected for unsupported architecture" "$LINENO" 5;;
19679    yes:*)
19680      build_sfdisk=yes ;;
19681    check:sparc*)
19682      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: excluded for $host architecture; not building sfdisk" >&5
19683$as_echo "$as_me: WARNING: excluded for $host architecture; not building sfdisk" >&2;}
19684      build_sfdisk=no ;;
19685    check:*)
19686      build_sfdisk=yes ;;
19687    esac
19688  fi
19689
19690 if test "x$build_sfdisk" = xyes; then
19691  BUILD_SFDISK_TRUE=
19692  BUILD_SFDISK_FALSE='#'
19693else
19694  BUILD_SFDISK_TRUE='#'
19695  BUILD_SFDISK_FALSE=
19696fi
19697
19698
19699
19700
19701
19702  if test "x$ul_default_estate" != x; then
19703  enable_cfdisk=$ul_default_estate
19704  build_cfdisk=yes
19705  if test "x$ul_default_estate" = xno; then
19706    build_cfdisk=no
19707  fi
19708else
19709
19710  build_cfdisk=yes
19711  enable_cfdisk=check
19712fi
19713
19714
19715
19716
19717  if test "x$build_cfdisk" != xno; then
19718    case $enable_cfdisk:$build_libfdisk in #(
19719    no:*)
19720      build_cfdisk=no ;;
19721    yes:yes)
19722      build_cfdisk=yes ;;
19723    yes:*)
19724      as_fn_error $? "libfdisk is needed to build cfdisk" "$LINENO" 5;;
19725    check:yes)
19726      build_cfdisk=yes ;;
19727    check:*)
19728      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libfdisk disabled; not building cfdisk" >&5
19729$as_echo "$as_me: WARNING: libfdisk disabled; not building cfdisk" >&2;}
19730      build_cfdisk=no ;;
19731    esac
19732  fi
19733
19734
19735
19736
19737  if test "x$build_cfdisk" != xno; then
19738    case $enable_cfdisk:$build_libsmartcols in #(
19739    no:*)
19740      build_cfdisk=no ;;
19741    yes:yes)
19742      build_cfdisk=yes ;;
19743    yes:*)
19744      as_fn_error $? "libsmartcols is needed to build cfdisk" "$LINENO" 5;;
19745    check:yes)
19746      build_cfdisk=yes ;;
19747    check:*)
19748      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building cfdisk" >&5
19749$as_echo "$as_me: WARNING: libsmartcols disabled; not building cfdisk" >&2;}
19750      build_cfdisk=no ;;
19751    esac
19752  fi
19753
19754
19755
19756
19757  if test "x$build_cfdisk" != xno; then
19758
19759    ul_haveone_cfdisk=no
19760
19761      if test "x$have_ncurses" = xyes; then
19762        ul_haveone_cfdisk=yes
19763      fi
19764
19765      if test "x$have_slang" = xyes; then
19766        ul_haveone_cfdisk=yes
19767      fi
19768
19769    case $enable_cfdisk:$ul_haveone_cfdisk in #(
19770    no:*)
19771      build_cfdisk=no ;;
19772    yes:yes)
19773      build_cfdisk=yes ;;
19774    yes:*)
19775      as_fn_error $? "cfdisk selected, but required ncurses or slang library not available" "$LINENO" 5;;
19776    check:yes)
19777      build_cfdisk=yes ;;
19778    check:*)
19779      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses or slang library not found; not building cfdisk" >&5
19780$as_echo "$as_me: WARNING: ncurses or slang library not found; not building cfdisk" >&2;}
19781      build_cfdisk=no ;;
19782    esac
19783  fi
19784
19785 if test "x$build_cfdisk" = xyes; then
19786  BUILD_CFDISK_TRUE=
19787  BUILD_CFDISK_FALSE='#'
19788else
19789  BUILD_CFDISK_TRUE='#'
19790  BUILD_CFDISK_FALSE=
19791fi
19792
19793
19794
19795# Check whether --enable-mount was given.
19796if test "${enable_mount+set}" = set; then :
19797  enableval=$enable_mount;
19798else
19799
19800
19801  if test "x$ul_default_estate" != x; then
19802    enable_mount=$ul_default_estate
19803  else
19804    enable_mount=check
19805  fi
19806
19807
19808fi
19809
19810
19811
19812  if test "x$enable_mount" = xno; then
19813   build_mount=no
19814else
19815   build_mount=yes
19816fi
19817
19818
19819
19820  if test "x$build_mount" != xno; then
19821
19822    case $enable_mount:$linux_os in #(
19823    no:*)
19824      build_mount=no ;;
19825    yes:yes)
19826      build_mount=yes ;;
19827    yes:*)
19828      as_fn_error $? "mount selected for non-linux system" "$LINENO" 5;;
19829    check:yes)
19830      build_mount=yes ;;
19831    check:*)
19832      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building mount" >&5
19833$as_echo "$as_me: WARNING: non-linux system; not building mount" >&2;}
19834      build_mount=no ;;
19835    esac
19836  fi
19837
19838
19839
19840
19841  if test "x$build_mount" != xno; then
19842    case $enable_mount:$build_libmount in #(
19843    no:*)
19844      build_mount=no ;;
19845    yes:yes)
19846      build_mount=yes ;;
19847    yes:*)
19848      as_fn_error $? "libmount is needed to build mount" "$LINENO" 5;;
19849    check:yes)
19850      build_mount=yes ;;
19851    check:*)
19852      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building mount" >&5
19853$as_echo "$as_me: WARNING: libmount disabled; not building mount" >&2;}
19854      build_mount=no ;;
19855    esac
19856  fi
19857
19858 if test "x$build_mount" = xyes; then
19859  BUILD_MOUNT_TRUE=
19860  BUILD_MOUNT_FALSE='#'
19861else
19862  BUILD_MOUNT_TRUE='#'
19863  BUILD_MOUNT_FALSE=
19864fi
19865
19866
19867
19868# Check whether --enable-losetup was given.
19869if test "${enable_losetup+set}" = set; then :
19870  enableval=$enable_losetup;
19871else
19872
19873
19874  if test "x$ul_default_estate" != x; then
19875    enable_losetup=$ul_default_estate
19876  else
19877    enable_losetup=check
19878  fi
19879
19880
19881fi
19882
19883
19884
19885  if test "x$enable_losetup" = xno; then
19886   build_losetup=no
19887else
19888   build_losetup=yes
19889fi
19890
19891
19892
19893  if test "x$build_losetup" != xno; then
19894
19895    case $enable_losetup:$linux_os in #(
19896    no:*)
19897      build_losetup=no ;;
19898    yes:yes)
19899      build_losetup=yes ;;
19900    yes:*)
19901      as_fn_error $? "losetup selected for non-linux system" "$LINENO" 5;;
19902    check:yes)
19903      build_losetup=yes ;;
19904    check:*)
19905      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building losetup" >&5
19906$as_echo "$as_me: WARNING: non-linux system; not building losetup" >&2;}
19907      build_losetup=no ;;
19908    esac
19909  fi
19910
19911
19912
19913
19914  if test "x$build_losetup" != xno; then
19915    case $enable_losetup:$build_libsmartcols in #(
19916    no:*)
19917      build_losetup=no ;;
19918    yes:yes)
19919      build_losetup=yes ;;
19920    yes:*)
19921      as_fn_error $? "libsmartcols is needed to build losetup" "$LINENO" 5;;
19922    check:yes)
19923      build_losetup=yes ;;
19924    check:*)
19925      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building losetup" >&5
19926$as_echo "$as_me: WARNING: libsmartcols disabled; not building losetup" >&2;}
19927      build_losetup=no ;;
19928    esac
19929  fi
19930
19931 if test "x$build_losetup" = xyes; then
19932  BUILD_LOSETUP_TRUE=
19933  BUILD_LOSETUP_FALSE='#'
19934else
19935  BUILD_LOSETUP_TRUE='#'
19936  BUILD_LOSETUP_FALSE=
19937fi
19938
19939
19940
19941# Check whether --enable-fsck was given.
19942if test "${enable_fsck+set}" = set; then :
19943  enableval=$enable_fsck;
19944else
19945
19946
19947  if test "x$ul_default_estate" != x; then
19948    enable_fsck=$ul_default_estate
19949  else
19950    enable_fsck=check
19951  fi
19952
19953
19954fi
19955
19956
19957
19958  if test "x$enable_fsck" = xno; then
19959   build_fsck=no
19960else
19961   build_fsck=yes
19962fi
19963
19964
19965
19966
19967  if test "x$build_fsck" != xno; then
19968    case $enable_fsck:$build_libmount in #(
19969    no:*)
19970      build_fsck=no ;;
19971    yes:yes)
19972      build_fsck=yes ;;
19973    yes:*)
19974      as_fn_error $? "libmount is needed to build fsck" "$LINENO" 5;;
19975    check:yes)
19976      build_fsck=yes ;;
19977    check:*)
19978      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building fsck" >&5
19979$as_echo "$as_me: WARNING: libmount disabled; not building fsck" >&2;}
19980      build_fsck=no ;;
19981    esac
19982  fi
19983
19984 if test "x$build_fsck" = xyes; then
19985  BUILD_FSCK_TRUE=
19986  BUILD_FSCK_FALSE='#'
19987else
19988  BUILD_FSCK_TRUE='#'
19989  BUILD_FSCK_FALSE=
19990fi
19991
19992
19993
19994# Check whether --enable-partx was given.
19995if test "${enable_partx+set}" = set; then :
19996  enableval=$enable_partx;
19997else
19998
19999
20000  if test "x$ul_default_estate" != x; then
20001    enable_partx=$ul_default_estate
20002  else
20003    enable_partx=check
20004  fi
20005
20006
20007fi
20008
20009
20010
20011  if test "x$enable_partx" = xno; then
20012   build_partx=no
20013else
20014   build_partx=yes
20015fi
20016
20017
20018
20019  if test "x$build_partx" != xno; then
20020
20021    case $enable_partx:$linux_os in #(
20022    no:*)
20023      build_partx=no ;;
20024    yes:yes)
20025      build_partx=yes ;;
20026    yes:*)
20027      as_fn_error $? "partx selected for non-linux system" "$LINENO" 5;;
20028    check:yes)
20029      build_partx=yes ;;
20030    check:*)
20031      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building partx" >&5
20032$as_echo "$as_me: WARNING: non-linux system; not building partx" >&2;}
20033      build_partx=no ;;
20034    esac
20035  fi
20036
20037
20038
20039
20040  if test "x$build_partx" != xno; then
20041    case $enable_partx:$build_libblkid in #(
20042    no:*)
20043      build_partx=no ;;
20044    yes:yes)
20045      build_partx=yes ;;
20046    yes:*)
20047      as_fn_error $? "libblkid is needed to build partx" "$LINENO" 5;;
20048    check:yes)
20049      build_partx=yes ;;
20050    check:*)
20051      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building partx" >&5
20052$as_echo "$as_me: WARNING: libblkid disabled; not building partx" >&2;}
20053      build_partx=no ;;
20054    esac
20055  fi
20056
20057
20058
20059
20060  if test "x$build_partx" != xno; then
20061    case $enable_partx:$build_libsmartcols in #(
20062    no:*)
20063      build_partx=no ;;
20064    yes:yes)
20065      build_partx=yes ;;
20066    yes:*)
20067      as_fn_error $? "libsmartcols is needed to build partx" "$LINENO" 5;;
20068    check:yes)
20069      build_partx=yes ;;
20070    check:*)
20071      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building partx" >&5
20072$as_echo "$as_me: WARNING: libsmartcols disabled; not building partx" >&2;}
20073      build_partx=no ;;
20074    esac
20075  fi
20076
20077 if test "x$build_partx" = xyes; then
20078  BUILD_PARTX_TRUE=
20079  BUILD_PARTX_FALSE='#'
20080else
20081  BUILD_PARTX_TRUE='#'
20082  BUILD_PARTX_FALSE=
20083fi
20084
20085
20086
20087# Check whether --enable-uuidd was given.
20088if test "${enable_uuidd+set}" = set; then :
20089  enableval=$enable_uuidd;
20090else
20091
20092
20093  if test "x$ul_default_estate" != x; then
20094    enable_uuidd=$ul_default_estate
20095  else
20096    enable_uuidd=check
20097  fi
20098
20099
20100fi
20101
20102
20103
20104  if test "x$enable_uuidd" = xno; then
20105   build_uuidd=no
20106else
20107   build_uuidd=yes
20108fi
20109
20110
20111
20112
20113  if test "x$build_uuidd" != xno; then
20114    case $enable_uuidd:$build_libuuid in #(
20115    no:*)
20116      build_uuidd=no ;;
20117    yes:yes)
20118      build_uuidd=yes ;;
20119    yes:*)
20120      as_fn_error $? "libuuid is needed to build uuidd" "$LINENO" 5;;
20121    check:yes)
20122      build_uuidd=yes ;;
20123    check:*)
20124      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libuuid disabled; not building uuidd" >&5
20125$as_echo "$as_me: WARNING: libuuid disabled; not building uuidd" >&2;}
20126      build_uuidd=no ;;
20127    esac
20128  fi
20129
20130if test "x$build_uuidd" = xyes; then :
20131
20132
20133$as_echo "#define HAVE_UUIDD 1" >>confdefs.h
20134
20135
20136fi
20137 if test "x$build_uuidd" = xyes; then
20138  BUILD_UUIDD_TRUE=
20139  BUILD_UUIDD_FALSE='#'
20140else
20141  BUILD_UUIDD_TRUE='#'
20142  BUILD_UUIDD_FALSE=
20143fi
20144
20145
20146
20147
20148
20149  if test "x$ul_default_estate" != x; then
20150  enable_uuidgen=$ul_default_estate
20151  build_uuidgen=yes
20152  if test "x$ul_default_estate" = xno; then
20153    build_uuidgen=no
20154  fi
20155else
20156
20157  build_uuidgen=yes
20158  enable_uuidgen=check
20159fi
20160
20161
20162
20163
20164  if test "x$build_uuidgen" != xno; then
20165    case $enable_uuidgen:$build_libuuid in #(
20166    no:*)
20167      build_uuidgen=no ;;
20168    yes:yes)
20169      build_uuidgen=yes ;;
20170    yes:*)
20171      as_fn_error $? "libuuid is needed to build uuidgen" "$LINENO" 5;;
20172    check:yes)
20173      build_uuidgen=yes ;;
20174    check:*)
20175      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libuuid disabled; not building uuidgen" >&5
20176$as_echo "$as_me: WARNING: libuuid disabled; not building uuidgen" >&2;}
20177      build_uuidgen=no ;;
20178    esac
20179  fi
20180
20181 if test "x$build_uuidgen" = xyes; then
20182  BUILD_UUIDGEN_TRUE=
20183  BUILD_UUIDGEN_FALSE='#'
20184else
20185  BUILD_UUIDGEN_TRUE='#'
20186  BUILD_UUIDGEN_FALSE=
20187fi
20188
20189
20190
20191
20192  if test "x$ul_default_estate" != x; then
20193  enable_blkid=$ul_default_estate
20194  build_blkid=yes
20195  if test "x$ul_default_estate" = xno; then
20196    build_blkid=no
20197  fi
20198else
20199
20200  build_blkid=yes
20201  enable_blkid=check
20202fi
20203
20204
20205
20206
20207  if test "x$build_blkid" != xno; then
20208    case $enable_blkid:$build_libblkid in #(
20209    no:*)
20210      build_blkid=no ;;
20211    yes:yes)
20212      build_blkid=yes ;;
20213    yes:*)
20214      as_fn_error $? "libblkid is needed to build blkid" "$LINENO" 5;;
20215    check:yes)
20216      build_blkid=yes ;;
20217    check:*)
20218      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building blkid" >&5
20219$as_echo "$as_me: WARNING: libblkid disabled; not building blkid" >&2;}
20220      build_blkid=no ;;
20221    esac
20222  fi
20223
20224 if test "x$build_blkid" = xyes; then
20225  BUILD_BLKID_TRUE=
20226  BUILD_BLKID_FALSE='#'
20227else
20228  BUILD_BLKID_TRUE='#'
20229  BUILD_BLKID_FALSE=
20230fi
20231
20232
20233
20234
20235  if test "x$ul_default_estate" != x; then
20236  enable_findfs=$ul_default_estate
20237  build_findfs=yes
20238  if test "x$ul_default_estate" = xno; then
20239    build_findfs=no
20240  fi
20241else
20242
20243  build_findfs=yes
20244  enable_findfs=check
20245fi
20246
20247
20248
20249
20250  if test "x$build_findfs" != xno; then
20251    case $enable_findfs:$build_libblkid in #(
20252    no:*)
20253      build_findfs=no ;;
20254    yes:yes)
20255      build_findfs=yes ;;
20256    yes:*)
20257      as_fn_error $? "libblkid is needed to build findfs" "$LINENO" 5;;
20258    check:yes)
20259      build_findfs=yes ;;
20260    check:*)
20261      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building findfs" >&5
20262$as_echo "$as_me: WARNING: libblkid disabled; not building findfs" >&2;}
20263      build_findfs=no ;;
20264    esac
20265  fi
20266
20267 if test "x$build_findfs" = xyes; then
20268  BUILD_FINDFS_TRUE=
20269  BUILD_FINDFS_FALSE='#'
20270else
20271  BUILD_FINDFS_TRUE='#'
20272  BUILD_FINDFS_FALSE=
20273fi
20274
20275
20276
20277
20278  if test "x$ul_default_estate" != x; then
20279  enable_wipefs=$ul_default_estate
20280  build_wipefs=yes
20281  if test "x$ul_default_estate" = xno; then
20282    build_wipefs=no
20283  fi
20284else
20285
20286  build_wipefs=yes
20287  enable_wipefs=check
20288fi
20289
20290
20291
20292
20293  if test "x$build_wipefs" != xno; then
20294    case $enable_wipefs:$build_libblkid in #(
20295    no:*)
20296      build_wipefs=no ;;
20297    yes:yes)
20298      build_wipefs=yes ;;
20299    yes:*)
20300      as_fn_error $? "libblkid is needed to build wipefs" "$LINENO" 5;;
20301    check:yes)
20302      build_wipefs=yes ;;
20303    check:*)
20304      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building wipefs" >&5
20305$as_echo "$as_me: WARNING: libblkid disabled; not building wipefs" >&2;}
20306      build_wipefs=no ;;
20307    esac
20308  fi
20309
20310 if test "x$build_wipefs" = xyes; then
20311  BUILD_WIPEFS_TRUE=
20312  BUILD_WIPEFS_FALSE='#'
20313else
20314  BUILD_WIPEFS_TRUE='#'
20315  BUILD_WIPEFS_FALSE=
20316fi
20317
20318
20319
20320
20321  if test "x$ul_default_estate" != x; then
20322  enable_findmnt=$ul_default_estate
20323  build_findmnt=yes
20324  if test "x$ul_default_estate" = xno; then
20325    build_findmnt=no
20326  fi
20327else
20328
20329  build_findmnt=yes
20330  enable_findmnt=check
20331fi
20332
20333
20334
20335
20336  if test "x$build_findmnt" != xno; then
20337    case $enable_findmnt:$build_libmount in #(
20338    no:*)
20339      build_findmnt=no ;;
20340    yes:yes)
20341      build_findmnt=yes ;;
20342    yes:*)
20343      as_fn_error $? "libmount is needed to build findmnt" "$LINENO" 5;;
20344    check:yes)
20345      build_findmnt=yes ;;
20346    check:*)
20347      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building findmnt" >&5
20348$as_echo "$as_me: WARNING: libmount disabled; not building findmnt" >&2;}
20349      build_findmnt=no ;;
20350    esac
20351  fi
20352
20353
20354
20355
20356  if test "x$build_findmnt" != xno; then
20357    case $enable_findmnt:$build_libsmartcols in #(
20358    no:*)
20359      build_findmnt=no ;;
20360    yes:yes)
20361      build_findmnt=yes ;;
20362    yes:*)
20363      as_fn_error $? "libsmartcols is needed to build findmnt" "$LINENO" 5;;
20364    check:yes)
20365      build_findmnt=yes ;;
20366    check:*)
20367      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building findmnt" >&5
20368$as_echo "$as_me: WARNING: libsmartcols disabled; not building findmnt" >&2;}
20369      build_findmnt=no ;;
20370    esac
20371  fi
20372
20373 if test "x$build_findmnt" = xyes; then
20374  BUILD_FINDMNT_TRUE=
20375  BUILD_FINDMNT_FALSE='#'
20376else
20377  BUILD_FINDMNT_TRUE='#'
20378  BUILD_FINDMNT_FALSE=
20379fi
20380
20381
20382
20383# Check whether --enable-mountpoint was given.
20384if test "${enable_mountpoint+set}" = set; then :
20385  enableval=$enable_mountpoint;
20386else
20387
20388
20389  if test "x$ul_default_estate" != x; then
20390    enable_mountpoint=$ul_default_estate
20391  else
20392    enable_mountpoint=check
20393  fi
20394
20395
20396fi
20397
20398
20399
20400  if test "x$enable_mountpoint" = xno; then
20401   build_mountpoint=no
20402else
20403   build_mountpoint=yes
20404fi
20405
20406
20407
20408
20409  if test "x$build_mountpoint" != xno; then
20410    case $enable_mountpoint:$build_libmount in #(
20411    no:*)
20412      build_mountpoint=no ;;
20413    yes:yes)
20414      build_mountpoint=yes ;;
20415    yes:*)
20416      as_fn_error $? "libmount is needed to build mountpoint" "$LINENO" 5;;
20417    check:yes)
20418      build_mountpoint=yes ;;
20419    check:*)
20420      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building mountpoint" >&5
20421$as_echo "$as_me: WARNING: libmount disabled; not building mountpoint" >&2;}
20422      build_mountpoint=no ;;
20423    esac
20424  fi
20425
20426 if test "x$build_mountpoint" = xyes; then
20427  BUILD_MOUNTPOINT_TRUE=
20428  BUILD_MOUNTPOINT_FALSE='#'
20429else
20430  BUILD_MOUNTPOINT_TRUE='#'
20431  BUILD_MOUNTPOINT_FALSE=
20432fi
20433
20434
20435
20436# Check whether --enable-fallocate was given.
20437if test "${enable_fallocate+set}" = set; then :
20438  enableval=$enable_fallocate;
20439else
20440
20441
20442  if test "x$ul_default_estate" != x; then
20443    enable_fallocate=$ul_default_estate
20444  else
20445    enable_fallocate=check
20446  fi
20447
20448
20449fi
20450
20451
20452
20453  if test "x$enable_fallocate" = xno; then
20454   build_fallocate=no
20455else
20456   build_fallocate=yes
20457fi
20458
20459
20460
20461  if test "x$build_fallocate" != xno; then
20462
20463    case $enable_fallocate:$linux_os in #(
20464    no:*)
20465      build_fallocate=no ;;
20466    yes:yes)
20467      build_fallocate=yes ;;
20468    yes:*)
20469      as_fn_error $? "fallocate selected for non-linux system" "$LINENO" 5;;
20470    check:yes)
20471      build_fallocate=yes ;;
20472    check:*)
20473      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building fallocate" >&5
20474$as_echo "$as_me: WARNING: non-linux system; not building fallocate" >&2;}
20475      build_fallocate=no ;;
20476    esac
20477  fi
20478
20479
20480
20481
20482
20483             if false; then
20484  HAVE_FALLOCATE_TRUE=
20485  HAVE_FALLOCATE_FALSE='#'
20486else
20487  HAVE_FALLOCATE_TRUE='#'
20488  HAVE_FALLOCATE_FALSE=
20489fi
20490
20491
20492  if test "x$build_fallocate" != xno; then
20493    if test "x$enable_fallocate" = xno; then
20494      build_fallocate=no
20495    else
20496
20497
20498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall fallocate" >&5
20499$as_echo_n "checking for syscall fallocate... " >&6; }
20500if ${ul_cv_syscall_fallocate+:} false; then :
20501  $as_echo_n "(cached) " >&6
20502else
20503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20504/* end confdefs.h.  */
20505
20506#include <sys/syscall.h>
20507#include <unistd.h>
20508
20509int
20510main ()
20511{
20512int test = SYS_fallocate;
20513  ;
20514  return 0;
20515}
20516_ACEOF
20517if ac_fn_c_try_compile "$LINENO"; then :
20518  syscall=SYS_fallocate
20519else
20520              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521/* end confdefs.h.  */
20522
20523#include <sys/syscall.h>
20524#include <unistd.h>
20525
20526int
20527main ()
20528{
20529int test = _NR_fallocate;
20530  ;
20531  return 0;
20532}
20533_ACEOF
20534if ac_fn_c_try_compile "$LINENO"; then :
20535  syscall=_NR_fallocate
20536else
20537
20538	  syscall=no
20539	  if test "x$linux_os" = xyes; then
20540	    case $host_cpu in
20541
20542	    esac
20543	  fi
20544
20545fi
20546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547
20548
20549fi
20550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551
20552    ul_cv_syscall_fallocate=$syscall
20553
20554fi
20555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_fallocate" >&5
20556$as_echo "$ul_cv_syscall_fallocate" >&6; }
20557   if test "x$ul_cv_syscall_fallocate" != xno; then
20558  HAVE_FALLOCATE_TRUE=
20559  HAVE_FALLOCATE_FALSE='#'
20560else
20561  HAVE_FALLOCATE_TRUE='#'
20562  HAVE_FALLOCATE_FALSE=
20563fi
20564
20565  case $ul_cv_syscall_fallocate in #(
20566  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall fallocate." >&5
20567$as_echo "$as_me: WARNING: Unable to detect syscall fallocate." >&2;} ;;
20568  SYS_*) ;;
20569  *)
20570cat >>confdefs.h <<_ACEOF
20571#define SYS_fallocate $ul_cv_syscall_fallocate
20572_ACEOF
20573 ;;
20574  esac
20575
20576      case $enable_fallocate:$ul_cv_syscall_fallocate in #(
20577      no:*)
20578        build_fallocate=no ;;
20579      yes:no)
20580        as_fn_error $? "fallocate selected but fallocate syscall not found" "$LINENO" 5 ;;
20581      check:no)
20582        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fallocate syscall not found; not building fallocate" >&5
20583$as_echo "$as_me: WARNING: fallocate syscall not found; not building fallocate" >&2;}
20584        build_fallocate=no ;;
20585      *)
20586                build_fallocate=yes ;;
20587      esac
20588    fi
20589  fi
20590
20591 if test "x$build_fallocate" = xyes; then
20592  BUILD_FALLOCATE_TRUE=
20593  BUILD_FALLOCATE_FALSE='#'
20594else
20595  BUILD_FALLOCATE_TRUE='#'
20596  BUILD_FALLOCATE_FALSE=
20597fi
20598
20599
20600if test "x$build_fallocate" = xyes; then :
20601
20602              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid fallocate() function" >&5
20603$as_echo_n "checking for valid fallocate() function... " >&6; }
20604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605/* end confdefs.h.  */
20606
20607#ifdef HAVE_UNISTD_H
20608# include <unistd.h>
20609#endif
20610#ifdef HAVE_SYS_TYPES_H
20611# include <sys/types.h>
20612#endif
20613#ifdef HAVE_LINUX_FALLOC_H
20614# include <linux/falloc.h>
20615#endif
20616#ifdef HAVE_FCNTL_H
20617# include <fcntl.h>
20618#endif
20619
20620int
20621main ()
20622{
20623
20624   long ret;
20625   ret = fallocate(0, FALLOC_FL_KEEP_SIZE, 0xfffffffful, 0xfffffffful);
20626   if (ret != 0) {
20627      return 1;
20628   }
20629
20630  ;
20631  return 0;
20632}
20633_ACEOF
20634if ac_fn_c_try_link "$LINENO"; then :
20635
20636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20637$as_echo "yes" >&6; }
20638
20639$as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
20640
20641else
20642
20643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20644$as_echo "no" >&6; }
20645fi
20646rm -f core conftest.err conftest.$ac_objext \
20647    conftest$ac_exeext conftest.$ac_ext
20648
20649fi
20650
20651
20652# Check whether --enable-unshare was given.
20653if test "${enable_unshare+set}" = set; then :
20654  enableval=$enable_unshare;
20655else
20656
20657
20658  if test "x$ul_default_estate" != x; then
20659    enable_unshare=$ul_default_estate
20660  else
20661    enable_unshare=check
20662  fi
20663
20664
20665fi
20666
20667
20668
20669  if test "x$enable_unshare" = xno; then
20670   build_unshare=no
20671else
20672   build_unshare=yes
20673fi
20674
20675
20676
20677  if test "x$build_unshare" != xno; then
20678
20679    case $enable_unshare:$linux_os in #(
20680    no:*)
20681      build_unshare=no ;;
20682    yes:yes)
20683      build_unshare=yes ;;
20684    yes:*)
20685      as_fn_error $? "unshare selected for non-linux system" "$LINENO" 5;;
20686    check:yes)
20687      build_unshare=yes ;;
20688    check:*)
20689      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building unshare" >&5
20690$as_echo "$as_me: WARNING: non-linux system; not building unshare" >&2;}
20691      build_unshare=no ;;
20692    esac
20693  fi
20694
20695
20696
20697
20698
20699             if false; then
20700  HAVE_UNSHARE_TRUE=
20701  HAVE_UNSHARE_FALSE='#'
20702else
20703  HAVE_UNSHARE_TRUE='#'
20704  HAVE_UNSHARE_FALSE=
20705fi
20706
20707
20708  if test "x$build_unshare" != xno; then
20709    if test "x$enable_unshare" = xno; then
20710      build_unshare=no
20711    else
20712
20713
20714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall unshare" >&5
20715$as_echo_n "checking for syscall unshare... " >&6; }
20716if ${ul_cv_syscall_unshare+:} false; then :
20717  $as_echo_n "(cached) " >&6
20718else
20719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720/* end confdefs.h.  */
20721
20722#include <sys/syscall.h>
20723#include <unistd.h>
20724
20725int
20726main ()
20727{
20728int test = SYS_unshare;
20729  ;
20730  return 0;
20731}
20732_ACEOF
20733if ac_fn_c_try_compile "$LINENO"; then :
20734  syscall=SYS_unshare
20735else
20736              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20737/* end confdefs.h.  */
20738
20739#include <sys/syscall.h>
20740#include <unistd.h>
20741
20742int
20743main ()
20744{
20745int test = _NR_unshare;
20746  ;
20747  return 0;
20748}
20749_ACEOF
20750if ac_fn_c_try_compile "$LINENO"; then :
20751  syscall=_NR_unshare
20752else
20753
20754	  syscall=no
20755	  if test "x$linux_os" = xyes; then
20756	    case $host_cpu in
20757
20758	    esac
20759	  fi
20760
20761fi
20762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763
20764
20765fi
20766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767
20768    ul_cv_syscall_unshare=$syscall
20769
20770fi
20771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_unshare" >&5
20772$as_echo "$ul_cv_syscall_unshare" >&6; }
20773   if test "x$ul_cv_syscall_unshare" != xno; then
20774  HAVE_UNSHARE_TRUE=
20775  HAVE_UNSHARE_FALSE='#'
20776else
20777  HAVE_UNSHARE_TRUE='#'
20778  HAVE_UNSHARE_FALSE=
20779fi
20780
20781  case $ul_cv_syscall_unshare in #(
20782  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall unshare." >&5
20783$as_echo "$as_me: WARNING: Unable to detect syscall unshare." >&2;} ;;
20784  SYS_*) ;;
20785  *)
20786cat >>confdefs.h <<_ACEOF
20787#define SYS_unshare $ul_cv_syscall_unshare
20788_ACEOF
20789 ;;
20790  esac
20791
20792      case $enable_unshare:$ul_cv_syscall_unshare in #(
20793      no:*)
20794        build_unshare=no ;;
20795      yes:no)
20796        as_fn_error $? "unshare selected but unshare syscall not found" "$LINENO" 5 ;;
20797      check:no)
20798        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unshare syscall not found; not building unshare" >&5
20799$as_echo "$as_me: WARNING: unshare syscall not found; not building unshare" >&2;}
20800        build_unshare=no ;;
20801      *)
20802                build_unshare=yes ;;
20803      esac
20804    fi
20805  fi
20806
20807 if test "x$build_unshare" = xyes; then
20808  BUILD_UNSHARE_TRUE=
20809  BUILD_UNSHARE_FALSE='#'
20810else
20811  BUILD_UNSHARE_TRUE='#'
20812  BUILD_UNSHARE_FALSE=
20813fi
20814
20815for ac_func in unshare
20816do :
20817  ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
20818if test "x$ac_cv_func_unshare" = xyes; then :
20819  cat >>confdefs.h <<_ACEOF
20820#define HAVE_UNSHARE 1
20821_ACEOF
20822
20823fi
20824done
20825
20826
20827# Check whether --enable-nsenter was given.
20828if test "${enable_nsenter+set}" = set; then :
20829  enableval=$enable_nsenter;
20830else
20831
20832
20833  if test "x$ul_default_estate" != x; then
20834    enable_nsenter=$ul_default_estate
20835  else
20836    enable_nsenter=check
20837  fi
20838
20839
20840fi
20841
20842
20843
20844  if test "x$enable_nsenter" = xno; then
20845   build_nsenter=no
20846else
20847   build_nsenter=yes
20848fi
20849
20850
20851
20852  if test "x$build_nsenter" != xno; then
20853
20854    case $enable_nsenter:$linux_os in #(
20855    no:*)
20856      build_nsenter=no ;;
20857    yes:yes)
20858      build_nsenter=yes ;;
20859    yes:*)
20860      as_fn_error $? "nsenter selected for non-linux system" "$LINENO" 5;;
20861    check:yes)
20862      build_nsenter=yes ;;
20863    check:*)
20864      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building nsenter" >&5
20865$as_echo "$as_me: WARNING: non-linux system; not building nsenter" >&2;}
20866      build_nsenter=no ;;
20867    esac
20868  fi
20869
20870
20871
20872
20873
20874             if false; then
20875  HAVE_SETNS_TRUE=
20876  HAVE_SETNS_FALSE='#'
20877else
20878  HAVE_SETNS_TRUE='#'
20879  HAVE_SETNS_FALSE=
20880fi
20881
20882
20883  if test "x$build_nsenter" != xno; then
20884    if test "x$enable_nsenter" = xno; then
20885      build_nsenter=no
20886    else
20887
20888
20889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall setns" >&5
20890$as_echo_n "checking for syscall setns... " >&6; }
20891if ${ul_cv_syscall_setns+:} false; then :
20892  $as_echo_n "(cached) " >&6
20893else
20894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895/* end confdefs.h.  */
20896
20897#include <sys/syscall.h>
20898#include <unistd.h>
20899
20900int
20901main ()
20902{
20903int test = SYS_setns;
20904  ;
20905  return 0;
20906}
20907_ACEOF
20908if ac_fn_c_try_compile "$LINENO"; then :
20909  syscall=SYS_setns
20910else
20911              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20912/* end confdefs.h.  */
20913
20914#include <sys/syscall.h>
20915#include <unistd.h>
20916
20917int
20918main ()
20919{
20920int test = _NR_setns;
20921  ;
20922  return 0;
20923}
20924_ACEOF
20925if ac_fn_c_try_compile "$LINENO"; then :
20926  syscall=_NR_setns
20927else
20928
20929	  syscall=no
20930	  if test "x$linux_os" = xyes; then
20931	    case $host_cpu in
20932
20933	    esac
20934	  fi
20935
20936fi
20937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938
20939
20940fi
20941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942
20943    ul_cv_syscall_setns=$syscall
20944
20945fi
20946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_setns" >&5
20947$as_echo "$ul_cv_syscall_setns" >&6; }
20948   if test "x$ul_cv_syscall_setns" != xno; then
20949  HAVE_SETNS_TRUE=
20950  HAVE_SETNS_FALSE='#'
20951else
20952  HAVE_SETNS_TRUE='#'
20953  HAVE_SETNS_FALSE=
20954fi
20955
20956  case $ul_cv_syscall_setns in #(
20957  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall setns." >&5
20958$as_echo "$as_me: WARNING: Unable to detect syscall setns." >&2;} ;;
20959  SYS_*) ;;
20960  *)
20961cat >>confdefs.h <<_ACEOF
20962#define SYS_setns $ul_cv_syscall_setns
20963_ACEOF
20964 ;;
20965  esac
20966
20967      case $enable_nsenter:$ul_cv_syscall_setns in #(
20968      no:*)
20969        build_nsenter=no ;;
20970      yes:no)
20971        as_fn_error $? "nsenter selected but setns syscall not found" "$LINENO" 5 ;;
20972      check:no)
20973        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: setns syscall not found; not building nsenter" >&5
20974$as_echo "$as_me: WARNING: setns syscall not found; not building nsenter" >&2;}
20975        build_nsenter=no ;;
20976      *)
20977                build_nsenter=yes ;;
20978      esac
20979    fi
20980  fi
20981
20982 if test "x$build_nsenter" = xyes; then
20983  BUILD_NSENTER_TRUE=
20984  BUILD_NSENTER_FALSE='#'
20985else
20986  BUILD_NSENTER_TRUE='#'
20987  BUILD_NSENTER_FALSE=
20988fi
20989
20990for ac_func in setns
20991do :
20992  ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
20993if test "x$ac_cv_func_setns" = xyes; then :
20994  cat >>confdefs.h <<_ACEOF
20995#define HAVE_SETNS 1
20996_ACEOF
20997
20998fi
20999done
21000
21001
21002
21003
21004  have_cap_ng=yes
21005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_apply in -lcap-ng" >&5
21006$as_echo_n "checking for capng_apply in -lcap-ng... " >&6; }
21007if ${ac_cv_lib_cap_ng_capng_apply+:} false; then :
21008  $as_echo_n "(cached) " >&6
21009else
21010  ac_check_lib_save_LIBS=$LIBS
21011LIBS="-lcap-ng  $LIBS"
21012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013/* end confdefs.h.  */
21014
21015/* Override any GCC internal prototype to avoid an error.
21016   Use char because int might match the return type of a GCC
21017   builtin and then its argument prototype would still apply.  */
21018#ifdef __cplusplus
21019extern "C"
21020#endif
21021char capng_apply ();
21022int
21023main ()
21024{
21025return capng_apply ();
21026  ;
21027  return 0;
21028}
21029_ACEOF
21030if ac_fn_c_try_link "$LINENO"; then :
21031  ac_cv_lib_cap_ng_capng_apply=yes
21032else
21033  ac_cv_lib_cap_ng_capng_apply=no
21034fi
21035rm -f core conftest.err conftest.$ac_objext \
21036    conftest$ac_exeext conftest.$ac_ext
21037LIBS=$ac_check_lib_save_LIBS
21038fi
21039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_apply" >&5
21040$as_echo "$ac_cv_lib_cap_ng_capng_apply" >&6; }
21041if test "x$ac_cv_lib_cap_ng_capng_apply" = xyes; then :
21042  cat >>confdefs.h <<_ACEOF
21043#define HAVE_LIBCAP_NG 1
21044_ACEOF
21045
21046  LIBS="-lcap-ng $LIBS"
21047
21048else
21049  have_cap_ng=no
21050fi
21051
21052   if test $have_cap_ng = yes; then
21053  HAVE_CAP_NG_TRUE=
21054  HAVE_CAP_NG_FALSE='#'
21055else
21056  HAVE_CAP_NG_TRUE='#'
21057  HAVE_CAP_NG_FALSE=
21058fi
21059
21060
21061# Check whether --enable-setpriv was given.
21062if test "${enable_setpriv+set}" = set; then :
21063  enableval=$enable_setpriv;
21064else
21065
21066
21067  if test "x$ul_default_estate" != x; then
21068    enable_setpriv=$ul_default_estate
21069  else
21070    enable_setpriv=check
21071  fi
21072
21073
21074fi
21075
21076
21077
21078  if test "x$enable_setpriv" = xno; then
21079   build_setpriv=no
21080else
21081   build_setpriv=yes
21082fi
21083
21084
21085
21086  if test "x$build_setpriv" != xno; then
21087
21088    case $enable_setpriv:$linux_os in #(
21089    no:*)
21090      build_setpriv=no ;;
21091    yes:yes)
21092      build_setpriv=yes ;;
21093    yes:*)
21094      as_fn_error $? "setpriv selected for non-linux system" "$LINENO" 5;;
21095    check:yes)
21096      build_setpriv=yes ;;
21097    check:*)
21098      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building setpriv" >&5
21099$as_echo "$as_me: WARNING: non-linux system; not building setpriv" >&2;}
21100      build_setpriv=no ;;
21101    esac
21102  fi
21103
21104
21105
21106
21107  if test "x$build_setpriv" != xno; then
21108
21109    ul_haveone_setpriv=no
21110
21111      if test "x$have_linux_securebits_h" = xyes; then
21112        ul_haveone_setpriv=yes
21113      fi
21114
21115    case $enable_setpriv:$ul_haveone_setpriv in #(
21116    no:*)
21117      build_setpriv=no ;;
21118    yes:yes)
21119      build_setpriv=yes ;;
21120    yes:*)
21121      as_fn_error $? "setpriv selected, but required securebits.h header file not available" "$LINENO" 5;;
21122    check:yes)
21123      build_setpriv=yes ;;
21124    check:*)
21125      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: securebits.h header file not found; not building setpriv" >&5
21126$as_echo "$as_me: WARNING: securebits.h header file not found; not building setpriv" >&2;}
21127      build_setpriv=no ;;
21128    esac
21129  fi
21130
21131
21132
21133
21134  if test "x$build_setpriv" != xno; then
21135
21136    ul_haveone_setpriv=no
21137
21138      if test "x$have_cap_ng" = xyes; then
21139        ul_haveone_setpriv=yes
21140      fi
21141
21142    case $enable_setpriv:$ul_haveone_setpriv in #(
21143    no:*)
21144      build_setpriv=no ;;
21145    yes:yes)
21146      build_setpriv=yes ;;
21147    yes:*)
21148      as_fn_error $? "setpriv selected, but required libcap-ng library not available" "$LINENO" 5;;
21149    check:yes)
21150      build_setpriv=yes ;;
21151    check:*)
21152      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcap-ng library not found; not building setpriv" >&5
21153$as_echo "$as_me: WARNING: libcap-ng library not found; not building setpriv" >&2;}
21154      build_setpriv=no ;;
21155    esac
21156  fi
21157
21158 if test "x$build_setpriv" = xyes; then
21159  BUILD_SETPRIV_TRUE=
21160  BUILD_SETPRIV_FALSE='#'
21161else
21162  BUILD_SETPRIV_TRUE='#'
21163  BUILD_SETPRIV_FALSE=
21164fi
21165
21166
21167
21168# Check whether --enable-eject was given.
21169if test "${enable_eject+set}" = set; then :
21170  enableval=$enable_eject;
21171else
21172
21173
21174  if test "x$ul_default_estate" != x; then
21175    enable_eject=$ul_default_estate
21176  else
21177    enable_eject=check
21178  fi
21179
21180
21181fi
21182
21183
21184
21185  if test "x$enable_eject" = xno; then
21186   build_eject=no
21187else
21188   build_eject=yes
21189fi
21190
21191
21192
21193  if test "x$build_eject" != xno; then
21194
21195    case $enable_eject:$linux_os in #(
21196    no:*)
21197      build_eject=no ;;
21198    yes:yes)
21199      build_eject=yes ;;
21200    yes:*)
21201      as_fn_error $? "eject selected for non-linux system" "$LINENO" 5;;
21202    check:yes)
21203      build_eject=yes ;;
21204    check:*)
21205      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building eject" >&5
21206$as_echo "$as_me: WARNING: non-linux system; not building eject" >&2;}
21207      build_eject=no ;;
21208    esac
21209  fi
21210
21211
21212
21213
21214  if test "x$build_eject" != xno; then
21215    case $enable_eject:$build_libmount in #(
21216    no:*)
21217      build_eject=no ;;
21218    yes:yes)
21219      build_eject=yes ;;
21220    yes:*)
21221      as_fn_error $? "libmount is needed to build eject" "$LINENO" 5;;
21222    check:yes)
21223      build_eject=yes ;;
21224    check:*)
21225      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building eject" >&5
21226$as_echo "$as_me: WARNING: libmount disabled; not building eject" >&2;}
21227      build_eject=no ;;
21228    esac
21229  fi
21230
21231 if test "x$build_eject" = xyes; then
21232  BUILD_EJECT_TRUE=
21233  BUILD_EJECT_FALSE='#'
21234else
21235  BUILD_EJECT_TRUE='#'
21236  BUILD_EJECT_FALSE=
21237fi
21238
21239
21240
21241# Check whether --enable-agetty was given.
21242if test "${enable_agetty+set}" = set; then :
21243  enableval=$enable_agetty;
21244else
21245
21246
21247  if test "x$ul_default_estate" != x; then
21248    enable_agetty=$ul_default_estate
21249  else
21250    enable_agetty=yes
21251  fi
21252
21253
21254fi
21255
21256
21257
21258  if test "x$enable_agetty" = xno; then
21259   build_agetty=no
21260else
21261   build_agetty=yes
21262fi
21263
21264 if test "x$build_agetty" = xyes; then
21265  BUILD_AGETTY_TRUE=
21266  BUILD_AGETTY_FALSE='#'
21267else
21268  BUILD_AGETTY_TRUE='#'
21269  BUILD_AGETTY_FALSE=
21270fi
21271
21272
21273
21274# Check whether --enable-cramfs was given.
21275if test "${enable_cramfs+set}" = set; then :
21276  enableval=$enable_cramfs;
21277else
21278
21279
21280  if test "x$ul_default_estate" != x; then
21281    enable_cramfs=$ul_default_estate
21282  else
21283    enable_cramfs=check
21284  fi
21285
21286
21287fi
21288
21289
21290
21291  if test "x$enable_cramfs" = xno; then
21292   build_cramfs=no
21293else
21294   build_cramfs=yes
21295fi
21296
21297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
21298$as_echo_n "checking for crc32 in -lz... " >&6; }
21299if ${ac_cv_lib_z_crc32+:} false; then :
21300  $as_echo_n "(cached) " >&6
21301else
21302  ac_check_lib_save_LIBS=$LIBS
21303LIBS="-lz  $LIBS"
21304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305/* end confdefs.h.  */
21306
21307/* Override any GCC internal prototype to avoid an error.
21308   Use char because int might match the return type of a GCC
21309   builtin and then its argument prototype would still apply.  */
21310#ifdef __cplusplus
21311extern "C"
21312#endif
21313char crc32 ();
21314int
21315main ()
21316{
21317return crc32 ();
21318  ;
21319  return 0;
21320}
21321_ACEOF
21322if ac_fn_c_try_link "$LINENO"; then :
21323  ac_cv_lib_z_crc32=yes
21324else
21325  ac_cv_lib_z_crc32=no
21326fi
21327rm -f core conftest.err conftest.$ac_objext \
21328    conftest$ac_exeext conftest.$ac_ext
21329LIBS=$ac_check_lib_save_LIBS
21330fi
21331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
21332$as_echo "$ac_cv_lib_z_crc32" >&6; }
21333if test "x$ac_cv_lib_z_crc32" = xyes; then :
21334  have_z=yes
21335else
21336  have_z=no
21337fi
21338
21339
21340
21341
21342  if test "x$build_cramfs" != xno; then
21343
21344    ul_haveone_cramfs=no
21345
21346      if test "x$have_z" = xyes; then
21347        ul_haveone_cramfs=yes
21348      fi
21349
21350    case $enable_cramfs:$ul_haveone_cramfs in #(
21351    no:*)
21352      build_cramfs=no ;;
21353    yes:yes)
21354      build_cramfs=yes ;;
21355    yes:*)
21356      as_fn_error $? "cramfs selected, but required z library not available" "$LINENO" 5;;
21357    check:yes)
21358      build_cramfs=yes ;;
21359    check:*)
21360      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: z library not found; not building cramfs" >&5
21361$as_echo "$as_me: WARNING: z library not found; not building cramfs" >&2;}
21362      build_cramfs=no ;;
21363    esac
21364  fi
21365
21366 if test "x$build_cramfs" = xyes; then
21367  BUILD_CRAMFS_TRUE=
21368  BUILD_CRAMFS_FALSE='#'
21369else
21370  BUILD_CRAMFS_TRUE='#'
21371  BUILD_CRAMFS_FALSE=
21372fi
21373
21374
21375
21376# Check whether --enable-bfs was given.
21377if test "${enable_bfs+set}" = set; then :
21378  enableval=$enable_bfs;
21379else
21380
21381
21382  if test "x$ul_default_estate" != x; then
21383    enable_bfs=$ul_default_estate
21384  else
21385    enable_bfs=yes
21386  fi
21387
21388
21389fi
21390
21391
21392
21393  if test "x$enable_bfs" = xno; then
21394   build_bfs=no
21395else
21396   build_bfs=yes
21397fi
21398
21399 if test "x$build_bfs" = xyes; then
21400  BUILD_BFS_TRUE=
21401  BUILD_BFS_FALSE='#'
21402else
21403  BUILD_BFS_TRUE='#'
21404  BUILD_BFS_FALSE=
21405fi
21406
21407
21408
21409# Check whether --enable-minix was given.
21410if test "${enable_minix+set}" = set; then :
21411  enableval=$enable_minix;
21412else
21413
21414
21415  if test "x$ul_default_estate" != x; then
21416    enable_minix=$ul_default_estate
21417  else
21418    enable_minix=yes
21419  fi
21420
21421
21422fi
21423
21424
21425
21426  if test "x$enable_minix" = xno; then
21427   build_minix=no
21428else
21429   build_minix=yes
21430fi
21431
21432 if test "x$build_minix" = xyes; then
21433  BUILD_MINIX_TRUE=
21434  BUILD_MINIX_FALSE='#'
21435else
21436  BUILD_MINIX_TRUE='#'
21437  BUILD_MINIX_FALSE=
21438fi
21439
21440
21441
21442# Check whether --enable-fdformat was given.
21443if test "${enable_fdformat+set}" = set; then :
21444  enableval=$enable_fdformat;
21445else
21446
21447
21448  if test "x$ul_default_estate" != x; then
21449    enable_fdformat=$ul_default_estate
21450  else
21451    enable_fdformat=check
21452  fi
21453
21454
21455fi
21456
21457
21458
21459  if test "x$enable_fdformat" = xno; then
21460   build_fdformat=no
21461else
21462   build_fdformat=yes
21463fi
21464
21465
21466
21467  if test "x$build_fdformat" != xno; then
21468
21469    case $enable_fdformat:$linux_os in #(
21470    no:*)
21471      build_fdformat=no ;;
21472    yes:yes)
21473      build_fdformat=yes ;;
21474    yes:*)
21475      as_fn_error $? "fdformat selected for non-linux system" "$LINENO" 5;;
21476    check:yes)
21477      build_fdformat=yes ;;
21478    check:*)
21479      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building fdformat" >&5
21480$as_echo "$as_me: WARNING: non-linux system; not building fdformat" >&2;}
21481      build_fdformat=no ;;
21482    esac
21483  fi
21484
21485 if test "x$build_fdformat" = xyes; then
21486  BUILD_FDFORMAT_TRUE=
21487  BUILD_FDFORMAT_FALSE='#'
21488else
21489  BUILD_FDFORMAT_TRUE='#'
21490  BUILD_FDFORMAT_FALSE=
21491fi
21492
21493
21494
21495# Check whether --enable-hwclock was given.
21496if test "${enable_hwclock+set}" = set; then :
21497  enableval=$enable_hwclock;
21498else
21499
21500
21501  if test "x$ul_default_estate" != x; then
21502    enable_hwclock=$ul_default_estate
21503  else
21504    enable_hwclock=check
21505  fi
21506
21507
21508fi
21509
21510have_linuxdummy=$linux_os
21511
21512
21513
21514  if test "x$enable_hwclock" = xno; then
21515   build_hwclock=no
21516else
21517   build_hwclock=yes
21518fi
21519
21520
21521
21522
21523  if test "x$build_hwclock" != xno; then
21524
21525    ul_haveone_hwclock=no
21526
21527      if test "x$have_io" = xyes; then
21528        ul_haveone_hwclock=yes
21529      fi
21530
21531      if test "x$have_linuxdummy" = xyes; then
21532        ul_haveone_hwclock=yes
21533      fi
21534
21535    case $enable_hwclock:$ul_haveone_hwclock in #(
21536    no:*)
21537      build_hwclock=no ;;
21538    yes:yes)
21539      build_hwclock=yes ;;
21540    yes:*)
21541      as_fn_error $? "hwclock selected, but required ioperm iopl function or Linux not available" "$LINENO" 5;;
21542    check:yes)
21543      build_hwclock=yes ;;
21544    check:*)
21545      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ioperm iopl function or Linux not found; not building hwclock" >&5
21546$as_echo "$as_me: WARNING: ioperm iopl function or Linux not found; not building hwclock" >&2;}
21547      build_hwclock=no ;;
21548    esac
21549  fi
21550
21551 if test "x$build_hwclock" = xyes; then
21552  BUILD_HWCLOCK_TRUE=
21553  BUILD_HWCLOCK_FALSE='#'
21554else
21555  BUILD_HWCLOCK_TRUE='#'
21556  BUILD_HWCLOCK_FALSE=
21557fi
21558
21559
21560
21561
21562
21563  if test "x$ul_default_estate" != x; then
21564  enable_mkfs=$ul_default_estate
21565  build_mkfs=yes
21566  if test "x$ul_default_estate" = xno; then
21567    build_mkfs=no
21568  fi
21569else
21570
21571  build_mkfs=yes
21572  enable_mkfs=yes
21573fi
21574
21575 if test "x$build_mkfs" = xyes; then
21576  BUILD_MKFS_TRUE=
21577  BUILD_MKFS_FALSE='#'
21578else
21579  BUILD_MKFS_TRUE='#'
21580  BUILD_MKFS_FALSE=
21581fi
21582
21583
21584
21585
21586  if test "x$ul_default_estate" != x; then
21587  enable_isosize=$ul_default_estate
21588  build_isosize=yes
21589  if test "x$ul_default_estate" = xno; then
21590    build_isosize=no
21591  fi
21592else
21593
21594  build_isosize=yes
21595  enable_isosize=yes
21596fi
21597
21598 if test "x$build_isosize" = xyes; then
21599  BUILD_ISOSIZE_TRUE=
21600  BUILD_ISOSIZE_FALSE='#'
21601else
21602  BUILD_ISOSIZE_TRUE='#'
21603  BUILD_ISOSIZE_FALSE=
21604fi
21605
21606
21607
21608
21609
21610  if test "x$ul_default_estate" != x; then
21611  enable_fstrim=$ul_default_estate
21612  build_fstrim=yes
21613  if test "x$ul_default_estate" = xno; then
21614    build_fstrim=no
21615  fi
21616else
21617
21618  build_fstrim=yes
21619  enable_fstrim=check
21620fi
21621
21622
21623
21624  if test "x$build_fstrim" != xno; then
21625
21626    case $enable_fstrim:$linux_os in #(
21627    no:*)
21628      build_fstrim=no ;;
21629    yes:yes)
21630      build_fstrim=yes ;;
21631    yes:*)
21632      as_fn_error $? "fstrim selected for non-linux system" "$LINENO" 5;;
21633    check:yes)
21634      build_fstrim=yes ;;
21635    check:*)
21636      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building fstrim" >&5
21637$as_echo "$as_me: WARNING: non-linux system; not building fstrim" >&2;}
21638      build_fstrim=no ;;
21639    esac
21640  fi
21641
21642
21643
21644
21645  if test "x$build_fstrim" != xno; then
21646    case $enable_fstrim:$build_libmount in #(
21647    no:*)
21648      build_fstrim=no ;;
21649    yes:yes)
21650      build_fstrim=yes ;;
21651    yes:*)
21652      as_fn_error $? "libmount is needed to build fstrim" "$LINENO" 5;;
21653    check:yes)
21654      build_fstrim=yes ;;
21655    check:*)
21656      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building fstrim" >&5
21657$as_echo "$as_me: WARNING: libmount disabled; not building fstrim" >&2;}
21658      build_fstrim=no ;;
21659    esac
21660  fi
21661
21662 if test "x$build_fstrim" = xyes; then
21663  BUILD_FSTRIM_TRUE=
21664  BUILD_FSTRIM_FALSE='#'
21665else
21666  BUILD_FSTRIM_TRUE='#'
21667  BUILD_FSTRIM_FALSE=
21668fi
21669
21670
21671
21672
21673
21674  if test "x$ul_default_estate" != x; then
21675  enable_swapon=$ul_default_estate
21676  build_swapon=yes
21677  if test "x$ul_default_estate" = xno; then
21678    build_swapon=no
21679  fi
21680else
21681
21682  build_swapon=yes
21683  enable_swapon=check
21684fi
21685
21686
21687
21688  if test "x$build_swapon" != xno; then
21689
21690    case $enable_swapon:$linux_os in #(
21691    no:*)
21692      build_swapon=no ;;
21693    yes:yes)
21694      build_swapon=yes ;;
21695    yes:*)
21696      as_fn_error $? "swapon selected for non-linux system" "$LINENO" 5;;
21697    check:yes)
21698      build_swapon=yes ;;
21699    check:*)
21700      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building swapon" >&5
21701$as_echo "$as_me: WARNING: non-linux system; not building swapon" >&2;}
21702      build_swapon=no ;;
21703    esac
21704  fi
21705
21706
21707
21708
21709  if test "x$build_swapon" != xno; then
21710    case $enable_swapon:$build_libblkid in #(
21711    no:*)
21712      build_swapon=no ;;
21713    yes:yes)
21714      build_swapon=yes ;;
21715    yes:*)
21716      as_fn_error $? "libblkid is needed to build swapon" "$LINENO" 5;;
21717    check:yes)
21718      build_swapon=yes ;;
21719    check:*)
21720      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building swapon" >&5
21721$as_echo "$as_me: WARNING: libblkid disabled; not building swapon" >&2;}
21722      build_swapon=no ;;
21723    esac
21724  fi
21725
21726
21727
21728
21729  if test "x$build_swapon" != xno; then
21730    case $enable_swapon:$build_libmount in #(
21731    no:*)
21732      build_swapon=no ;;
21733    yes:yes)
21734      build_swapon=yes ;;
21735    yes:*)
21736      as_fn_error $? "libmount is needed to build swapon" "$LINENO" 5;;
21737    check:yes)
21738      build_swapon=yes ;;
21739    check:*)
21740      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building swapon" >&5
21741$as_echo "$as_me: WARNING: libmount disabled; not building swapon" >&2;}
21742      build_swapon=no ;;
21743    esac
21744  fi
21745
21746
21747
21748
21749  if test "x$build_swapon" != xno; then
21750    case $enable_swapon:$build_libsmartcols in #(
21751    no:*)
21752      build_swapon=no ;;
21753    yes:yes)
21754      build_swapon=yes ;;
21755    yes:*)
21756      as_fn_error $? "libsmartcols is needed to build swapon" "$LINENO" 5;;
21757    check:yes)
21758      build_swapon=yes ;;
21759    check:*)
21760      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building swapon" >&5
21761$as_echo "$as_me: WARNING: libsmartcols disabled; not building swapon" >&2;}
21762      build_swapon=no ;;
21763    esac
21764  fi
21765
21766 if test "x$build_swapon" = xyes; then
21767  BUILD_SWAPON_TRUE=
21768  BUILD_SWAPON_FALSE='#'
21769else
21770  BUILD_SWAPON_TRUE='#'
21771  BUILD_SWAPON_FALSE=
21772fi
21773
21774
21775
21776
21777
21778  if test "x$ul_default_estate" != x; then
21779  enable_lsblk=$ul_default_estate
21780  build_lsblk=yes
21781  if test "x$ul_default_estate" = xno; then
21782    build_lsblk=no
21783  fi
21784else
21785
21786  build_lsblk=yes
21787  enable_lsblk=check
21788fi
21789
21790
21791
21792  if test "x$build_lsblk" != xno; then
21793
21794    case $enable_lsblk:$linux_os in #(
21795    no:*)
21796      build_lsblk=no ;;
21797    yes:yes)
21798      build_lsblk=yes ;;
21799    yes:*)
21800      as_fn_error $? "lsblk selected for non-linux system" "$LINENO" 5;;
21801    check:yes)
21802      build_lsblk=yes ;;
21803    check:*)
21804      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building lsblk" >&5
21805$as_echo "$as_me: WARNING: non-linux system; not building lsblk" >&2;}
21806      build_lsblk=no ;;
21807    esac
21808  fi
21809
21810
21811
21812
21813  if test "x$build_lsblk" != xno; then
21814    case $enable_lsblk:$build_libblkid in #(
21815    no:*)
21816      build_lsblk=no ;;
21817    yes:yes)
21818      build_lsblk=yes ;;
21819    yes:*)
21820      as_fn_error $? "libblkid is needed to build lsblk" "$LINENO" 5;;
21821    check:yes)
21822      build_lsblk=yes ;;
21823    check:*)
21824      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building lsblk" >&5
21825$as_echo "$as_me: WARNING: libblkid disabled; not building lsblk" >&2;}
21826      build_lsblk=no ;;
21827    esac
21828  fi
21829
21830
21831
21832
21833  if test "x$build_lsblk" != xno; then
21834    case $enable_lsblk:$build_libmount in #(
21835    no:*)
21836      build_lsblk=no ;;
21837    yes:yes)
21838      build_lsblk=yes ;;
21839    yes:*)
21840      as_fn_error $? "libmount is needed to build lsblk" "$LINENO" 5;;
21841    check:yes)
21842      build_lsblk=yes ;;
21843    check:*)
21844      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building lsblk" >&5
21845$as_echo "$as_me: WARNING: libmount disabled; not building lsblk" >&2;}
21846      build_lsblk=no ;;
21847    esac
21848  fi
21849
21850
21851
21852
21853  if test "x$build_lsblk" != xno; then
21854    case $enable_lsblk:$build_libsmartcols in #(
21855    no:*)
21856      build_lsblk=no ;;
21857    yes:yes)
21858      build_lsblk=yes ;;
21859    yes:*)
21860      as_fn_error $? "libsmartcols is needed to build lsblk" "$LINENO" 5;;
21861    check:yes)
21862      build_lsblk=yes ;;
21863    check:*)
21864      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building lsblk" >&5
21865$as_echo "$as_me: WARNING: libsmartcols disabled; not building lsblk" >&2;}
21866      build_lsblk=no ;;
21867    esac
21868  fi
21869
21870 if test "x$build_lsblk" = xyes; then
21871  BUILD_LSBLK_TRUE=
21872  BUILD_LSBLK_FALSE='#'
21873else
21874  BUILD_LSBLK_TRUE='#'
21875  BUILD_LSBLK_FALSE=
21876fi
21877
21878
21879
21880
21881
21882  if test "x$ul_default_estate" != x; then
21883  enable_lscpu=$ul_default_estate
21884  build_lscpu=yes
21885  if test "x$ul_default_estate" = xno; then
21886    build_lscpu=no
21887  fi
21888else
21889
21890  build_lscpu=yes
21891  enable_lscpu=check
21892fi
21893
21894
21895
21896  if test "x$build_lscpu" != xno; then
21897
21898    case $enable_lscpu:$linux_os in #(
21899    no:*)
21900      build_lscpu=no ;;
21901    yes:yes)
21902      build_lscpu=yes ;;
21903    yes:*)
21904      as_fn_error $? "lscpu selected for non-linux system" "$LINENO" 5;;
21905    check:yes)
21906      build_lscpu=yes ;;
21907    check:*)
21908      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building lscpu" >&5
21909$as_echo "$as_me: WARNING: non-linux system; not building lscpu" >&2;}
21910      build_lscpu=no ;;
21911    esac
21912  fi
21913
21914
21915
21916
21917  if test "x$build_lscpu" != xno; then
21918    case $enable_lscpu:$build_libsmartcols in #(
21919    no:*)
21920      build_lscpu=no ;;
21921    yes:yes)
21922      build_lscpu=yes ;;
21923    yes:*)
21924      as_fn_error $? "libsmartcols is needed to build lscpu" "$LINENO" 5;;
21925    check:yes)
21926      build_lscpu=yes ;;
21927    check:*)
21928      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building lscpu" >&5
21929$as_echo "$as_me: WARNING: libsmartcols disabled; not building lscpu" >&2;}
21930      build_lscpu=no ;;
21931    esac
21932  fi
21933
21934
21935
21936
21937  if test "x$build_lscpu" != xno; then
21938
21939    ul_haveone_lscpu=no
21940
21941      if test "x$have_cpu_set_t" = xyes; then
21942        ul_haveone_lscpu=yes
21943      fi
21944
21945    case $enable_lscpu:$ul_haveone_lscpu in #(
21946    no:*)
21947      build_lscpu=no ;;
21948    yes:yes)
21949      build_lscpu=yes ;;
21950    yes:*)
21951      as_fn_error $? "lscpu selected, but required cpu_set_t type not available" "$LINENO" 5;;
21952    check:yes)
21953      build_lscpu=yes ;;
21954    check:*)
21955      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cpu_set_t type not found; not building lscpu" >&5
21956$as_echo "$as_me: WARNING: cpu_set_t type not found; not building lscpu" >&2;}
21957      build_lscpu=no ;;
21958    esac
21959  fi
21960
21961 if test "x$build_lscpu" = xyes; then
21962  BUILD_LSCPU_TRUE=
21963  BUILD_LSCPU_FALSE='#'
21964else
21965  BUILD_LSCPU_TRUE='#'
21966  BUILD_LSCPU_FALSE=
21967fi
21968
21969
21970
21971
21972
21973  if test "x$ul_default_estate" != x; then
21974  enable_lslogins=$ul_default_estate
21975  build_lslogins=yes
21976  if test "x$ul_default_estate" = xno; then
21977    build_lslogins=no
21978  fi
21979else
21980
21981  build_lslogins=yes
21982  enable_lslogins=check
21983fi
21984
21985
21986
21987
21988  if test "x$build_lslogins" != xno; then
21989    case $enable_lslogins:$build_libsmartcols in #(
21990    no:*)
21991      build_lslogins=no ;;
21992    yes:yes)
21993      build_lslogins=yes ;;
21994    yes:*)
21995      as_fn_error $? "libsmartcols is needed to build lslogins" "$LINENO" 5;;
21996    check:yes)
21997      build_lslogins=yes ;;
21998    check:*)
21999      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building lslogins" >&5
22000$as_echo "$as_me: WARNING: libsmartcols disabled; not building lslogins" >&2;}
22001      build_lslogins=no ;;
22002    esac
22003  fi
22004
22005 if test "x$build_lslogins" = xyes; then
22006  BUILD_LSLOGINS_TRUE=
22007  BUILD_LSLOGINS_FALSE='#'
22008else
22009  BUILD_LSLOGINS_TRUE='#'
22010  BUILD_LSLOGINS_FALSE=
22011fi
22012
22013
22014
22015
22016
22017  if test "x$ul_default_estate" != x; then
22018  enable_chcpu=$ul_default_estate
22019  build_chcpu=yes
22020  if test "x$ul_default_estate" = xno; then
22021    build_chcpu=no
22022  fi
22023else
22024
22025  build_chcpu=yes
22026  enable_chcpu=check
22027fi
22028
22029
22030
22031  if test "x$build_chcpu" != xno; then
22032
22033    case $enable_chcpu:$linux_os in #(
22034    no:*)
22035      build_chcpu=no ;;
22036    yes:yes)
22037      build_chcpu=yes ;;
22038    yes:*)
22039      as_fn_error $? "chcpu selected for non-linux system" "$LINENO" 5;;
22040    check:yes)
22041      build_chcpu=yes ;;
22042    check:*)
22043      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building chcpu" >&5
22044$as_echo "$as_me: WARNING: non-linux system; not building chcpu" >&2;}
22045      build_chcpu=no ;;
22046    esac
22047  fi
22048
22049
22050
22051
22052  if test "x$build_chcpu" != xno; then
22053
22054    ul_haveone_chcpu=no
22055
22056      if test "x$have_cpu_set_t" = xyes; then
22057        ul_haveone_chcpu=yes
22058      fi
22059
22060    case $enable_chcpu:$ul_haveone_chcpu in #(
22061    no:*)
22062      build_chcpu=no ;;
22063    yes:yes)
22064      build_chcpu=yes ;;
22065    yes:*)
22066      as_fn_error $? "chcpu selected, but required cpu_set_t type not available" "$LINENO" 5;;
22067    check:yes)
22068      build_chcpu=yes ;;
22069    check:*)
22070      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cpu_set_t type not found; not building chcpu" >&5
22071$as_echo "$as_me: WARNING: cpu_set_t type not found; not building chcpu" >&2;}
22072      build_chcpu=no ;;
22073    esac
22074  fi
22075
22076 if test "x$build_chcpu" = xyes; then
22077  BUILD_CHCPU_TRUE=
22078  BUILD_CHCPU_FALSE='#'
22079else
22080  BUILD_CHCPU_TRUE='#'
22081  BUILD_CHCPU_FALSE=
22082fi
22083
22084
22085
22086# Check whether --enable-wdctl was given.
22087if test "${enable_wdctl+set}" = set; then :
22088  enableval=$enable_wdctl;
22089else
22090
22091
22092  if test "x$ul_default_estate" != x; then
22093    enable_wdctl=$ul_default_estate
22094  else
22095    enable_wdctl=check
22096  fi
22097
22098
22099fi
22100
22101
22102
22103  if test "x$enable_wdctl" = xno; then
22104   build_wdctl=no
22105else
22106   build_wdctl=yes
22107fi
22108
22109
22110
22111  if test "x$build_wdctl" != xno; then
22112
22113    case $enable_wdctl:$linux_os in #(
22114    no:*)
22115      build_wdctl=no ;;
22116    yes:yes)
22117      build_wdctl=yes ;;
22118    yes:*)
22119      as_fn_error $? "wdctl selected for non-linux system" "$LINENO" 5;;
22120    check:yes)
22121      build_wdctl=yes ;;
22122    check:*)
22123      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building wdctl" >&5
22124$as_echo "$as_me: WARNING: non-linux system; not building wdctl" >&2;}
22125      build_wdctl=no ;;
22126    esac
22127  fi
22128
22129
22130
22131
22132  if test "x$build_wdctl" != xno; then
22133    case $enable_wdctl:$build_libsmartcols in #(
22134    no:*)
22135      build_wdctl=no ;;
22136    yes:yes)
22137      build_wdctl=yes ;;
22138    yes:*)
22139      as_fn_error $? "libsmartcols is needed to build wdctl" "$LINENO" 5;;
22140    check:yes)
22141      build_wdctl=yes ;;
22142    check:*)
22143      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building wdctl" >&5
22144$as_echo "$as_me: WARNING: libsmartcols disabled; not building wdctl" >&2;}
22145      build_wdctl=no ;;
22146    esac
22147  fi
22148
22149
22150
22151
22152  if test "x$build_wdctl" != xno; then
22153
22154    ul_haveone_wdctl=no
22155
22156      if test "x$have_linux_watchdog_h" = xyes; then
22157        ul_haveone_wdctl=yes
22158      fi
22159
22160    case $enable_wdctl:$ul_haveone_wdctl in #(
22161    no:*)
22162      build_wdctl=no ;;
22163    yes:yes)
22164      build_wdctl=yes ;;
22165    yes:*)
22166      as_fn_error $? "wdctl selected, but required linux/watchdog.h header file not available" "$LINENO" 5;;
22167    check:yes)
22168      build_wdctl=yes ;;
22169    check:*)
22170      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/watchdog.h header file not found; not building wdctl" >&5
22171$as_echo "$as_me: WARNING: linux/watchdog.h header file not found; not building wdctl" >&2;}
22172      build_wdctl=no ;;
22173    esac
22174  fi
22175
22176 if test "x$build_wdctl" = xyes; then
22177  BUILD_WDCTL_TRUE=
22178  BUILD_WDCTL_FALSE='#'
22179else
22180  BUILD_WDCTL_TRUE='#'
22181  BUILD_WDCTL_FALSE=
22182fi
22183
22184
22185
22186
22187
22188  if test "x$ul_default_estate" != x; then
22189  enable_swaplabel=$ul_default_estate
22190  build_swaplabel=yes
22191  if test "x$ul_default_estate" = xno; then
22192    build_swaplabel=no
22193  fi
22194else
22195
22196  build_swaplabel=yes
22197  enable_swaplabel=check
22198fi
22199
22200
22201
22202
22203  if test "x$build_swaplabel" != xno; then
22204    case $enable_swaplabel:$build_libblkid in #(
22205    no:*)
22206      build_swaplabel=no ;;
22207    yes:yes)
22208      build_swaplabel=yes ;;
22209    yes:*)
22210      as_fn_error $? "libblkid is needed to build swaplabel" "$LINENO" 5;;
22211    check:yes)
22212      build_swaplabel=yes ;;
22213    check:*)
22214      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libblkid disabled; not building swaplabel" >&5
22215$as_echo "$as_me: WARNING: libblkid disabled; not building swaplabel" >&2;}
22216      build_swaplabel=no ;;
22217    esac
22218  fi
22219
22220 if test "x$build_swaplabel" = xyes; then
22221  BUILD_SWAPLABEL_TRUE=
22222  BUILD_SWAPLABEL_FALSE='#'
22223else
22224  BUILD_SWAPLABEL_TRUE='#'
22225  BUILD_SWAPLABEL_FALSE=
22226fi
22227
22228
22229
22230
22231
22232  if test "x$ul_default_estate" != x; then
22233  enable_mkswap=$ul_default_estate
22234  build_mkswap=yes
22235  if test "x$ul_default_estate" = xno; then
22236    build_mkswap=no
22237  fi
22238else
22239
22240  build_mkswap=yes
22241  enable_mkswap=yes
22242fi
22243
22244 if test "x$build_mkswap" = xyes; then
22245  BUILD_MKSWAP_TRUE=
22246  BUILD_MKSWAP_FALSE='#'
22247else
22248  BUILD_MKSWAP_TRUE='#'
22249  BUILD_MKSWAP_FALSE=
22250fi
22251
22252if test "x$build_mkswap" = xyes -a "x$build_libuuid" != xyes; then :
22253
22254  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&5
22255$as_echo "$as_me: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&2;}
22256
22257fi
22258
22259
22260
22261  if test "x$ul_default_estate" != x; then
22262  enable_cal=$ul_default_estate
22263  build_cal=yes
22264  if test "x$ul_default_estate" = xno; then
22265    build_cal=no
22266  fi
22267else
22268
22269  build_cal=yes
22270  enable_cal=yes
22271fi
22272
22273 if test "x$build_cal" = xyes; then
22274  BUILD_CAL_TRUE=
22275  BUILD_CAL_FALSE='#'
22276else
22277  BUILD_CAL_TRUE='#'
22278  BUILD_CAL_FALSE=
22279fi
22280
22281
22282
22283
22284  if test "x$ul_default_estate" != x; then
22285  enable_logger=$ul_default_estate
22286  build_logger=yes
22287  if test "x$ul_default_estate" = xno; then
22288    build_logger=no
22289  fi
22290else
22291
22292  build_logger=yes
22293  enable_logger=yes
22294fi
22295
22296 if test "x$build_logger" = xyes; then
22297  BUILD_LOGGER_TRUE=
22298  BUILD_LOGGER_FALSE='#'
22299else
22300  BUILD_LOGGER_TRUE='#'
22301  BUILD_LOGGER_FALSE=
22302fi
22303
22304
22305
22306
22307  if test "x$ul_default_estate" != x; then
22308  enable_look=$ul_default_estate
22309  build_look=yes
22310  if test "x$ul_default_estate" = xno; then
22311    build_look=no
22312  fi
22313else
22314
22315  build_look=yes
22316  enable_look=yes
22317fi
22318
22319 if test "x$build_look" = xyes; then
22320  BUILD_LOOK_TRUE=
22321  BUILD_LOOK_FALSE='#'
22322else
22323  BUILD_LOOK_TRUE='#'
22324  BUILD_LOOK_FALSE=
22325fi
22326
22327
22328
22329
22330  if test "x$ul_default_estate" != x; then
22331  enable_mcookie=$ul_default_estate
22332  build_mcookie=yes
22333  if test "x$ul_default_estate" = xno; then
22334    build_mcookie=no
22335  fi
22336else
22337
22338  build_mcookie=yes
22339  enable_mcookie=yes
22340fi
22341
22342 if test "x$build_mcookie" = xyes; then
22343  BUILD_MCOOKIE_TRUE=
22344  BUILD_MCOOKIE_FALSE='#'
22345else
22346  BUILD_MCOOKIE_TRUE='#'
22347  BUILD_MCOOKIE_FALSE=
22348fi
22349
22350
22351
22352
22353  if test "x$ul_default_estate" != x; then
22354  enable_namei=$ul_default_estate
22355  build_namei=yes
22356  if test "x$ul_default_estate" = xno; then
22357    build_namei=no
22358  fi
22359else
22360
22361  build_namei=yes
22362  enable_namei=yes
22363fi
22364
22365 if test "x$build_namei" = xyes; then
22366  BUILD_NAMEI_TRUE=
22367  BUILD_NAMEI_FALSE='#'
22368else
22369  BUILD_NAMEI_TRUE='#'
22370  BUILD_NAMEI_FALSE=
22371fi
22372
22373
22374
22375
22376  if test "x$ul_default_estate" != x; then
22377  enable_whereis=$ul_default_estate
22378  build_whereis=yes
22379  if test "x$ul_default_estate" = xno; then
22380    build_whereis=no
22381  fi
22382else
22383
22384  build_whereis=yes
22385  enable_whereis=yes
22386fi
22387
22388 if test "x$build_whereis" = xyes; then
22389  BUILD_WHEREIS_TRUE=
22390  BUILD_WHEREIS_FALSE='#'
22391else
22392  BUILD_WHEREIS_TRUE='#'
22393  BUILD_WHEREIS_FALSE=
22394fi
22395
22396
22397
22398
22399  if test "x$ul_default_estate" != x; then
22400  enable_getopt=$ul_default_estate
22401  build_getopt=yes
22402  if test "x$ul_default_estate" = xno; then
22403    build_getopt=no
22404  fi
22405else
22406
22407  build_getopt=yes
22408  enable_getopt=yes
22409fi
22410
22411 if test "x$build_getopt" = xyes; then
22412  BUILD_GETOPT_TRUE=
22413  BUILD_GETOPT_FALSE='#'
22414else
22415  BUILD_GETOPT_TRUE='#'
22416  BUILD_GETOPT_FALSE=
22417fi
22418
22419
22420
22421
22422
22423  if test "x$ul_default_estate" != x; then
22424  enable_blockdev=$ul_default_estate
22425  build_blockdev=yes
22426  if test "x$ul_default_estate" = xno; then
22427    build_blockdev=no
22428  fi
22429else
22430
22431  build_blockdev=yes
22432  enable_blockdev=check
22433fi
22434
22435
22436
22437  if test "x$build_blockdev" != xno; then
22438
22439    case $enable_blockdev:$linux_os in #(
22440    no:*)
22441      build_blockdev=no ;;
22442    yes:yes)
22443      build_blockdev=yes ;;
22444    yes:*)
22445      as_fn_error $? "blockdev selected for non-linux system" "$LINENO" 5;;
22446    check:yes)
22447      build_blockdev=yes ;;
22448    check:*)
22449      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building blockdev" >&5
22450$as_echo "$as_me: WARNING: non-linux system; not building blockdev" >&2;}
22451      build_blockdev=no ;;
22452    esac
22453  fi
22454
22455 if test "x$build_blockdev" = xyes; then
22456  BUILD_BLOCKDEV_TRUE=
22457  BUILD_BLOCKDEV_FALSE='#'
22458else
22459  BUILD_BLOCKDEV_TRUE='#'
22460  BUILD_BLOCKDEV_FALSE=
22461fi
22462
22463
22464
22465
22466
22467  if test "x$ul_default_estate" != x; then
22468  enable_prlimit=$ul_default_estate
22469  build_prlimit=yes
22470  if test "x$ul_default_estate" = xno; then
22471    build_prlimit=no
22472  fi
22473else
22474
22475  build_prlimit=yes
22476  enable_prlimit=check
22477fi
22478
22479
22480
22481  if test "x$build_prlimit" != xno; then
22482
22483    case $enable_prlimit:$linux_os in #(
22484    no:*)
22485      build_prlimit=no ;;
22486    yes:yes)
22487      build_prlimit=yes ;;
22488    yes:*)
22489      as_fn_error $? "prlimit selected for non-linux system" "$LINENO" 5;;
22490    check:yes)
22491      build_prlimit=yes ;;
22492    check:*)
22493      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building prlimit" >&5
22494$as_echo "$as_me: WARNING: non-linux system; not building prlimit" >&2;}
22495      build_prlimit=no ;;
22496    esac
22497  fi
22498
22499
22500
22501
22502  if test "x$build_prlimit" != xno; then
22503    case $enable_prlimit:$build_libsmartcols in #(
22504    no:*)
22505      build_prlimit=no ;;
22506    yes:yes)
22507      build_prlimit=yes ;;
22508    yes:*)
22509      as_fn_error $? "libsmartcols is needed to build prlimit" "$LINENO" 5;;
22510    check:yes)
22511      build_prlimit=yes ;;
22512    check:*)
22513      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building prlimit" >&5
22514$as_echo "$as_me: WARNING: libsmartcols disabled; not building prlimit" >&2;}
22515      build_prlimit=no ;;
22516    esac
22517  fi
22518
22519
22520
22521
22522
22523             if false; then
22524  HAVE_PRLIMIT64_TRUE=
22525  HAVE_PRLIMIT64_FALSE='#'
22526else
22527  HAVE_PRLIMIT64_TRUE='#'
22528  HAVE_PRLIMIT64_FALSE=
22529fi
22530
22531
22532  if test "x$build_prlimit" != xno; then
22533    if test "x$enable_prlimit" = xno; then
22534      build_prlimit=no
22535    else
22536
22537
22538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall prlimit64" >&5
22539$as_echo_n "checking for syscall prlimit64... " >&6; }
22540if ${ul_cv_syscall_prlimit64+:} false; then :
22541  $as_echo_n "(cached) " >&6
22542else
22543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544/* end confdefs.h.  */
22545
22546#include <sys/syscall.h>
22547#include <unistd.h>
22548
22549int
22550main ()
22551{
22552int test = SYS_prlimit64;
22553  ;
22554  return 0;
22555}
22556_ACEOF
22557if ac_fn_c_try_compile "$LINENO"; then :
22558  syscall=SYS_prlimit64
22559else
22560              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561/* end confdefs.h.  */
22562
22563#include <sys/syscall.h>
22564#include <unistd.h>
22565
22566int
22567main ()
22568{
22569int test = _NR_prlimit64;
22570  ;
22571  return 0;
22572}
22573_ACEOF
22574if ac_fn_c_try_compile "$LINENO"; then :
22575  syscall=_NR_prlimit64
22576else
22577
22578	  syscall=no
22579	  if test "x$linux_os" = xyes; then
22580	    case $host_cpu in
22581
22582	    esac
22583	  fi
22584
22585fi
22586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587
22588
22589fi
22590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22591
22592    ul_cv_syscall_prlimit64=$syscall
22593
22594fi
22595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_prlimit64" >&5
22596$as_echo "$ul_cv_syscall_prlimit64" >&6; }
22597   if test "x$ul_cv_syscall_prlimit64" != xno; then
22598  HAVE_PRLIMIT64_TRUE=
22599  HAVE_PRLIMIT64_FALSE='#'
22600else
22601  HAVE_PRLIMIT64_TRUE='#'
22602  HAVE_PRLIMIT64_FALSE=
22603fi
22604
22605  case $ul_cv_syscall_prlimit64 in #(
22606  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall prlimit64." >&5
22607$as_echo "$as_me: WARNING: Unable to detect syscall prlimit64." >&2;} ;;
22608  SYS_*) ;;
22609  *)
22610cat >>confdefs.h <<_ACEOF
22611#define SYS_prlimit64 $ul_cv_syscall_prlimit64
22612_ACEOF
22613 ;;
22614  esac
22615
22616      case $enable_prlimit:$ul_cv_syscall_prlimit64 in #(
22617      no:*)
22618        build_prlimit=no ;;
22619      yes:no)
22620        as_fn_error $? "prlimit selected but prlimit64 syscall not found" "$LINENO" 5 ;;
22621      check:no)
22622        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: prlimit64 syscall not found; not building prlimit" >&5
22623$as_echo "$as_me: WARNING: prlimit64 syscall not found; not building prlimit" >&2;}
22624        build_prlimit=no ;;
22625      *)
22626                build_prlimit=yes ;;
22627      esac
22628    fi
22629  fi
22630
22631 if test "x$build_prlimit" = xyes; then
22632  BUILD_PRLIMIT_TRUE=
22633  BUILD_PRLIMIT_FALSE='#'
22634else
22635  BUILD_PRLIMIT_TRUE='#'
22636  BUILD_PRLIMIT_FALSE=
22637fi
22638
22639if test "x$build_prlimit" = xyes; then :
22640
22641  for ac_func in prlimit
22642do :
22643  ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
22644if test "x$ac_cv_func_prlimit" = xyes; then :
22645  cat >>confdefs.h <<_ACEOF
22646#define HAVE_PRLIMIT 1
22647_ACEOF
22648
22649fi
22650done
22651
22652
22653fi
22654
22655
22656
22657
22658  if test "x$ul_default_estate" != x; then
22659  enable_lslocks=$ul_default_estate
22660  build_lslocks=yes
22661  if test "x$ul_default_estate" = xno; then
22662    build_lslocks=no
22663  fi
22664else
22665
22666  build_lslocks=yes
22667  enable_lslocks=check
22668fi
22669
22670
22671
22672  if test "x$build_lslocks" != xno; then
22673
22674    case $enable_lslocks:$linux_os in #(
22675    no:*)
22676      build_lslocks=no ;;
22677    yes:yes)
22678      build_lslocks=yes ;;
22679    yes:*)
22680      as_fn_error $? "lslocks selected for non-linux system" "$LINENO" 5;;
22681    check:yes)
22682      build_lslocks=yes ;;
22683    check:*)
22684      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building lslocks" >&5
22685$as_echo "$as_me: WARNING: non-linux system; not building lslocks" >&2;}
22686      build_lslocks=no ;;
22687    esac
22688  fi
22689
22690
22691
22692
22693  if test "x$build_lslocks" != xno; then
22694    case $enable_lslocks:$build_libmount in #(
22695    no:*)
22696      build_lslocks=no ;;
22697    yes:yes)
22698      build_lslocks=yes ;;
22699    yes:*)
22700      as_fn_error $? "libmount is needed to build lslocks" "$LINENO" 5;;
22701    check:yes)
22702      build_lslocks=yes ;;
22703    check:*)
22704      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building lslocks" >&5
22705$as_echo "$as_me: WARNING: libmount disabled; not building lslocks" >&2;}
22706      build_lslocks=no ;;
22707    esac
22708  fi
22709
22710
22711
22712
22713  if test "x$build_lslocks" != xno; then
22714    case $enable_lslocks:$build_libsmartcols in #(
22715    no:*)
22716      build_lslocks=no ;;
22717    yes:yes)
22718      build_lslocks=yes ;;
22719    yes:*)
22720      as_fn_error $? "libsmartcols is needed to build lslocks" "$LINENO" 5;;
22721    check:yes)
22722      build_lslocks=yes ;;
22723    check:*)
22724      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsmartcols disabled; not building lslocks" >&5
22725$as_echo "$as_me: WARNING: libsmartcols disabled; not building lslocks" >&2;}
22726      build_lslocks=no ;;
22727    esac
22728  fi
22729
22730 if test "x$build_lslocks" = xyes; then
22731  BUILD_LSLOCKS_TRUE=
22732  BUILD_LSLOCKS_FALSE='#'
22733else
22734  BUILD_LSLOCKS_TRUE='#'
22735  BUILD_LSLOCKS_FALSE=
22736fi
22737
22738
22739
22740# Check whether --enable-switch_root was given.
22741if test "${enable_switch_root+set}" = set; then :
22742  enableval=$enable_switch_root;
22743else
22744
22745
22746  if test "x$ul_default_estate" != x; then
22747    enable_switch_root=$ul_default_estate
22748  else
22749    enable_switch_root=check
22750  fi
22751
22752
22753fi
22754
22755
22756
22757  if test "x$enable_switch_root" = xno; then
22758   build_switch_root=no
22759else
22760   build_switch_root=yes
22761fi
22762
22763
22764
22765  if test "x$build_switch_root" != xno; then
22766
22767    case $enable_switch_root:$linux_os in #(
22768    no:*)
22769      build_switch_root=no ;;
22770    yes:yes)
22771      build_switch_root=yes ;;
22772    yes:*)
22773      as_fn_error $? "switch_root selected for non-linux system" "$LINENO" 5;;
22774    check:yes)
22775      build_switch_root=yes ;;
22776    check:*)
22777      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building switch_root" >&5
22778$as_echo "$as_me: WARNING: non-linux system; not building switch_root" >&2;}
22779      build_switch_root=no ;;
22780    esac
22781  fi
22782
22783
22784
22785
22786  if test "x$build_switch_root" != xno; then
22787
22788    ul_haveone_switch_root=no
22789
22790      if test "x$have_openat" = xyes; then
22791        ul_haveone_switch_root=yes
22792      fi
22793
22794    case $enable_switch_root:$ul_haveone_switch_root in #(
22795    no:*)
22796      build_switch_root=no ;;
22797    yes:yes)
22798      build_switch_root=yes ;;
22799    yes:*)
22800      as_fn_error $? "switch_root selected, but required openat function not available" "$LINENO" 5;;
22801    check:yes)
22802      build_switch_root=yes ;;
22803    check:*)
22804      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openat function not found; not building switch_root" >&5
22805$as_echo "$as_me: WARNING: openat function not found; not building switch_root" >&2;}
22806      build_switch_root=no ;;
22807    esac
22808  fi
22809
22810 if test "x$build_switch_root" = xyes; then
22811  BUILD_SWITCH_ROOT_TRUE=
22812  BUILD_SWITCH_ROOT_FALSE='#'
22813else
22814  BUILD_SWITCH_ROOT_TRUE='#'
22815  BUILD_SWITCH_ROOT_FALSE=
22816fi
22817
22818
22819
22820# Check whether --enable-pivot_root was given.
22821if test "${enable_pivot_root+set}" = set; then :
22822  enableval=$enable_pivot_root;
22823else
22824
22825
22826  if test "x$ul_default_estate" != x; then
22827    enable_pivot_root=$ul_default_estate
22828  else
22829    enable_pivot_root=check
22830  fi
22831
22832
22833fi
22834
22835
22836
22837  if test "x$enable_pivot_root" = xno; then
22838   build_pivot_root=no
22839else
22840   build_pivot_root=yes
22841fi
22842
22843
22844
22845  if test "x$build_pivot_root" != xno; then
22846
22847    case $enable_pivot_root:$linux_os in #(
22848    no:*)
22849      build_pivot_root=no ;;
22850    yes:yes)
22851      build_pivot_root=yes ;;
22852    yes:*)
22853      as_fn_error $? "pivot_root selected for non-linux system" "$LINENO" 5;;
22854    check:yes)
22855      build_pivot_root=yes ;;
22856    check:*)
22857      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building pivot_root" >&5
22858$as_echo "$as_me: WARNING: non-linux system; not building pivot_root" >&2;}
22859      build_pivot_root=no ;;
22860    esac
22861  fi
22862
22863
22864
22865
22866
22867             if false; then
22868  HAVE_PIVOT_ROOT_TRUE=
22869  HAVE_PIVOT_ROOT_FALSE='#'
22870else
22871  HAVE_PIVOT_ROOT_TRUE='#'
22872  HAVE_PIVOT_ROOT_FALSE=
22873fi
22874
22875
22876  if test "x$build_pivot_root" != xno; then
22877    if test "x$enable_pivot_root" = xno; then
22878      build_pivot_root=no
22879    else
22880
22881
22882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall pivot_root" >&5
22883$as_echo_n "checking for syscall pivot_root... " >&6; }
22884if ${ul_cv_syscall_pivot_root+:} false; then :
22885  $as_echo_n "(cached) " >&6
22886else
22887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888/* end confdefs.h.  */
22889
22890#include <sys/syscall.h>
22891#include <unistd.h>
22892
22893int
22894main ()
22895{
22896int test = SYS_pivot_root;
22897  ;
22898  return 0;
22899}
22900_ACEOF
22901if ac_fn_c_try_compile "$LINENO"; then :
22902  syscall=SYS_pivot_root
22903else
22904              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905/* end confdefs.h.  */
22906
22907#include <sys/syscall.h>
22908#include <unistd.h>
22909
22910int
22911main ()
22912{
22913int test = _NR_pivot_root;
22914  ;
22915  return 0;
22916}
22917_ACEOF
22918if ac_fn_c_try_compile "$LINENO"; then :
22919  syscall=_NR_pivot_root
22920else
22921
22922	  syscall=no
22923	  if test "x$linux_os" = xyes; then
22924	    case $host_cpu in
22925
22926	    esac
22927	  fi
22928
22929fi
22930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931
22932
22933fi
22934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935
22936    ul_cv_syscall_pivot_root=$syscall
22937
22938fi
22939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_pivot_root" >&5
22940$as_echo "$ul_cv_syscall_pivot_root" >&6; }
22941   if test "x$ul_cv_syscall_pivot_root" != xno; then
22942  HAVE_PIVOT_ROOT_TRUE=
22943  HAVE_PIVOT_ROOT_FALSE='#'
22944else
22945  HAVE_PIVOT_ROOT_TRUE='#'
22946  HAVE_PIVOT_ROOT_FALSE=
22947fi
22948
22949  case $ul_cv_syscall_pivot_root in #(
22950  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall pivot_root." >&5
22951$as_echo "$as_me: WARNING: Unable to detect syscall pivot_root." >&2;} ;;
22952  SYS_*) ;;
22953  *)
22954cat >>confdefs.h <<_ACEOF
22955#define SYS_pivot_root $ul_cv_syscall_pivot_root
22956_ACEOF
22957 ;;
22958  esac
22959
22960      case $enable_pivot_root:$ul_cv_syscall_pivot_root in #(
22961      no:*)
22962        build_pivot_root=no ;;
22963      yes:no)
22964        as_fn_error $? "pivot_root selected but pivot_root syscall not found" "$LINENO" 5 ;;
22965      check:no)
22966        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pivot_root syscall not found; not building pivot_root" >&5
22967$as_echo "$as_me: WARNING: pivot_root syscall not found; not building pivot_root" >&2;}
22968        build_pivot_root=no ;;
22969      *)
22970                build_pivot_root=yes ;;
22971      esac
22972    fi
22973  fi
22974
22975 if test "x$build_pivot_root" = xyes; then
22976  BUILD_PIVOT_ROOT_TRUE=
22977  BUILD_PIVOT_ROOT_FALSE='#'
22978else
22979  BUILD_PIVOT_ROOT_TRUE='#'
22980  BUILD_PIVOT_ROOT_FALSE=
22981fi
22982
22983
22984
22985
22986
22987  if test "x$ul_default_estate" != x; then
22988  enable_flock=$ul_default_estate
22989  build_flock=yes
22990  if test "x$ul_default_estate" = xno; then
22991    build_flock=no
22992  fi
22993else
22994
22995  build_flock=yes
22996  enable_flock=yes
22997fi
22998
22999 if test "x$build_flock" = xyes; then
23000  BUILD_FLOCK_TRUE=
23001  BUILD_FLOCK_FALSE='#'
23002else
23003  BUILD_FLOCK_TRUE='#'
23004  BUILD_FLOCK_FALSE=
23005fi
23006
23007
23008
23009
23010  if test "x$ul_default_estate" != x; then
23011  enable_ipcmk=$ul_default_estate
23012  build_ipcmk=yes
23013  if test "x$ul_default_estate" = xno; then
23014    build_ipcmk=no
23015  fi
23016else
23017
23018  build_ipcmk=yes
23019  enable_ipcmk=yes
23020fi
23021
23022 if test "x$build_ipcmk" = xyes; then
23023  BUILD_IPCMK_TRUE=
23024  BUILD_IPCMK_FALSE='#'
23025else
23026  BUILD_IPCMK_TRUE='#'
23027  BUILD_IPCMK_FALSE=
23028fi
23029
23030
23031
23032
23033  if test "x$ul_default_estate" != x; then
23034  enable_ipcrm=$ul_default_estate
23035  build_ipcrm=yes
23036  if test "x$ul_default_estate" = xno; then
23037    build_ipcrm=no
23038  fi
23039else
23040
23041  build_ipcrm=yes
23042  enable_ipcrm=yes
23043fi
23044
23045 if test "x$build_ipcrm" = xyes; then
23046  BUILD_IPCRM_TRUE=
23047  BUILD_IPCRM_FALSE='#'
23048else
23049  BUILD_IPCRM_TRUE='#'
23050  BUILD_IPCRM_FALSE=
23051fi
23052
23053
23054
23055
23056  if test "x$ul_default_estate" != x; then
23057  enable_ipcs=$ul_default_estate
23058  build_ipcs=yes
23059  if test "x$ul_default_estate" = xno; then
23060    build_ipcs=no
23061  fi
23062else
23063
23064  build_ipcs=yes
23065  enable_ipcs=yes
23066fi
23067
23068 if test "x$build_ipcs" = xyes; then
23069  BUILD_IPCS_TRUE=
23070  BUILD_IPCS_FALSE='#'
23071else
23072  BUILD_IPCS_TRUE='#'
23073  BUILD_IPCS_FALSE=
23074fi
23075
23076
23077
23078
23079  if test "x$ul_default_estate" != x; then
23080  enable_renice=$ul_default_estate
23081  build_renice=yes
23082  if test "x$ul_default_estate" = xno; then
23083    build_renice=no
23084  fi
23085else
23086
23087  build_renice=yes
23088  enable_renice=yes
23089fi
23090
23091 if test "x$build_renice" = xyes; then
23092  BUILD_RENICE_TRUE=
23093  BUILD_RENICE_FALSE='#'
23094else
23095  BUILD_RENICE_TRUE='#'
23096  BUILD_RENICE_FALSE=
23097fi
23098
23099
23100
23101
23102  if test "x$ul_default_estate" != x; then
23103  enable_setsid=$ul_default_estate
23104  build_setsid=yes
23105  if test "x$ul_default_estate" = xno; then
23106    build_setsid=no
23107  fi
23108else
23109
23110  build_setsid=yes
23111  enable_setsid=yes
23112fi
23113
23114 if test "x$build_setsid" = xyes; then
23115  BUILD_SETSID_TRUE=
23116  BUILD_SETSID_FALSE='#'
23117else
23118  BUILD_SETSID_TRUE='#'
23119  BUILD_SETSID_FALSE=
23120fi
23121
23122
23123
23124
23125  if test "x$ul_default_estate" != x; then
23126  enable_readprofile=$ul_default_estate
23127  build_readprofile=yes
23128  if test "x$ul_default_estate" = xno; then
23129    build_readprofile=no
23130  fi
23131else
23132
23133  build_readprofile=yes
23134  enable_readprofile=check
23135fi
23136
23137
23138
23139  if test "x$build_readprofile" != xno; then
23140
23141    case $enable_readprofile:$linux_os in #(
23142    no:*)
23143      build_readprofile=no ;;
23144    yes:yes)
23145      build_readprofile=yes ;;
23146    yes:*)
23147      as_fn_error $? "readprofile selected for non-linux system" "$LINENO" 5;;
23148    check:yes)
23149      build_readprofile=yes ;;
23150    check:*)
23151      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building readprofile" >&5
23152$as_echo "$as_me: WARNING: non-linux system; not building readprofile" >&2;}
23153      build_readprofile=no ;;
23154    esac
23155  fi
23156
23157 if test "x$build_readprofile" = xyes; then
23158  BUILD_READPROFILE_TRUE=
23159  BUILD_READPROFILE_FALSE='#'
23160else
23161  BUILD_READPROFILE_TRUE='#'
23162  BUILD_READPROFILE_FALSE=
23163fi
23164
23165
23166
23167
23168  if test "x$ul_default_estate" != x; then
23169  enable_dmesg=$ul_default_estate
23170  build_dmesg=yes
23171  if test "x$ul_default_estate" = xno; then
23172    build_dmesg=no
23173  fi
23174else
23175
23176  build_dmesg=yes
23177  enable_dmesg=check
23178fi
23179
23180
23181
23182  if test "x$build_dmesg" != xno; then
23183
23184    case $enable_dmesg:$linux_os in #(
23185    no:*)
23186      build_dmesg=no ;;
23187    yes:yes)
23188      build_dmesg=yes ;;
23189    yes:*)
23190      as_fn_error $? "dmesg selected for non-linux system" "$LINENO" 5;;
23191    check:yes)
23192      build_dmesg=yes ;;
23193    check:*)
23194      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building dmesg" >&5
23195$as_echo "$as_me: WARNING: non-linux system; not building dmesg" >&2;}
23196      build_dmesg=no ;;
23197    esac
23198  fi
23199
23200 if test "x$build_dmesg" = xyes; then
23201  BUILD_DMESG_TRUE=
23202  BUILD_DMESG_FALSE='#'
23203else
23204  BUILD_DMESG_TRUE='#'
23205  BUILD_DMESG_FALSE=
23206fi
23207
23208
23209
23210
23211  if test "x$ul_default_estate" != x; then
23212  enable_ctrlaltdel=$ul_default_estate
23213  build_ctrlaltdel=yes
23214  if test "x$ul_default_estate" = xno; then
23215    build_ctrlaltdel=no
23216  fi
23217else
23218
23219  build_ctrlaltdel=yes
23220  enable_ctrlaltdel=check
23221fi
23222
23223
23224
23225  if test "x$build_ctrlaltdel" != xno; then
23226
23227    case $enable_ctrlaltdel:$linux_os in #(
23228    no:*)
23229      build_ctrlaltdel=no ;;
23230    yes:yes)
23231      build_ctrlaltdel=yes ;;
23232    yes:*)
23233      as_fn_error $? "ctrlaltdel selected for non-linux system" "$LINENO" 5;;
23234    check:yes)
23235      build_ctrlaltdel=yes ;;
23236    check:*)
23237      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building ctrlaltdel" >&5
23238$as_echo "$as_me: WARNING: non-linux system; not building ctrlaltdel" >&2;}
23239      build_ctrlaltdel=no ;;
23240    esac
23241  fi
23242
23243 if test "x$build_ctrlaltdel" = xyes; then
23244  BUILD_CTRLALTDEL_TRUE=
23245  BUILD_CTRLALTDEL_FALSE='#'
23246else
23247  BUILD_CTRLALTDEL_TRUE='#'
23248  BUILD_CTRLALTDEL_FALSE=
23249fi
23250
23251
23252
23253
23254  if test "x$ul_default_estate" != x; then
23255  enable_fsfreeze=$ul_default_estate
23256  build_fsfreeze=yes
23257  if test "x$ul_default_estate" = xno; then
23258    build_fsfreeze=no
23259  fi
23260else
23261
23262  build_fsfreeze=yes
23263  enable_fsfreeze=check
23264fi
23265
23266
23267
23268  if test "x$build_fsfreeze" != xno; then
23269
23270    case $enable_fsfreeze:$linux_os in #(
23271    no:*)
23272      build_fsfreeze=no ;;
23273    yes:yes)
23274      build_fsfreeze=yes ;;
23275    yes:*)
23276      as_fn_error $? "fsfreeze selected for non-linux system" "$LINENO" 5;;
23277    check:yes)
23278      build_fsfreeze=yes ;;
23279    check:*)
23280      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building fsfreeze" >&5
23281$as_echo "$as_me: WARNING: non-linux system; not building fsfreeze" >&2;}
23282      build_fsfreeze=no ;;
23283    esac
23284  fi
23285
23286 if test "x$build_fsfreeze" = xyes; then
23287  BUILD_FSFREEZE_TRUE=
23288  BUILD_FSFREEZE_FALSE='#'
23289else
23290  BUILD_FSFREEZE_TRUE='#'
23291  BUILD_FSFREEZE_FALSE=
23292fi
23293
23294
23295
23296
23297  if test "x$ul_default_estate" != x; then
23298  enable_blkdiscard=$ul_default_estate
23299  build_blkdiscard=yes
23300  if test "x$ul_default_estate" = xno; then
23301    build_blkdiscard=no
23302  fi
23303else
23304
23305  build_blkdiscard=yes
23306  enable_blkdiscard=check
23307fi
23308
23309
23310
23311  if test "x$build_blkdiscard" != xno; then
23312
23313    case $enable_blkdiscard:$linux_os in #(
23314    no:*)
23315      build_blkdiscard=no ;;
23316    yes:yes)
23317      build_blkdiscard=yes ;;
23318    yes:*)
23319      as_fn_error $? "blkdiscard selected for non-linux system" "$LINENO" 5;;
23320    check:yes)
23321      build_blkdiscard=yes ;;
23322    check:*)
23323      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building blkdiscard" >&5
23324$as_echo "$as_me: WARNING: non-linux system; not building blkdiscard" >&2;}
23325      build_blkdiscard=no ;;
23326    esac
23327  fi
23328
23329 if test "x$build_blkdiscard" = xyes; then
23330  BUILD_BLKDISCARD_TRUE=
23331  BUILD_BLKDISCARD_FALSE='#'
23332else
23333  BUILD_BLKDISCARD_TRUE='#'
23334  BUILD_BLKDISCARD_FALSE=
23335fi
23336
23337
23338
23339
23340  if test "x$ul_default_estate" != x; then
23341  enable_ldattach=$ul_default_estate
23342  build_ldattach=yes
23343  if test "x$ul_default_estate" = xno; then
23344    build_ldattach=no
23345  fi
23346else
23347
23348  build_ldattach=yes
23349  enable_ldattach=check
23350fi
23351
23352
23353
23354  if test "x$build_ldattach" != xno; then
23355
23356    case $enable_ldattach:$linux_os in #(
23357    no:*)
23358      build_ldattach=no ;;
23359    yes:yes)
23360      build_ldattach=yes ;;
23361    yes:*)
23362      as_fn_error $? "ldattach selected for non-linux system" "$LINENO" 5;;
23363    check:yes)
23364      build_ldattach=yes ;;
23365    check:*)
23366      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building ldattach" >&5
23367$as_echo "$as_me: WARNING: non-linux system; not building ldattach" >&2;}
23368      build_ldattach=no ;;
23369    esac
23370  fi
23371
23372 if test "x$build_ldattach" = xyes; then
23373  BUILD_LDATTACH_TRUE=
23374  BUILD_LDATTACH_FALSE='#'
23375else
23376  BUILD_LDATTACH_TRUE='#'
23377  BUILD_LDATTACH_FALSE=
23378fi
23379
23380
23381
23382
23383  if test "x$ul_default_estate" != x; then
23384  enable_rtcwake=$ul_default_estate
23385  build_rtcwake=yes
23386  if test "x$ul_default_estate" = xno; then
23387    build_rtcwake=no
23388  fi
23389else
23390
23391  build_rtcwake=yes
23392  enable_rtcwake=check
23393fi
23394
23395
23396
23397  if test "x$build_rtcwake" != xno; then
23398
23399    case $enable_rtcwake:$linux_os in #(
23400    no:*)
23401      build_rtcwake=no ;;
23402    yes:yes)
23403      build_rtcwake=yes ;;
23404    yes:*)
23405      as_fn_error $? "rtcwake selected for non-linux system" "$LINENO" 5;;
23406    check:yes)
23407      build_rtcwake=yes ;;
23408    check:*)
23409      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building rtcwake" >&5
23410$as_echo "$as_me: WARNING: non-linux system; not building rtcwake" >&2;}
23411      build_rtcwake=no ;;
23412    esac
23413  fi
23414
23415 if test "x$build_rtcwake" = xyes; then
23416  BUILD_RTCWAKE_TRUE=
23417  BUILD_RTCWAKE_FALSE='#'
23418else
23419  BUILD_RTCWAKE_TRUE='#'
23420  BUILD_RTCWAKE_FALSE=
23421fi
23422
23423
23424
23425
23426  if test "x$ul_default_estate" != x; then
23427  enable_setarch=$ul_default_estate
23428  build_setarch=yes
23429  if test "x$ul_default_estate" = xno; then
23430    build_setarch=no
23431  fi
23432else
23433
23434  build_setarch=yes
23435  enable_setarch=check
23436fi
23437
23438
23439
23440  if test "x$build_setarch" != xno; then
23441
23442    case $enable_setarch:$linux_os in #(
23443    no:*)
23444      build_setarch=no ;;
23445    yes:yes)
23446      build_setarch=yes ;;
23447    yes:*)
23448      as_fn_error $? "setarch selected for non-linux system" "$LINENO" 5;;
23449    check:yes)
23450      build_setarch=yes ;;
23451    check:*)
23452      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building setarch" >&5
23453$as_echo "$as_me: WARNING: non-linux system; not building setarch" >&2;}
23454      build_setarch=no ;;
23455    esac
23456  fi
23457
23458 if test "x$build_setarch" = xyes; then
23459  BUILD_SETARCH_TRUE=
23460  BUILD_SETARCH_FALSE='#'
23461else
23462  BUILD_SETARCH_TRUE='#'
23463  BUILD_SETARCH_FALSE=
23464fi
23465
23466
23467
23468
23469  if test "x$ul_default_estate" != x; then
23470  enable_script=$ul_default_estate
23471  build_script=yes
23472  if test "x$ul_default_estate" = xno; then
23473    build_script=no
23474  fi
23475else
23476
23477  build_script=yes
23478  enable_script=yes
23479fi
23480
23481 if test "x$build_script" = xyes; then
23482  BUILD_SCRIPT_TRUE=
23483  BUILD_SCRIPT_FALSE='#'
23484else
23485  BUILD_SCRIPT_TRUE='#'
23486  BUILD_SCRIPT_FALSE=
23487fi
23488
23489
23490
23491
23492  if test "x$ul_default_estate" != x; then
23493  enable_scriptreplay=$ul_default_estate
23494  build_scriptreplay=yes
23495  if test "x$ul_default_estate" = xno; then
23496    build_scriptreplay=no
23497  fi
23498else
23499
23500  build_scriptreplay=yes
23501  enable_scriptreplay=yes
23502fi
23503
23504 if test "x$build_scriptreplay" = xyes; then
23505  BUILD_SCRIPTREPLAY_TRUE=
23506  BUILD_SCRIPTREPLAY_FALSE='#'
23507else
23508  BUILD_SCRIPTREPLAY_TRUE='#'
23509  BUILD_SCRIPTREPLAY_FALSE=
23510fi
23511
23512
23513
23514
23515  if test "x$ul_default_estate" != x; then
23516  enable_col=$ul_default_estate
23517  build_col=yes
23518  if test "x$ul_default_estate" = xno; then
23519    build_col=no
23520  fi
23521else
23522
23523  build_col=yes
23524  enable_col=yes
23525fi
23526
23527 if test "x$build_col" = xyes; then
23528  BUILD_COL_TRUE=
23529  BUILD_COL_FALSE='#'
23530else
23531  BUILD_COL_TRUE='#'
23532  BUILD_COL_FALSE=
23533fi
23534
23535
23536
23537
23538  if test "x$ul_default_estate" != x; then
23539  enable_colcrt=$ul_default_estate
23540  build_colcrt=yes
23541  if test "x$ul_default_estate" = xno; then
23542    build_colcrt=no
23543  fi
23544else
23545
23546  build_colcrt=yes
23547  enable_colcrt=yes
23548fi
23549
23550 if test "x$build_colcrt" = xyes; then
23551  BUILD_COLCRT_TRUE=
23552  BUILD_COLCRT_FALSE='#'
23553else
23554  BUILD_COLCRT_TRUE='#'
23555  BUILD_COLCRT_FALSE=
23556fi
23557
23558
23559
23560
23561  if test "x$ul_default_estate" != x; then
23562  enable_colrm=$ul_default_estate
23563  build_colrm=yes
23564  if test "x$ul_default_estate" = xno; then
23565    build_colrm=no
23566  fi
23567else
23568
23569  build_colrm=yes
23570  enable_colrm=yes
23571fi
23572
23573 if test "x$build_colrm" = xyes; then
23574  BUILD_COLRM_TRUE=
23575  BUILD_COLRM_FALSE='#'
23576else
23577  BUILD_COLRM_TRUE='#'
23578  BUILD_COLRM_FALSE=
23579fi
23580
23581
23582
23583
23584  if test "x$ul_default_estate" != x; then
23585  enable_column=$ul_default_estate
23586  build_column=yes
23587  if test "x$ul_default_estate" = xno; then
23588    build_column=no
23589  fi
23590else
23591
23592  build_column=yes
23593  enable_column=yes
23594fi
23595
23596 if test "x$build_column" = xyes; then
23597  BUILD_COLUMN_TRUE=
23598  BUILD_COLUMN_FALSE='#'
23599else
23600  BUILD_COLUMN_TRUE='#'
23601  BUILD_COLUMN_FALSE=
23602fi
23603
23604
23605
23606
23607  if test "x$ul_default_estate" != x; then
23608  enable_hexdump=$ul_default_estate
23609  build_hexdump=yes
23610  if test "x$ul_default_estate" = xno; then
23611    build_hexdump=no
23612  fi
23613else
23614
23615  build_hexdump=yes
23616  enable_hexdump=yes
23617fi
23618
23619 if test "x$build_hexdump" = xyes; then
23620  BUILD_HEXDUMP_TRUE=
23621  BUILD_HEXDUMP_FALSE='#'
23622else
23623  BUILD_HEXDUMP_TRUE='#'
23624  BUILD_HEXDUMP_FALSE=
23625fi
23626
23627
23628
23629
23630  if test "x$ul_default_estate" != x; then
23631  enable_rev=$ul_default_estate
23632  build_rev=yes
23633  if test "x$ul_default_estate" = xno; then
23634    build_rev=no
23635  fi
23636else
23637
23638  build_rev=yes
23639  enable_rev=yes
23640fi
23641
23642 if test "x$build_rev" = xyes; then
23643  BUILD_REV_TRUE=
23644  BUILD_REV_FALSE='#'
23645else
23646  BUILD_REV_TRUE='#'
23647  BUILD_REV_FALSE=
23648fi
23649
23650
23651
23652
23653  if test "x$ul_default_estate" != x; then
23654  enable_tailf=$ul_default_estate
23655  build_tailf=yes
23656  if test "x$ul_default_estate" = xno; then
23657    build_tailf=no
23658  fi
23659else
23660
23661  build_tailf=yes
23662  enable_tailf=yes
23663fi
23664
23665 if test "x$build_tailf" = xyes; then
23666  BUILD_TAILF_TRUE=
23667  BUILD_TAILF_FALSE='#'
23668else
23669  BUILD_TAILF_TRUE='#'
23670  BUILD_TAILF_FALSE=
23671fi
23672
23673
23674
23675# Check whether --enable-tunelp was given.
23676if test "${enable_tunelp+set}" = set; then :
23677  enableval=$enable_tunelp;
23678else
23679
23680
23681  if test "x$ul_default_estate" != x; then
23682    enable_tunelp=$ul_default_estate
23683  else
23684    enable_tunelp=no
23685  fi
23686
23687
23688fi
23689
23690
23691
23692  if test "x$enable_tunelp" = xno; then
23693   build_tunelp=no
23694else
23695   build_tunelp=yes
23696fi
23697
23698
23699
23700  if test "x$build_tunelp" != xno; then
23701
23702    case $enable_tunelp:$linux_os in #(
23703    no:*)
23704      build_tunelp=no ;;
23705    yes:yes)
23706      build_tunelp=yes ;;
23707    yes:*)
23708      as_fn_error $? "tunelp selected for non-linux system" "$LINENO" 5;;
23709    check:yes)
23710      build_tunelp=yes ;;
23711    check:*)
23712      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building tunelp" >&5
23713$as_echo "$as_me: WARNING: non-linux system; not building tunelp" >&2;}
23714      build_tunelp=no ;;
23715    esac
23716  fi
23717
23718 if test "x$build_tunelp" = xyes; then
23719  BUILD_TUNELP_TRUE=
23720  BUILD_TUNELP_FALSE='#'
23721else
23722  BUILD_TUNELP_TRUE='#'
23723  BUILD_TUNELP_FALSE=
23724fi
23725
23726
23727
23728# Check whether --enable-kill was given.
23729if test "${enable_kill+set}" = set; then :
23730  enableval=$enable_kill;
23731else
23732
23733
23734  if test "x$ul_default_estate" != x; then
23735    enable_kill=$ul_default_estate
23736  else
23737    enable_kill=check
23738  fi
23739
23740
23741fi
23742
23743
23744
23745  if test "x$enable_kill" = xno; then
23746   build_kill=no
23747else
23748   build_kill=yes
23749fi
23750
23751
23752
23753  if test "x$build_kill" != xno; then
23754
23755    case $enable_kill:$linux_os in #(
23756    no:*)
23757      build_kill=no ;;
23758    yes:yes)
23759      build_kill=yes ;;
23760    yes:*)
23761      as_fn_error $? "kill selected for non-linux system" "$LINENO" 5;;
23762    check:yes)
23763      build_kill=yes ;;
23764    check:*)
23765      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building kill" >&5
23766$as_echo "$as_me: WARNING: non-linux system; not building kill" >&2;}
23767      build_kill=no ;;
23768    esac
23769  fi
23770
23771 if test "x$build_kill" = xyes; then
23772  BUILD_KILL_TRUE=
23773  BUILD_KILL_FALSE='#'
23774else
23775  BUILD_KILL_TRUE='#'
23776  BUILD_KILL_FALSE=
23777fi
23778
23779
23780# Check whether --enable-deprecated-last was given.
23781if test "${enable_deprecated_last+set}" = set; then :
23782  enableval=$enable_deprecated_last;
23783else
23784  enable_deprecated_last=no
23785
23786fi
23787
23788
23789
23790  if test "x$enable_deprecated_last" = xno; then
23791   build_deprecated_last=no
23792else
23793   build_deprecated_last=yes
23794fi
23795
23796 if test "x$build_deprecated_last" = xyes; then
23797  BUILD_DEPRECATED_LAST_TRUE=
23798  BUILD_DEPRECATED_LAST_FALSE='#'
23799else
23800  BUILD_DEPRECATED_LAST_TRUE='#'
23801  BUILD_DEPRECATED_LAST_FALSE=
23802fi
23803
23804
23805
23806# Check whether --enable-last was given.
23807if test "${enable_last+set}" = set; then :
23808  enableval=$enable_last;
23809else
23810
23811
23812  if test "x$ul_default_estate" != x; then
23813    enable_last=$ul_default_estate
23814  else
23815    enable_last=check
23816  fi
23817
23818
23819fi
23820
23821
23822
23823  if test "x$enable_last" = xno; then
23824   build_last=no
23825else
23826   build_last=yes
23827fi
23828
23829
23830
23831
23832  if test "x$build_last" != xno; then
23833    case $enable_last:$build_deprecated_last in #(
23834    no:*)
23835      build_last=no ;;
23836    check:yes)
23837      build_last=no ;;
23838    check:no)
23839      build_last=yes ;;
23840    yes:yes)
23841      as_fn_error $? "last selected, but it conflicts with old deprecated last version" "$LINENO" 5;;
23842    esac
23843  fi
23844
23845 if test "x$build_last" = xyes; then
23846  BUILD_LAST_TRUE=
23847  BUILD_LAST_FALSE='#'
23848else
23849  BUILD_LAST_TRUE='#'
23850  BUILD_LAST_FALSE=
23851fi
23852
23853
23854
23855# Check whether --enable-utmpdump was given.
23856if test "${enable_utmpdump+set}" = set; then :
23857  enableval=$enable_utmpdump;
23858else
23859
23860
23861  if test "x$ul_default_estate" != x; then
23862    enable_utmpdump=$ul_default_estate
23863  else
23864    enable_utmpdump=yes
23865  fi
23866
23867
23868fi
23869
23870
23871
23872  if test "x$enable_utmpdump" = xno; then
23873   build_utmpdump=no
23874else
23875   build_utmpdump=yes
23876fi
23877
23878 if test "x$build_utmpdump" = xyes; then
23879  BUILD_UTMPDUMP_TRUE=
23880  BUILD_UTMPDUMP_FALSE='#'
23881else
23882  BUILD_UTMPDUMP_TRUE='#'
23883  BUILD_UTMPDUMP_FALSE=
23884fi
23885
23886
23887
23888# Check whether --enable-line was given.
23889if test "${enable_line+set}" = set; then :
23890  enableval=$enable_line;
23891else
23892
23893
23894  if test "x$ul_default_estate" != x; then
23895    enable_line=$ul_default_estate
23896  else
23897    enable_line=no
23898  fi
23899
23900
23901fi
23902
23903
23904
23905  if test "x$enable_line" = xno; then
23906   build_line=no
23907else
23908   build_line=yes
23909fi
23910
23911 if test "x$build_line" = xyes; then
23912  BUILD_LINE_TRUE=
23913  BUILD_LINE_FALSE='#'
23914else
23915  BUILD_LINE_TRUE='#'
23916  BUILD_LINE_FALSE=
23917fi
23918
23919
23920
23921# Check whether --enable-mesg was given.
23922if test "${enable_mesg+set}" = set; then :
23923  enableval=$enable_mesg;
23924else
23925
23926
23927  if test "x$ul_default_estate" != x; then
23928    enable_mesg=$ul_default_estate
23929  else
23930    enable_mesg=yes
23931  fi
23932
23933
23934fi
23935
23936
23937
23938  if test "x$enable_mesg" = xno; then
23939   build_mesg=no
23940else
23941   build_mesg=yes
23942fi
23943
23944 if test "x$build_mesg" = xyes; then
23945  BUILD_MESG_TRUE=
23946  BUILD_MESG_FALSE='#'
23947else
23948  BUILD_MESG_TRUE='#'
23949  BUILD_MESG_FALSE=
23950fi
23951
23952
23953
23954# Check whether --enable-raw was given.
23955if test "${enable_raw+set}" = set; then :
23956  enableval=$enable_raw;
23957else
23958
23959
23960  if test "x$ul_default_estate" != x; then
23961    enable_raw=$ul_default_estate
23962  else
23963    enable_raw=check
23964  fi
23965
23966
23967fi
23968
23969
23970
23971  if test "x$enable_raw" = xno; then
23972   build_raw=no
23973else
23974   build_raw=yes
23975fi
23976
23977
23978
23979  if test "x$build_raw" != xno; then
23980
23981    case $enable_raw:$linux_os in #(
23982    no:*)
23983      build_raw=no ;;
23984    yes:yes)
23985      build_raw=yes ;;
23986    yes:*)
23987      as_fn_error $? "raw selected for non-linux system" "$LINENO" 5;;
23988    check:yes)
23989      build_raw=yes ;;
23990    check:*)
23991      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building raw" >&5
23992$as_echo "$as_me: WARNING: non-linux system; not building raw" >&2;}
23993      build_raw=no ;;
23994    esac
23995  fi
23996
23997
23998
23999
24000  if test "x$build_raw" != xno; then
24001
24002    ul_haveone_raw=no
24003
24004      if test "x$have_linux_raw_h" = xyes; then
24005        ul_haveone_raw=yes
24006      fi
24007
24008    case $enable_raw:$ul_haveone_raw in #(
24009    no:*)
24010      build_raw=no ;;
24011    yes:yes)
24012      build_raw=yes ;;
24013    yes:*)
24014      as_fn_error $? "raw selected, but required raw.h header file not available" "$LINENO" 5;;
24015    check:yes)
24016      build_raw=yes ;;
24017    check:*)
24018      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: raw.h header file not found; not building raw" >&5
24019$as_echo "$as_me: WARNING: raw.h header file not found; not building raw" >&2;}
24020      build_raw=no ;;
24021    esac
24022  fi
24023
24024 if test "x$build_raw" = xyes; then
24025  BUILD_RAW_TRUE=
24026  BUILD_RAW_FALSE='#'
24027else
24028  BUILD_RAW_TRUE='#'
24029  BUILD_RAW_FALSE=
24030fi
24031
24032
24033
24034# Check whether --enable-rename was given.
24035if test "${enable_rename+set}" = set; then :
24036  enableval=$enable_rename;
24037else
24038
24039
24040  if test "x$ul_default_estate" != x; then
24041    enable_rename=$ul_default_estate
24042  else
24043    enable_rename=yes
24044  fi
24045
24046
24047fi
24048
24049
24050
24051  if test "x$enable_rename" = xno; then
24052   build_rename=no
24053else
24054   build_rename=yes
24055fi
24056
24057 if test "x$build_rename" = xyes; then
24058  BUILD_RENAME_TRUE=
24059  BUILD_RENAME_FALSE='#'
24060else
24061  BUILD_RENAME_TRUE='#'
24062  BUILD_RENAME_FALSE=
24063fi
24064
24065
24066
24067# Check whether --enable-reset was given.
24068if test "${enable_reset+set}" = set; then :
24069  enableval=$enable_reset;
24070else
24071
24072
24073  if test "x$ul_default_estate" != x; then
24074    enable_reset=$ul_default_estate
24075  else
24076    enable_reset=no
24077  fi
24078
24079
24080fi
24081
24082
24083
24084  if test "x$enable_reset" = xno; then
24085   build_reset=no
24086else
24087   build_reset=yes
24088fi
24089
24090 if test "x$build_reset" = xyes; then
24091  BUILD_RESET_TRUE=
24092  BUILD_RESET_FALSE='#'
24093else
24094  BUILD_RESET_TRUE='#'
24095  BUILD_RESET_FALSE=
24096fi
24097
24098
24099
24100# Check whether --enable-vipw was given.
24101if test "${enable_vipw+set}" = set; then :
24102  enableval=$enable_vipw;
24103else
24104
24105
24106  if test "x$ul_default_estate" != x; then
24107    enable_vipw=$ul_default_estate
24108  else
24109    enable_vipw=no
24110  fi
24111
24112
24113fi
24114
24115
24116
24117  if test "x$enable_vipw" = xno; then
24118   build_vipw=no
24119else
24120   build_vipw=yes
24121fi
24122
24123 if test "x$build_vipw" = xyes; then
24124  BUILD_VIPW_TRUE=
24125  BUILD_VIPW_FALSE='#'
24126else
24127  BUILD_VIPW_TRUE='#'
24128  BUILD_VIPW_FALSE=
24129fi
24130
24131
24132
24133# Check whether --enable-newgrp was given.
24134if test "${enable_newgrp+set}" = set; then :
24135  enableval=$enable_newgrp;
24136else
24137
24138
24139  if test "x$ul_default_estate" != x; then
24140    enable_newgrp=$ul_default_estate
24141  else
24142    enable_newgrp=no
24143  fi
24144
24145
24146fi
24147
24148
24149
24150  if test "x$enable_newgrp" = xno; then
24151   build_newgrp=no
24152else
24153   build_newgrp=yes
24154fi
24155
24156 if test "x$build_newgrp" = xyes; then
24157  BUILD_NEWGRP_TRUE=
24158  BUILD_NEWGRP_FALSE='#'
24159else
24160  BUILD_NEWGRP_TRUE='#'
24161  BUILD_NEWGRP_FALSE=
24162fi
24163
24164
24165
24166
24167# Check whether --with-user was given.
24168if test "${with_user+set}" = set; then :
24169  withval=$with_user;
24170else
24171  with_user=check
24172
24173fi
24174
24175have_user=no
24176if test "x$with_user" != xno; then :
24177
24178
24179pkg_failed=no
24180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSER" >&5
24181$as_echo_n "checking for LIBUSER... " >&6; }
24182
24183if test -n "$LIBUSER_CFLAGS"; then
24184    pkg_cv_LIBUSER_CFLAGS="$LIBUSER_CFLAGS"
24185 elif test -n "$PKG_CONFIG"; then
24186    if test -n "$PKG_CONFIG" && \
24187    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuser >= 0.58\""; } >&5
24188  ($PKG_CONFIG --exists --print-errors "libuser >= 0.58") 2>&5
24189  ac_status=$?
24190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24191  test $ac_status = 0; }; then
24192  pkg_cv_LIBUSER_CFLAGS=`$PKG_CONFIG --cflags "libuser >= 0.58" 2>/dev/null`
24193		      test "x$?" != "x0" && pkg_failed=yes
24194else
24195  pkg_failed=yes
24196fi
24197 else
24198    pkg_failed=untried
24199fi
24200if test -n "$LIBUSER_LIBS"; then
24201    pkg_cv_LIBUSER_LIBS="$LIBUSER_LIBS"
24202 elif test -n "$PKG_CONFIG"; then
24203    if test -n "$PKG_CONFIG" && \
24204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuser >= 0.58\""; } >&5
24205  ($PKG_CONFIG --exists --print-errors "libuser >= 0.58") 2>&5
24206  ac_status=$?
24207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208  test $ac_status = 0; }; then
24209  pkg_cv_LIBUSER_LIBS=`$PKG_CONFIG --libs "libuser >= 0.58" 2>/dev/null`
24210		      test "x$?" != "x0" && pkg_failed=yes
24211else
24212  pkg_failed=yes
24213fi
24214 else
24215    pkg_failed=untried
24216fi
24217
24218
24219
24220if test $pkg_failed = yes; then
24221   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24222$as_echo "no" >&6; }
24223
24224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24225        _pkg_short_errors_supported=yes
24226else
24227        _pkg_short_errors_supported=no
24228fi
24229        if test $_pkg_short_errors_supported = yes; then
24230	        LIBUSER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuser >= 0.58" 2>&1`
24231        else
24232	        LIBUSER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuser >= 0.58" 2>&1`
24233        fi
24234	# Put the nasty error message in config.log where it belongs
24235	echo "$LIBUSER_PKG_ERRORS" >&5
24236
24237	have_user=no
24238elif test $pkg_failed = untried; then
24239     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24240$as_echo "no" >&6; }
24241	have_user=no
24242else
24243	LIBUSER_CFLAGS=$pkg_cv_LIBUSER_CFLAGS
24244	LIBUSER_LIBS=$pkg_cv_LIBUSER_LIBS
24245        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24246$as_echo "yes" >&6; }
24247	have_user=yes
24248fi
24249  case $with_user:$have_user in #(
24250  yes:no) :
24251    as_fn_error $? "user selected but libuser not found" "$LINENO" 5 ;; #(
24252  *:yes) :
24253
24254$as_echo "#define HAVE_LIBUSER 1" >>confdefs.h
24255
24256   ;; #(
24257  *) :
24258     ;;
24259esac
24260  # temporary solution, libuser has stupid .pc where are exported all
24261  # private dependencies to Requires: instead of Requires.private:
24262  if test "x$have_user" = xyes; then :
24263
24264    LIBUSER_LIBS=-luser
24265
24266fi
24267
24268fi
24269 if test "x$have_user" = xyes; then
24270  HAVE_USER_TRUE=
24271  HAVE_USER_FALSE='#'
24272else
24273  HAVE_USER_TRUE='#'
24274  HAVE_USER_FALSE=
24275fi
24276
24277
24278# Check whether --enable-chfn-chsh-password was given.
24279if test "${enable_chfn_chsh_password+set}" = set; then :
24280  enableval=$enable_chfn_chsh_password;
24281else
24282  enable_chfn_chsh_password=yes
24283
24284fi
24285
24286
24287# Check whether --enable-chfn-chsh was given.
24288if test "${enable_chfn_chsh+set}" = set; then :
24289  enableval=$enable_chfn_chsh;
24290else
24291
24292
24293  if test "x$ul_default_estate" != x; then
24294    enable_chfn_chsh=$ul_default_estate
24295  else
24296    enable_chfn_chsh=check
24297  fi
24298
24299
24300fi
24301
24302
24303
24304  if test "x$enable_chfn_chsh" = xno; then
24305   build_chfn_chsh=no
24306else
24307   build_chfn_chsh=yes
24308fi
24309
24310
24311if test "x$enable_chfn_chsh_password" = xyes -o "x$have_user" = xyes; then :
24312
24313
24314
24315
24316  if test "x$build_chfn_chsh" != xno; then
24317
24318    ul_haveone_chfn_chsh=no
24319
24320      if test "x$have_security_pam_misc_h" = xyes; then
24321        ul_haveone_chfn_chsh=yes
24322      fi
24323
24324    case $enable_chfn_chsh:$ul_haveone_chfn_chsh in #(
24325    no:*)
24326      build_chfn_chsh=no ;;
24327    yes:yes)
24328      build_chfn_chsh=yes ;;
24329    yes:*)
24330      as_fn_error $? "chfn_chsh selected, but required PAM header file not available" "$LINENO" 5;;
24331    check:yes)
24332      build_chfn_chsh=yes ;;
24333    check:*)
24334      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PAM header file not found; not building chfn_chsh" >&5
24335$as_echo "$as_me: WARNING: PAM header file not found; not building chfn_chsh" >&2;}
24336      build_chfn_chsh=no ;;
24337    esac
24338  fi
24339
24340
24341$as_echo "#define CHFN_CHSH_PASSWORD 1" >>confdefs.h
24342
24343
24344fi
24345 if test "x$build_chfn_chsh" = xyes; then
24346  BUILD_CHFN_CHSH_TRUE=
24347  BUILD_CHFN_CHSH_FALSE='#'
24348else
24349  BUILD_CHFN_CHSH_TRUE='#'
24350  BUILD_CHFN_CHSH_FALSE=
24351fi
24352
24353 if test "x$enable_chfn_chsh_password" = xyes; then
24354  CHFN_CHSH_PASSWORD_TRUE=
24355  CHFN_CHSH_PASSWORD_FALSE='#'
24356else
24357  CHFN_CHSH_PASSWORD_TRUE='#'
24358  CHFN_CHSH_PASSWORD_FALSE=
24359fi
24360
24361
24362# Check whether --enable-chsh-only-listed was given.
24363if test "${enable_chsh_only_listed+set}" = set; then :
24364  enableval=$enable_chsh_only_listed;
24365else
24366  enable_chsh_only_listed=yes
24367
24368fi
24369
24370
24371if test "x$enable_chsh_only_listed" = xyes; then :
24372
24373
24374$as_echo "#define ONLY_LISTED_SHELLS 1" >>confdefs.h
24375
24376
24377fi
24378
24379
24380# Check whether --enable-login was given.
24381if test "${enable_login+set}" = set; then :
24382  enableval=$enable_login;
24383else
24384
24385
24386  if test "x$ul_default_estate" != x; then
24387    enable_login=$ul_default_estate
24388  else
24389    enable_login=check
24390  fi
24391
24392
24393fi
24394
24395
24396
24397  if test "x$enable_login" = xno; then
24398   build_login=no
24399else
24400   build_login=yes
24401fi
24402
24403
24404
24405
24406  if test "x$build_login" != xno; then
24407
24408    ul_haveone_login=no
24409
24410      if test "x$have_security_pam_misc_h" = xyes; then
24411        ul_haveone_login=yes
24412      fi
24413
24414    case $enable_login:$ul_haveone_login in #(
24415    no:*)
24416      build_login=no ;;
24417    yes:yes)
24418      build_login=yes ;;
24419    yes:*)
24420      as_fn_error $? "login selected, but required PAM header file not available" "$LINENO" 5;;
24421    check:yes)
24422      build_login=yes ;;
24423    check:*)
24424      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PAM header file not found; not building login" >&5
24425$as_echo "$as_me: WARNING: PAM header file not found; not building login" >&2;}
24426      build_login=no ;;
24427    esac
24428  fi
24429
24430 if test "x$build_login" = xyes; then
24431  BUILD_LOGIN_TRUE=
24432  BUILD_LOGIN_FALSE='#'
24433else
24434  BUILD_LOGIN_TRUE='#'
24435  BUILD_LOGIN_FALSE=
24436fi
24437
24438
24439# Check whether --enable-login-chown-vcs was given.
24440if test "${enable_login_chown_vcs+set}" = set; then :
24441  enableval=$enable_login_chown_vcs;
24442else
24443  enable_login_chown_vcs=no
24444
24445fi
24446
24447
24448if test "x$enable_login_chown_vcs" = xyes; then :
24449
24450
24451$as_echo "#define LOGIN_CHOWN_VCS 1" >>confdefs.h
24452
24453
24454fi
24455
24456# Check whether --enable-login-stat-mail was given.
24457if test "${enable_login_stat_mail+set}" = set; then :
24458  enableval=$enable_login_stat_mail;
24459else
24460  enable_login_stat_mail=no
24461
24462fi
24463
24464
24465if test "x$enable_login_stat_mail" = xyes; then :
24466
24467
24468$as_echo "#define LOGIN_STAT_MAIL 1" >>confdefs.h
24469
24470
24471fi
24472
24473
24474# Check whether --enable-nologin was given.
24475if test "${enable_nologin+set}" = set; then :
24476  enableval=$enable_nologin;
24477else
24478
24479
24480  if test "x$ul_default_estate" != x; then
24481    enable_nologin=$ul_default_estate
24482  else
24483    enable_nologin=yes
24484  fi
24485
24486
24487fi
24488
24489
24490
24491  if test "x$enable_nologin" = xno; then
24492   build_nologin=no
24493else
24494   build_nologin=yes
24495fi
24496
24497 if test "x$build_nologin" = xyes; then
24498  BUILD_NOLOGIN_TRUE=
24499  BUILD_NOLOGIN_FALSE='#'
24500else
24501  BUILD_NOLOGIN_TRUE='#'
24502  BUILD_NOLOGIN_FALSE=
24503fi
24504
24505
24506
24507# Check whether --enable-sulogin was given.
24508if test "${enable_sulogin+set}" = set; then :
24509  enableval=$enable_sulogin;
24510else
24511
24512
24513  if test "x$ul_default_estate" != x; then
24514    enable_sulogin=$ul_default_estate
24515  else
24516    enable_sulogin=yes
24517  fi
24518
24519
24520fi
24521
24522
24523
24524  if test "x$enable_sulogin" = xno; then
24525   build_sulogin=no
24526else
24527   build_sulogin=yes
24528fi
24529
24530 if test "x$build_sulogin" = xyes; then
24531  BUILD_SULOGIN_TRUE=
24532  BUILD_SULOGIN_FALSE='#'
24533else
24534  BUILD_SULOGIN_TRUE='#'
24535  BUILD_SULOGIN_FALSE=
24536fi
24537
24538
24539
24540# Check whether --enable-su was given.
24541if test "${enable_su+set}" = set; then :
24542  enableval=$enable_su;
24543else
24544
24545
24546  if test "x$ul_default_estate" != x; then
24547    enable_su=$ul_default_estate
24548  else
24549    enable_su=check
24550  fi
24551
24552
24553fi
24554
24555
24556
24557  if test "x$enable_su" = xno; then
24558   build_su=no
24559else
24560   build_su=yes
24561fi
24562
24563
24564
24565
24566  if test "x$build_su" != xno; then
24567
24568    ul_haveone_su=no
24569
24570      if test "x$have_security_pam_misc_h" = xyes; then
24571        ul_haveone_su=yes
24572      fi
24573
24574    case $enable_su:$ul_haveone_su in #(
24575    no:*)
24576      build_su=no ;;
24577    yes:yes)
24578      build_su=yes ;;
24579    yes:*)
24580      as_fn_error $? "su selected, but required PAM header file not available" "$LINENO" 5;;
24581    check:yes)
24582      build_su=yes ;;
24583    check:*)
24584      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PAM header file not found; not building su" >&5
24585$as_echo "$as_me: WARNING: PAM header file not found; not building su" >&2;}
24586      build_su=no ;;
24587    esac
24588  fi
24589
24590 if test "x$build_su" = xyes; then
24591  BUILD_SU_TRUE=
24592  BUILD_SU_FALSE='#'
24593else
24594  BUILD_SU_TRUE='#'
24595  BUILD_SU_FALSE=
24596fi
24597
24598
24599
24600# Check whether --enable-runuser was given.
24601if test "${enable_runuser+set}" = set; then :
24602  enableval=$enable_runuser;
24603else
24604
24605
24606  if test "x$ul_default_estate" != x; then
24607    enable_runuser=$ul_default_estate
24608  else
24609    enable_runuser=check
24610  fi
24611
24612
24613fi
24614
24615
24616
24617  if test "x$enable_runuser" = xno; then
24618   build_runuser=no
24619else
24620   build_runuser=yes
24621fi
24622
24623
24624
24625
24626  if test "x$build_runuser" != xno; then
24627
24628    ul_haveone_runuser=no
24629
24630      if test "x$have_security_pam_misc_h" = xyes; then
24631        ul_haveone_runuser=yes
24632      fi
24633
24634    case $enable_runuser:$ul_haveone_runuser in #(
24635    no:*)
24636      build_runuser=no ;;
24637    yes:yes)
24638      build_runuser=yes ;;
24639    yes:*)
24640      as_fn_error $? "runuser selected, but required PAM header file not available" "$LINENO" 5;;
24641    check:yes)
24642      build_runuser=yes ;;
24643    check:*)
24644      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PAM header file not found; not building runuser" >&5
24645$as_echo "$as_me: WARNING: PAM header file not found; not building runuser" >&2;}
24646      build_runuser=no ;;
24647    esac
24648  fi
24649
24650 if test "x$build_runuser" = xyes; then
24651  BUILD_RUNUSER_TRUE=
24652  BUILD_RUNUSER_FALSE='#'
24653else
24654  BUILD_RUNUSER_TRUE='#'
24655  BUILD_RUNUSER_FALSE=
24656fi
24657
24658
24659
24660# Check whether --enable-ul was given.
24661if test "${enable_ul+set}" = set; then :
24662  enableval=$enable_ul;
24663else
24664
24665
24666  if test "x$ul_default_estate" != x; then
24667    enable_ul=$ul_default_estate
24668  else
24669    enable_ul=check
24670  fi
24671
24672
24673fi
24674
24675
24676
24677  if test "x$enable_ul" = xno; then
24678   build_ul=no
24679else
24680   build_ul=yes
24681fi
24682
24683
24684
24685
24686  if test "x$build_ul" != xno; then
24687
24688    ul_haveone_ul=no
24689
24690      if test "x$have_ncurses" = xyes; then
24691        ul_haveone_ul=yes
24692      fi
24693
24694      if test "x$have_tinfo" = xyes; then
24695        ul_haveone_ul=yes
24696      fi
24697
24698    case $enable_ul:$ul_haveone_ul in #(
24699    no:*)
24700      build_ul=no ;;
24701    yes:yes)
24702      build_ul=yes ;;
24703    yes:*)
24704      as_fn_error $? "ul selected, but required ncurses or tinfo libraries not available" "$LINENO" 5;;
24705    check:yes)
24706      build_ul=yes ;;
24707    check:*)
24708      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses or tinfo libraries not found; not building ul" >&5
24709$as_echo "$as_me: WARNING: ncurses or tinfo libraries not found; not building ul" >&2;}
24710      build_ul=no ;;
24711    esac
24712  fi
24713
24714 if test "x$build_ul" = xyes; then
24715  BUILD_UL_TRUE=
24716  BUILD_UL_FALSE='#'
24717else
24718  BUILD_UL_TRUE='#'
24719  BUILD_UL_FALSE=
24720fi
24721
24722
24723
24724# Check whether --enable-more was given.
24725if test "${enable_more+set}" = set; then :
24726  enableval=$enable_more;
24727else
24728
24729
24730  if test "x$ul_default_estate" != x; then
24731    enable_more=$ul_default_estate
24732  else
24733    enable_more=check
24734  fi
24735
24736
24737fi
24738
24739
24740
24741  if test "x$enable_more" = xno; then
24742   build_more=no
24743else
24744   build_more=yes
24745fi
24746
24747
24748
24749
24750  if test "x$build_more" != xno; then
24751
24752    ul_haveone_more=no
24753
24754      if test "x$have_ncurses" = xyes; then
24755        ul_haveone_more=yes
24756      fi
24757
24758      if test "x$have_tinfo" = xyes; then
24759        ul_haveone_more=yes
24760      fi
24761
24762      if test "x$have_termcap" = xyes; then
24763        ul_haveone_more=yes
24764      fi
24765
24766    case $enable_more:$ul_haveone_more in #(
24767    no:*)
24768      build_more=no ;;
24769    yes:yes)
24770      build_more=yes ;;
24771    yes:*)
24772      as_fn_error $? "more selected, but required ncurses, tinfo or termcap libraries not available" "$LINENO" 5;;
24773    check:yes)
24774      build_more=yes ;;
24775    check:*)
24776      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses, tinfo or termcap libraries not found; not building more" >&5
24777$as_echo "$as_me: WARNING: ncurses, tinfo or termcap libraries not found; not building more" >&2;}
24778      build_more=no ;;
24779    esac
24780  fi
24781
24782 if test "x$build_more" = xyes; then
24783  BUILD_MORE_TRUE=
24784  BUILD_MORE_FALSE='#'
24785else
24786  BUILD_MORE_TRUE='#'
24787  BUILD_MORE_FALSE=
24788fi
24789
24790
24791
24792# Check whether --enable-pg was given.
24793if test "${enable_pg+set}" = set; then :
24794  enableval=$enable_pg;
24795else
24796
24797
24798  if test "x$ul_default_estate" != x; then
24799    enable_pg=$ul_default_estate
24800  else
24801    enable_pg=check
24802  fi
24803
24804
24805fi
24806
24807
24808
24809  if test "x$enable_pg" = xno; then
24810   build_pg=no
24811else
24812   build_pg=yes
24813fi
24814
24815
24816
24817
24818  if test "x$build_pg" != xno; then
24819
24820    ul_haveone_pg=no
24821
24822      if test "x$have_ncurses" = xyes; then
24823        ul_haveone_pg=yes
24824      fi
24825
24826    case $enable_pg:$ul_haveone_pg in #(
24827    no:*)
24828      build_pg=no ;;
24829    yes:yes)
24830      build_pg=yes ;;
24831    yes:*)
24832      as_fn_error $? "pg selected, but required ncurses or ncursesw library not available" "$LINENO" 5;;
24833    check:yes)
24834      build_pg=yes ;;
24835    check:*)
24836      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses or ncursesw library not found; not building pg" >&5
24837$as_echo "$as_me: WARNING: ncurses or ncursesw library not found; not building pg" >&2;}
24838      build_pg=no ;;
24839    esac
24840  fi
24841
24842 if test "x$build_pg" = xyes; then
24843  BUILD_PG_TRUE=
24844  BUILD_PG_FALSE='#'
24845else
24846  BUILD_PG_TRUE='#'
24847  BUILD_PG_FALSE=
24848fi
24849
24850
24851
24852# Check whether --enable-setterm was given.
24853if test "${enable_setterm+set}" = set; then :
24854  enableval=$enable_setterm;
24855else
24856
24857
24858  if test "x$ul_default_estate" != x; then
24859    enable_setterm=$ul_default_estate
24860  else
24861    enable_setterm=check
24862  fi
24863
24864
24865fi
24866
24867
24868
24869  if test "x$enable_setterm" = xno; then
24870   build_setterm=no
24871else
24872   build_setterm=yes
24873fi
24874
24875
24876
24877  if test "x$build_setterm" != xno; then
24878
24879    case $enable_setterm:$linux_os in #(
24880    no:*)
24881      build_setterm=no ;;
24882    yes:yes)
24883      build_setterm=yes ;;
24884    yes:*)
24885      as_fn_error $? "setterm selected for non-linux system" "$LINENO" 5;;
24886    check:yes)
24887      build_setterm=yes ;;
24888    check:*)
24889      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; not building setterm" >&5
24890$as_echo "$as_me: WARNING: non-linux system; not building setterm" >&2;}
24891      build_setterm=no ;;
24892    esac
24893  fi
24894
24895
24896
24897
24898  if test "x$build_setterm" != xno; then
24899
24900    ul_haveone_setterm=no
24901
24902      if test "x$have_ncurses" = xyes; then
24903        ul_haveone_setterm=yes
24904      fi
24905
24906    case $enable_setterm:$ul_haveone_setterm in #(
24907    no:*)
24908      build_setterm=no ;;
24909    yes:yes)
24910      build_setterm=yes ;;
24911    yes:*)
24912      as_fn_error $? "setterm selected, but required ncurses library not available" "$LINENO" 5;;
24913    check:yes)
24914      build_setterm=yes ;;
24915    check:*)
24916      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses library not found; not building setterm" >&5
24917$as_echo "$as_me: WARNING: ncurses library not found; not building setterm" >&2;}
24918      build_setterm=no ;;
24919    esac
24920  fi
24921
24922 if test "x$build_setterm" = xyes; then
24923  BUILD_SETTERM_TRUE=
24924  BUILD_SETTERM_FALSE='#'
24925else
24926  BUILD_SETTERM_TRUE='#'
24927  BUILD_SETTERM_FALSE=
24928fi
24929
24930
24931# build_schedutils= is just configure-only variable to control
24932# ionice, taskset and chrt
24933# Check whether --enable-schedutils was given.
24934if test "${enable_schedutils+set}" = set; then :
24935  enableval=$enable_schedutils;
24936else
24937
24938
24939  if test "x$ul_default_estate" != x; then
24940    enable_schedutils=$ul_default_estate
24941  else
24942    enable_schedutils=yes
24943  fi
24944
24945
24946fi
24947
24948
24949
24950  if test "x$enable_schedutils" = xno; then
24951   build_schedutils=no
24952else
24953   build_schedutils=yes
24954fi
24955
24956
24957
24958
24959  if test "x$ul_default_estate" != x; then
24960  enable_ionice=$ul_default_estate
24961  build_ionice=yes
24962  if test "x$ul_default_estate" = xno; then
24963    build_ionice=no
24964  fi
24965else
24966
24967  build_ionice=yes
24968  enable_ionice=check
24969fi
24970
24971
24972
24973
24974  if test "x$build_ionice" != xno; then
24975    case $enable_ionice:$build_schedutils in #(
24976    no:*)
24977      build_ionice=no ;;
24978    yes:yes)
24979      build_ionice=yes ;;
24980    yes:*)
24981      as_fn_error $? "schedutils is needed to build ionice" "$LINENO" 5;;
24982    check:yes)
24983      build_ionice=yes ;;
24984    check:*)
24985      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: schedutils disabled; not building ionice" >&5
24986$as_echo "$as_me: WARNING: schedutils disabled; not building ionice" >&2;}
24987      build_ionice=no ;;
24988    esac
24989  fi
24990
24991
24992
24993
24994
24995             if false; then
24996  HAVE_IOPRIO_SET_TRUE=
24997  HAVE_IOPRIO_SET_FALSE='#'
24998else
24999  HAVE_IOPRIO_SET_TRUE='#'
25000  HAVE_IOPRIO_SET_FALSE=
25001fi
25002
25003
25004  if test "x$build_ionice" != xno; then
25005    if test "x$enable_ionice" = xno; then
25006      build_ionice=no
25007    else
25008
25009
25010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall ioprio_set" >&5
25011$as_echo_n "checking for syscall ioprio_set... " >&6; }
25012if ${ul_cv_syscall_ioprio_set+:} false; then :
25013  $as_echo_n "(cached) " >&6
25014else
25015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25016/* end confdefs.h.  */
25017
25018#include <sys/syscall.h>
25019#include <unistd.h>
25020
25021int
25022main ()
25023{
25024int test = SYS_ioprio_set;
25025  ;
25026  return 0;
25027}
25028_ACEOF
25029if ac_fn_c_try_compile "$LINENO"; then :
25030  syscall=SYS_ioprio_set
25031else
25032              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25033/* end confdefs.h.  */
25034
25035#include <sys/syscall.h>
25036#include <unistd.h>
25037
25038int
25039main ()
25040{
25041int test = _NR_ioprio_set;
25042  ;
25043  return 0;
25044}
25045_ACEOF
25046if ac_fn_c_try_compile "$LINENO"; then :
25047  syscall=_NR_ioprio_set
25048else
25049
25050	  syscall=no
25051	  if test "x$linux_os" = xyes; then
25052	    case $host_cpu in
25053	      #(
25054  alpha) syscall="442" ;;  #(
25055  i*86) syscall="289" ;;  #(
25056  ia64*) syscall="1274" ;;  #(
25057  powerpc*) syscall="273" ;;  #(
25058  s390*) syscall="282" ;;  #(
25059  sparc*) syscall="196" ;;  #(
25060  sh*) syscall="288" ;;  #(
25061  x86_64*) syscall="251" ;;
25062	    esac
25063	  fi
25064
25065fi
25066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067
25068
25069fi
25070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071
25072    ul_cv_syscall_ioprio_set=$syscall
25073
25074fi
25075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_ioprio_set" >&5
25076$as_echo "$ul_cv_syscall_ioprio_set" >&6; }
25077   if test "x$ul_cv_syscall_ioprio_set" != xno; then
25078  HAVE_IOPRIO_SET_TRUE=
25079  HAVE_IOPRIO_SET_FALSE='#'
25080else
25081  HAVE_IOPRIO_SET_TRUE='#'
25082  HAVE_IOPRIO_SET_FALSE=
25083fi
25084
25085  case $ul_cv_syscall_ioprio_set in #(
25086  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall ioprio_set." >&5
25087$as_echo "$as_me: WARNING: Unable to detect syscall ioprio_set." >&2;} ;;
25088  SYS_*) ;;
25089  *)
25090cat >>confdefs.h <<_ACEOF
25091#define SYS_ioprio_set $ul_cv_syscall_ioprio_set
25092_ACEOF
25093 ;;
25094  esac
25095
25096      case $enable_ionice:$ul_cv_syscall_ioprio_set in #(
25097      no:*)
25098        build_ionice=no ;;
25099      yes:no)
25100        as_fn_error $? "ionice selected but ioprio_set syscall not found" "$LINENO" 5 ;;
25101      check:no)
25102        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ioprio_set syscall not found; not building ionice" >&5
25103$as_echo "$as_me: WARNING: ioprio_set syscall not found; not building ionice" >&2;}
25104        build_ionice=no ;;
25105      *)
25106                build_ionice=yes ;;
25107      esac
25108    fi
25109  fi
25110
25111
25112
25113
25114
25115
25116             if false; then
25117  HAVE_IOPRIO_GET_TRUE=
25118  HAVE_IOPRIO_GET_FALSE='#'
25119else
25120  HAVE_IOPRIO_GET_TRUE='#'
25121  HAVE_IOPRIO_GET_FALSE=
25122fi
25123
25124
25125  if test "x$build_ionice" != xno; then
25126    if test "x$enable_ionice" = xno; then
25127      build_ionice=no
25128    else
25129
25130
25131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall ioprio_get" >&5
25132$as_echo_n "checking for syscall ioprio_get... " >&6; }
25133if ${ul_cv_syscall_ioprio_get+:} false; then :
25134  $as_echo_n "(cached) " >&6
25135else
25136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25137/* end confdefs.h.  */
25138
25139#include <sys/syscall.h>
25140#include <unistd.h>
25141
25142int
25143main ()
25144{
25145int test = SYS_ioprio_get;
25146  ;
25147  return 0;
25148}
25149_ACEOF
25150if ac_fn_c_try_compile "$LINENO"; then :
25151  syscall=SYS_ioprio_get
25152else
25153              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154/* end confdefs.h.  */
25155
25156#include <sys/syscall.h>
25157#include <unistd.h>
25158
25159int
25160main ()
25161{
25162int test = _NR_ioprio_get;
25163  ;
25164  return 0;
25165}
25166_ACEOF
25167if ac_fn_c_try_compile "$LINENO"; then :
25168  syscall=_NR_ioprio_get
25169else
25170
25171	  syscall=no
25172	  if test "x$linux_os" = xyes; then
25173	    case $host_cpu in
25174	      #(
25175  alpha) syscall="443" ;;  #(
25176  i*86) syscall="290" ;;  #(
25177  ia64*) syscall="1275" ;;  #(
25178  powerpc*) syscall="274" ;;  #(
25179  s390*) syscall="283" ;;  #(
25180  sparc*) syscall="218" ;;  #(
25181  sh*) syscall="289" ;;  #(
25182  x86_64*) syscall="252" ;;
25183	    esac
25184	  fi
25185
25186fi
25187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25188
25189
25190fi
25191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25192
25193    ul_cv_syscall_ioprio_get=$syscall
25194
25195fi
25196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_ioprio_get" >&5
25197$as_echo "$ul_cv_syscall_ioprio_get" >&6; }
25198   if test "x$ul_cv_syscall_ioprio_get" != xno; then
25199  HAVE_IOPRIO_GET_TRUE=
25200  HAVE_IOPRIO_GET_FALSE='#'
25201else
25202  HAVE_IOPRIO_GET_TRUE='#'
25203  HAVE_IOPRIO_GET_FALSE=
25204fi
25205
25206  case $ul_cv_syscall_ioprio_get in #(
25207  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall ioprio_get." >&5
25208$as_echo "$as_me: WARNING: Unable to detect syscall ioprio_get." >&2;} ;;
25209  SYS_*) ;;
25210  *)
25211cat >>confdefs.h <<_ACEOF
25212#define SYS_ioprio_get $ul_cv_syscall_ioprio_get
25213_ACEOF
25214 ;;
25215  esac
25216
25217      case $enable_ionice:$ul_cv_syscall_ioprio_get in #(
25218      no:*)
25219        build_ionice=no ;;
25220      yes:no)
25221        as_fn_error $? "ionice selected but ioprio_get syscall not found" "$LINENO" 5 ;;
25222      check:no)
25223        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ioprio_get syscall not found; not building ionice" >&5
25224$as_echo "$as_me: WARNING: ioprio_get syscall not found; not building ionice" >&2;}
25225        build_ionice=no ;;
25226      *)
25227                build_ionice=yes ;;
25228      esac
25229    fi
25230  fi
25231
25232
25233 if test "x$build_ionice" = xyes; then
25234  BUILD_IONICE_TRUE=
25235  BUILD_IONICE_FALSE='#'
25236else
25237  BUILD_IONICE_TRUE='#'
25238  BUILD_IONICE_FALSE=
25239fi
25240
25241
25242
25243
25244  if test "x$ul_default_estate" != x; then
25245  enable_taskset=$ul_default_estate
25246  build_taskset=yes
25247  if test "x$ul_default_estate" = xno; then
25248    build_taskset=no
25249  fi
25250else
25251
25252  build_taskset=yes
25253  enable_taskset=check
25254fi
25255
25256
25257
25258
25259  if test "x$build_taskset" != xno; then
25260    case $enable_taskset:$build_schedutils in #(
25261    no:*)
25262      build_taskset=no ;;
25263    yes:yes)
25264      build_taskset=yes ;;
25265    yes:*)
25266      as_fn_error $? "schedutils is needed to build taskset" "$LINENO" 5;;
25267    check:yes)
25268      build_taskset=yes ;;
25269    check:*)
25270      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: schedutils disabled; not building taskset" >&5
25271$as_echo "$as_me: WARNING: schedutils disabled; not building taskset" >&2;}
25272      build_taskset=no ;;
25273    esac
25274  fi
25275
25276
25277
25278
25279  if test "x$build_taskset" != xno; then
25280
25281    ul_haveone_taskset=no
25282
25283      if test "x$have_cpu_set_t" = xyes; then
25284        ul_haveone_taskset=yes
25285      fi
25286
25287    case $enable_taskset:$ul_haveone_taskset in #(
25288    no:*)
25289      build_taskset=no ;;
25290    yes:yes)
25291      build_taskset=yes ;;
25292    yes:*)
25293      as_fn_error $? "taskset selected, but required cpu_set_t type not available" "$LINENO" 5;;
25294    check:yes)
25295      build_taskset=yes ;;
25296    check:*)
25297      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cpu_set_t type not found; not building taskset" >&5
25298$as_echo "$as_me: WARNING: cpu_set_t type not found; not building taskset" >&2;}
25299      build_taskset=no ;;
25300    esac
25301  fi
25302
25303
25304
25305
25306
25307             if false; then
25308  HAVE_SCHED_GETAFFINITY_TRUE=
25309  HAVE_SCHED_GETAFFINITY_FALSE='#'
25310else
25311  HAVE_SCHED_GETAFFINITY_TRUE='#'
25312  HAVE_SCHED_GETAFFINITY_FALSE=
25313fi
25314
25315
25316  if test "x$build_taskset" != xno; then
25317    if test "x$enable_taskset" = xno; then
25318      build_taskset=no
25319    else
25320
25321
25322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall sched_getaffinity" >&5
25323$as_echo_n "checking for syscall sched_getaffinity... " >&6; }
25324if ${ul_cv_syscall_sched_getaffinity+:} false; then :
25325  $as_echo_n "(cached) " >&6
25326else
25327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328/* end confdefs.h.  */
25329
25330#include <sys/syscall.h>
25331#include <unistd.h>
25332
25333int
25334main ()
25335{
25336int test = SYS_sched_getaffinity;
25337  ;
25338  return 0;
25339}
25340_ACEOF
25341if ac_fn_c_try_compile "$LINENO"; then :
25342  syscall=SYS_sched_getaffinity
25343else
25344              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345/* end confdefs.h.  */
25346
25347#include <sys/syscall.h>
25348#include <unistd.h>
25349
25350int
25351main ()
25352{
25353int test = _NR_sched_getaffinity;
25354  ;
25355  return 0;
25356}
25357_ACEOF
25358if ac_fn_c_try_compile "$LINENO"; then :
25359  syscall=_NR_sched_getaffinity
25360else
25361
25362	  syscall=no
25363	  if test "x$linux_os" = xyes; then
25364	    case $host_cpu in
25365
25366	    esac
25367	  fi
25368
25369fi
25370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25371
25372
25373fi
25374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375
25376    ul_cv_syscall_sched_getaffinity=$syscall
25377
25378fi
25379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ul_cv_syscall_sched_getaffinity" >&5
25380$as_echo "$ul_cv_syscall_sched_getaffinity" >&6; }
25381   if test "x$ul_cv_syscall_sched_getaffinity" != xno; then
25382  HAVE_SCHED_GETAFFINITY_TRUE=
25383  HAVE_SCHED_GETAFFINITY_FALSE='#'
25384else
25385  HAVE_SCHED_GETAFFINITY_TRUE='#'
25386  HAVE_SCHED_GETAFFINITY_FALSE=
25387fi
25388
25389  case $ul_cv_syscall_sched_getaffinity in #(
25390  no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall sched_getaffinity." >&5
25391$as_echo "$as_me: WARNING: Unable to detect syscall sched_getaffinity." >&2;} ;;
25392  SYS_*) ;;
25393  *)
25394cat >>confdefs.h <<_ACEOF
25395#define SYS_sched_getaffinity $ul_cv_syscall_sched_getaffinity
25396_ACEOF
25397 ;;
25398  esac
25399
25400      case $enable_taskset:$ul_cv_syscall_sched_getaffinity in #(
25401      no:*)
25402        build_taskset=no ;;
25403      yes:no)
25404        as_fn_error $? "taskset selected but sched_getaffinity syscall not found" "$LINENO" 5 ;;
25405      check:no)
25406        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sched_getaffinity syscall not found; not building taskset" >&5
25407$as_echo "$as_me: WARNING: sched_getaffinity syscall not found; not building taskset" >&2;}
25408        build_taskset=no ;;
25409      *)
25410                build_taskset=yes ;;
25411      esac
25412    fi
25413  fi
25414
25415 if test "x$build_taskset" = xyes; then
25416  BUILD_TASKSET_TRUE=
25417  BUILD_TASKSET_FALSE='#'
25418else
25419  BUILD_TASKSET_TRUE='#'
25420  BUILD_TASKSET_FALSE=
25421fi
25422
25423
25424
25425
25426  if test "x$ul_default_estate" != x; then
25427  enable_chrt=$ul_default_estate
25428  build_chrt=yes
25429  if test "x$ul_default_estate" = xno; then
25430    build_chrt=no
25431  fi
25432else
25433
25434  build_chrt=yes
25435  enable_chrt=check
25436fi
25437
25438
25439
25440
25441  if test "x$build_chrt" != xno; then
25442    case $enable_chrt:$build_schedutils in #(
25443    no:*)
25444      build_chrt=no ;;
25445    yes:yes)
25446      build_chrt=yes ;;
25447    yes:*)
25448      as_fn_error $? "schedutils is needed to build chrt" "$LINENO" 5;;
25449    check:yes)
25450      build_chrt=yes ;;
25451    check:*)
25452      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: schedutils disabled; not building chrt" >&5
25453$as_echo "$as_me: WARNING: schedutils disabled; not building chrt" >&2;}
25454      build_chrt=no ;;
25455    esac
25456  fi
25457
25458 if test "x$build_chrt" = xyes; then
25459  BUILD_CHRT_TRUE=
25460  BUILD_CHRT_FALSE='#'
25461else
25462  BUILD_CHRT_TRUE='#'
25463  BUILD_CHRT_FALSE=
25464fi
25465
25466
25467
25468# Check whether --enable-wall was given.
25469if test "${enable_wall+set}" = set; then :
25470  enableval=$enable_wall;
25471else
25472
25473
25474  if test "x$ul_default_estate" != x; then
25475    enable_wall=$ul_default_estate
25476  else
25477    enable_wall=yes
25478  fi
25479
25480
25481fi
25482
25483
25484
25485  if test "x$enable_wall" = xno; then
25486   build_wall=no
25487else
25488   build_wall=yes
25489fi
25490
25491 if test "x$build_wall" = xyes; then
25492  BUILD_WALL_TRUE=
25493  BUILD_WALL_FALSE='#'
25494else
25495  BUILD_WALL_TRUE='#'
25496  BUILD_WALL_FALSE=
25497fi
25498
25499
25500
25501# Check whether --enable-write was given.
25502if test "${enable_write+set}" = set; then :
25503  enableval=$enable_write;
25504else
25505
25506
25507  if test "x$ul_default_estate" != x; then
25508    enable_write=$ul_default_estate
25509  else
25510    enable_write=no
25511  fi
25512
25513
25514fi
25515
25516
25517
25518  if test "x$enable_write" = xno; then
25519   build_write=no
25520else
25521   build_write=yes
25522fi
25523
25524 if test "x$build_write" = xyes; then
25525  BUILD_WRITE_TRUE=
25526  BUILD_WRITE_FALSE='#'
25527else
25528  BUILD_WRITE_TRUE='#'
25529  BUILD_WRITE_FALSE=
25530fi
25531
25532
25533
25534
25535# Check whether --with-systemd was given.
25536if test "${with_systemd+set}" = set; then :
25537  withval=$with_systemd;
25538else
25539  with_systemd=check
25540
25541fi
25542
25543
25544have_systemd=no
25545if test "x$with_systemd" != xno; then :
25546
25547  # new version -- all libsystemd-* libs merged into libsystemd
25548
25549pkg_failed=no
25550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
25551$as_echo_n "checking for SYSTEMD... " >&6; }
25552
25553if test -n "$SYSTEMD_CFLAGS"; then
25554    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
25555 elif test -n "$PKG_CONFIG"; then
25556    if test -n "$PKG_CONFIG" && \
25557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
25558  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
25559  ac_status=$?
25560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561  test $ac_status = 0; }; then
25562  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
25563		      test "x$?" != "x0" && pkg_failed=yes
25564else
25565  pkg_failed=yes
25566fi
25567 else
25568    pkg_failed=untried
25569fi
25570if test -n "$SYSTEMD_LIBS"; then
25571    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
25572 elif test -n "$PKG_CONFIG"; then
25573    if test -n "$PKG_CONFIG" && \
25574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
25575  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
25576  ac_status=$?
25577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578  test $ac_status = 0; }; then
25579  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
25580		      test "x$?" != "x0" && pkg_failed=yes
25581else
25582  pkg_failed=yes
25583fi
25584 else
25585    pkg_failed=untried
25586fi
25587
25588
25589
25590if test $pkg_failed = yes; then
25591   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25592$as_echo "no" >&6; }
25593
25594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25595        _pkg_short_errors_supported=yes
25596else
25597        _pkg_short_errors_supported=no
25598fi
25599        if test $_pkg_short_errors_supported = yes; then
25600	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
25601        else
25602	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
25603        fi
25604	# Put the nasty error message in config.log where it belongs
25605	echo "$SYSTEMD_PKG_ERRORS" >&5
25606
25607	have_systemd=no
25608elif test $pkg_failed = untried; then
25609     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25610$as_echo "no" >&6; }
25611	have_systemd=no
25612else
25613	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
25614	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
25615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25616$as_echo "yes" >&6; }
25617	have_systemd=yes
25618fi
25619  # old versions
25620  if test "x$have_systemd" != "xyes"; then :
25621
25622
25623pkg_failed=no
25624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25625$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25626
25627if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25628    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25629 elif test -n "$PKG_CONFIG"; then
25630    if test -n "$PKG_CONFIG" && \
25631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25632  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25633  ac_status=$?
25634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635  test $ac_status = 0; }; then
25636  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25637		      test "x$?" != "x0" && pkg_failed=yes
25638else
25639  pkg_failed=yes
25640fi
25641 else
25642    pkg_failed=untried
25643fi
25644if test -n "$SYSTEMD_DAEMON_LIBS"; then
25645    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25646 elif test -n "$PKG_CONFIG"; then
25647    if test -n "$PKG_CONFIG" && \
25648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25649  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25650  ac_status=$?
25651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652  test $ac_status = 0; }; then
25653  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25654		      test "x$?" != "x0" && pkg_failed=yes
25655else
25656  pkg_failed=yes
25657fi
25658 else
25659    pkg_failed=untried
25660fi
25661
25662
25663
25664if test $pkg_failed = yes; then
25665   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25666$as_echo "no" >&6; }
25667
25668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25669        _pkg_short_errors_supported=yes
25670else
25671        _pkg_short_errors_supported=no
25672fi
25673        if test $_pkg_short_errors_supported = yes; then
25674	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25675        else
25676	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25677        fi
25678	# Put the nasty error message in config.log where it belongs
25679	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25680
25681	have_systemd_daemon=no
25682elif test $pkg_failed = untried; then
25683     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25684$as_echo "no" >&6; }
25685	have_systemd_daemon=no
25686else
25687	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25688	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25690$as_echo "yes" >&6; }
25691	have_systemd_daemon=yes
25692fi
25693
25694pkg_failed=no
25695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_JOURNAL" >&5
25696$as_echo_n "checking for SYSTEMD_JOURNAL... " >&6; }
25697
25698if test -n "$SYSTEMD_JOURNAL_CFLAGS"; then
25699    pkg_cv_SYSTEMD_JOURNAL_CFLAGS="$SYSTEMD_JOURNAL_CFLAGS"
25700 elif test -n "$PKG_CONFIG"; then
25701    if test -n "$PKG_CONFIG" && \
25702    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
25703  ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
25704  ac_status=$?
25705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25706  test $ac_status = 0; }; then
25707  pkg_cv_SYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
25708		      test "x$?" != "x0" && pkg_failed=yes
25709else
25710  pkg_failed=yes
25711fi
25712 else
25713    pkg_failed=untried
25714fi
25715if test -n "$SYSTEMD_JOURNAL_LIBS"; then
25716    pkg_cv_SYSTEMD_JOURNAL_LIBS="$SYSTEMD_JOURNAL_LIBS"
25717 elif test -n "$PKG_CONFIG"; then
25718    if test -n "$PKG_CONFIG" && \
25719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
25720  ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
25721  ac_status=$?
25722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723  test $ac_status = 0; }; then
25724  pkg_cv_SYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
25725		      test "x$?" != "x0" && pkg_failed=yes
25726else
25727  pkg_failed=yes
25728fi
25729 else
25730    pkg_failed=untried
25731fi
25732
25733
25734
25735if test $pkg_failed = yes; then
25736   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25737$as_echo "no" >&6; }
25738
25739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25740        _pkg_short_errors_supported=yes
25741else
25742        _pkg_short_errors_supported=no
25743fi
25744        if test $_pkg_short_errors_supported = yes; then
25745	        SYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
25746        else
25747	        SYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
25748        fi
25749	# Put the nasty error message in config.log where it belongs
25750	echo "$SYSTEMD_JOURNAL_PKG_ERRORS" >&5
25751
25752	have_systemd_journal=no
25753elif test $pkg_failed = untried; then
25754     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25755$as_echo "no" >&6; }
25756	have_systemd_journal=no
25757else
25758	SYSTEMD_JOURNAL_CFLAGS=$pkg_cv_SYSTEMD_JOURNAL_CFLAGS
25759	SYSTEMD_JOURNAL_LIBS=$pkg_cv_SYSTEMD_JOURNAL_LIBS
25760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25761$as_echo "yes" >&6; }
25762	have_systemd_journal=yes
25763fi
25764    if test "x$have_systemd_daemon" = "xyes" -a "x$have_systemd_journal" = "xyes" ; then :
25765
25766	   have_systemd=yes
25767fi
25768
25769fi
25770  case $with_systemd:$have_systemd in #(
25771  yes:no) :
25772    as_fn_error $? "systemd expected but libsystemd not found" "$LINENO" 5 ;; #(
25773  *:yes) :
25774
25775$as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
25776
25777   ;; #(
25778  *) :
25779     ;;
25780esac
25781
25782fi
25783 if test "x$have_systemd" = xyes; then
25784  HAVE_SYSTEMD_TRUE=
25785  HAVE_SYSTEMD_FALSE='#'
25786else
25787  HAVE_SYSTEMD_TRUE='#'
25788  HAVE_SYSTEMD_FALSE=
25789fi
25790
25791
25792
25793
25794# Check whether --with-systemdsystemunitdir was given.
25795if test "${with_systemdsystemunitdir+set}" = set; then :
25796  withval=$with_systemdsystemunitdir;
25797else
25798  with_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
25799fi
25800
25801
25802if test "x$with_systemdsystemunitdir" != "xno"; then :
25803
25804  systemdsystemunitdir=$with_systemdsystemunitdir
25805
25806
25807fi
25808
25809
25810
25811# Check whether --with-smack was given.
25812if test "${with_smack+set}" = set; then :
25813  withval=$with_smack;
25814else
25815  with_smack=no
25816
25817fi
25818
25819if test "x$with_smack" = xyes; then :
25820
25821
25822$as_echo "#define HAVE_SMACK 1" >>confdefs.h
25823
25824
25825fi
25826
25827
25828
25829# Check whether --with-bashcompletiondir was given.
25830if test "${with_bashcompletiondir+set}" = set; then :
25831  withval=$with_bashcompletiondir;
25832else
25833  if `$PKG_CONFIG --exists bash-completion`; then :
25834
25835    with_bashcompletiondir=`$PKG_CONFIG --variable=completionsdir bash-completion`
25836
25837else
25838
25839    with_bashcompletiondir=${datadir}/bash-completion/completions
25840
25841fi
25842
25843fi
25844
25845bashcompletiondir=$with_bashcompletiondir
25846
25847
25848# Check whether --enable-bash-completion was given.
25849if test "${enable_bash_completion+set}" = set; then :
25850  enableval=$enable_bash_completion;
25851else
25852  enable_bash_completion=yes
25853
25854fi
25855
25856
25857 if test "x$enable_bash_completion" = xyes; then
25858  BUILD_BASH_COMPLETION_TRUE=
25859  BUILD_BASH_COMPLETION_FALSE='#'
25860else
25861  BUILD_BASH_COMPLETION_TRUE='#'
25862  BUILD_BASH_COMPLETION_FALSE=
25863fi
25864
25865
25866
25867
25868# Check whether --with-python was given.
25869if test "${with_python+set}" = set; then :
25870  withval=$with_python;
25871else
25872  with_python=check withval=check
25873
25874fi
25875
25876
25877have_python=no
25878if test "x$with_python" != xno; then :
25879
25880  # We follow distributions default and look for PKG module name "python"
25881  # (minimal version is 2) but if major version is explicitly specified by
25882  # --with-python=2 or --with-python=3 then we look for PKG module "python2" or
25883  # "python3".
25884  if test "x$withval" != xno -a "x$withval" != xyes -a "x$withval" != xcheck; then :
25885  pymajor="$withval"; PYTHON=python${pymajor}
25886else
25887  pymajor="2"
25888fi
25889
25890
25891
25892
25893
25894
25895        if test -n "$PYTHON"; then
25896      # If the user set $PYTHON, use it and don't search something else.
25897      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= $pymajor" >&5
25898$as_echo_n "checking whether $PYTHON version is >= $pymajor... " >&6; }
25899      prog="import sys
25900# split strings by '.' and convert to numeric.  Append some zeros
25901# because we need at least 4 digits for the hex conversion.
25902# map returns an iterator in Python 3.0 and a list in 2.x
25903minver = list(map(int, '$pymajor'.split('.'))) + [0, 0, 0]
25904minverhex = 0
25905# xrange is not present in Python 3.0 and range returns an iterator
25906for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
25907sys.exit(sys.hexversion < minverhex)"
25908  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
25909   ($PYTHON -c "$prog") >&5 2>&5
25910   ac_status=$?
25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); }; then :
25913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25914$as_echo "yes" >&6; }
25915else
25916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25917$as_echo "no" >&6; }
25918			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
25919fi
25920      am_display_PYTHON=$PYTHON
25921    else
25922      # Otherwise, try each interpreter until we find one that satisfies
25923      # VERSION.
25924      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= $pymajor" >&5
25925$as_echo_n "checking for a Python interpreter with version >= $pymajor... " >&6; }
25926if ${am_cv_pathless_PYTHON+:} false; then :
25927  $as_echo_n "(cached) " >&6
25928else
25929
25930	for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
25931	  test "$am_cv_pathless_PYTHON" = none && break
25932	  prog="import sys
25933# split strings by '.' and convert to numeric.  Append some zeros
25934# because we need at least 4 digits for the hex conversion.
25935# map returns an iterator in Python 3.0 and a list in 2.x
25936minver = list(map(int, '$pymajor'.split('.'))) + [0, 0, 0]
25937minverhex = 0
25938# xrange is not present in Python 3.0 and range returns an iterator
25939for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
25940sys.exit(sys.hexversion < minverhex)"
25941  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
25942   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
25943   ac_status=$?
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); }; then :
25946  break
25947fi
25948	done
25949fi
25950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
25951$as_echo "$am_cv_pathless_PYTHON" >&6; }
25952      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
25953      if test "$am_cv_pathless_PYTHON" = none; then
25954	PYTHON=:
25955      else
25956        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
25957set dummy $am_cv_pathless_PYTHON; ac_word=$2
25958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25959$as_echo_n "checking for $ac_word... " >&6; }
25960if ${ac_cv_path_PYTHON+:} false; then :
25961  $as_echo_n "(cached) " >&6
25962else
25963  case $PYTHON in
25964  [\\/]* | ?:[\\/]*)
25965  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
25966  ;;
25967  *)
25968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25969for as_dir in $PATH
25970do
25971  IFS=$as_save_IFS
25972  test -z "$as_dir" && as_dir=.
25973    for ac_exec_ext in '' $ac_executable_extensions; do
25974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25975    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
25976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25977    break 2
25978  fi
25979done
25980  done
25981IFS=$as_save_IFS
25982
25983  ;;
25984esac
25985fi
25986PYTHON=$ac_cv_path_PYTHON
25987if test -n "$PYTHON"; then
25988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
25989$as_echo "$PYTHON" >&6; }
25990else
25991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25992$as_echo "no" >&6; }
25993fi
25994
25995
25996      fi
25997      am_display_PYTHON=$am_cv_pathless_PYTHON
25998    fi
25999
26000
26001  if test "$PYTHON" = :; then
26002      have_python=no
26003  else
26004
26005
26006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
26007$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
26008if ${am_cv_python_version+:} false; then :
26009  $as_echo_n "(cached) " >&6
26010else
26011  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
26012fi
26013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
26014$as_echo "$am_cv_python_version" >&6; }
26015  PYTHON_VERSION=$am_cv_python_version
26016
26017
26018
26019  PYTHON_PREFIX='${prefix}'
26020
26021  PYTHON_EXEC_PREFIX='${exec_prefix}'
26022
26023
26024
26025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
26026$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
26027if ${am_cv_python_platform+:} false; then :
26028  $as_echo_n "(cached) " >&6
26029else
26030  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
26031fi
26032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
26033$as_echo "$am_cv_python_platform" >&6; }
26034  PYTHON_PLATFORM=$am_cv_python_platform
26035
26036
26037  # Just factor out some code duplication.
26038  am_python_setup_sysconfig="\
26039import sys
26040# Prefer sysconfig over distutils.sysconfig, for better compatibility
26041# with python 3.x.  See automake bug#10227.
26042try:
26043    import sysconfig
26044except ImportError:
26045    can_use_sysconfig = 0
26046else:
26047    can_use_sysconfig = 1
26048# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
26049# <https://github.com/pypa/virtualenv/issues/118>
26050try:
26051    from platform import python_implementation
26052    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
26053        can_use_sysconfig = 0
26054except ImportError:
26055    pass"
26056
26057
26058            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
26059$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
26060if ${am_cv_python_pythondir+:} false; then :
26061  $as_echo_n "(cached) " >&6
26062else
26063  if test "x$prefix" = xNONE
26064     then
26065       am_py_prefix=$ac_default_prefix
26066     else
26067       am_py_prefix=$prefix
26068     fi
26069     am_cv_python_pythondir=`$PYTHON -c "
26070$am_python_setup_sysconfig
26071if can_use_sysconfig:
26072    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
26073else:
26074    from distutils import sysconfig
26075    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
26076sys.stdout.write(sitedir)"`
26077     case $am_cv_python_pythondir in
26078     $am_py_prefix*)
26079       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
26080       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
26081       ;;
26082     *)
26083       case $am_py_prefix in
26084         /usr|/System*) ;;
26085         *)
26086	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
26087	  ;;
26088       esac
26089       ;;
26090     esac
26091
26092fi
26093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
26094$as_echo "$am_cv_python_pythondir" >&6; }
26095  pythondir=$am_cv_python_pythondir
26096
26097
26098
26099  pkgpythondir=\${pythondir}/$PACKAGE
26100
26101
26102        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
26103$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
26104if ${am_cv_python_pyexecdir+:} false; then :
26105  $as_echo_n "(cached) " >&6
26106else
26107  if test "x$exec_prefix" = xNONE
26108     then
26109       am_py_exec_prefix=$am_py_prefix
26110     else
26111       am_py_exec_prefix=$exec_prefix
26112     fi
26113     am_cv_python_pyexecdir=`$PYTHON -c "
26114$am_python_setup_sysconfig
26115if can_use_sysconfig:
26116    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
26117else:
26118    from distutils import sysconfig
26119    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
26120sys.stdout.write(sitedir)"`
26121     case $am_cv_python_pyexecdir in
26122     $am_py_exec_prefix*)
26123       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
26124       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
26125       ;;
26126     *)
26127       case $am_py_exec_prefix in
26128         /usr|/System*) ;;
26129         *)
26130	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
26131	   ;;
26132       esac
26133       ;;
26134     esac
26135
26136fi
26137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
26138$as_echo "$am_cv_python_pyexecdir" >&6; }
26139  pyexecdir=$am_cv_python_pyexecdir
26140
26141
26142
26143  pkgpyexecdir=\${pyexecdir}/$PACKAGE
26144
26145
26146    have_python=yes
26147  fi
26148
26149
26150  case $with_python:$have_python in #(
26151  yes:no) :
26152    as_fn_error $? "python selected but libpython not found" "$LINENO" 5 ;; #(
26153  check:no) :
26154    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpython not found, do not build python bindings" >&5
26155$as_echo "$as_me: WARNING: libpython not found, do not build python bindings" >&2;} ;; #(
26156  *:yes) :
26157
26158pkg_failed=no
26159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
26160$as_echo_n "checking for PYTHON... " >&6; }
26161
26162if test -n "$PYTHON_CFLAGS"; then
26163    pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
26164 elif test -n "$PKG_CONFIG"; then
26165    if test -n "$PKG_CONFIG" && \
26166    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYTHON_VERSION\""; } >&5
26167  ($PKG_CONFIG --exists --print-errors "python-$PYTHON_VERSION") 2>&5
26168  ac_status=$?
26169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26170  test $ac_status = 0; }; then
26171  pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-$PYTHON_VERSION" 2>/dev/null`
26172		      test "x$?" != "x0" && pkg_failed=yes
26173else
26174  pkg_failed=yes
26175fi
26176 else
26177    pkg_failed=untried
26178fi
26179if test -n "$PYTHON_LIBS"; then
26180    pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
26181 elif test -n "$PKG_CONFIG"; then
26182    if test -n "$PKG_CONFIG" && \
26183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYTHON_VERSION\""; } >&5
26184  ($PKG_CONFIG --exists --print-errors "python-$PYTHON_VERSION") 2>&5
26185  ac_status=$?
26186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187  test $ac_status = 0; }; then
26188  pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-$PYTHON_VERSION" 2>/dev/null`
26189		      test "x$?" != "x0" && pkg_failed=yes
26190else
26191  pkg_failed=yes
26192fi
26193 else
26194    pkg_failed=untried
26195fi
26196
26197
26198
26199if test $pkg_failed = yes; then
26200   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26201$as_echo "no" >&6; }
26202
26203if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26204        _pkg_short_errors_supported=yes
26205else
26206        _pkg_short_errors_supported=no
26207fi
26208        if test $_pkg_short_errors_supported = yes; then
26209	        PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-$PYTHON_VERSION" 2>&1`
26210        else
26211	        PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-$PYTHON_VERSION" 2>&1`
26212        fi
26213	# Put the nasty error message in config.log where it belongs
26214	echo "$PYTHON_PKG_ERRORS" >&5
26215
26216	as_fn_error $? "Package requirements (python-$PYTHON_VERSION) were not met:
26217
26218$PYTHON_PKG_ERRORS
26219
26220Consider adjusting the PKG_CONFIG_PATH environment variable if you
26221installed software in a non-standard prefix.
26222
26223Alternatively, you may set the environment variables PYTHON_CFLAGS
26224and PYTHON_LIBS to avoid the need to call pkg-config.
26225See the pkg-config man page for more details." "$LINENO" 5
26226elif test $pkg_failed = untried; then
26227     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26228$as_echo "no" >&6; }
26229	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26231as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26232is in your PATH or set the PKG_CONFIG environment variable to the full
26233path to pkg-config.
26234
26235Alternatively, you may set the environment variables PYTHON_CFLAGS
26236and PYTHON_LIBS to avoid the need to call pkg-config.
26237See the pkg-config man page for more details.
26238
26239To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26240See \`config.log' for more details" "$LINENO" 5; }
26241else
26242	PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
26243	PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
26244        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26245$as_echo "yes" >&6; }
26246
26247fi
26248   ;; #(
26249  *) :
26250     ;;
26251esac
26252
26253fi
26254
26255
26256# Check whether --enable-pylibmount was given.
26257if test "${enable_pylibmount+set}" = set; then :
26258  enableval=$enable_pylibmount;
26259else
26260
26261
26262  if test "x$ul_default_estate" != x; then
26263    enable_pylibmount=$ul_default_estate
26264  else
26265    enable_pylibmount=check
26266  fi
26267
26268
26269fi
26270
26271
26272
26273  if test "x$enable_pylibmount" = xno; then
26274   build_pylibmount=no
26275else
26276   build_pylibmount=yes
26277fi
26278
26279
26280
26281
26282  if test "x$build_pylibmount" != xno; then
26283
26284    ul_haveone_pylibmount=no
26285
26286      if test "x$have_python" = xyes; then
26287        ul_haveone_pylibmount=yes
26288      fi
26289
26290    case $enable_pylibmount:$ul_haveone_pylibmount in #(
26291    no:*)
26292      build_pylibmount=no ;;
26293    yes:yes)
26294      build_pylibmount=yes ;;
26295    yes:*)
26296      as_fn_error $? "pylibmount selected, but required libpython not available" "$LINENO" 5;;
26297    check:yes)
26298      build_pylibmount=yes ;;
26299    check:*)
26300      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpython not found; not building pylibmount" >&5
26301$as_echo "$as_me: WARNING: libpython not found; not building pylibmount" >&2;}
26302      build_pylibmount=no ;;
26303    esac
26304  fi
26305
26306
26307
26308
26309  if test "x$build_pylibmount" != xno; then
26310    case $enable_pylibmount:$build_libmount in #(
26311    no:*)
26312      build_pylibmount=no ;;
26313    yes:yes)
26314      build_pylibmount=yes ;;
26315    yes:*)
26316      as_fn_error $? "libmount is needed to build pylibmount" "$LINENO" 5;;
26317    check:yes)
26318      build_pylibmount=yes ;;
26319    check:*)
26320      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; not building pylibmount" >&5
26321$as_echo "$as_me: WARNING: libmount disabled; not building pylibmount" >&2;}
26322      build_pylibmount=no ;;
26323    esac
26324  fi
26325
26326 if test "x$build_pylibmount" = "xyes"; then
26327  BUILD_PYLIBMOUNT_TRUE=
26328  BUILD_PYLIBMOUNT_FALSE='#'
26329else
26330  BUILD_PYLIBMOUNT_TRUE='#'
26331  BUILD_PYLIBMOUNT_FALSE=
26332fi
26333
26334
26335
26336# Check whether --enable-pg-bell was given.
26337if test "${enable_pg_bell+set}" = set; then :
26338  enableval=$enable_pg_bell;
26339else
26340  enable_pg_bell=yes
26341
26342fi
26343
26344
26345if test "x$enable_pg_bell" = xyes; then :
26346
26347
26348$as_echo "#define PG_BELL 1" >>confdefs.h
26349
26350
26351fi
26352
26353
26354
26355# Check whether --enable-fs-paths-default was given.
26356if test "${enable_fs_paths_default+set}" = set; then :
26357  enableval=$enable_fs_paths_default; case $enableval in #(
26358  yes) :
26359    fs_paths_defaults="/sbin:/sbin/fs.d:/sbin/fs" ;; #(
26360  no) :
26361    fs_paths_defaults="" ;; #(
26362  *) :
26363    fs_paths_defaults="$enableval"
26364   ;;
26365esac
26366else
26367  fs_paths_defaults="/sbin:/sbin/fs.d:/sbin/fs"
26368
26369fi
26370
26371# Check whether --enable-fs-paths-extra was given.
26372if test "${enable_fs_paths_extra+set}" = set; then :
26373  enableval=$enable_fs_paths_extra; case $enableval in #(
26374  yes|no) :
26375    fs_paths_extra="" ;; #(
26376  *) :
26377    fs_paths_extra="$enableval"
26378   ;;
26379esac
26380else
26381  fs_paths_extra=""
26382
26383fi
26384
26385fs_paths="$fs_paths_defaults"
26386if test "x$fs_paths_extra" != "x"; then :
26387
26388  if test "x$fs_paths" != "x"; then :
26389
26390    fs_paths="${fs_paths}:"
26391
26392fi
26393  fs_paths="${fs_paths}${fs_paths_extra}"
26394
26395fi
26396
26397cat >>confdefs.h <<_ACEOF
26398#define FS_SEARCH_PATH "$fs_paths"
26399_ACEOF
26400
26401
26402
26403# Check whether --enable-use-tty-group was given.
26404if test "${enable_use_tty_group+set}" = set; then :
26405  enableval=$enable_use_tty_group;
26406else
26407  enable_use_tty_group=yes
26408
26409fi
26410
26411 if test "x$enable_use_tty_group" = xyes; then
26412  USE_TTY_GROUP_TRUE=
26413  USE_TTY_GROUP_FALSE='#'
26414else
26415  USE_TTY_GROUP_TRUE='#'
26416  USE_TTY_GROUP_FALSE=
26417fi
26418
26419
26420if test "x$enable_use_tty_group" = xyes; then :
26421
26422
26423$as_echo "#define USE_TTY_GROUP 1" >>confdefs.h
26424
26425
26426fi
26427
26428
26429# Check whether --enable-sulogin-emergency-mount was given.
26430if test "${enable_sulogin_emergency_mount+set}" = set; then :
26431  enableval=$enable_sulogin_emergency_mount;
26432else
26433  enable_sulogin_emergency_mount=no
26434
26435fi
26436
26437
26438if test "x$enable_sulogin_emergency_mount" = xyes; then :
26439
26440
26441$as_echo "#define USE_SULOGIN_EMERGENCY_MOUNT 1" >>confdefs.h
26442
26443
26444fi
26445
26446
26447# Check whether --enable-makeinstall-chown was given.
26448if test "${enable_makeinstall_chown+set}" = set; then :
26449  enableval=$enable_makeinstall_chown;
26450else
26451  enable_makeinstall_chown=yes
26452
26453fi
26454
26455 if test "x$enable_makeinstall_chown" = xyes; then
26456  MAKEINSTALL_DO_CHOWN_TRUE=
26457  MAKEINSTALL_DO_CHOWN_FALSE='#'
26458else
26459  MAKEINSTALL_DO_CHOWN_TRUE='#'
26460  MAKEINSTALL_DO_CHOWN_FALSE=
26461fi
26462
26463
26464# Check whether --enable-makeinstall-setuid was given.
26465if test "${enable_makeinstall_setuid+set}" = set; then :
26466  enableval=$enable_makeinstall_setuid;
26467else
26468  enable_makeinstall_setuid=yes
26469
26470fi
26471
26472 if test "x$enable_makeinstall_setuid" = xyes; then
26473  MAKEINSTALL_DO_SETUID_TRUE=
26474  MAKEINSTALL_DO_SETUID_FALSE='#'
26475else
26476  MAKEINSTALL_DO_SETUID_TRUE='#'
26477  MAKEINSTALL_DO_SETUID_FALSE=
26478fi
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492if test "x$ADJTIME_PATH" = x; then :
26493  ADJTIME_PATH="/etc/adjtime"
26494fi
26495
26496cat >>confdefs.h <<_ACEOF
26497#define CONFIG_ADJTIME_PATH "$ADJTIME_PATH"
26498_ACEOF
26499
26500
26501
26502LIBS=""
26503
26504
26505ac_config_headers="$ac_config_headers config.h"
26506
26507
26508#
26509# Don't use configure.ac to replace install paths! See Makefile PATHFILES for
26510# more details.
26511#
26512ac_config_files="$ac_config_files Makefile libblkid/docs/Makefile libblkid/docs/version.xml libblkid/src/blkid.h libmount/docs/Makefile libmount/docs/version.xml libmount/src/libmount.h libsmartcols/docs/Makefile libsmartcols/docs/version.xml libsmartcols/src/libsmartcols.h po/Makefile.in"
26513
26514
26515cat >confcache <<\_ACEOF
26516# This file is a shell script that caches the results of configure
26517# tests run on this system so they can be shared between configure
26518# scripts and configure runs, see configure's option --config-cache.
26519# It is not useful on other systems.  If it contains results you don't
26520# want to keep, you may remove or edit it.
26521#
26522# config.status only pays attention to the cache file if you give it
26523# the --recheck option to rerun configure.
26524#
26525# `ac_cv_env_foo' variables (set or unset) will be overridden when
26526# loading this file, other *unset* `ac_cv_foo' will be assigned the
26527# following values.
26528
26529_ACEOF
26530
26531# The following way of writing the cache mishandles newlines in values,
26532# but we know of no workaround that is simple, portable, and efficient.
26533# So, we kill variables containing newlines.
26534# Ultrix sh set writes to stderr and can't be redirected directly,
26535# and sets the high bit in the cache file unless we assign to the vars.
26536(
26537  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26538    eval ac_val=\$$ac_var
26539    case $ac_val in #(
26540    *${as_nl}*)
26541      case $ac_var in #(
26542      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26543$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26544      esac
26545      case $ac_var in #(
26546      _ | IFS | as_nl) ;; #(
26547      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26548      *) { eval $ac_var=; unset $ac_var;} ;;
26549      esac ;;
26550    esac
26551  done
26552
26553  (set) 2>&1 |
26554    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26555    *${as_nl}ac_space=\ *)
26556      # `set' does not quote correctly, so add quotes: double-quote
26557      # substitution turns \\\\ into \\, and sed turns \\ into \.
26558      sed -n \
26559	"s/'/'\\\\''/g;
26560	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26561      ;; #(
26562    *)
26563      # `set' quotes correctly as required by POSIX, so do not add quotes.
26564      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26565      ;;
26566    esac |
26567    sort
26568) |
26569  sed '
26570     /^ac_cv_env_/b end
26571     t clear
26572     :clear
26573     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26574     t end
26575     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26576     :end' >>confcache
26577if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26578  if test -w "$cache_file"; then
26579    if test "x$cache_file" != "x/dev/null"; then
26580      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26581$as_echo "$as_me: updating cache $cache_file" >&6;}
26582      if test ! -f "$cache_file" || test -h "$cache_file"; then
26583	cat confcache >"$cache_file"
26584      else
26585        case $cache_file in #(
26586        */* | ?:*)
26587	  mv -f confcache "$cache_file"$$ &&
26588	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26589        *)
26590	  mv -f confcache "$cache_file" ;;
26591	esac
26592      fi
26593    fi
26594  else
26595    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26596$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26597  fi
26598fi
26599rm -f confcache
26600
26601test "x$prefix" = xNONE && prefix=$ac_default_prefix
26602# Let make expand exec_prefix.
26603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26604
26605DEFS=-DHAVE_CONFIG_H
26606
26607ac_libobjs=
26608ac_ltlibobjs=
26609U=
26610for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26611  # 1. Remove the extension, and $U if already installed.
26612  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26613  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26614  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26615  #    will be set to the directory where LIBOBJS objects are built.
26616  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26617  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26618done
26619LIBOBJS=$ac_libobjs
26620
26621LTLIBOBJS=$ac_ltlibobjs
26622
26623
26624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26625$as_echo_n "checking that generated files are newer than configure... " >&6; }
26626   if test -n "$am_sleep_pid"; then
26627     # Hide warnings about reused PIDs.
26628     wait $am_sleep_pid 2>/dev/null
26629   fi
26630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26631$as_echo "done" >&6; }
26632if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26633  as_fn_error $? "conditional \"AMDEP\" was never defined.
26634Usually this means the macro was only invoked conditionally." "$LINENO" 5
26635fi
26636if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26637  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26638Usually this means the macro was only invoked conditionally." "$LINENO" 5
26639fi
26640 if test -n "$EXEEXT"; then
26641  am__EXEEXT_TRUE=
26642  am__EXEEXT_FALSE='#'
26643else
26644  am__EXEEXT_TRUE='#'
26645  am__EXEEXT_FALSE=
26646fi
26647
26648
26649if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
26650  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
26651Usually this means the macro was only invoked conditionally." "$LINENO" 5
26652fi
26653if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
26654  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
26655Usually this means the macro was only invoked conditionally." "$LINENO" 5
26656fi
26657if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
26658  as_fn_error $? "conditional \"LINUX\" was never defined.
26659Usually this means the macro was only invoked conditionally." "$LINENO" 5
26660fi
26661if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
26662  as_fn_error $? "conditional \"BSD\" was never defined.
26663Usually this means the macro was only invoked conditionally." "$LINENO" 5
26664fi
26665if test -z "${ARCH_I86_TRUE}" && test -z "${ARCH_I86_FALSE}"; then
26666  as_fn_error $? "conditional \"ARCH_I86\" was never defined.
26667Usually this means the macro was only invoked conditionally." "$LINENO" 5
26668fi
26669if test -z "${ARCH_86_64_TRUE}" && test -z "${ARCH_86_64_FALSE}"; then
26670  as_fn_error $? "conditional \"ARCH_86_64\" was never defined.
26671Usually this means the macro was only invoked conditionally." "$LINENO" 5
26672fi
26673if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
26674  as_fn_error $? "conditional \"ARCH_IA64\" was never defined.
26675Usually this means the macro was only invoked conditionally." "$LINENO" 5
26676fi
26677if test -z "${ARCH_S390_TRUE}" && test -z "${ARCH_S390_FALSE}"; then
26678  as_fn_error $? "conditional \"ARCH_S390\" was never defined.
26679Usually this means the macro was only invoked conditionally." "$LINENO" 5
26680fi
26681if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26682  as_fn_error $? "conditional \"ARCH_SPARC\" was never defined.
26683Usually this means the macro was only invoked conditionally." "$LINENO" 5
26684fi
26685if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26686  as_fn_error $? "conditional \"ARCH_PPC\" was never defined.
26687Usually this means the macro was only invoked conditionally." "$LINENO" 5
26688fi
26689if test -z "${ARCH_M68K_TRUE}" && test -z "${ARCH_M68K_FALSE}"; then
26690  as_fn_error $? "conditional \"ARCH_M68K\" was never defined.
26691Usually this means the macro was only invoked conditionally." "$LINENO" 5
26692fi
26693if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
26694  as_fn_error $? "conditional \"ARCH_MIPS\" was never defined.
26695Usually this means the macro was only invoked conditionally." "$LINENO" 5
26696fi
26697if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
26698  as_fn_error $? "conditional \"ARCH_HPPA\" was never defined.
26699Usually this means the macro was only invoked conditionally." "$LINENO" 5
26700fi
26701if test -z "${HAVE_LANGINFO_TRUE}" && test -z "${HAVE_LANGINFO_FALSE}"; then
26702  as_fn_error $? "conditional \"HAVE_LANGINFO\" was never defined.
26703Usually this means the macro was only invoked conditionally." "$LINENO" 5
26704fi
26705if test -z "${HAVE_LANGINFO_TRUE}" && test -z "${HAVE_LANGINFO_FALSE}"; then
26706  as_fn_error $? "conditional \"HAVE_LANGINFO\" was never defined.
26707Usually this means the macro was only invoked conditionally." "$LINENO" 5
26708fi
26709if test -z "${HAVE_STATIC_LOSETUP_TRUE}" && test -z "${HAVE_STATIC_LOSETUP_FALSE}"; then
26710  as_fn_error $? "conditional \"HAVE_STATIC_LOSETUP\" was never defined.
26711Usually this means the macro was only invoked conditionally." "$LINENO" 5
26712fi
26713if test -z "${HAVE_STATIC_MOUNT_TRUE}" && test -z "${HAVE_STATIC_MOUNT_FALSE}"; then
26714  as_fn_error $? "conditional \"HAVE_STATIC_MOUNT\" was never defined.
26715Usually this means the macro was only invoked conditionally." "$LINENO" 5
26716fi
26717if test -z "${HAVE_STATIC_UMOUNT_TRUE}" && test -z "${HAVE_STATIC_UMOUNT_FALSE}"; then
26718  as_fn_error $? "conditional \"HAVE_STATIC_UMOUNT\" was never defined.
26719Usually this means the macro was only invoked conditionally." "$LINENO" 5
26720fi
26721if test -z "${HAVE_STATIC_FDISK_TRUE}" && test -z "${HAVE_STATIC_FDISK_FALSE}"; then
26722  as_fn_error $? "conditional \"HAVE_STATIC_FDISK\" was never defined.
26723Usually this means the macro was only invoked conditionally." "$LINENO" 5
26724fi
26725if test -z "${HAVE_STATIC_SFDISK_TRUE}" && test -z "${HAVE_STATIC_SFDISK_FALSE}"; then
26726  as_fn_error $? "conditional \"HAVE_STATIC_SFDISK\" was never defined.
26727Usually this means the macro was only invoked conditionally." "$LINENO" 5
26728fi
26729if test -z "${HAVE_STATIC_BLKID_TRUE}" && test -z "${HAVE_STATIC_BLKID_FALSE}"; then
26730  as_fn_error $? "conditional \"HAVE_STATIC_BLKID\" was never defined.
26731Usually this means the macro was only invoked conditionally." "$LINENO" 5
26732fi
26733if test -z "${HAVE_UTIL_TRUE}" && test -z "${HAVE_UTIL_FALSE}"; then
26734  as_fn_error $? "conditional \"HAVE_UTIL\" was never defined.
26735Usually this means the macro was only invoked conditionally." "$LINENO" 5
26736fi
26737if test -z "${HAVE_TERMCAP_TRUE}" && test -z "${HAVE_TERMCAP_FALSE}"; then
26738  as_fn_error $? "conditional \"HAVE_TERMCAP\" was never defined.
26739Usually this means the macro was only invoked conditionally." "$LINENO" 5
26740fi
26741if test -z "${HAVE_CPU_SET_T_TRUE}" && test -z "${HAVE_CPU_SET_T_FALSE}"; then
26742  as_fn_error $? "conditional \"HAVE_CPU_SET_T\" was never defined.
26743Usually this means the macro was only invoked conditionally." "$LINENO" 5
26744fi
26745if test -z "${HAVE_LIBCRYPT_TRUE}" && test -z "${HAVE_LIBCRYPT_FALSE}"; then
26746  as_fn_error $? "conditional \"HAVE_LIBCRYPT\" was never defined.
26747Usually this means the macro was only invoked conditionally." "$LINENO" 5
26748fi
26749if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
26750  as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
26751Usually this means the macro was only invoked conditionally." "$LINENO" 5
26752fi
26753if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
26754  as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
26755Usually this means the macro was only invoked conditionally." "$LINENO" 5
26756fi
26757if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
26758  as_fn_error $? "conditional \"HAVE_AUDIT\" was never defined.
26759Usually this means the macro was only invoked conditionally." "$LINENO" 5
26760fi
26761if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
26762  as_fn_error $? "conditional \"HAVE_AUDIT\" was never defined.
26763Usually this means the macro was only invoked conditionally." "$LINENO" 5
26764fi
26765if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then
26766  as_fn_error $? "conditional \"HAVE_UDEV\" was never defined.
26767Usually this means the macro was only invoked conditionally." "$LINENO" 5
26768fi
26769if test -z "${HAVE_UDEV_TRUE}" && test -z "${HAVE_UDEV_FALSE}"; then
26770  as_fn_error $? "conditional \"HAVE_UDEV\" was never defined.
26771Usually this means the macro was only invoked conditionally." "$LINENO" 5
26772fi
26773if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
26774  as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
26775Usually this means the macro was only invoked conditionally." "$LINENO" 5
26776fi
26777if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
26778  as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
26779Usually this means the macro was only invoked conditionally." "$LINENO" 5
26780fi
26781if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
26782  as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
26783Usually this means the macro was only invoked conditionally." "$LINENO" 5
26784fi
26785if test -z "${HAVE_SLANG_TRUE}" && test -z "${HAVE_SLANG_FALSE}"; then
26786  as_fn_error $? "conditional \"HAVE_SLANG\" was never defined.
26787Usually this means the macro was only invoked conditionally." "$LINENO" 5
26788fi
26789if test -z "${HAVE_TINFO_TRUE}" && test -z "${HAVE_TINFO_FALSE}"; then
26790  as_fn_error $? "conditional \"HAVE_TINFO\" was never defined.
26791Usually this means the macro was only invoked conditionally." "$LINENO" 5
26792fi
26793if test -z "${HAVE_UTEMPTER_TRUE}" && test -z "${HAVE_UTEMPTER_FALSE}"; then
26794  as_fn_error $? "conditional \"HAVE_UTEMPTER\" was never defined.
26795Usually this means the macro was only invoked conditionally." "$LINENO" 5
26796fi
26797if test -z "${HAVE_UTEMPTER_TRUE}" && test -z "${HAVE_UTEMPTER_FALSE}"; then
26798  as_fn_error $? "conditional \"HAVE_UTEMPTER\" was never defined.
26799Usually this means the macro was only invoked conditionally." "$LINENO" 5
26800fi
26801if test -z "${BUILD_LIBUUID_TRUE}" && test -z "${BUILD_LIBUUID_FALSE}"; then
26802  as_fn_error $? "conditional \"BUILD_LIBUUID\" was never defined.
26803Usually this means the macro was only invoked conditionally." "$LINENO" 5
26804fi
26805if test -z "${BUILD_LIBBLKID_TRUE}" && test -z "${BUILD_LIBBLKID_FALSE}"; then
26806  as_fn_error $? "conditional \"BUILD_LIBBLKID\" was never defined.
26807Usually this means the macro was only invoked conditionally." "$LINENO" 5
26808fi
26809if test -z "${BUILD_LIBBLKID_TESTS_TRUE}" && test -z "${BUILD_LIBBLKID_TESTS_FALSE}"; then
26810  as_fn_error $? "conditional \"BUILD_LIBBLKID_TESTS\" was never defined.
26811Usually this means the macro was only invoked conditionally." "$LINENO" 5
26812fi
26813if test -z "${BUILD_LIBMOUNT_TRUE}" && test -z "${BUILD_LIBMOUNT_FALSE}"; then
26814  as_fn_error $? "conditional \"BUILD_LIBMOUNT\" was never defined.
26815Usually this means the macro was only invoked conditionally." "$LINENO" 5
26816fi
26817if test -z "${BUILD_LIBMOUNT_TESTS_TRUE}" && test -z "${BUILD_LIBMOUNT_TESTS_FALSE}"; then
26818  as_fn_error $? "conditional \"BUILD_LIBMOUNT_TESTS\" was never defined.
26819Usually this means the macro was only invoked conditionally." "$LINENO" 5
26820fi
26821if test -z "${BUILD_LIBSMARTCOLS_TRUE}" && test -z "${BUILD_LIBSMARTCOLS_FALSE}"; then
26822  as_fn_error $? "conditional \"BUILD_LIBSMARTCOLS\" was never defined.
26823Usually this means the macro was only invoked conditionally." "$LINENO" 5
26824fi
26825if test -z "${BUILD_LIBSMARTCOLS_TESTS_TRUE}" && test -z "${BUILD_LIBSMARTCOLS_TESTS_FALSE}"; then
26826  as_fn_error $? "conditional \"BUILD_LIBSMARTCOLS_TESTS\" was never defined.
26827Usually this means the macro was only invoked conditionally." "$LINENO" 5
26828fi
26829if test -z "${BUILD_LIBFDISK_TRUE}" && test -z "${BUILD_LIBFDISK_FALSE}"; then
26830  as_fn_error $? "conditional \"BUILD_LIBFDISK\" was never defined.
26831Usually this means the macro was only invoked conditionally." "$LINENO" 5
26832fi
26833if test -z "${BUILD_FDISK_TRUE}" && test -z "${BUILD_FDISK_FALSE}"; then
26834  as_fn_error $? "conditional \"BUILD_FDISK\" was never defined.
26835Usually this means the macro was only invoked conditionally." "$LINENO" 5
26836fi
26837if test -z "${BUILD_SFDISK_TRUE}" && test -z "${BUILD_SFDISK_FALSE}"; then
26838  as_fn_error $? "conditional \"BUILD_SFDISK\" was never defined.
26839Usually this means the macro was only invoked conditionally." "$LINENO" 5
26840fi
26841if test -z "${BUILD_CFDISK_TRUE}" && test -z "${BUILD_CFDISK_FALSE}"; then
26842  as_fn_error $? "conditional \"BUILD_CFDISK\" was never defined.
26843Usually this means the macro was only invoked conditionally." "$LINENO" 5
26844fi
26845if test -z "${BUILD_MOUNT_TRUE}" && test -z "${BUILD_MOUNT_FALSE}"; then
26846  as_fn_error $? "conditional \"BUILD_MOUNT\" was never defined.
26847Usually this means the macro was only invoked conditionally." "$LINENO" 5
26848fi
26849if test -z "${BUILD_LOSETUP_TRUE}" && test -z "${BUILD_LOSETUP_FALSE}"; then
26850  as_fn_error $? "conditional \"BUILD_LOSETUP\" was never defined.
26851Usually this means the macro was only invoked conditionally." "$LINENO" 5
26852fi
26853if test -z "${BUILD_FSCK_TRUE}" && test -z "${BUILD_FSCK_FALSE}"; then
26854  as_fn_error $? "conditional \"BUILD_FSCK\" was never defined.
26855Usually this means the macro was only invoked conditionally." "$LINENO" 5
26856fi
26857if test -z "${BUILD_PARTX_TRUE}" && test -z "${BUILD_PARTX_FALSE}"; then
26858  as_fn_error $? "conditional \"BUILD_PARTX\" was never defined.
26859Usually this means the macro was only invoked conditionally." "$LINENO" 5
26860fi
26861if test -z "${BUILD_UUIDD_TRUE}" && test -z "${BUILD_UUIDD_FALSE}"; then
26862  as_fn_error $? "conditional \"BUILD_UUIDD\" was never defined.
26863Usually this means the macro was only invoked conditionally." "$LINENO" 5
26864fi
26865if test -z "${BUILD_UUIDGEN_TRUE}" && test -z "${BUILD_UUIDGEN_FALSE}"; then
26866  as_fn_error $? "conditional \"BUILD_UUIDGEN\" was never defined.
26867Usually this means the macro was only invoked conditionally." "$LINENO" 5
26868fi
26869if test -z "${BUILD_BLKID_TRUE}" && test -z "${BUILD_BLKID_FALSE}"; then
26870  as_fn_error $? "conditional \"BUILD_BLKID\" was never defined.
26871Usually this means the macro was only invoked conditionally." "$LINENO" 5
26872fi
26873if test -z "${BUILD_FINDFS_TRUE}" && test -z "${BUILD_FINDFS_FALSE}"; then
26874  as_fn_error $? "conditional \"BUILD_FINDFS\" was never defined.
26875Usually this means the macro was only invoked conditionally." "$LINENO" 5
26876fi
26877if test -z "${BUILD_WIPEFS_TRUE}" && test -z "${BUILD_WIPEFS_FALSE}"; then
26878  as_fn_error $? "conditional \"BUILD_WIPEFS\" was never defined.
26879Usually this means the macro was only invoked conditionally." "$LINENO" 5
26880fi
26881if test -z "${BUILD_FINDMNT_TRUE}" && test -z "${BUILD_FINDMNT_FALSE}"; then
26882  as_fn_error $? "conditional \"BUILD_FINDMNT\" was never defined.
26883Usually this means the macro was only invoked conditionally." "$LINENO" 5
26884fi
26885if test -z "${BUILD_MOUNTPOINT_TRUE}" && test -z "${BUILD_MOUNTPOINT_FALSE}"; then
26886  as_fn_error $? "conditional \"BUILD_MOUNTPOINT\" was never defined.
26887Usually this means the macro was only invoked conditionally." "$LINENO" 5
26888fi
26889if test -z "${HAVE_FALLOCATE_TRUE}" && test -z "${HAVE_FALLOCATE_FALSE}"; then
26890  as_fn_error $? "conditional \"HAVE_FALLOCATE\" was never defined.
26891Usually this means the macro was only invoked conditionally." "$LINENO" 5
26892fi
26893if test -z "${HAVE_FALLOCATE_TRUE}" && test -z "${HAVE_FALLOCATE_FALSE}"; then
26894  as_fn_error $? "conditional \"HAVE_FALLOCATE\" was never defined.
26895Usually this means the macro was only invoked conditionally." "$LINENO" 5
26896fi
26897if test -z "${BUILD_FALLOCATE_TRUE}" && test -z "${BUILD_FALLOCATE_FALSE}"; then
26898  as_fn_error $? "conditional \"BUILD_FALLOCATE\" was never defined.
26899Usually this means the macro was only invoked conditionally." "$LINENO" 5
26900fi
26901if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
26902  as_fn_error $? "conditional \"HAVE_UNSHARE\" was never defined.
26903Usually this means the macro was only invoked conditionally." "$LINENO" 5
26904fi
26905if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
26906  as_fn_error $? "conditional \"HAVE_UNSHARE\" was never defined.
26907Usually this means the macro was only invoked conditionally." "$LINENO" 5
26908fi
26909if test -z "${BUILD_UNSHARE_TRUE}" && test -z "${BUILD_UNSHARE_FALSE}"; then
26910  as_fn_error $? "conditional \"BUILD_UNSHARE\" was never defined.
26911Usually this means the macro was only invoked conditionally." "$LINENO" 5
26912fi
26913if test -z "${HAVE_SETNS_TRUE}" && test -z "${HAVE_SETNS_FALSE}"; then
26914  as_fn_error $? "conditional \"HAVE_SETNS\" was never defined.
26915Usually this means the macro was only invoked conditionally." "$LINENO" 5
26916fi
26917if test -z "${HAVE_SETNS_TRUE}" && test -z "${HAVE_SETNS_FALSE}"; then
26918  as_fn_error $? "conditional \"HAVE_SETNS\" was never defined.
26919Usually this means the macro was only invoked conditionally." "$LINENO" 5
26920fi
26921if test -z "${BUILD_NSENTER_TRUE}" && test -z "${BUILD_NSENTER_FALSE}"; then
26922  as_fn_error $? "conditional \"BUILD_NSENTER\" was never defined.
26923Usually this means the macro was only invoked conditionally." "$LINENO" 5
26924fi
26925if test -z "${HAVE_CAP_NG_TRUE}" && test -z "${HAVE_CAP_NG_FALSE}"; then
26926  as_fn_error $? "conditional \"HAVE_CAP_NG\" was never defined.
26927Usually this means the macro was only invoked conditionally." "$LINENO" 5
26928fi
26929if test -z "${BUILD_SETPRIV_TRUE}" && test -z "${BUILD_SETPRIV_FALSE}"; then
26930  as_fn_error $? "conditional \"BUILD_SETPRIV\" was never defined.
26931Usually this means the macro was only invoked conditionally." "$LINENO" 5
26932fi
26933if test -z "${BUILD_EJECT_TRUE}" && test -z "${BUILD_EJECT_FALSE}"; then
26934  as_fn_error $? "conditional \"BUILD_EJECT\" was never defined.
26935Usually this means the macro was only invoked conditionally." "$LINENO" 5
26936fi
26937if test -z "${BUILD_AGETTY_TRUE}" && test -z "${BUILD_AGETTY_FALSE}"; then
26938  as_fn_error $? "conditional \"BUILD_AGETTY\" was never defined.
26939Usually this means the macro was only invoked conditionally." "$LINENO" 5
26940fi
26941if test -z "${BUILD_CRAMFS_TRUE}" && test -z "${BUILD_CRAMFS_FALSE}"; then
26942  as_fn_error $? "conditional \"BUILD_CRAMFS\" was never defined.
26943Usually this means the macro was only invoked conditionally." "$LINENO" 5
26944fi
26945if test -z "${BUILD_BFS_TRUE}" && test -z "${BUILD_BFS_FALSE}"; then
26946  as_fn_error $? "conditional \"BUILD_BFS\" was never defined.
26947Usually this means the macro was only invoked conditionally." "$LINENO" 5
26948fi
26949if test -z "${BUILD_MINIX_TRUE}" && test -z "${BUILD_MINIX_FALSE}"; then
26950  as_fn_error $? "conditional \"BUILD_MINIX\" was never defined.
26951Usually this means the macro was only invoked conditionally." "$LINENO" 5
26952fi
26953if test -z "${BUILD_FDFORMAT_TRUE}" && test -z "${BUILD_FDFORMAT_FALSE}"; then
26954  as_fn_error $? "conditional \"BUILD_FDFORMAT\" was never defined.
26955Usually this means the macro was only invoked conditionally." "$LINENO" 5
26956fi
26957if test -z "${BUILD_HWCLOCK_TRUE}" && test -z "${BUILD_HWCLOCK_FALSE}"; then
26958  as_fn_error $? "conditional \"BUILD_HWCLOCK\" was never defined.
26959Usually this means the macro was only invoked conditionally." "$LINENO" 5
26960fi
26961if test -z "${BUILD_MKFS_TRUE}" && test -z "${BUILD_MKFS_FALSE}"; then
26962  as_fn_error $? "conditional \"BUILD_MKFS\" was never defined.
26963Usually this means the macro was only invoked conditionally." "$LINENO" 5
26964fi
26965if test -z "${BUILD_ISOSIZE_TRUE}" && test -z "${BUILD_ISOSIZE_FALSE}"; then
26966  as_fn_error $? "conditional \"BUILD_ISOSIZE\" was never defined.
26967Usually this means the macro was only invoked conditionally." "$LINENO" 5
26968fi
26969if test -z "${BUILD_FSTRIM_TRUE}" && test -z "${BUILD_FSTRIM_FALSE}"; then
26970  as_fn_error $? "conditional \"BUILD_FSTRIM\" was never defined.
26971Usually this means the macro was only invoked conditionally." "$LINENO" 5
26972fi
26973if test -z "${BUILD_SWAPON_TRUE}" && test -z "${BUILD_SWAPON_FALSE}"; then
26974  as_fn_error $? "conditional \"BUILD_SWAPON\" was never defined.
26975Usually this means the macro was only invoked conditionally." "$LINENO" 5
26976fi
26977if test -z "${BUILD_LSBLK_TRUE}" && test -z "${BUILD_LSBLK_FALSE}"; then
26978  as_fn_error $? "conditional \"BUILD_LSBLK\" was never defined.
26979Usually this means the macro was only invoked conditionally." "$LINENO" 5
26980fi
26981if test -z "${BUILD_LSCPU_TRUE}" && test -z "${BUILD_LSCPU_FALSE}"; then
26982  as_fn_error $? "conditional \"BUILD_LSCPU\" was never defined.
26983Usually this means the macro was only invoked conditionally." "$LINENO" 5
26984fi
26985if test -z "${BUILD_LSLOGINS_TRUE}" && test -z "${BUILD_LSLOGINS_FALSE}"; then
26986  as_fn_error $? "conditional \"BUILD_LSLOGINS\" was never defined.
26987Usually this means the macro was only invoked conditionally." "$LINENO" 5
26988fi
26989if test -z "${BUILD_CHCPU_TRUE}" && test -z "${BUILD_CHCPU_FALSE}"; then
26990  as_fn_error $? "conditional \"BUILD_CHCPU\" was never defined.
26991Usually this means the macro was only invoked conditionally." "$LINENO" 5
26992fi
26993if test -z "${BUILD_WDCTL_TRUE}" && test -z "${BUILD_WDCTL_FALSE}"; then
26994  as_fn_error $? "conditional \"BUILD_WDCTL\" was never defined.
26995Usually this means the macro was only invoked conditionally." "$LINENO" 5
26996fi
26997if test -z "${BUILD_SWAPLABEL_TRUE}" && test -z "${BUILD_SWAPLABEL_FALSE}"; then
26998  as_fn_error $? "conditional \"BUILD_SWAPLABEL\" was never defined.
26999Usually this means the macro was only invoked conditionally." "$LINENO" 5
27000fi
27001if test -z "${BUILD_MKSWAP_TRUE}" && test -z "${BUILD_MKSWAP_FALSE}"; then
27002  as_fn_error $? "conditional \"BUILD_MKSWAP\" was never defined.
27003Usually this means the macro was only invoked conditionally." "$LINENO" 5
27004fi
27005if test -z "${BUILD_CAL_TRUE}" && test -z "${BUILD_CAL_FALSE}"; then
27006  as_fn_error $? "conditional \"BUILD_CAL\" was never defined.
27007Usually this means the macro was only invoked conditionally." "$LINENO" 5
27008fi
27009if test -z "${BUILD_LOGGER_TRUE}" && test -z "${BUILD_LOGGER_FALSE}"; then
27010  as_fn_error $? "conditional \"BUILD_LOGGER\" was never defined.
27011Usually this means the macro was only invoked conditionally." "$LINENO" 5
27012fi
27013if test -z "${BUILD_LOOK_TRUE}" && test -z "${BUILD_LOOK_FALSE}"; then
27014  as_fn_error $? "conditional \"BUILD_LOOK\" was never defined.
27015Usually this means the macro was only invoked conditionally." "$LINENO" 5
27016fi
27017if test -z "${BUILD_MCOOKIE_TRUE}" && test -z "${BUILD_MCOOKIE_FALSE}"; then
27018  as_fn_error $? "conditional \"BUILD_MCOOKIE\" was never defined.
27019Usually this means the macro was only invoked conditionally." "$LINENO" 5
27020fi
27021if test -z "${BUILD_NAMEI_TRUE}" && test -z "${BUILD_NAMEI_FALSE}"; then
27022  as_fn_error $? "conditional \"BUILD_NAMEI\" was never defined.
27023Usually this means the macro was only invoked conditionally." "$LINENO" 5
27024fi
27025if test -z "${BUILD_WHEREIS_TRUE}" && test -z "${BUILD_WHEREIS_FALSE}"; then
27026  as_fn_error $? "conditional \"BUILD_WHEREIS\" was never defined.
27027Usually this means the macro was only invoked conditionally." "$LINENO" 5
27028fi
27029if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
27030  as_fn_error $? "conditional \"BUILD_GETOPT\" was never defined.
27031Usually this means the macro was only invoked conditionally." "$LINENO" 5
27032fi
27033if test -z "${BUILD_BLOCKDEV_TRUE}" && test -z "${BUILD_BLOCKDEV_FALSE}"; then
27034  as_fn_error $? "conditional \"BUILD_BLOCKDEV\" was never defined.
27035Usually this means the macro was only invoked conditionally." "$LINENO" 5
27036fi
27037if test -z "${HAVE_PRLIMIT64_TRUE}" && test -z "${HAVE_PRLIMIT64_FALSE}"; then
27038  as_fn_error $? "conditional \"HAVE_PRLIMIT64\" was never defined.
27039Usually this means the macro was only invoked conditionally." "$LINENO" 5
27040fi
27041if test -z "${HAVE_PRLIMIT64_TRUE}" && test -z "${HAVE_PRLIMIT64_FALSE}"; then
27042  as_fn_error $? "conditional \"HAVE_PRLIMIT64\" was never defined.
27043Usually this means the macro was only invoked conditionally." "$LINENO" 5
27044fi
27045if test -z "${BUILD_PRLIMIT_TRUE}" && test -z "${BUILD_PRLIMIT_FALSE}"; then
27046  as_fn_error $? "conditional \"BUILD_PRLIMIT\" was never defined.
27047Usually this means the macro was only invoked conditionally." "$LINENO" 5
27048fi
27049if test -z "${BUILD_LSLOCKS_TRUE}" && test -z "${BUILD_LSLOCKS_FALSE}"; then
27050  as_fn_error $? "conditional \"BUILD_LSLOCKS\" was never defined.
27051Usually this means the macro was only invoked conditionally." "$LINENO" 5
27052fi
27053if test -z "${BUILD_SWITCH_ROOT_TRUE}" && test -z "${BUILD_SWITCH_ROOT_FALSE}"; then
27054  as_fn_error $? "conditional \"BUILD_SWITCH_ROOT\" was never defined.
27055Usually this means the macro was only invoked conditionally." "$LINENO" 5
27056fi
27057if test -z "${HAVE_PIVOT_ROOT_TRUE}" && test -z "${HAVE_PIVOT_ROOT_FALSE}"; then
27058  as_fn_error $? "conditional \"HAVE_PIVOT_ROOT\" was never defined.
27059Usually this means the macro was only invoked conditionally." "$LINENO" 5
27060fi
27061if test -z "${HAVE_PIVOT_ROOT_TRUE}" && test -z "${HAVE_PIVOT_ROOT_FALSE}"; then
27062  as_fn_error $? "conditional \"HAVE_PIVOT_ROOT\" was never defined.
27063Usually this means the macro was only invoked conditionally." "$LINENO" 5
27064fi
27065if test -z "${BUILD_PIVOT_ROOT_TRUE}" && test -z "${BUILD_PIVOT_ROOT_FALSE}"; then
27066  as_fn_error $? "conditional \"BUILD_PIVOT_ROOT\" was never defined.
27067Usually this means the macro was only invoked conditionally." "$LINENO" 5
27068fi
27069if test -z "${BUILD_FLOCK_TRUE}" && test -z "${BUILD_FLOCK_FALSE}"; then
27070  as_fn_error $? "conditional \"BUILD_FLOCK\" was never defined.
27071Usually this means the macro was only invoked conditionally." "$LINENO" 5
27072fi
27073if test -z "${BUILD_IPCMK_TRUE}" && test -z "${BUILD_IPCMK_FALSE}"; then
27074  as_fn_error $? "conditional \"BUILD_IPCMK\" was never defined.
27075Usually this means the macro was only invoked conditionally." "$LINENO" 5
27076fi
27077if test -z "${BUILD_IPCRM_TRUE}" && test -z "${BUILD_IPCRM_FALSE}"; then
27078  as_fn_error $? "conditional \"BUILD_IPCRM\" was never defined.
27079Usually this means the macro was only invoked conditionally." "$LINENO" 5
27080fi
27081if test -z "${BUILD_IPCS_TRUE}" && test -z "${BUILD_IPCS_FALSE}"; then
27082  as_fn_error $? "conditional \"BUILD_IPCS\" was never defined.
27083Usually this means the macro was only invoked conditionally." "$LINENO" 5
27084fi
27085if test -z "${BUILD_RENICE_TRUE}" && test -z "${BUILD_RENICE_FALSE}"; then
27086  as_fn_error $? "conditional \"BUILD_RENICE\" was never defined.
27087Usually this means the macro was only invoked conditionally." "$LINENO" 5
27088fi
27089if test -z "${BUILD_SETSID_TRUE}" && test -z "${BUILD_SETSID_FALSE}"; then
27090  as_fn_error $? "conditional \"BUILD_SETSID\" was never defined.
27091Usually this means the macro was only invoked conditionally." "$LINENO" 5
27092fi
27093if test -z "${BUILD_READPROFILE_TRUE}" && test -z "${BUILD_READPROFILE_FALSE}"; then
27094  as_fn_error $? "conditional \"BUILD_READPROFILE\" was never defined.
27095Usually this means the macro was only invoked conditionally." "$LINENO" 5
27096fi
27097if test -z "${BUILD_DMESG_TRUE}" && test -z "${BUILD_DMESG_FALSE}"; then
27098  as_fn_error $? "conditional \"BUILD_DMESG\" was never defined.
27099Usually this means the macro was only invoked conditionally." "$LINENO" 5
27100fi
27101if test -z "${BUILD_CTRLALTDEL_TRUE}" && test -z "${BUILD_CTRLALTDEL_FALSE}"; then
27102  as_fn_error $? "conditional \"BUILD_CTRLALTDEL\" was never defined.
27103Usually this means the macro was only invoked conditionally." "$LINENO" 5
27104fi
27105if test -z "${BUILD_FSFREEZE_TRUE}" && test -z "${BUILD_FSFREEZE_FALSE}"; then
27106  as_fn_error $? "conditional \"BUILD_FSFREEZE\" was never defined.
27107Usually this means the macro was only invoked conditionally." "$LINENO" 5
27108fi
27109if test -z "${BUILD_BLKDISCARD_TRUE}" && test -z "${BUILD_BLKDISCARD_FALSE}"; then
27110  as_fn_error $? "conditional \"BUILD_BLKDISCARD\" was never defined.
27111Usually this means the macro was only invoked conditionally." "$LINENO" 5
27112fi
27113if test -z "${BUILD_LDATTACH_TRUE}" && test -z "${BUILD_LDATTACH_FALSE}"; then
27114  as_fn_error $? "conditional \"BUILD_LDATTACH\" was never defined.
27115Usually this means the macro was only invoked conditionally." "$LINENO" 5
27116fi
27117if test -z "${BUILD_RTCWAKE_TRUE}" && test -z "${BUILD_RTCWAKE_FALSE}"; then
27118  as_fn_error $? "conditional \"BUILD_RTCWAKE\" was never defined.
27119Usually this means the macro was only invoked conditionally." "$LINENO" 5
27120fi
27121if test -z "${BUILD_SETARCH_TRUE}" && test -z "${BUILD_SETARCH_FALSE}"; then
27122  as_fn_error $? "conditional \"BUILD_SETARCH\" was never defined.
27123Usually this means the macro was only invoked conditionally." "$LINENO" 5
27124fi
27125if test -z "${BUILD_SCRIPT_TRUE}" && test -z "${BUILD_SCRIPT_FALSE}"; then
27126  as_fn_error $? "conditional \"BUILD_SCRIPT\" was never defined.
27127Usually this means the macro was only invoked conditionally." "$LINENO" 5
27128fi
27129if test -z "${BUILD_SCRIPTREPLAY_TRUE}" && test -z "${BUILD_SCRIPTREPLAY_FALSE}"; then
27130  as_fn_error $? "conditional \"BUILD_SCRIPTREPLAY\" was never defined.
27131Usually this means the macro was only invoked conditionally." "$LINENO" 5
27132fi
27133if test -z "${BUILD_COL_TRUE}" && test -z "${BUILD_COL_FALSE}"; then
27134  as_fn_error $? "conditional \"BUILD_COL\" was never defined.
27135Usually this means the macro was only invoked conditionally." "$LINENO" 5
27136fi
27137if test -z "${BUILD_COLCRT_TRUE}" && test -z "${BUILD_COLCRT_FALSE}"; then
27138  as_fn_error $? "conditional \"BUILD_COLCRT\" was never defined.
27139Usually this means the macro was only invoked conditionally." "$LINENO" 5
27140fi
27141if test -z "${BUILD_COLRM_TRUE}" && test -z "${BUILD_COLRM_FALSE}"; then
27142  as_fn_error $? "conditional \"BUILD_COLRM\" was never defined.
27143Usually this means the macro was only invoked conditionally." "$LINENO" 5
27144fi
27145if test -z "${BUILD_COLUMN_TRUE}" && test -z "${BUILD_COLUMN_FALSE}"; then
27146  as_fn_error $? "conditional \"BUILD_COLUMN\" was never defined.
27147Usually this means the macro was only invoked conditionally." "$LINENO" 5
27148fi
27149if test -z "${BUILD_HEXDUMP_TRUE}" && test -z "${BUILD_HEXDUMP_FALSE}"; then
27150  as_fn_error $? "conditional \"BUILD_HEXDUMP\" was never defined.
27151Usually this means the macro was only invoked conditionally." "$LINENO" 5
27152fi
27153if test -z "${BUILD_REV_TRUE}" && test -z "${BUILD_REV_FALSE}"; then
27154  as_fn_error $? "conditional \"BUILD_REV\" was never defined.
27155Usually this means the macro was only invoked conditionally." "$LINENO" 5
27156fi
27157if test -z "${BUILD_TAILF_TRUE}" && test -z "${BUILD_TAILF_FALSE}"; then
27158  as_fn_error $? "conditional \"BUILD_TAILF\" was never defined.
27159Usually this means the macro was only invoked conditionally." "$LINENO" 5
27160fi
27161if test -z "${BUILD_TUNELP_TRUE}" && test -z "${BUILD_TUNELP_FALSE}"; then
27162  as_fn_error $? "conditional \"BUILD_TUNELP\" was never defined.
27163Usually this means the macro was only invoked conditionally." "$LINENO" 5
27164fi
27165if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
27166  as_fn_error $? "conditional \"BUILD_KILL\" was never defined.
27167Usually this means the macro was only invoked conditionally." "$LINENO" 5
27168fi
27169if test -z "${BUILD_DEPRECATED_LAST_TRUE}" && test -z "${BUILD_DEPRECATED_LAST_FALSE}"; then
27170  as_fn_error $? "conditional \"BUILD_DEPRECATED_LAST\" was never defined.
27171Usually this means the macro was only invoked conditionally." "$LINENO" 5
27172fi
27173if test -z "${BUILD_LAST_TRUE}" && test -z "${BUILD_LAST_FALSE}"; then
27174  as_fn_error $? "conditional \"BUILD_LAST\" was never defined.
27175Usually this means the macro was only invoked conditionally." "$LINENO" 5
27176fi
27177if test -z "${BUILD_UTMPDUMP_TRUE}" && test -z "${BUILD_UTMPDUMP_FALSE}"; then
27178  as_fn_error $? "conditional \"BUILD_UTMPDUMP\" was never defined.
27179Usually this means the macro was only invoked conditionally." "$LINENO" 5
27180fi
27181if test -z "${BUILD_LINE_TRUE}" && test -z "${BUILD_LINE_FALSE}"; then
27182  as_fn_error $? "conditional \"BUILD_LINE\" was never defined.
27183Usually this means the macro was only invoked conditionally." "$LINENO" 5
27184fi
27185if test -z "${BUILD_MESG_TRUE}" && test -z "${BUILD_MESG_FALSE}"; then
27186  as_fn_error $? "conditional \"BUILD_MESG\" was never defined.
27187Usually this means the macro was only invoked conditionally." "$LINENO" 5
27188fi
27189if test -z "${BUILD_RAW_TRUE}" && test -z "${BUILD_RAW_FALSE}"; then
27190  as_fn_error $? "conditional \"BUILD_RAW\" was never defined.
27191Usually this means the macro was only invoked conditionally." "$LINENO" 5
27192fi
27193if test -z "${BUILD_RENAME_TRUE}" && test -z "${BUILD_RENAME_FALSE}"; then
27194  as_fn_error $? "conditional \"BUILD_RENAME\" was never defined.
27195Usually this means the macro was only invoked conditionally." "$LINENO" 5
27196fi
27197if test -z "${BUILD_RESET_TRUE}" && test -z "${BUILD_RESET_FALSE}"; then
27198  as_fn_error $? "conditional \"BUILD_RESET\" was never defined.
27199Usually this means the macro was only invoked conditionally." "$LINENO" 5
27200fi
27201if test -z "${BUILD_VIPW_TRUE}" && test -z "${BUILD_VIPW_FALSE}"; then
27202  as_fn_error $? "conditional \"BUILD_VIPW\" was never defined.
27203Usually this means the macro was only invoked conditionally." "$LINENO" 5
27204fi
27205if test -z "${BUILD_NEWGRP_TRUE}" && test -z "${BUILD_NEWGRP_FALSE}"; then
27206  as_fn_error $? "conditional \"BUILD_NEWGRP\" was never defined.
27207Usually this means the macro was only invoked conditionally." "$LINENO" 5
27208fi
27209if test -z "${HAVE_USER_TRUE}" && test -z "${HAVE_USER_FALSE}"; then
27210  as_fn_error $? "conditional \"HAVE_USER\" was never defined.
27211Usually this means the macro was only invoked conditionally." "$LINENO" 5
27212fi
27213if test -z "${BUILD_CHFN_CHSH_TRUE}" && test -z "${BUILD_CHFN_CHSH_FALSE}"; then
27214  as_fn_error $? "conditional \"BUILD_CHFN_CHSH\" was never defined.
27215Usually this means the macro was only invoked conditionally." "$LINENO" 5
27216fi
27217if test -z "${CHFN_CHSH_PASSWORD_TRUE}" && test -z "${CHFN_CHSH_PASSWORD_FALSE}"; then
27218  as_fn_error $? "conditional \"CHFN_CHSH_PASSWORD\" was never defined.
27219Usually this means the macro was only invoked conditionally." "$LINENO" 5
27220fi
27221if test -z "${BUILD_LOGIN_TRUE}" && test -z "${BUILD_LOGIN_FALSE}"; then
27222  as_fn_error $? "conditional \"BUILD_LOGIN\" was never defined.
27223Usually this means the macro was only invoked conditionally." "$LINENO" 5
27224fi
27225if test -z "${BUILD_NOLOGIN_TRUE}" && test -z "${BUILD_NOLOGIN_FALSE}"; then
27226  as_fn_error $? "conditional \"BUILD_NOLOGIN\" was never defined.
27227Usually this means the macro was only invoked conditionally." "$LINENO" 5
27228fi
27229if test -z "${BUILD_SULOGIN_TRUE}" && test -z "${BUILD_SULOGIN_FALSE}"; then
27230  as_fn_error $? "conditional \"BUILD_SULOGIN\" was never defined.
27231Usually this means the macro was only invoked conditionally." "$LINENO" 5
27232fi
27233if test -z "${BUILD_SU_TRUE}" && test -z "${BUILD_SU_FALSE}"; then
27234  as_fn_error $? "conditional \"BUILD_SU\" was never defined.
27235Usually this means the macro was only invoked conditionally." "$LINENO" 5
27236fi
27237if test -z "${BUILD_RUNUSER_TRUE}" && test -z "${BUILD_RUNUSER_FALSE}"; then
27238  as_fn_error $? "conditional \"BUILD_RUNUSER\" was never defined.
27239Usually this means the macro was only invoked conditionally." "$LINENO" 5
27240fi
27241if test -z "${BUILD_UL_TRUE}" && test -z "${BUILD_UL_FALSE}"; then
27242  as_fn_error $? "conditional \"BUILD_UL\" was never defined.
27243Usually this means the macro was only invoked conditionally." "$LINENO" 5
27244fi
27245if test -z "${BUILD_MORE_TRUE}" && test -z "${BUILD_MORE_FALSE}"; then
27246  as_fn_error $? "conditional \"BUILD_MORE\" was never defined.
27247Usually this means the macro was only invoked conditionally." "$LINENO" 5
27248fi
27249if test -z "${BUILD_PG_TRUE}" && test -z "${BUILD_PG_FALSE}"; then
27250  as_fn_error $? "conditional \"BUILD_PG\" was never defined.
27251Usually this means the macro was only invoked conditionally." "$LINENO" 5
27252fi
27253if test -z "${BUILD_SETTERM_TRUE}" && test -z "${BUILD_SETTERM_FALSE}"; then
27254  as_fn_error $? "conditional \"BUILD_SETTERM\" was never defined.
27255Usually this means the macro was only invoked conditionally." "$LINENO" 5
27256fi
27257if test -z "${HAVE_IOPRIO_SET_TRUE}" && test -z "${HAVE_IOPRIO_SET_FALSE}"; then
27258  as_fn_error $? "conditional \"HAVE_IOPRIO_SET\" was never defined.
27259Usually this means the macro was only invoked conditionally." "$LINENO" 5
27260fi
27261if test -z "${HAVE_IOPRIO_SET_TRUE}" && test -z "${HAVE_IOPRIO_SET_FALSE}"; then
27262  as_fn_error $? "conditional \"HAVE_IOPRIO_SET\" was never defined.
27263Usually this means the macro was only invoked conditionally." "$LINENO" 5
27264fi
27265if test -z "${HAVE_IOPRIO_GET_TRUE}" && test -z "${HAVE_IOPRIO_GET_FALSE}"; then
27266  as_fn_error $? "conditional \"HAVE_IOPRIO_GET\" was never defined.
27267Usually this means the macro was only invoked conditionally." "$LINENO" 5
27268fi
27269if test -z "${HAVE_IOPRIO_GET_TRUE}" && test -z "${HAVE_IOPRIO_GET_FALSE}"; then
27270  as_fn_error $? "conditional \"HAVE_IOPRIO_GET\" was never defined.
27271Usually this means the macro was only invoked conditionally." "$LINENO" 5
27272fi
27273if test -z "${BUILD_IONICE_TRUE}" && test -z "${BUILD_IONICE_FALSE}"; then
27274  as_fn_error $? "conditional \"BUILD_IONICE\" was never defined.
27275Usually this means the macro was only invoked conditionally." "$LINENO" 5
27276fi
27277if test -z "${HAVE_SCHED_GETAFFINITY_TRUE}" && test -z "${HAVE_SCHED_GETAFFINITY_FALSE}"; then
27278  as_fn_error $? "conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
27279Usually this means the macro was only invoked conditionally." "$LINENO" 5
27280fi
27281if test -z "${HAVE_SCHED_GETAFFINITY_TRUE}" && test -z "${HAVE_SCHED_GETAFFINITY_FALSE}"; then
27282  as_fn_error $? "conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
27283Usually this means the macro was only invoked conditionally." "$LINENO" 5
27284fi
27285if test -z "${BUILD_TASKSET_TRUE}" && test -z "${BUILD_TASKSET_FALSE}"; then
27286  as_fn_error $? "conditional \"BUILD_TASKSET\" was never defined.
27287Usually this means the macro was only invoked conditionally." "$LINENO" 5
27288fi
27289if test -z "${BUILD_CHRT_TRUE}" && test -z "${BUILD_CHRT_FALSE}"; then
27290  as_fn_error $? "conditional \"BUILD_CHRT\" was never defined.
27291Usually this means the macro was only invoked conditionally." "$LINENO" 5
27292fi
27293if test -z "${BUILD_WALL_TRUE}" && test -z "${BUILD_WALL_FALSE}"; then
27294  as_fn_error $? "conditional \"BUILD_WALL\" was never defined.
27295Usually this means the macro was only invoked conditionally." "$LINENO" 5
27296fi
27297if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then
27298  as_fn_error $? "conditional \"BUILD_WRITE\" was never defined.
27299Usually this means the macro was only invoked conditionally." "$LINENO" 5
27300fi
27301if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
27302  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
27303Usually this means the macro was only invoked conditionally." "$LINENO" 5
27304fi
27305if test -z "${BUILD_BASH_COMPLETION_TRUE}" && test -z "${BUILD_BASH_COMPLETION_FALSE}"; then
27306  as_fn_error $? "conditional \"BUILD_BASH_COMPLETION\" was never defined.
27307Usually this means the macro was only invoked conditionally." "$LINENO" 5
27308fi
27309if test -z "${BUILD_PYLIBMOUNT_TRUE}" && test -z "${BUILD_PYLIBMOUNT_FALSE}"; then
27310  as_fn_error $? "conditional \"BUILD_PYLIBMOUNT\" was never defined.
27311Usually this means the macro was only invoked conditionally." "$LINENO" 5
27312fi
27313if test -z "${USE_TTY_GROUP_TRUE}" && test -z "${USE_TTY_GROUP_FALSE}"; then
27314  as_fn_error $? "conditional \"USE_TTY_GROUP\" was never defined.
27315Usually this means the macro was only invoked conditionally." "$LINENO" 5
27316fi
27317if test -z "${MAKEINSTALL_DO_CHOWN_TRUE}" && test -z "${MAKEINSTALL_DO_CHOWN_FALSE}"; then
27318  as_fn_error $? "conditional \"MAKEINSTALL_DO_CHOWN\" was never defined.
27319Usually this means the macro was only invoked conditionally." "$LINENO" 5
27320fi
27321if test -z "${MAKEINSTALL_DO_SETUID_TRUE}" && test -z "${MAKEINSTALL_DO_SETUID_FALSE}"; then
27322  as_fn_error $? "conditional \"MAKEINSTALL_DO_SETUID\" was never defined.
27323Usually this means the macro was only invoked conditionally." "$LINENO" 5
27324fi
27325
27326: "${CONFIG_STATUS=./config.status}"
27327ac_write_fail=0
27328ac_clean_files_save=$ac_clean_files
27329ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27330{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27331$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27332as_write_fail=0
27333cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27334#! $SHELL
27335# Generated by $as_me.
27336# Run this file to recreate the current configuration.
27337# Compiler output produced by configure, useful for debugging
27338# configure, is in config.log if it exists.
27339
27340debug=false
27341ac_cs_recheck=false
27342ac_cs_silent=false
27343
27344SHELL=\${CONFIG_SHELL-$SHELL}
27345export SHELL
27346_ASEOF
27347cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27348## -------------------- ##
27349## M4sh Initialization. ##
27350## -------------------- ##
27351
27352# Be more Bourne compatible
27353DUALCASE=1; export DUALCASE # for MKS sh
27354if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27355  emulate sh
27356  NULLCMD=:
27357  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27358  # is contrary to our usage.  Disable this feature.
27359  alias -g '${1+"$@"}'='"$@"'
27360  setopt NO_GLOB_SUBST
27361else
27362  case `(set -o) 2>/dev/null` in #(
27363  *posix*) :
27364    set -o posix ;; #(
27365  *) :
27366     ;;
27367esac
27368fi
27369
27370
27371as_nl='
27372'
27373export as_nl
27374# Printing a long string crashes Solaris 7 /usr/bin/printf.
27375as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27378# Prefer a ksh shell builtin over an external printf program on Solaris,
27379# but without wasting forks for bash or zsh.
27380if test -z "$BASH_VERSION$ZSH_VERSION" \
27381    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27382  as_echo='print -r --'
27383  as_echo_n='print -rn --'
27384elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27385  as_echo='printf %s\n'
27386  as_echo_n='printf %s'
27387else
27388  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27389    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27390    as_echo_n='/usr/ucb/echo -n'
27391  else
27392    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27393    as_echo_n_body='eval
27394      arg=$1;
27395      case $arg in #(
27396      *"$as_nl"*)
27397	expr "X$arg" : "X\\(.*\\)$as_nl";
27398	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27399      esac;
27400      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27401    '
27402    export as_echo_n_body
27403    as_echo_n='sh -c $as_echo_n_body as_echo'
27404  fi
27405  export as_echo_body
27406  as_echo='sh -c $as_echo_body as_echo'
27407fi
27408
27409# The user is always right.
27410if test "${PATH_SEPARATOR+set}" != set; then
27411  PATH_SEPARATOR=:
27412  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27413    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27414      PATH_SEPARATOR=';'
27415  }
27416fi
27417
27418
27419# IFS
27420# We need space, tab and new line, in precisely that order.  Quoting is
27421# there to prevent editors from complaining about space-tab.
27422# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27423# splitting by setting IFS to empty value.)
27424IFS=" ""	$as_nl"
27425
27426# Find who we are.  Look in the path if we contain no directory separator.
27427as_myself=
27428case $0 in #((
27429  *[\\/]* ) as_myself=$0 ;;
27430  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27431for as_dir in $PATH
27432do
27433  IFS=$as_save_IFS
27434  test -z "$as_dir" && as_dir=.
27435    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27436  done
27437IFS=$as_save_IFS
27438
27439     ;;
27440esac
27441# We did not find ourselves, most probably we were run as `sh COMMAND'
27442# in which case we are not to be found in the path.
27443if test "x$as_myself" = x; then
27444  as_myself=$0
27445fi
27446if test ! -f "$as_myself"; then
27447  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27448  exit 1
27449fi
27450
27451# Unset variables that we do not need and which cause bugs (e.g. in
27452# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27453# suppresses any "Segmentation fault" message there.  '((' could
27454# trigger a bug in pdksh 5.2.14.
27455for as_var in BASH_ENV ENV MAIL MAILPATH
27456do eval test x\${$as_var+set} = xset \
27457  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27458done
27459PS1='$ '
27460PS2='> '
27461PS4='+ '
27462
27463# NLS nuisances.
27464LC_ALL=C
27465export LC_ALL
27466LANGUAGE=C
27467export LANGUAGE
27468
27469# CDPATH.
27470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27471
27472
27473# as_fn_error STATUS ERROR [LINENO LOG_FD]
27474# ----------------------------------------
27475# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27476# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27477# script with STATUS, using 1 if that was 0.
27478as_fn_error ()
27479{
27480  as_status=$1; test $as_status -eq 0 && as_status=1
27481  if test "$4"; then
27482    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27483    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27484  fi
27485  $as_echo "$as_me: error: $2" >&2
27486  as_fn_exit $as_status
27487} # as_fn_error
27488
27489
27490# as_fn_set_status STATUS
27491# -----------------------
27492# Set $? to STATUS, without forking.
27493as_fn_set_status ()
27494{
27495  return $1
27496} # as_fn_set_status
27497
27498# as_fn_exit STATUS
27499# -----------------
27500# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27501as_fn_exit ()
27502{
27503  set +e
27504  as_fn_set_status $1
27505  exit $1
27506} # as_fn_exit
27507
27508# as_fn_unset VAR
27509# ---------------
27510# Portably unset VAR.
27511as_fn_unset ()
27512{
27513  { eval $1=; unset $1;}
27514}
27515as_unset=as_fn_unset
27516# as_fn_append VAR VALUE
27517# ----------------------
27518# Append the text in VALUE to the end of the definition contained in VAR. Take
27519# advantage of any shell optimizations that allow amortized linear growth over
27520# repeated appends, instead of the typical quadratic growth present in naive
27521# implementations.
27522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27523  eval 'as_fn_append ()
27524  {
27525    eval $1+=\$2
27526  }'
27527else
27528  as_fn_append ()
27529  {
27530    eval $1=\$$1\$2
27531  }
27532fi # as_fn_append
27533
27534# as_fn_arith ARG...
27535# ------------------
27536# Perform arithmetic evaluation on the ARGs, and store the result in the
27537# global $as_val. Take advantage of shells that can avoid forks. The arguments
27538# must be portable across $(()) and expr.
27539if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27540  eval 'as_fn_arith ()
27541  {
27542    as_val=$(( $* ))
27543  }'
27544else
27545  as_fn_arith ()
27546  {
27547    as_val=`expr "$@" || test $? -eq 1`
27548  }
27549fi # as_fn_arith
27550
27551
27552if expr a : '\(a\)' >/dev/null 2>&1 &&
27553   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27554  as_expr=expr
27555else
27556  as_expr=false
27557fi
27558
27559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27560  as_basename=basename
27561else
27562  as_basename=false
27563fi
27564
27565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27566  as_dirname=dirname
27567else
27568  as_dirname=false
27569fi
27570
27571as_me=`$as_basename -- "$0" ||
27572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27573	 X"$0" : 'X\(//\)$' \| \
27574	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27575$as_echo X/"$0" |
27576    sed '/^.*\/\([^/][^/]*\)\/*$/{
27577	    s//\1/
27578	    q
27579	  }
27580	  /^X\/\(\/\/\)$/{
27581	    s//\1/
27582	    q
27583	  }
27584	  /^X\/\(\/\).*/{
27585	    s//\1/
27586	    q
27587	  }
27588	  s/.*/./; q'`
27589
27590# Avoid depending upon Character Ranges.
27591as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27593as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27594as_cr_digits='0123456789'
27595as_cr_alnum=$as_cr_Letters$as_cr_digits
27596
27597ECHO_C= ECHO_N= ECHO_T=
27598case `echo -n x` in #(((((
27599-n*)
27600  case `echo 'xy\c'` in
27601  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27602  xy)  ECHO_C='\c';;
27603  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27604       ECHO_T='	';;
27605  esac;;
27606*)
27607  ECHO_N='-n';;
27608esac
27609
27610rm -f conf$$ conf$$.exe conf$$.file
27611if test -d conf$$.dir; then
27612  rm -f conf$$.dir/conf$$.file
27613else
27614  rm -f conf$$.dir
27615  mkdir conf$$.dir 2>/dev/null
27616fi
27617if (echo >conf$$.file) 2>/dev/null; then
27618  if ln -s conf$$.file conf$$ 2>/dev/null; then
27619    as_ln_s='ln -s'
27620    # ... but there are two gotchas:
27621    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27622    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27623    # In both cases, we have to default to `cp -pR'.
27624    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27625      as_ln_s='cp -pR'
27626  elif ln conf$$.file conf$$ 2>/dev/null; then
27627    as_ln_s=ln
27628  else
27629    as_ln_s='cp -pR'
27630  fi
27631else
27632  as_ln_s='cp -pR'
27633fi
27634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27635rmdir conf$$.dir 2>/dev/null
27636
27637
27638# as_fn_mkdir_p
27639# -------------
27640# Create "$as_dir" as a directory, including parents if necessary.
27641as_fn_mkdir_p ()
27642{
27643
27644  case $as_dir in #(
27645  -*) as_dir=./$as_dir;;
27646  esac
27647  test -d "$as_dir" || eval $as_mkdir_p || {
27648    as_dirs=
27649    while :; do
27650      case $as_dir in #(
27651      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27652      *) as_qdir=$as_dir;;
27653      esac
27654      as_dirs="'$as_qdir' $as_dirs"
27655      as_dir=`$as_dirname -- "$as_dir" ||
27656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27657	 X"$as_dir" : 'X\(//\)[^/]' \| \
27658	 X"$as_dir" : 'X\(//\)$' \| \
27659	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27660$as_echo X"$as_dir" |
27661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27662	    s//\1/
27663	    q
27664	  }
27665	  /^X\(\/\/\)[^/].*/{
27666	    s//\1/
27667	    q
27668	  }
27669	  /^X\(\/\/\)$/{
27670	    s//\1/
27671	    q
27672	  }
27673	  /^X\(\/\).*/{
27674	    s//\1/
27675	    q
27676	  }
27677	  s/.*/./; q'`
27678      test -d "$as_dir" && break
27679    done
27680    test -z "$as_dirs" || eval "mkdir $as_dirs"
27681  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27682
27683
27684} # as_fn_mkdir_p
27685if mkdir -p . 2>/dev/null; then
27686  as_mkdir_p='mkdir -p "$as_dir"'
27687else
27688  test -d ./-p && rmdir ./-p
27689  as_mkdir_p=false
27690fi
27691
27692
27693# as_fn_executable_p FILE
27694# -----------------------
27695# Test if FILE is an executable regular file.
27696as_fn_executable_p ()
27697{
27698  test -f "$1" && test -x "$1"
27699} # as_fn_executable_p
27700as_test_x='test -x'
27701as_executable_p=as_fn_executable_p
27702
27703# Sed expression to map a string onto a valid CPP name.
27704as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27705
27706# Sed expression to map a string onto a valid variable name.
27707as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27708
27709
27710exec 6>&1
27711## ----------------------------------- ##
27712## Main body of $CONFIG_STATUS script. ##
27713## ----------------------------------- ##
27714_ASEOF
27715test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27716
27717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27718# Save the log message, to keep $0 and so on meaningful, and to
27719# report actual input values of CONFIG_FILES etc. instead of their
27720# values after options handling.
27721ac_log="
27722This file was extended by util-linux $as_me 2.25.2, which was
27723generated by GNU Autoconf 2.69.  Invocation command line was
27724
27725  CONFIG_FILES    = $CONFIG_FILES
27726  CONFIG_HEADERS  = $CONFIG_HEADERS
27727  CONFIG_LINKS    = $CONFIG_LINKS
27728  CONFIG_COMMANDS = $CONFIG_COMMANDS
27729  $ $0 $@
27730
27731on `(hostname || uname -n) 2>/dev/null | sed 1q`
27732"
27733
27734_ACEOF
27735
27736case $ac_config_files in *"
27737"*) set x $ac_config_files; shift; ac_config_files=$*;;
27738esac
27739
27740case $ac_config_headers in *"
27741"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27742esac
27743
27744
27745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27746# Files that config.status was made for.
27747config_files="$ac_config_files"
27748config_headers="$ac_config_headers"
27749config_commands="$ac_config_commands"
27750
27751_ACEOF
27752
27753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27754ac_cs_usage="\
27755\`$as_me' instantiates files and other configuration actions
27756from templates according to the current configuration.  Unless the files
27757and actions are specified as TAGs, all are instantiated by default.
27758
27759Usage: $0 [OPTION]... [TAG]...
27760
27761  -h, --help       print this help, then exit
27762  -V, --version    print version number and configuration settings, then exit
27763      --config     print configuration, then exit
27764  -q, --quiet, --silent
27765                   do not print progress messages
27766  -d, --debug      don't remove temporary files
27767      --recheck    update $as_me by reconfiguring in the same conditions
27768      --file=FILE[:TEMPLATE]
27769                   instantiate the configuration file FILE
27770      --header=FILE[:TEMPLATE]
27771                   instantiate the configuration header FILE
27772
27773Configuration files:
27774$config_files
27775
27776Configuration headers:
27777$config_headers
27778
27779Configuration commands:
27780$config_commands
27781
27782Report bugs to <kzak@redhat.com>.
27783util-linux home page: <http://www.kernel.org/pub/linux/utils/util-linux/>."
27784
27785_ACEOF
27786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27787ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27788ac_cs_version="\\
27789util-linux config.status 2.25.2
27790configured by $0, generated by GNU Autoconf 2.69,
27791  with options \\"\$ac_cs_config\\"
27792
27793Copyright (C) 2012 Free Software Foundation, Inc.
27794This config.status script is free software; the Free Software Foundation
27795gives unlimited permission to copy, distribute and modify it."
27796
27797ac_pwd='$ac_pwd'
27798srcdir='$srcdir'
27799INSTALL='$INSTALL'
27800MKDIR_P='$MKDIR_P'
27801AWK='$AWK'
27802test -n "\$AWK" || AWK=awk
27803_ACEOF
27804
27805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27806# The default lists apply if the user does not specify any file.
27807ac_need_defaults=:
27808while test $# != 0
27809do
27810  case $1 in
27811  --*=?*)
27812    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27813    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27814    ac_shift=:
27815    ;;
27816  --*=)
27817    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27818    ac_optarg=
27819    ac_shift=:
27820    ;;
27821  *)
27822    ac_option=$1
27823    ac_optarg=$2
27824    ac_shift=shift
27825    ;;
27826  esac
27827
27828  case $ac_option in
27829  # Handling of the options.
27830  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27831    ac_cs_recheck=: ;;
27832  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27833    $as_echo "$ac_cs_version"; exit ;;
27834  --config | --confi | --conf | --con | --co | --c )
27835    $as_echo "$ac_cs_config"; exit ;;
27836  --debug | --debu | --deb | --de | --d | -d )
27837    debug=: ;;
27838  --file | --fil | --fi | --f )
27839    $ac_shift
27840    case $ac_optarg in
27841    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27842    '') as_fn_error $? "missing file argument" ;;
27843    esac
27844    as_fn_append CONFIG_FILES " '$ac_optarg'"
27845    ac_need_defaults=false;;
27846  --header | --heade | --head | --hea )
27847    $ac_shift
27848    case $ac_optarg in
27849    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27850    esac
27851    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27852    ac_need_defaults=false;;
27853  --he | --h)
27854    # Conflict between --help and --header
27855    as_fn_error $? "ambiguous option: \`$1'
27856Try \`$0 --help' for more information.";;
27857  --help | --hel | -h )
27858    $as_echo "$ac_cs_usage"; exit ;;
27859  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27860  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27861    ac_cs_silent=: ;;
27862
27863  # This is an error.
27864  -*) as_fn_error $? "unrecognized option: \`$1'
27865Try \`$0 --help' for more information." ;;
27866
27867  *) as_fn_append ac_config_targets " $1"
27868     ac_need_defaults=false ;;
27869
27870  esac
27871  shift
27872done
27873
27874ac_configure_extra_args=
27875
27876if $ac_cs_silent; then
27877  exec 6>/dev/null
27878  ac_configure_extra_args="$ac_configure_extra_args --silent"
27879fi
27880
27881_ACEOF
27882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27883if \$ac_cs_recheck; then
27884  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27885  shift
27886  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27887  CONFIG_SHELL='$SHELL'
27888  export CONFIG_SHELL
27889  exec "\$@"
27890fi
27891
27892_ACEOF
27893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27894exec 5>>config.log
27895{
27896  echo
27897  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27898## Running $as_me. ##
27899_ASBOX
27900  $as_echo "$ac_log"
27901} >&5
27902
27903_ACEOF
27904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27905#
27906# INIT-COMMANDS
27907#
27908AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27909
27910
27911# The HP-UX ksh and POSIX shell print the target directory to stdout
27912# if CDPATH is set.
27913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27914
27915sed_quote_subst='$sed_quote_subst'
27916double_quote_subst='$double_quote_subst'
27917delay_variable_subst='$delay_variable_subst'
27918macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27919macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27920enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27921enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27922pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27923enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27924SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27925ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27926PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27927host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27928host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27929host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27930build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27931build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27932build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27933SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27934Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27935GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27936EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27937FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27938LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27939NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27940LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27941max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27942ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27943exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27944lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27945lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27946lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27947lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27948lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27949reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27950reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27951OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27952deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27953file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27954file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27955want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27956DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27957sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27958AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27959AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27960archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27961STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27962RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27963old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27964old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27965old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27966lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27967CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27968CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27969compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27970GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27971lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27972lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27973lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27974lt_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"`'
27975nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27976lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27977objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27978MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27979lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27980lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27981lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27982lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27983lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27984need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27985MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27986DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27987NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27988LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27989OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27990OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27991libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27992shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27993extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27994archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27995enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27996export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27997whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27998compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27999old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28000old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28001archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28002archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28003module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28004module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28005with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28006allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28007no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28008hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28009hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28010hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28011hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28012hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28013hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28014hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28015inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28016link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28017always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28018export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28019exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28020include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28021prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28022postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28023file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28024variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28025need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28026need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28027version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28028runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28029shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28030shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28031libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28032library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28033soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28034install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28035postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28036postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28037finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28038finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28039hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28040sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28041sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28042hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28043enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28044enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28045enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28046old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28047striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28048
28049LTCC='$LTCC'
28050LTCFLAGS='$LTCFLAGS'
28051compiler='$compiler_DEFAULT'
28052
28053# A function that is used when there is no print builtin or printf.
28054func_fallback_echo ()
28055{
28056  eval 'cat <<_LTECHO_EOF
28057\$1
28058_LTECHO_EOF'
28059}
28060
28061# Quote evaled strings.
28062for var in SHELL \
28063ECHO \
28064PATH_SEPARATOR \
28065SED \
28066GREP \
28067EGREP \
28068FGREP \
28069LD \
28070NM \
28071LN_S \
28072lt_SP2NL \
28073lt_NL2SP \
28074reload_flag \
28075OBJDUMP \
28076deplibs_check_method \
28077file_magic_cmd \
28078file_magic_glob \
28079want_nocaseglob \
28080DLLTOOL \
28081sharedlib_from_linklib_cmd \
28082AR \
28083AR_FLAGS \
28084archiver_list_spec \
28085STRIP \
28086RANLIB \
28087CC \
28088CFLAGS \
28089compiler \
28090lt_cv_sys_global_symbol_pipe \
28091lt_cv_sys_global_symbol_to_cdecl \
28092lt_cv_sys_global_symbol_to_c_name_address \
28093lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28094nm_file_list_spec \
28095lt_prog_compiler_no_builtin_flag \
28096lt_prog_compiler_pic \
28097lt_prog_compiler_wl \
28098lt_prog_compiler_static \
28099lt_cv_prog_compiler_c_o \
28100need_locks \
28101MANIFEST_TOOL \
28102DSYMUTIL \
28103NMEDIT \
28104LIPO \
28105OTOOL \
28106OTOOL64 \
28107shrext_cmds \
28108export_dynamic_flag_spec \
28109whole_archive_flag_spec \
28110compiler_needs_object \
28111with_gnu_ld \
28112allow_undefined_flag \
28113no_undefined_flag \
28114hardcode_libdir_flag_spec \
28115hardcode_libdir_separator \
28116exclude_expsyms \
28117include_expsyms \
28118file_list_spec \
28119variables_saved_for_relink \
28120libname_spec \
28121library_names_spec \
28122soname_spec \
28123install_override_mode \
28124finish_eval \
28125old_striplib \
28126striplib; do
28127    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28128    *[\\\\\\\`\\"\\\$]*)
28129      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28130      ;;
28131    *)
28132      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28133      ;;
28134    esac
28135done
28136
28137# Double-quote double-evaled strings.
28138for var in reload_cmds \
28139old_postinstall_cmds \
28140old_postuninstall_cmds \
28141old_archive_cmds \
28142extract_expsyms_cmds \
28143old_archive_from_new_cmds \
28144old_archive_from_expsyms_cmds \
28145archive_cmds \
28146archive_expsym_cmds \
28147module_cmds \
28148module_expsym_cmds \
28149export_symbols_cmds \
28150prelink_cmds \
28151postlink_cmds \
28152postinstall_cmds \
28153postuninstall_cmds \
28154finish_cmds \
28155sys_lib_search_path_spec \
28156sys_lib_dlsearch_path_spec; do
28157    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28158    *[\\\\\\\`\\"\\\$]*)
28159      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28160      ;;
28161    *)
28162      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28163      ;;
28164    esac
28165done
28166
28167ac_aux_dir='$ac_aux_dir'
28168xsi_shell='$xsi_shell'
28169lt_shell_append='$lt_shell_append'
28170
28171# See if we are running on zsh, and set the options which allow our
28172# commands through without removal of \ escapes INIT.
28173if test -n "\${ZSH_VERSION+set}" ; then
28174   setopt NO_GLOB_SUBST
28175fi
28176
28177
28178    PACKAGE='$PACKAGE'
28179    VERSION='$VERSION'
28180    TIMESTAMP='$TIMESTAMP'
28181    RM='$RM'
28182    ofile='$ofile'
28183
28184
28185
28186# Capture the value of obsolete ALL_LINGUAS because we need it to compute
28187    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
28188    # from automake < 1.5.
28189    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
28190    # Capture the value of LINGUAS because we need it to compute CATALOGS.
28191    LINGUAS="${LINGUAS-%UNSET%}"
28192
28193
28194_ACEOF
28195
28196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28197
28198# Handling of arguments.
28199for ac_config_target in $ac_config_targets
28200do
28201  case $ac_config_target in
28202    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28203    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28204    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
28205    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28206    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28207    "libblkid/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/docs/Makefile" ;;
28208    "libblkid/docs/version.xml") CONFIG_FILES="$CONFIG_FILES libblkid/docs/version.xml" ;;
28209    "libblkid/src/blkid.h") CONFIG_FILES="$CONFIG_FILES libblkid/src/blkid.h" ;;
28210    "libmount/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/docs/Makefile" ;;
28211    "libmount/docs/version.xml") CONFIG_FILES="$CONFIG_FILES libmount/docs/version.xml" ;;
28212    "libmount/src/libmount.h") CONFIG_FILES="$CONFIG_FILES libmount/src/libmount.h" ;;
28213    "libsmartcols/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libsmartcols/docs/Makefile" ;;
28214    "libsmartcols/docs/version.xml") CONFIG_FILES="$CONFIG_FILES libsmartcols/docs/version.xml" ;;
28215    "libsmartcols/src/libsmartcols.h") CONFIG_FILES="$CONFIG_FILES libsmartcols/src/libsmartcols.h" ;;
28216    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28217
28218  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28219  esac
28220done
28221
28222
28223# If the user did not use the arguments to specify the items to instantiate,
28224# then the envvar interface is used.  Set only those that are not.
28225# We use the long form for the default assignment because of an extremely
28226# bizarre bug on SunOS 4.1.3.
28227if $ac_need_defaults; then
28228  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28229  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28230  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28231fi
28232
28233# Have a temporary directory for convenience.  Make it in the build tree
28234# simply because there is no reason against having it here, and in addition,
28235# creating and moving files from /tmp can sometimes cause problems.
28236# Hook for its removal unless debugging.
28237# Note that there is a small window in which the directory will not be cleaned:
28238# after its creation but before its name has been assigned to `$tmp'.
28239$debug ||
28240{
28241  tmp= ac_tmp=
28242  trap 'exit_status=$?
28243  : "${ac_tmp:=$tmp}"
28244  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28245' 0
28246  trap 'as_fn_exit 1' 1 2 13 15
28247}
28248# Create a (secure) tmp directory for tmp files.
28249
28250{
28251  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28252  test -d "$tmp"
28253}  ||
28254{
28255  tmp=./conf$$-$RANDOM
28256  (umask 077 && mkdir "$tmp")
28257} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28258ac_tmp=$tmp
28259
28260# Set up the scripts for CONFIG_FILES section.
28261# No need to generate them if there are no CONFIG_FILES.
28262# This happens for instance with `./config.status config.h'.
28263if test -n "$CONFIG_FILES"; then
28264
28265
28266ac_cr=`echo X | tr X '\015'`
28267# On cygwin, bash can eat \r inside `` if the user requested igncr.
28268# But we know of no other shell where ac_cr would be empty at this
28269# point, so we can use a bashism as a fallback.
28270if test "x$ac_cr" = x; then
28271  eval ac_cr=\$\'\\r\'
28272fi
28273ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28274if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28275  ac_cs_awk_cr='\\r'
28276else
28277  ac_cs_awk_cr=$ac_cr
28278fi
28279
28280echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28281_ACEOF
28282
28283
28284{
28285  echo "cat >conf$$subs.awk <<_ACEOF" &&
28286  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28287  echo "_ACEOF"
28288} >conf$$subs.sh ||
28289  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28290ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28291ac_delim='%!_!# '
28292for ac_last_try in false false false false false :; do
28293  . ./conf$$subs.sh ||
28294    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28295
28296  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28297  if test $ac_delim_n = $ac_delim_num; then
28298    break
28299  elif $ac_last_try; then
28300    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28301  else
28302    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28303  fi
28304done
28305rm -f conf$$subs.sh
28306
28307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28308cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28309_ACEOF
28310sed -n '
28311h
28312s/^/S["/; s/!.*/"]=/
28313p
28314g
28315s/^[^!]*!//
28316:repl
28317t repl
28318s/'"$ac_delim"'$//
28319t delim
28320:nl
28321h
28322s/\(.\{148\}\)..*/\1/
28323t more1
28324s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28325p
28326n
28327b repl
28328:more1
28329s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28330p
28331g
28332s/.\{148\}//
28333t nl
28334:delim
28335h
28336s/\(.\{148\}\)..*/\1/
28337t more2
28338s/["\\]/\\&/g; s/^/"/; s/$/"/
28339p
28340b
28341:more2
28342s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28343p
28344g
28345s/.\{148\}//
28346t delim
28347' <conf$$subs.awk | sed '
28348/^[^""]/{
28349  N
28350  s/\n//
28351}
28352' >>$CONFIG_STATUS || ac_write_fail=1
28353rm -f conf$$subs.awk
28354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28355_ACAWK
28356cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28357  for (key in S) S_is_set[key] = 1
28358  FS = ""
28359
28360}
28361{
28362  line = $ 0
28363  nfields = split(line, field, "@")
28364  substed = 0
28365  len = length(field[1])
28366  for (i = 2; i < nfields; i++) {
28367    key = field[i]
28368    keylen = length(key)
28369    if (S_is_set[key]) {
28370      value = S[key]
28371      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28372      len += length(value) + length(field[++i])
28373      substed = 1
28374    } else
28375      len += 1 + keylen
28376  }
28377
28378  print line
28379}
28380
28381_ACAWK
28382_ACEOF
28383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28384if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28385  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28386else
28387  cat
28388fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28389  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28390_ACEOF
28391
28392# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28393# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28394# trailing colons and then remove the whole line if VPATH becomes empty
28395# (actually we leave an empty line to preserve line numbers).
28396if test "x$srcdir" = x.; then
28397  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
28398h
28399s///
28400s/^/:/
28401s/[	 ]*$/:/
28402s/:\$(srcdir):/:/g
28403s/:\${srcdir}:/:/g
28404s/:@srcdir@:/:/g
28405s/^:*//
28406s/:*$//
28407x
28408s/\(=[	 ]*\).*/\1/
28409G
28410s/\n//
28411s/^[^=]*=[	 ]*$//
28412}'
28413fi
28414
28415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28416fi # test -n "$CONFIG_FILES"
28417
28418# Set up the scripts for CONFIG_HEADERS section.
28419# No need to generate them if there are no CONFIG_HEADERS.
28420# This happens for instance with `./config.status Makefile'.
28421if test -n "$CONFIG_HEADERS"; then
28422cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28423BEGIN {
28424_ACEOF
28425
28426# Transform confdefs.h into an awk script `defines.awk', embedded as
28427# here-document in config.status, that substitutes the proper values into
28428# config.h.in to produce config.h.
28429
28430# Create a delimiter string that does not exist in confdefs.h, to ease
28431# handling of long lines.
28432ac_delim='%!_!# '
28433for ac_last_try in false false :; do
28434  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28435  if test -z "$ac_tt"; then
28436    break
28437  elif $ac_last_try; then
28438    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28439  else
28440    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28441  fi
28442done
28443
28444# For the awk script, D is an array of macro values keyed by name,
28445# likewise P contains macro parameters if any.  Preserve backslash
28446# newline sequences.
28447
28448ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28449sed -n '
28450s/.\{148\}/&'"$ac_delim"'/g
28451t rset
28452:rset
28453s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28454t def
28455d
28456:def
28457s/\\$//
28458t bsnl
28459s/["\\]/\\&/g
28460s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28461D["\1"]=" \3"/p
28462s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
28463d
28464:bsnl
28465s/["\\]/\\&/g
28466s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28467D["\1"]=" \3\\\\\\n"\\/p
28468t cont
28469s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28470t cont
28471d
28472:cont
28473n
28474s/.\{148\}/&'"$ac_delim"'/g
28475t clear
28476:clear
28477s/\\$//
28478t bsnlc
28479s/["\\]/\\&/g; s/^/"/; s/$/"/p
28480d
28481:bsnlc
28482s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28483b cont
28484' <confdefs.h | sed '
28485s/'"$ac_delim"'/"\\\
28486"/g' >>$CONFIG_STATUS || ac_write_fail=1
28487
28488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28489  for (key in D) D_is_set[key] = 1
28490  FS = ""
28491}
28492/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28493  line = \$ 0
28494  split(line, arg, " ")
28495  if (arg[1] == "#") {
28496    defundef = arg[2]
28497    mac1 = arg[3]
28498  } else {
28499    defundef = substr(arg[1], 2)
28500    mac1 = arg[2]
28501  }
28502  split(mac1, mac2, "(") #)
28503  macro = mac2[1]
28504  prefix = substr(line, 1, index(line, defundef) - 1)
28505  if (D_is_set[macro]) {
28506    # Preserve the white space surrounding the "#".
28507    print prefix "define", macro P[macro] D[macro]
28508    next
28509  } else {
28510    # Replace #undef with comments.  This is necessary, for example,
28511    # in the case of _POSIX_SOURCE, which is predefined and required
28512    # on some systems where configure will not decide to define it.
28513    if (defundef == "undef") {
28514      print "/*", prefix defundef, macro, "*/"
28515      next
28516    }
28517  }
28518}
28519{ print }
28520_ACAWK
28521_ACEOF
28522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28523  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28524fi # test -n "$CONFIG_HEADERS"
28525
28526
28527eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28528shift
28529for ac_tag
28530do
28531  case $ac_tag in
28532  :[FHLC]) ac_mode=$ac_tag; continue;;
28533  esac
28534  case $ac_mode$ac_tag in
28535  :[FHL]*:*);;
28536  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28537  :[FH]-) ac_tag=-:-;;
28538  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28539  esac
28540  ac_save_IFS=$IFS
28541  IFS=:
28542  set x $ac_tag
28543  IFS=$ac_save_IFS
28544  shift
28545  ac_file=$1
28546  shift
28547
28548  case $ac_mode in
28549  :L) ac_source=$1;;
28550  :[FH])
28551    ac_file_inputs=
28552    for ac_f
28553    do
28554      case $ac_f in
28555      -) ac_f="$ac_tmp/stdin";;
28556      *) # Look for the file first in the build tree, then in the source tree
28557	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28558	 # because $ac_f cannot contain `:'.
28559	 test -f "$ac_f" ||
28560	   case $ac_f in
28561	   [\\/$]*) false;;
28562	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28563	   esac ||
28564	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28565      esac
28566      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28567      as_fn_append ac_file_inputs " '$ac_f'"
28568    done
28569
28570    # Let's still pretend it is `configure' which instantiates (i.e., don't
28571    # use $as_me), people would be surprised to read:
28572    #    /* config.h.  Generated by config.status.  */
28573    configure_input='Generated from '`
28574	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28575	`' by configure.'
28576    if test x"$ac_file" != x-; then
28577      configure_input="$ac_file.  $configure_input"
28578      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28579$as_echo "$as_me: creating $ac_file" >&6;}
28580    fi
28581    # Neutralize special characters interpreted by sed in replacement strings.
28582    case $configure_input in #(
28583    *\&* | *\|* | *\\* )
28584       ac_sed_conf_input=`$as_echo "$configure_input" |
28585       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28586    *) ac_sed_conf_input=$configure_input;;
28587    esac
28588
28589    case $ac_tag in
28590    *:-:* | *:-) cat >"$ac_tmp/stdin" \
28591      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28592    esac
28593    ;;
28594  esac
28595
28596  ac_dir=`$as_dirname -- "$ac_file" ||
28597$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28598	 X"$ac_file" : 'X\(//\)[^/]' \| \
28599	 X"$ac_file" : 'X\(//\)$' \| \
28600	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28601$as_echo X"$ac_file" |
28602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28603	    s//\1/
28604	    q
28605	  }
28606	  /^X\(\/\/\)[^/].*/{
28607	    s//\1/
28608	    q
28609	  }
28610	  /^X\(\/\/\)$/{
28611	    s//\1/
28612	    q
28613	  }
28614	  /^X\(\/\).*/{
28615	    s//\1/
28616	    q
28617	  }
28618	  s/.*/./; q'`
28619  as_dir="$ac_dir"; as_fn_mkdir_p
28620  ac_builddir=.
28621
28622case "$ac_dir" in
28623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28624*)
28625  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28626  # A ".." for each directory in $ac_dir_suffix.
28627  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28628  case $ac_top_builddir_sub in
28629  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28630  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28631  esac ;;
28632esac
28633ac_abs_top_builddir=$ac_pwd
28634ac_abs_builddir=$ac_pwd$ac_dir_suffix
28635# for backward compatibility:
28636ac_top_builddir=$ac_top_build_prefix
28637
28638case $srcdir in
28639  .)  # We are building in place.
28640    ac_srcdir=.
28641    ac_top_srcdir=$ac_top_builddir_sub
28642    ac_abs_top_srcdir=$ac_pwd ;;
28643  [\\/]* | ?:[\\/]* )  # Absolute name.
28644    ac_srcdir=$srcdir$ac_dir_suffix;
28645    ac_top_srcdir=$srcdir
28646    ac_abs_top_srcdir=$srcdir ;;
28647  *) # Relative name.
28648    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28649    ac_top_srcdir=$ac_top_build_prefix$srcdir
28650    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28651esac
28652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28653
28654
28655  case $ac_mode in
28656  :F)
28657  #
28658  # CONFIG_FILE
28659  #
28660
28661  case $INSTALL in
28662  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28663  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28664  esac
28665  ac_MKDIR_P=$MKDIR_P
28666  case $MKDIR_P in
28667  [\\/$]* | ?:[\\/]* ) ;;
28668  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28669  esac
28670_ACEOF
28671
28672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28673# If the template does not know about datarootdir, expand it.
28674# FIXME: This hack should be removed a few years after 2.60.
28675ac_datarootdir_hack=; ac_datarootdir_seen=
28676ac_sed_dataroot='
28677/datarootdir/ {
28678  p
28679  q
28680}
28681/@datadir@/p
28682/@docdir@/p
28683/@infodir@/p
28684/@localedir@/p
28685/@mandir@/p'
28686case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28687*datarootdir*) ac_datarootdir_seen=yes;;
28688*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28689  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28690$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28691_ACEOF
28692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28693  ac_datarootdir_hack='
28694  s&@datadir@&$datadir&g
28695  s&@docdir@&$docdir&g
28696  s&@infodir@&$infodir&g
28697  s&@localedir@&$localedir&g
28698  s&@mandir@&$mandir&g
28699  s&\\\${datarootdir}&$datarootdir&g' ;;
28700esac
28701_ACEOF
28702
28703# Neutralize VPATH when `$srcdir' = `.'.
28704# Shell code in configure.ac might set extrasub.
28705# FIXME: do we really want to maintain this feature?
28706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28707ac_sed_extra="$ac_vpsub
28708$extrasub
28709_ACEOF
28710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28711:t
28712/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28713s|@configure_input@|$ac_sed_conf_input|;t t
28714s&@top_builddir@&$ac_top_builddir_sub&;t t
28715s&@top_build_prefix@&$ac_top_build_prefix&;t t
28716s&@srcdir@&$ac_srcdir&;t t
28717s&@abs_srcdir@&$ac_abs_srcdir&;t t
28718s&@top_srcdir@&$ac_top_srcdir&;t t
28719s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28720s&@builddir@&$ac_builddir&;t t
28721s&@abs_builddir@&$ac_abs_builddir&;t t
28722s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28723s&@INSTALL@&$ac_INSTALL&;t t
28724s&@MKDIR_P@&$ac_MKDIR_P&;t t
28725$ac_datarootdir_hack
28726"
28727eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28728  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28729
28730test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28731  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28732  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
28733      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28734  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28735which seems to be undefined.  Please make sure it is defined" >&5
28736$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28737which seems to be undefined.  Please make sure it is defined" >&2;}
28738
28739  rm -f "$ac_tmp/stdin"
28740  case $ac_file in
28741  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28742  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28743  esac \
28744  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28745 ;;
28746  :H)
28747  #
28748  # CONFIG_HEADER
28749  #
28750  if test x"$ac_file" != x-; then
28751    {
28752      $as_echo "/* $configure_input  */" \
28753      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28754    } >"$ac_tmp/config.h" \
28755      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28756    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28757      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28758$as_echo "$as_me: $ac_file is unchanged" >&6;}
28759    else
28760      rm -f "$ac_file"
28761      mv "$ac_tmp/config.h" "$ac_file" \
28762	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
28763    fi
28764  else
28765    $as_echo "/* $configure_input  */" \
28766      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28767      || as_fn_error $? "could not create -" "$LINENO" 5
28768  fi
28769# Compute "$ac_file"'s index in $config_headers.
28770_am_arg="$ac_file"
28771_am_stamp_count=1
28772for _am_header in $config_headers :; do
28773  case $_am_header in
28774    $_am_arg | $_am_arg:* )
28775      break ;;
28776    * )
28777      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28778  esac
28779done
28780echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28781$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28782	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28783	 X"$_am_arg" : 'X\(//\)$' \| \
28784	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28785$as_echo X"$_am_arg" |
28786    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28787	    s//\1/
28788	    q
28789	  }
28790	  /^X\(\/\/\)[^/].*/{
28791	    s//\1/
28792	    q
28793	  }
28794	  /^X\(\/\/\)$/{
28795	    s//\1/
28796	    q
28797	  }
28798	  /^X\(\/\).*/{
28799	    s//\1/
28800	    q
28801	  }
28802	  s/.*/./; q'`/stamp-h$_am_stamp_count
28803 ;;
28804
28805  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28806$as_echo "$as_me: executing $ac_file commands" >&6;}
28807 ;;
28808  esac
28809
28810
28811  case $ac_file$ac_mode in
28812    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28813  # Older Autoconf quotes --file arguments for eval, but not when files
28814  # are listed without --file.  Let's play safe and only enable the eval
28815  # if we detect the quoting.
28816  case $CONFIG_FILES in
28817  *\'*) eval set x "$CONFIG_FILES" ;;
28818  *)   set x $CONFIG_FILES ;;
28819  esac
28820  shift
28821  for mf
28822  do
28823    # Strip MF so we end up with the name of the file.
28824    mf=`echo "$mf" | sed -e 's/:.*$//'`
28825    # Check whether this is an Automake generated Makefile or not.
28826    # We used to match only the files named 'Makefile.in', but
28827    # some people rename them; so instead we look at the file content.
28828    # Grep'ing the first line is not enough: some people post-process
28829    # each Makefile.in and add a new line on top of each file to say so.
28830    # Grep'ing the whole file is not good either: AIX grep has a line
28831    # limit of 2048, but all sed's we know have understand at least 4000.
28832    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28833      dirpart=`$as_dirname -- "$mf" ||
28834$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28835	 X"$mf" : 'X\(//\)[^/]' \| \
28836	 X"$mf" : 'X\(//\)$' \| \
28837	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28838$as_echo X"$mf" |
28839    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28840	    s//\1/
28841	    q
28842	  }
28843	  /^X\(\/\/\)[^/].*/{
28844	    s//\1/
28845	    q
28846	  }
28847	  /^X\(\/\/\)$/{
28848	    s//\1/
28849	    q
28850	  }
28851	  /^X\(\/\).*/{
28852	    s//\1/
28853	    q
28854	  }
28855	  s/.*/./; q'`
28856    else
28857      continue
28858    fi
28859    # Extract the definition of DEPDIR, am__include, and am__quote
28860    # from the Makefile without running 'make'.
28861    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28862    test -z "$DEPDIR" && continue
28863    am__include=`sed -n 's/^am__include = //p' < "$mf"`
28864    test -z "$am__include" && continue
28865    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28866    # Find all dependency output files, they are included files with
28867    # $(DEPDIR) in their names.  We invoke sed twice because it is the
28868    # simplest approach to changing $(DEPDIR) to its actual value in the
28869    # expansion.
28870    for file in `sed -n "
28871      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28872	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28873      # Make sure the directory exists.
28874      test -f "$dirpart/$file" && continue
28875      fdir=`$as_dirname -- "$file" ||
28876$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28877	 X"$file" : 'X\(//\)[^/]' \| \
28878	 X"$file" : 'X\(//\)$' \| \
28879	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28880$as_echo X"$file" |
28881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28882	    s//\1/
28883	    q
28884	  }
28885	  /^X\(\/\/\)[^/].*/{
28886	    s//\1/
28887	    q
28888	  }
28889	  /^X\(\/\/\)$/{
28890	    s//\1/
28891	    q
28892	  }
28893	  /^X\(\/\).*/{
28894	    s//\1/
28895	    q
28896	  }
28897	  s/.*/./; q'`
28898      as_dir=$dirpart/$fdir; as_fn_mkdir_p
28899      # echo "creating $dirpart/$file"
28900      echo '# dummy' > "$dirpart/$file"
28901    done
28902  done
28903}
28904 ;;
28905    "libtool":C)
28906
28907    # See if we are running on zsh, and set the options which allow our
28908    # commands through without removal of \ escapes.
28909    if test -n "${ZSH_VERSION+set}" ; then
28910      setopt NO_GLOB_SUBST
28911    fi
28912
28913    cfgfile="${ofile}T"
28914    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28915    $RM "$cfgfile"
28916
28917    cat <<_LT_EOF >> "$cfgfile"
28918#! $SHELL
28919
28920# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28921# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28922# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28923# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28924#
28925#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28926#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28927#                 Foundation, Inc.
28928#   Written by Gordon Matzigkeit, 1996
28929#
28930#   This file is part of GNU Libtool.
28931#
28932# GNU Libtool is free software; you can redistribute it and/or
28933# modify it under the terms of the GNU General Public License as
28934# published by the Free Software Foundation; either version 2 of
28935# the License, or (at your option) any later version.
28936#
28937# As a special exception to the GNU General Public License,
28938# if you distribute this file as part of a program or library that
28939# is built using GNU Libtool, you may include this file under the
28940# same distribution terms that you use for the rest of that program.
28941#
28942# GNU Libtool is distributed in the hope that it will be useful,
28943# but WITHOUT ANY WARRANTY; without even the implied warranty of
28944# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28945# GNU General Public License for more details.
28946#
28947# You should have received a copy of the GNU General Public License
28948# along with GNU Libtool; see the file COPYING.  If not, a copy
28949# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28950# obtained by writing to the Free Software Foundation, Inc.,
28951# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28952
28953
28954# The names of the tagged configurations supported by this script.
28955available_tags=""
28956
28957# ### BEGIN LIBTOOL CONFIG
28958
28959# Which release of libtool.m4 was used?
28960macro_version=$macro_version
28961macro_revision=$macro_revision
28962
28963# Whether or not to build shared libraries.
28964build_libtool_libs=$enable_shared
28965
28966# Whether or not to build static libraries.
28967build_old_libs=$enable_static
28968
28969# What type of objects to build.
28970pic_mode=$pic_mode
28971
28972# Whether or not to optimize for fast installation.
28973fast_install=$enable_fast_install
28974
28975# Shell to use when invoking shell scripts.
28976SHELL=$lt_SHELL
28977
28978# An echo program that protects backslashes.
28979ECHO=$lt_ECHO
28980
28981# The PATH separator for the build system.
28982PATH_SEPARATOR=$lt_PATH_SEPARATOR
28983
28984# The host system.
28985host_alias=$host_alias
28986host=$host
28987host_os=$host_os
28988
28989# The build system.
28990build_alias=$build_alias
28991build=$build
28992build_os=$build_os
28993
28994# A sed program that does not truncate output.
28995SED=$lt_SED
28996
28997# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28998Xsed="\$SED -e 1s/^X//"
28999
29000# A grep program that handles long lines.
29001GREP=$lt_GREP
29002
29003# An ERE matcher.
29004EGREP=$lt_EGREP
29005
29006# A literal string matcher.
29007FGREP=$lt_FGREP
29008
29009# A BSD- or MS-compatible name lister.
29010NM=$lt_NM
29011
29012# Whether we need soft or hard links.
29013LN_S=$lt_LN_S
29014
29015# What is the maximum length of a command?
29016max_cmd_len=$max_cmd_len
29017
29018# Object file pylibmount (normally "o").
29019objext=$ac_objext
29020
29021# Executable file pylibmount (normally "").
29022exeext=$exeext
29023
29024# whether the shell understands "unset".
29025lt_unset=$lt_unset
29026
29027# turn spaces into newlines.
29028SP2NL=$lt_lt_SP2NL
29029
29030# turn newlines into spaces.
29031NL2SP=$lt_lt_NL2SP
29032
29033# convert \$build file names to \$host format.
29034to_host_file_cmd=$lt_cv_to_host_file_cmd
29035
29036# convert \$build files to toolchain format.
29037to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29038
29039# An object symbol dumper.
29040OBJDUMP=$lt_OBJDUMP
29041
29042# Method to check whether dependent libraries are shared objects.
29043deplibs_check_method=$lt_deplibs_check_method
29044
29045# Command to use when deplibs_check_method = "file_magic".
29046file_magic_cmd=$lt_file_magic_cmd
29047
29048# How to find potential files when deplibs_check_method = "file_magic".
29049file_magic_glob=$lt_file_magic_glob
29050
29051# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29052want_nocaseglob=$lt_want_nocaseglob
29053
29054# DLL creation program.
29055DLLTOOL=$lt_DLLTOOL
29056
29057# Command to associate shared and link libraries.
29058sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29059
29060# The archiver.
29061AR=$lt_AR
29062
29063# Flags to create an archive.
29064AR_FLAGS=$lt_AR_FLAGS
29065
29066# How to feed a file listing to the archiver.
29067archiver_list_spec=$lt_archiver_list_spec
29068
29069# A symbol stripping program.
29070STRIP=$lt_STRIP
29071
29072# Commands used to install an old-style archive.
29073RANLIB=$lt_RANLIB
29074old_postinstall_cmds=$lt_old_postinstall_cmds
29075old_postuninstall_cmds=$lt_old_postuninstall_cmds
29076
29077# Whether to use a lock for old archive extraction.
29078lock_old_archive_extraction=$lock_old_archive_extraction
29079
29080# A C compiler.
29081LTCC=$lt_CC
29082
29083# LTCC compiler flags.
29084LTCFLAGS=$lt_CFLAGS
29085
29086# Take the output of nm and produce a listing of raw symbols and C names.
29087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29088
29089# Transform the output of nm in a proper C declaration.
29090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29091
29092# Transform the output of nm in a C name address pair.
29093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29094
29095# Transform the output of nm in a C name address pair when lib prefix is needed.
29096global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29097
29098# Specify filename containing input files for \$NM.
29099nm_file_list_spec=$lt_nm_file_list_spec
29100
29101# The root where to search for dependent libraries,and in which our libraries should be installed.
29102lt_sysroot=$lt_sysroot
29103
29104# The name of the directory that contains temporary libtool files.
29105objdir=$objdir
29106
29107# Used to examine libraries when file_magic_cmd begins with "file".
29108MAGIC_CMD=$MAGIC_CMD
29109
29110# Must we lock files when doing compilation?
29111need_locks=$lt_need_locks
29112
29113# Manifest tool.
29114MANIFEST_TOOL=$lt_MANIFEST_TOOL
29115
29116# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29117DSYMUTIL=$lt_DSYMUTIL
29118
29119# Tool to change global to local symbols on Mac OS X.
29120NMEDIT=$lt_NMEDIT
29121
29122# Tool to manipulate fat objects and archives on Mac OS X.
29123LIPO=$lt_LIPO
29124
29125# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29126OTOOL=$lt_OTOOL
29127
29128# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29129OTOOL64=$lt_OTOOL64
29130
29131# Old archive pylibmount (normally "a").
29132libext=$libext
29133
29134# Shared library pylibmount (normally ".so").
29135shrext_cmds=$lt_shrext_cmds
29136
29137# The commands to extract the exported symbol list from a shared archive.
29138extract_expsyms_cmds=$lt_extract_expsyms_cmds
29139
29140# Variables whose values should be saved in libtool wrapper scripts and
29141# restored at link time.
29142variables_saved_for_relink=$lt_variables_saved_for_relink
29143
29144# Do we need the "lib" prefix for modules?
29145need_lib_prefix=$need_lib_prefix
29146
29147# Do we need a version for libraries?
29148need_version=$need_version
29149
29150# Library versioning type.
29151version_type=$version_type
29152
29153# Shared library runtime path variable.
29154runpath_var=$runpath_var
29155
29156# Shared library path variable.
29157shlibpath_var=$shlibpath_var
29158
29159# Is shlibpath searched before the hard-coded library search path?
29160shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29161
29162# Format of library name prefix.
29163libname_spec=$lt_libname_spec
29164
29165# List of archive names.  First name is the real one, the rest are links.
29166# The last name is the one that the linker finds with -lNAME
29167library_names_spec=$lt_library_names_spec
29168
29169# The coded name of the library, if different from the real name.
29170soname_spec=$lt_soname_spec
29171
29172# Permission mode override for installation of shared libraries.
29173install_override_mode=$lt_install_override_mode
29174
29175# Command to use after installation of a shared archive.
29176postinstall_cmds=$lt_postinstall_cmds
29177
29178# Command to use after uninstallation of a shared archive.
29179postuninstall_cmds=$lt_postuninstall_cmds
29180
29181# Commands used to finish a libtool library installation in a directory.
29182finish_cmds=$lt_finish_cmds
29183
29184# As "finish_cmds", except a single script fragment to be evaled but
29185# not shown.
29186finish_eval=$lt_finish_eval
29187
29188# Whether we should hardcode library paths into libraries.
29189hardcode_into_libs=$hardcode_into_libs
29190
29191# Compile-time system search path for libraries.
29192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29193
29194# Run-time system search path for libraries.
29195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29196
29197# Whether dlopen is supported.
29198dlopen_support=$enable_dlopen
29199
29200# Whether dlopen of programs is supported.
29201dlopen_self=$enable_dlopen_self
29202
29203# Whether dlopen of statically linked programs is supported.
29204dlopen_self_static=$enable_dlopen_self_static
29205
29206# Commands to strip libraries.
29207old_striplib=$lt_old_striplib
29208striplib=$lt_striplib
29209
29210
29211# The linker used to build libraries.
29212LD=$lt_LD
29213
29214# How to create reloadable object files.
29215reload_flag=$lt_reload_flag
29216reload_cmds=$lt_reload_cmds
29217
29218# Commands used to build an old-style archive.
29219old_archive_cmds=$lt_old_archive_cmds
29220
29221# A language specific compiler.
29222CC=$lt_compiler
29223
29224# Is the compiler the GNU compiler?
29225with_gcc=$GCC
29226
29227# Compiler flag to turn off builtin functions.
29228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29229
29230# Additional compiler flags for building library objects.
29231pic_flag=$lt_lt_prog_compiler_pic
29232
29233# How to pass a linker flag through the compiler.
29234wl=$lt_lt_prog_compiler_wl
29235
29236# Compiler flag to prevent dynamic linking.
29237link_static_flag=$lt_lt_prog_compiler_static
29238
29239# Does compiler simultaneously support -c and -o options?
29240compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29241
29242# Whether or not to add -lc for building shared libraries.
29243build_libtool_need_lc=$archive_cmds_need_lc
29244
29245# Whether or not to disallow shared libs when runtime libs are static.
29246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29247
29248# Compiler flag to allow reflexive dlopens.
29249export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29250
29251# Compiler flag to generate shared objects directly from archives.
29252whole_archive_flag_spec=$lt_whole_archive_flag_spec
29253
29254# Whether the compiler copes with passing no objects directly.
29255compiler_needs_object=$lt_compiler_needs_object
29256
29257# Create an old-style archive from a shared archive.
29258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29259
29260# Create a temporary old-style archive to link instead of a shared archive.
29261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29262
29263# Commands used to build a shared archive.
29264archive_cmds=$lt_archive_cmds
29265archive_expsym_cmds=$lt_archive_expsym_cmds
29266
29267# Commands used to build a loadable module if different from building
29268# a shared archive.
29269module_cmds=$lt_module_cmds
29270module_expsym_cmds=$lt_module_expsym_cmds
29271
29272# Whether we are building with GNU ld or not.
29273with_gnu_ld=$lt_with_gnu_ld
29274
29275# Flag that allows shared libraries with undefined symbols to be built.
29276allow_undefined_flag=$lt_allow_undefined_flag
29277
29278# Flag that enforces no undefined symbols.
29279no_undefined_flag=$lt_no_undefined_flag
29280
29281# Flag to hardcode \$libdir into a binary during linking.
29282# This must work even if \$libdir does not exist
29283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29284
29285# Whether we need a single "-rpath" flag with a separated argument.
29286hardcode_libdir_separator=$lt_hardcode_libdir_separator
29287
29288# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29289# DIR into the resulting binary.
29290hardcode_direct=$hardcode_direct
29291
29292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29293# DIR into the resulting binary and the resulting library dependency is
29294# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29295# library is relocated.
29296hardcode_direct_absolute=$hardcode_direct_absolute
29297
29298# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29299# into the resulting binary.
29300hardcode_minus_L=$hardcode_minus_L
29301
29302# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29303# into the resulting binary.
29304hardcode_shlibpath_var=$hardcode_shlibpath_var
29305
29306# Set to "yes" if building a shared library automatically hardcodes DIR
29307# into the library and all subsequent libraries and executables linked
29308# against it.
29309hardcode_automatic=$hardcode_automatic
29310
29311# Set to yes if linker adds runtime paths of dependent libraries
29312# to runtime path list.
29313inherit_rpath=$inherit_rpath
29314
29315# Whether libtool must link a program against all its dependency libraries.
29316link_all_deplibs=$link_all_deplibs
29317
29318# Set to "yes" if exported symbols are required.
29319always_export_symbols=$always_export_symbols
29320
29321# The commands to list exported symbols.
29322export_symbols_cmds=$lt_export_symbols_cmds
29323
29324# Symbols that should not be listed in the preloaded symbols.
29325exclude_expsyms=$lt_exclude_expsyms
29326
29327# Symbols that must always be exported.
29328include_expsyms=$lt_include_expsyms
29329
29330# Commands necessary for linking programs (against libraries) with templates.
29331prelink_cmds=$lt_prelink_cmds
29332
29333# Commands necessary for finishing linking programs.
29334postlink_cmds=$lt_postlink_cmds
29335
29336# Specify filename containing input files.
29337file_list_spec=$lt_file_list_spec
29338
29339# How to hardcode a shared library path into an executable.
29340hardcode_action=$hardcode_action
29341
29342# ### END LIBTOOL CONFIG
29343
29344_LT_EOF
29345
29346  case $host_os in
29347  aix3*)
29348    cat <<\_LT_EOF >> "$cfgfile"
29349# AIX sometimes has problems with the GCC collect2 program.  For some
29350# reason, if we set the COLLECT_NAMES environment variable, the problems
29351# vanish in a puff of smoke.
29352if test "X${COLLECT_NAMES+set}" != Xset; then
29353  COLLECT_NAMES=
29354  export COLLECT_NAMES
29355fi
29356_LT_EOF
29357    ;;
29358  esac
29359
29360
29361ltmain="$ac_aux_dir/ltmain.sh"
29362
29363
29364  # We use sed instead of cat because bash on DJGPP gets confused if
29365  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29366  # text mode, it properly converts lines to CR/LF.  This bash problem
29367  # is reportedly fixed, but why not run on old versions too?
29368  sed '$q' "$ltmain" >> "$cfgfile" \
29369     || (rm -f "$cfgfile"; exit 1)
29370
29371  if test x"$xsi_shell" = xyes; then
29372  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29373func_dirname ()\
29374{\
29375\    case ${1} in\
29376\      */*) func_dirname_result="${1%/*}${2}" ;;\
29377\      *  ) func_dirname_result="${3}" ;;\
29378\    esac\
29379} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29380  && mv -f "$cfgfile.tmp" "$cfgfile" \
29381    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29382test 0 -eq $? || _lt_function_replace_fail=:
29383
29384
29385  sed -e '/^func_basename ()$/,/^} # func_basename /c\
29386func_basename ()\
29387{\
29388\    func_basename_result="${1##*/}"\
29389} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29390  && mv -f "$cfgfile.tmp" "$cfgfile" \
29391    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29392test 0 -eq $? || _lt_function_replace_fail=:
29393
29394
29395  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29396func_dirname_and_basename ()\
29397{\
29398\    case ${1} in\
29399\      */*) func_dirname_result="${1%/*}${2}" ;;\
29400\      *  ) func_dirname_result="${3}" ;;\
29401\    esac\
29402\    func_basename_result="${1##*/}"\
29403} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29404  && mv -f "$cfgfile.tmp" "$cfgfile" \
29405    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29406test 0 -eq $? || _lt_function_replace_fail=:
29407
29408
29409  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
29410func_stripname ()\
29411{\
29412\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
29413\    # positional parameters, so assign one to ordinary parameter first.\
29414\    func_stripname_result=${3}\
29415\    func_stripname_result=${func_stripname_result#"${1}"}\
29416\    func_stripname_result=${func_stripname_result%"${2}"}\
29417} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
29418  && mv -f "$cfgfile.tmp" "$cfgfile" \
29419    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29420test 0 -eq $? || _lt_function_replace_fail=:
29421
29422
29423  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
29424func_split_long_opt ()\
29425{\
29426\    func_split_long_opt_name=${1%%=*}\
29427\    func_split_long_opt_arg=${1#*=}\
29428} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
29429  && mv -f "$cfgfile.tmp" "$cfgfile" \
29430    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29431test 0 -eq $? || _lt_function_replace_fail=:
29432
29433
29434  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
29435func_split_short_opt ()\
29436{\
29437\    func_split_short_opt_arg=${1#??}\
29438\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
29439} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
29440  && mv -f "$cfgfile.tmp" "$cfgfile" \
29441    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29442test 0 -eq $? || _lt_function_replace_fail=:
29443
29444
29445  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
29446func_lo2o ()\
29447{\
29448\    case ${1} in\
29449\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
29450\      *)    func_lo2o_result=${1} ;;\
29451\    esac\
29452} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
29453  && mv -f "$cfgfile.tmp" "$cfgfile" \
29454    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29455test 0 -eq $? || _lt_function_replace_fail=:
29456
29457
29458  sed -e '/^func_xform ()$/,/^} # func_xform /c\
29459func_xform ()\
29460{\
29461    func_xform_result=${1%.*}.lo\
29462} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
29463  && mv -f "$cfgfile.tmp" "$cfgfile" \
29464    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29465test 0 -eq $? || _lt_function_replace_fail=:
29466
29467
29468  sed -e '/^func_arith ()$/,/^} # func_arith /c\
29469func_arith ()\
29470{\
29471    func_arith_result=$(( $* ))\
29472} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
29473  && mv -f "$cfgfile.tmp" "$cfgfile" \
29474    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29475test 0 -eq $? || _lt_function_replace_fail=:
29476
29477
29478  sed -e '/^func_len ()$/,/^} # func_len /c\
29479func_len ()\
29480{\
29481    func_len_result=${#1}\
29482} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
29483  && mv -f "$cfgfile.tmp" "$cfgfile" \
29484    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29485test 0 -eq $? || _lt_function_replace_fail=:
29486
29487fi
29488
29489if test x"$lt_shell_append" = xyes; then
29490  sed -e '/^func_append ()$/,/^} # func_append /c\
29491func_append ()\
29492{\
29493    eval "${1}+=\\${2}"\
29494} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29495  && mv -f "$cfgfile.tmp" "$cfgfile" \
29496    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29497test 0 -eq $? || _lt_function_replace_fail=:
29498
29499
29500  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29501func_append_quoted ()\
29502{\
29503\    func_quote_for_eval "${2}"\
29504\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29505} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29506  && mv -f "$cfgfile.tmp" "$cfgfile" \
29507    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29508test 0 -eq $? || _lt_function_replace_fail=:
29509
29510
29511  # Save a `func_append' function call where possible by direct use of '+='
29512  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29513    && mv -f "$cfgfile.tmp" "$cfgfile" \
29514      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29515  test 0 -eq $? || _lt_function_replace_fail=:
29516else
29517  # Save a `func_append' function call even when '+=' is not available
29518  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
29519    && mv -f "$cfgfile.tmp" "$cfgfile" \
29520      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29521  test 0 -eq $? || _lt_function_replace_fail=:
29522fi
29523
29524if test x"$_lt_function_replace_fail" = x":"; then
29525  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
29526$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
29527fi
29528
29529
29530   mv -f "$cfgfile" "$ofile" ||
29531    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29532  chmod +x "$ofile"
29533
29534 ;;
29535    "po-directories":C)
29536    for ac_file in $CONFIG_FILES; do
29537      # Support "outfile[:infile[:infile...]]"
29538      case "$ac_file" in
29539        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
29540      esac
29541      # PO directories have a Makefile.in generated from Makefile.in.in.
29542      case "$ac_file" in */Makefile.in)
29543        # Adjust a relative srcdir.
29544        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
29545        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
29546        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
29547        # In autoconf-2.13 it is called $ac_given_srcdir.
29548        # In autoconf-2.50 it is called $srcdir.
29549        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
29550        case "$ac_given_srcdir" in
29551          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
29552          /*) top_srcdir="$ac_given_srcdir" ;;
29553          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
29554        esac
29555        # Treat a directory as a PO directory if and only if it has a
29556        # POTFILES.in file. This allows packages to have multiple PO
29557        # directories under different names or in different locations.
29558        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
29559          rm -f "$ac_dir/POTFILES"
29560          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
29561          gt_tab=`printf '\t'`
29562          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
29563          POMAKEFILEDEPS="POTFILES.in"
29564          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
29565          # on $ac_dir but don't depend on user-specified configuration
29566          # parameters.
29567          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
29568            # The LINGUAS file contains the set of available languages.
29569            if test -n "$OBSOLETE_ALL_LINGUAS"; then
29570              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
29571            fi
29572            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
29573            # Hide the ALL_LINGUAS assignment from automake < 1.5.
29574            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
29575            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
29576          else
29577            # The set of available languages was given in configure.in.
29578            # Hide the ALL_LINGUAS assignment from automake < 1.5.
29579            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
29580          fi
29581          # Compute POFILES
29582          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
29583          # Compute UPDATEPOFILES
29584          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
29585          # Compute DUMMYPOFILES
29586          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
29587          # Compute GMOFILES
29588          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
29589          case "$ac_given_srcdir" in
29590            .) srcdirpre= ;;
29591            *) srcdirpre='$(srcdir)/' ;;
29592          esac
29593          POFILES=
29594          UPDATEPOFILES=
29595          DUMMYPOFILES=
29596          GMOFILES=
29597          for lang in $ALL_LINGUAS; do
29598            POFILES="$POFILES $srcdirpre$lang.po"
29599            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
29600            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
29601            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
29602          done
29603          # CATALOGS depends on both $ac_dir and the user's LINGUAS
29604          # environment variable.
29605          INST_LINGUAS=
29606          if test -n "$ALL_LINGUAS"; then
29607            for presentlang in $ALL_LINGUAS; do
29608              useit=no
29609              if test "%UNSET%" != "$LINGUAS"; then
29610                desiredlanguages="$LINGUAS"
29611              else
29612                desiredlanguages="$ALL_LINGUAS"
29613              fi
29614              for desiredlang in $desiredlanguages; do
29615                # Use the presentlang catalog if desiredlang is
29616                #   a. equal to presentlang, or
29617                #   b. a variant of presentlang (because in this case,
29618                #      presentlang can be used as a fallback for messages
29619                #      which are not translated in the desiredlang catalog).
29620                case "$desiredlang" in
29621                  "$presentlang"*) useit=yes;;
29622                esac
29623              done
29624              if test $useit = yes; then
29625                INST_LINGUAS="$INST_LINGUAS $presentlang"
29626              fi
29627            done
29628          fi
29629          CATALOGS=
29630          if test -n "$INST_LINGUAS"; then
29631            for lang in $INST_LINGUAS; do
29632              CATALOGS="$CATALOGS $lang.gmo"
29633            done
29634          fi
29635          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
29636          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"
29637          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
29638            if test -f "$f"; then
29639              case "$f" in
29640                *.orig | *.bak | *~) ;;
29641                *) cat "$f" >> "$ac_dir/Makefile" ;;
29642              esac
29643            fi
29644          done
29645        fi
29646        ;;
29647      esac
29648    done ;;
29649
29650  esac
29651done # for ac_tag
29652
29653
29654as_fn_exit 0
29655_ACEOF
29656ac_clean_files=$ac_clean_files_save
29657
29658test $ac_write_fail = 0 ||
29659  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29660
29661
29662# configure is writing to config.log, and then calls config.status.
29663# config.status does its own redirection, appending to config.log.
29664# Unfortunately, on DOS this fails, as config.log is still kept open
29665# by configure, so config.status won't be able to write to it; its
29666# output is simply discarded.  So we exec the FD to /dev/null,
29667# effectively closing config.log, so it can be properly (re)opened and
29668# appended to by config.status.  When coming back to configure, we
29669# need to make the FD available again.
29670if test "$no_create" != yes; then
29671  ac_cs_success=:
29672  ac_config_status_args=
29673  test "$silent" = yes &&
29674    ac_config_status_args="$ac_config_status_args --quiet"
29675  exec 5>/dev/null
29676  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29677  exec 5>>config.log
29678  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29679  # would make configure fail if this is the last instruction.
29680  $ac_cs_success || as_fn_exit 1
29681fi
29682if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29683  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29684$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29685fi
29686
29687
29688{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
29689	${PACKAGE}  ${VERSION}
29690
29691	prefix:            ${prefix}
29692	exec prefix:       ${exec_prefix}
29693
29694	localstatedir:     ${localstatedir}
29695	bindir:            ${bindir}
29696	sbindir:           ${sbindir}
29697	libdir:            ${libdir}
29698	includedir:        ${includedir}
29699	usrbin_execdir:    ${usrbin_execdir}
29700	usrsbin_execdir:   ${usrsbin_execdir}
29701	usrlib_execdir:    ${usrlib_execdir}
29702
29703	compiler:          ${CC}
29704	cflags:            ${CFLAGS}
29705	suid cflags:       ${SUID_CFLAGS}
29706	ldflags:           ${LDFLAGS}
29707	suid ldflags:      ${SUID_LDFLAGS}
29708
29709	Python:            ${PYTHON}
29710	Python version:    ${PYTHON_VERSION}
29711	Python libs:       ${pyexecdir}
29712
29713	Bash completions:  ${with_bashcompletiondir}
29714	Systemd support:   ${have_systemd}
29715
29716	warnings:
29717
29718${WARN_CFLAGS}
29719" >&5
29720$as_echo "
29721	${PACKAGE}  ${VERSION}
29722
29723	prefix:            ${prefix}
29724	exec prefix:       ${exec_prefix}
29725
29726	localstatedir:     ${localstatedir}
29727	bindir:            ${bindir}
29728	sbindir:           ${sbindir}
29729	libdir:            ${libdir}
29730	includedir:        ${includedir}
29731	usrbin_execdir:    ${usrbin_execdir}
29732	usrsbin_execdir:   ${usrsbin_execdir}
29733	usrlib_execdir:    ${usrlib_execdir}
29734
29735	compiler:          ${CC}
29736	cflags:            ${CFLAGS}
29737	suid cflags:       ${SUID_CFLAGS}
29738	ldflags:           ${LDFLAGS}
29739	suid ldflags:      ${SUID_LDFLAGS}
29740
29741	Python:            ${PYTHON}
29742	Python version:    ${PYTHON_VERSION}
29743	Python libs:       ${pyexecdir}
29744
29745	Bash completions:  ${with_bashcompletiondir}
29746	Systemd support:   ${have_systemd}
29747
29748	warnings:
29749
29750${WARN_CFLAGS}
29751" >&6; }
29752