Imported Upstream version 1.6.7
[platform/upstream/cryptsetup.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cryptsetup 1.6.7.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='cryptsetup'
589 PACKAGE_TARNAME='cryptsetup'
590 PACKAGE_VERSION='1.6.7'
591 PACKAGE_STRING='cryptsetup 1.6.7'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/cryptsetup.c"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 #  include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 #  include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 PYTHON_CRYPTSETUP_FALSE
638 PYTHON_CRYPTSETUP_TRUE
639 PYTHON_LIBS
640 PYTHON_INCLUDES
641 pkgpyexecdir
642 pyexecdir
643 pkgpythondir
644 pythondir
645 PYTHON_PLATFORM
646 PYTHON_EXEC_PREFIX
647 PYTHON_PREFIX
648 PYTHON_VERSION
649 PYTHON
650 LIBCRYPTSETUP_VERSION_INFO
651 LIBCRYPTSETUP_VERSION
652 CRYPTO_STATIC_LIBS
653 CRYPTO_LIBS
654 CRYPTO_CFLAGS
655 PWQUALITY_STATIC_LIBS
656 DEVMAPPER_STATIC_LIBS
657 DEVMAPPER_STATIC_CFLAGS
658 CRYPTO_INTERNAL_PBKDF2_FALSE
659 CRYPTO_INTERNAL_PBKDF2_TRUE
660 CRYPTO_BACKEND_NETTLE_FALSE
661 CRYPTO_BACKEND_NETTLE_TRUE
662 CRYPTO_BACKEND_KERNEL_FALSE
663 CRYPTO_BACKEND_KERNEL_TRUE
664 CRYPTO_BACKEND_NSS_FALSE
665 CRYPTO_BACKEND_NSS_TRUE
666 CRYPTO_BACKEND_OPENSSL_FALSE
667 CRYPTO_BACKEND_OPENSSL_TRUE
668 CRYPTO_BACKEND_GCRYPT_FALSE
669 CRYPTO_BACKEND_GCRYPT_TRUE
670 NSS_LIBS
671 NSS_CFLAGS
672 OPENSSL_STATIC_LIBS
673 OPENSSL_STATIC_CFLAGS
674 OPENSSL_LIBS
675 OPENSSL_CFLAGS
676 LIBGCRYPT_LIBS
677 LIBGCRYPT_CFLAGS
678 LIBGCRYPT_CONFIG
679 DEVMAPPER_LIBS
680 DEVMAPPER_CFLAGS
681 REENCRYPT_FALSE
682 REENCRYPT_TRUE
683 VERITYSETUP_FALSE
684 VERITYSETUP_TRUE
685 STATIC_TOOLS_FALSE
686 STATIC_TOOLS_TRUE
687 PWQUALITY_LIBS
688 PWQUALITY_CFLAGS
689 POPT_LIBS
690 POSUB
691 LTLIBINTL
692 LIBINTL
693 INTLLIBS
694 LTLIBICONV
695 LIBICONV
696 INTL_MACOSX_LIBS
697 MSGMERGE
698 XGETTEXT_015
699 XGETTEXT
700 GMSGFMT_015
701 MSGFMT_015
702 GMSGFMT
703 MSGFMT
704 USE_NLS
705 UUID_LIBS
706 PKG_CONFIG_LIBDIR
707 PKG_CONFIG_PATH
708 PKG_CONFIG
709 OTOOL64
710 OTOOL
711 LIPO
712 NMEDIT
713 DSYMUTIL
714 MANIFEST_TOOL
715 RANLIB
716 ac_ct_AR
717 AR
718 DLLTOOL
719 OBJDUMP
720 LN_S
721 NM
722 ac_ct_DUMPBIN
723 DUMPBIN
724 LD
725 FGREP
726 SED
727 LIBTOOL
728 EGREP
729 GREP
730 CPP
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 AM_BACKSLASH
780 AM_DEFAULT_VERBOSITY
781 AM_DEFAULT_V
782 AM_V
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_URL
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_silent_rules
825 enable_dependency_tracking
826 enable_static
827 enable_shared
828 with_pic
829 enable_fast_install
830 with_gnu_ld
831 with_sysroot
832 enable_libtool_lock
833 enable_largefile
834 enable_nls
835 enable_rpath
836 with_libiconv_prefix
837 with_libintl_prefix
838 enable_fips
839 enable_pwquality
840 enable_static_cryptsetup
841 enable_veritysetup
842 enable_cryptsetup_reencrypt
843 enable_selinux
844 enable_udev
845 with_crypto_backend
846 enable_kernel_crypto
847 enable_gcrypt_pbkdf2
848 with_libgcrypt_prefix
849 enable_dev_random
850 enable_python
851 with_python_version
852 with_plain_hash
853 with_plain_cipher
854 with_plain_mode
855 with_plain_keybits
856 with_luks1_hash
857 with_luks1_cipher
858 with_luks1_mode
859 with_luks1_keybits
860 with_luks1_iter_time
861 with_loopaes_cipher
862 with_loopaes_keybits
863 with_keyfile_size_maxkb
864 with_passphrase_size_max
865 with_verity_hash
866 with_verity_data_block
867 with_verity_hash_block
868 with_verity_salt_size
869 '
870       ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 CPP
879 PKG_CONFIG
880 PKG_CONFIG_PATH
881 PKG_CONFIG_LIBDIR
882 PWQUALITY_CFLAGS
883 PWQUALITY_LIBS
884 DEVMAPPER_CFLAGS
885 DEVMAPPER_LIBS
886 OPENSSL_CFLAGS
887 OPENSSL_LIBS
888 OPENSSL_STATIC_CFLAGS
889 OPENSSL_STATIC_LIBS
890 NSS_CFLAGS
891 NSS_LIBS
892 DEVMAPPER_STATIC_CFLAGS
893 DEVMAPPER_STATIC_LIBS
894 PYTHON'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 ac_unrecognized_opts=
901 ac_unrecognized_sep=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949   # If the previous option needs an argument, assign it.
950   if test -n "$ac_prev"; then
951     eval $ac_prev=\$ac_option
952     ac_prev=
953     continue
954   fi
955
956   case $ac_option in
957   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958   *=)   ac_optarg= ;;
959   *)    ac_optarg=yes ;;
960   esac
961
962   # Accept the important Cygnus configure options, so we can diagnose typos.
963
964   case $ac_dashdash$ac_option in
965   --)
966     ac_dashdash=yes ;;
967
968   -bindir | --bindir | --bindi | --bind | --bin | --bi)
969     ac_prev=bindir ;;
970   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971     bindir=$ac_optarg ;;
972
973   -build | --build | --buil | --bui | --bu)
974     ac_prev=build_alias ;;
975   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976     build_alias=$ac_optarg ;;
977
978   -cache-file | --cache-file | --cache-fil | --cache-fi \
979   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980     ac_prev=cache_file ;;
981   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983     cache_file=$ac_optarg ;;
984
985   --config-cache | -C)
986     cache_file=config.cache ;;
987
988   -datadir | --datadir | --datadi | --datad)
989     ac_prev=datadir ;;
990   -datadir=* | --datadir=* | --datadi=* | --datad=*)
991     datadir=$ac_optarg ;;
992
993   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994   | --dataroo | --dataro | --datar)
995     ac_prev=datarootdir ;;
996   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998     datarootdir=$ac_optarg ;;
999
1000   -disable-* | --disable-*)
1001     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002     # Reject names that are not valid shell variable names.
1003     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004       as_fn_error $? "invalid feature name: $ac_useropt"
1005     ac_useropt_orig=$ac_useropt
1006     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007     case $ac_user_opts in
1008       *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012          ac_unrecognized_sep=', ';;
1013     esac
1014     eval enable_$ac_useropt=no ;;
1015
1016   -docdir | --docdir | --docdi | --doc | --do)
1017     ac_prev=docdir ;;
1018   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019     docdir=$ac_optarg ;;
1020
1021   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022     ac_prev=dvidir ;;
1023   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024     dvidir=$ac_optarg ;;
1025
1026   -enable-* | --enable-*)
1027     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030       as_fn_error $? "invalid feature name: $ac_useropt"
1031     ac_useropt_orig=$ac_useropt
1032     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033     case $ac_user_opts in
1034       *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038          ac_unrecognized_sep=', ';;
1039     esac
1040     eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044   | --exec | --exe | --ex)
1045     ac_prev=exec_prefix ;;
1046   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048   | --exec=* | --exe=* | --ex=*)
1049     exec_prefix=$ac_optarg ;;
1050
1051   -gas | --gas | --ga | --g)
1052     # Obsolete; use --with-gas.
1053     with_gas=yes ;;
1054
1055   -help | --help | --hel | --he | -h)
1056     ac_init_help=long ;;
1057   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058     ac_init_help=recursive ;;
1059   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060     ac_init_help=short ;;
1061
1062   -host | --host | --hos | --ho)
1063     ac_prev=host_alias ;;
1064   -host=* | --host=* | --hos=* | --ho=*)
1065     host_alias=$ac_optarg ;;
1066
1067   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068     ac_prev=htmldir ;;
1069   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070   | --ht=*)
1071     htmldir=$ac_optarg ;;
1072
1073   -includedir | --includedir | --includedi | --included | --include \
1074   | --includ | --inclu | --incl | --inc)
1075     ac_prev=includedir ;;
1076   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077   | --includ=* | --inclu=* | --incl=* | --inc=*)
1078     includedir=$ac_optarg ;;
1079
1080   -infodir | --infodir | --infodi | --infod | --info | --inf)
1081     ac_prev=infodir ;;
1082   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083     infodir=$ac_optarg ;;
1084
1085   -libdir | --libdir | --libdi | --libd)
1086     ac_prev=libdir ;;
1087   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088     libdir=$ac_optarg ;;
1089
1090   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091   | --libexe | --libex | --libe)
1092     ac_prev=libexecdir ;;
1093   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094   | --libexe=* | --libex=* | --libe=*)
1095     libexecdir=$ac_optarg ;;
1096
1097   -localedir | --localedir | --localedi | --localed | --locale)
1098     ac_prev=localedir ;;
1099   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100     localedir=$ac_optarg ;;
1101
1102   -localstatedir | --localstatedir | --localstatedi | --localstated \
1103   | --localstate | --localstat | --localsta | --localst | --locals)
1104     ac_prev=localstatedir ;;
1105   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107     localstatedir=$ac_optarg ;;
1108
1109   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110     ac_prev=mandir ;;
1111   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112     mandir=$ac_optarg ;;
1113
1114   -nfp | --nfp | --nf)
1115     # Obsolete; use --without-fp.
1116     with_fp=no ;;
1117
1118   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119   | --no-cr | --no-c | -n)
1120     no_create=yes ;;
1121
1122   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124     no_recursion=yes ;;
1125
1126   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128   | --oldin | --oldi | --old | --ol | --o)
1129     ac_prev=oldincludedir ;;
1130   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133     oldincludedir=$ac_optarg ;;
1134
1135   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136     ac_prev=prefix ;;
1137   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138     prefix=$ac_optarg ;;
1139
1140   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141   | --program-pre | --program-pr | --program-p)
1142     ac_prev=program_prefix ;;
1143   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145     program_prefix=$ac_optarg ;;
1146
1147   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148   | --program-suf | --program-su | --program-s)
1149     ac_prev=program_suffix ;;
1150   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152     program_suffix=$ac_optarg ;;
1153
1154   -program-transform-name | --program-transform-name \
1155   | --program-transform-nam | --program-transform-na \
1156   | --program-transform-n | --program-transform- \
1157   | --program-transform | --program-transfor \
1158   | --program-transfo | --program-transf \
1159   | --program-trans | --program-tran \
1160   | --progr-tra | --program-tr | --program-t)
1161     ac_prev=program_transform_name ;;
1162   -program-transform-name=* | --program-transform-name=* \
1163   | --program-transform-nam=* | --program-transform-na=* \
1164   | --program-transform-n=* | --program-transform-=* \
1165   | --program-transform=* | --program-transfor=* \
1166   | --program-transfo=* | --program-transf=* \
1167   | --program-trans=* | --program-tran=* \
1168   | --progr-tra=* | --program-tr=* | --program-t=*)
1169     program_transform_name=$ac_optarg ;;
1170
1171   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172     ac_prev=pdfdir ;;
1173   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174     pdfdir=$ac_optarg ;;
1175
1176   -psdir | --psdir | --psdi | --psd | --ps)
1177     ac_prev=psdir ;;
1178   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179     psdir=$ac_optarg ;;
1180
1181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182   | -silent | --silent | --silen | --sile | --sil)
1183     silent=yes ;;
1184
1185   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186     ac_prev=sbindir ;;
1187   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188   | --sbi=* | --sb=*)
1189     sbindir=$ac_optarg ;;
1190
1191   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193   | --sharedst | --shareds | --shared | --share | --shar \
1194   | --sha | --sh)
1195     ac_prev=sharedstatedir ;;
1196   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199   | --sha=* | --sh=*)
1200     sharedstatedir=$ac_optarg ;;
1201
1202   -site | --site | --sit)
1203     ac_prev=site ;;
1204   -site=* | --site=* | --sit=*)
1205     site=$ac_optarg ;;
1206
1207   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208     ac_prev=srcdir ;;
1209   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210     srcdir=$ac_optarg ;;
1211
1212   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213   | --syscon | --sysco | --sysc | --sys | --sy)
1214     ac_prev=sysconfdir ;;
1215   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217     sysconfdir=$ac_optarg ;;
1218
1219   -target | --target | --targe | --targ | --tar | --ta | --t)
1220     ac_prev=target_alias ;;
1221   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222     target_alias=$ac_optarg ;;
1223
1224   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225     verbose=yes ;;
1226
1227   -version | --version | --versio | --versi | --vers | -V)
1228     ac_init_version=: ;;
1229
1230   -with-* | --with-*)
1231     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234       as_fn_error $? "invalid package name: $ac_useropt"
1235     ac_useropt_orig=$ac_useropt
1236     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237     case $ac_user_opts in
1238       *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242          ac_unrecognized_sep=', ';;
1243     esac
1244     eval with_$ac_useropt=\$ac_optarg ;;
1245
1246   -without-* | --without-*)
1247     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250       as_fn_error $? "invalid package name: $ac_useropt"
1251     ac_useropt_orig=$ac_useropt
1252     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253     case $ac_user_opts in
1254       *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258          ac_unrecognized_sep=', ';;
1259     esac
1260     eval with_$ac_useropt=no ;;
1261
1262   --x)
1263     # Obsolete; use --with-x.
1264     with_x=yes ;;
1265
1266   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267   | --x-incl | --x-inc | --x-in | --x-i)
1268     ac_prev=x_includes ;;
1269   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271     x_includes=$ac_optarg ;;
1272
1273   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275     ac_prev=x_libraries ;;
1276   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278     x_libraries=$ac_optarg ;;
1279
1280   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1282     ;;
1283
1284   *=*)
1285     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286     # Reject names that are not valid shell variable names.
1287     case $ac_envvar in #(
1288       '' | [0-9]* | *[!_$as_cr_alnum]* )
1289       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290     esac
1291     eval $ac_envvar=\$ac_optarg
1292     export $ac_envvar ;;
1293
1294   *)
1295     # FIXME: should be removed in autoconf 3.0.
1296     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1300     ;;
1301
1302   esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307   as_fn_error $? "missing argument to $ac_option"
1308 fi
1309
1310 if test -n "$ac_unrecognized_opts"; then
1311   case $enable_option_checking in
1312     no) ;;
1313     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315   esac
1316 fi
1317
1318 # Check all directory arguments for consistency.
1319 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320                 datadir sysconfdir sharedstatedir localstatedir includedir \
1321                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322                 libdir localedir mandir
1323 do
1324   eval ac_val=\$$ac_var
1325   # Remove trailing slashes.
1326   case $ac_val in
1327     */ )
1328       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329       eval $ac_var=\$ac_val;;
1330   esac
1331   # Be sure to have absolute directory names.
1332   case $ac_val in
1333     [\\/$]* | ?:[\\/]* )  continue;;
1334     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335   esac
1336   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1338
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1345
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348   if test "x$build_alias" = x; then
1349     cross_compiling=maybe
1350   elif test "x$build_alias" != "x$host_alias"; then
1351     cross_compiling=yes
1352   fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364   as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366   as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371   ac_srcdir_defaulted=yes
1372   # Try the directory containing this script, then the parent directory.
1373   ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375          X"$as_myself" : 'X\(//\)[^/]' \| \
1376          X"$as_myself" : 'X\(//\)$' \| \
1377          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)[^/].*/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\).*/{
1392             s//\1/
1393             q
1394           }
1395           s/.*/./; q'`
1396   srcdir=$ac_confdir
1397   if test ! -r "$srcdir/$ac_unique_file"; then
1398     srcdir=..
1399   fi
1400 else
1401   ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410         pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413   srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423   eval ac_env_${ac_var}_value=\$${ac_var}
1424   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432   # Omit some internal or obsolete options to make the list less imposing.
1433   # This message is too long to be a string in the A/UX 3.1 sh.
1434   cat <<_ACEOF
1435 \`configure' configures cryptsetup 1.6.7 to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE.  See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445   -h, --help              display this help and exit
1446       --help=short        display options specific to this package
1447       --help=recursive    display the short help of all the included packages
1448   -V, --version           display version information and exit
1449   -q, --quiet, --silent   do not print \`checking ...' messages
1450       --cache-file=FILE   cache test results in FILE [disabled]
1451   -C, --config-cache      alias for \`--cache-file=config.cache'
1452   -n, --no-create         do not create output files
1453       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456   --prefix=PREFIX         install architecture-independent files in PREFIX
1457                           [$ac_default_prefix]
1458   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1459                           [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469   --bindir=DIR            user executables [EPREFIX/bin]
1470   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1471   --libexecdir=DIR        program executables [EPREFIX/libexec]
1472   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1473   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1474   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1475   --libdir=DIR            object code libraries [EPREFIX/lib]
1476   --includedir=DIR        C header files [PREFIX/include]
1477   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1478   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1479   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1480   --infodir=DIR           info documentation [DATAROOTDIR/info]
1481   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1482   --mandir=DIR            man documentation [DATAROOTDIR/man]
1483   --docdir=DIR            documentation root [DATAROOTDIR/doc/cryptsetup]
1484   --htmldir=DIR           html documentation [DOCDIR]
1485   --dvidir=DIR            dvi documentation [DOCDIR]
1486   --pdfdir=DIR            pdf documentation [DOCDIR]
1487   --psdir=DIR             ps documentation [DOCDIR]
1488 _ACEOF
1489
1490   cat <<\_ACEOF
1491
1492 Program names:
1493   --program-prefix=PREFIX            prepend PREFIX to installed program names
1494   --program-suffix=SUFFIX            append SUFFIX to installed program names
1495   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1496
1497 System types:
1498   --build=BUILD     configure for building on BUILD [guessed]
1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504   case $ac_init_help in
1505      short | recursive ) echo "Configuration of cryptsetup 1.6.7:";;
1506    esac
1507   cat <<\_ACEOF
1508
1509 Optional Features:
1510   --disable-option-checking  ignore unrecognized --enable/--with options
1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513   --enable-silent-rules   less verbose build output (undo: "make V=1")
1514   --disable-silent-rules  verbose build output (undo: "make V=0")
1515   --enable-dependency-tracking
1516                           do not reject slow dependency extractors
1517   --disable-dependency-tracking
1518                           speeds up one-time build
1519   --enable-static[=PKGS]  build static libraries [default=no]
1520   --enable-shared[=PKGS]  build shared libraries [default=yes]
1521   --enable-fast-install[=PKGS]
1522                           optimize for fast installation [default=yes]
1523   --disable-libtool-lock  avoid locking (might break parallel builds)
1524   --disable-largefile     omit support for large files
1525   --disable-nls           do not use Native Language Support
1526   --disable-rpath         do not hardcode runtime library paths
1527   --enable-fips           enable FIPS mode restrictions
1528   --enable-pwquality      enable password quality checking
1529   --enable-static-cryptsetup
1530                           enable build of static cryptsetup binary
1531   --disable-veritysetup   disable veritysetup support
1532   --enable-cryptsetup-reencrypt
1533                           enable cryptsetup-reencrypt tool
1534   --disable-selinux       disable selinux support [default=auto]
1535   --disable-udev          disable udev support
1536   --disable-kernel_crypto disable kernel userspace crypto (no benchmark and
1537                           tcrypt)
1538   --enable-gcrypt-pbkdf2  force enable internal gcrypt PBKDF2
1539   --enable-dev-random     use blocking /dev/random by default for key
1540                           generator (otherwise use /dev/urandom)
1541   --enable-python         enable Python bindings
1542
1543 Optional Packages:
1544   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1547                           both]
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549   --with-sysroot=DIR Search for dependent libraries within DIR
1550                         (or the compiler's sysroot if not specified).
1551   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1552   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1553   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1554   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1555   --without-libintl-prefix     don't search for libintl in includedir and libdir
1556   --with-crypto_backend=BACKEND
1557                           crypto backend (gcrypt/openssl/nss/kernel/nettle)
1558                           [gcrypt]
1559   --with-libgcrypt-prefix=PFX
1560                           prefix where LIBGCRYPT is installed (optional)
1561   --with-python_version=VERSION
1562                           required Python version [2.6]
1563   --with-plain-hash       default password hashing function for plain mode
1564                           [ripemd160]
1565   --with-plain-cipher     default cipher for plain mode [aes]
1566   --with-plain-mode       default cipher mode for plain mode
1567                           [cbc-essiv:sha256]
1568   --with-plain-keybits    default key length in bits for plain mode [256]
1569   --with-luks1-hash       default hash function for LUKS1 header [sha1]
1570   --with-luks1-cipher     default cipher for LUKS1 [aes]
1571   --with-luks1-mode       default cipher mode for LUKS1 [xts-plain64]
1572   --with-luks1-keybits    default key length in bits for LUKS1 [256]
1573   --with-luks1-iter-time  default PBKDF2 iteration time for LUKS1 (in ms)
1574                           [1000]
1575   --with-loopaes-cipher   default cipher for loop-AES mode [aes]
1576   --with-loopaes-keybits  default key length in bits for loop-AES mode [256]
1577   --with-keyfile-size-maxkb
1578                           default maximum keyfile size (in KiB) [8192]
1579   --with-passphrase-size-max
1580                           default maximum keyfile size (in characters) [512]
1581   --with-verity-hash      default hash function for verity mode [sha256]
1582   --with-verity-data-block
1583                           default data block size for verity mode [4096]
1584   --with-verity-hash-block
1585                           default hash block size for verity mode [4096]
1586   --with-verity-salt-size default salt size for verity mode [32]
1587
1588 Some influential environment variables:
1589   CC          C compiler command
1590   CFLAGS      C compiler flags
1591   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1592               nonstandard directory <lib dir>
1593   LIBS        libraries to pass to the linker, e.g. -l<library>
1594   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595               you have headers in a nonstandard directory <include dir>
1596   CPP         C preprocessor
1597   PKG_CONFIG  path to pkg-config utility
1598   PKG_CONFIG_PATH
1599               directories to add to pkg-config's search path
1600   PKG_CONFIG_LIBDIR
1601               path overriding pkg-config's built-in search path
1602   PWQUALITY_CFLAGS
1603               C compiler flags for PWQUALITY, overriding pkg-config
1604   PWQUALITY_LIBS
1605               linker flags for PWQUALITY, overriding pkg-config
1606   DEVMAPPER_CFLAGS
1607               C compiler flags for DEVMAPPER, overriding pkg-config
1608   DEVMAPPER_LIBS
1609               linker flags for DEVMAPPER, overriding pkg-config
1610   OPENSSL_CFLAGS
1611               C compiler flags for OPENSSL, overriding pkg-config
1612   OPENSSL_LIBS
1613               linker flags for OPENSSL, overriding pkg-config
1614   OPENSSL_STATIC_CFLAGS
1615               C compiler flags for OPENSSL_STATIC, overriding pkg-config
1616   OPENSSL_STATIC_LIBS
1617               linker flags for OPENSSL_STATIC, overriding pkg-config
1618   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1619   NSS_LIBS    linker flags for NSS, overriding pkg-config
1620   DEVMAPPER_STATIC_CFLAGS
1621               C compiler flags for DEVMAPPER_STATIC, overriding pkg-config
1622   DEVMAPPER_STATIC_LIBS
1623               linker flags for DEVMAPPER_STATIC, overriding pkg-config
1624   PYTHON      the Python interpreter
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to the package provider.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635   # If there are subdirs, report their specific --help.
1636   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637     test -d "$ac_dir" ||
1638       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639       continue
1640     ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646   # A ".." for each directory in $ac_dir_suffix.
1647   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648   case $ac_top_builddir_sub in
1649   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651   esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659   .)  # We are building in place.
1660     ac_srcdir=.
1661     ac_top_srcdir=$ac_top_builddir_sub
1662     ac_abs_top_srcdir=$ac_pwd ;;
1663   [\\/]* | ?:[\\/]* )  # Absolute name.
1664     ac_srcdir=$srcdir$ac_dir_suffix;
1665     ac_top_srcdir=$srcdir
1666     ac_abs_top_srcdir=$srcdir ;;
1667   *) # Relative name.
1668     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669     ac_top_srcdir=$ac_top_build_prefix$srcdir
1670     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674     cd "$ac_dir" || { ac_status=$?; continue; }
1675     # Check for guested configure.
1676     if test -f "$ac_srcdir/configure.gnu"; then
1677       echo &&
1678       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679     elif test -f "$ac_srcdir/configure"; then
1680       echo &&
1681       $SHELL "$ac_srcdir/configure" --help=recursive
1682     else
1683       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684     fi || ac_status=$?
1685     cd "$ac_pwd" || { ac_status=$?; break; }
1686   done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691   cat <<\_ACEOF
1692 cryptsetup configure 1.6.7
1693 generated by GNU Autoconf 2.69
1694
1695 Copyright (C) 2012 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1698 _ACEOF
1699   exit
1700 fi
1701
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1705
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   rm -f conftest.$ac_objext
1713   if { { ac_try="$ac_compile"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_compile") 2>conftest.err
1721   ac_status=$?
1722   if test -s conftest.err; then
1723     grep -v '^ *+' conftest.err >conftest.er1
1724     cat conftest.er1 >&5
1725     mv -f conftest.er1 conftest.err
1726   fi
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; } && {
1729          test -z "$ac_c_werror_flag" ||
1730          test ! -s conftest.err
1731        } && test -s conftest.$ac_objext; then :
1732   ac_retval=0
1733 else
1734   $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737         ac_retval=1
1738 fi
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740   as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_compile
1743
1744 # ac_fn_c_try_cpp LINENO
1745 # ----------------------
1746 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_c_try_cpp ()
1748 {
1749   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750   if { { ac_try="$ac_cpp conftest.$ac_ext"
1751 case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758   ac_status=$?
1759   if test -s conftest.err; then
1760     grep -v '^ *+' conftest.err >conftest.er1
1761     cat conftest.er1 >&5
1762     mv -f conftest.er1 conftest.err
1763   fi
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; } > conftest.i && {
1766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767          test ! -s conftest.err
1768        }; then :
1769   ac_retval=0
1770 else
1771   $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774     ac_retval=1
1775 fi
1776   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777   as_fn_set_status $ac_retval
1778
1779 } # ac_fn_c_try_cpp
1780
1781 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784 # the include files in INCLUDES and setting the cache variable VAR
1785 # accordingly.
1786 ac_fn_c_check_header_mongrel ()
1787 {
1788   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789   if eval \${$3+:} false; then :
1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793   $as_echo_n "(cached) " >&6
1794 fi
1795 eval ac_res=\$$3
1796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 else
1799   # Is the header compilable?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801 $as_echo_n "checking $2 usability... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h.  */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808   ac_header_compiler=yes
1809 else
1810   ac_header_compiler=no
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814 $as_echo "$ac_header_compiler" >&6; }
1815
1816 # Is the header present?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818 $as_echo_n "checking $2 presence... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_cpp "$LINENO"; then :
1824   ac_header_preproc=yes
1825 else
1826   ac_header_preproc=no
1827 fi
1828 rm -f conftest.err conftest.i conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830 $as_echo "$ac_header_preproc" >&6; }
1831
1832 # So?  What about this header?
1833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834   yes:no: )
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839     ;;
1840   no:yes:* )
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1844 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1848 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851     ;;
1852 esac
1853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856   $as_echo_n "(cached) " >&6
1857 else
1858   eval "$3=\$ac_header_compiler"
1859 fi
1860 eval ac_res=\$$3
1861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 fi
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_header_mongrel
1867
1868 # ac_fn_c_try_run LINENO
1869 # ----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871 # that executables *can* be run.
1872 ac_fn_c_try_run ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if { { ac_try="$ac_link"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_link") 2>&5
1883   ac_status=$?
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886   { { case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_try") 2>&5
1893   ac_status=$?
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; }; }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: program exited with status $ac_status" >&5
1899        $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902        ac_retval=$ac_status
1903 fi
1904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906   as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_run
1909
1910 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists and can be compiled using the include files in
1913 # INCLUDES, setting the cache variable VAR accordingly.
1914 ac_fn_c_check_header_compile ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928   eval "$3=yes"
1929 else
1930   eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_header_compile
1940
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_link ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   rm -f conftest.$ac_objext conftest$ac_exeext
1948   if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951   *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955   (eval "$ac_link") 2>conftest.err
1956   ac_status=$?
1957   if test -s conftest.err; then
1958     grep -v '^ *+' conftest.err >conftest.er1
1959     cat conftest.er1 >&5
1960     mv -f conftest.er1 conftest.err
1961   fi
1962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963   test $ac_status = 0; } && {
1964          test -z "$ac_c_werror_flag" ||
1965          test ! -s conftest.err
1966        } && test -s conftest$ac_exeext && {
1967          test "$cross_compiling" = yes ||
1968          test -x conftest$ac_exeext
1969        }; then :
1970   ac_retval=0
1971 else
1972   $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975         ac_retval=1
1976 fi
1977   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979   # interfere with the next link command; also delete a directory that is
1980   # left behind by Apple's compiler.  We do this before executing the actions.
1981   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983   as_fn_set_status $ac_retval
1984
1985 } # ac_fn_c_try_link
1986
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996   $as_echo_n "(cached) " >&6
1997 else
1998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h.  */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2002 #define $2 innocuous_$2
2003
2004 /* System header to define __stub macros and hopefully few prototypes,
2005     which can conflict with char $2 (); below.
2006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007     <limits.h> exists even on freestanding compilers.  */
2008
2009 #ifdef __STDC__
2010 # include <limits.h>
2011 #else
2012 # include <assert.h>
2013 #endif
2014
2015 #undef $2
2016
2017 /* Override any GCC internal prototype to avoid an error.
2018    Use char because int might match the return type of a GCC
2019    builtin and then its argument prototype would still apply.  */
2020 #ifdef __cplusplus
2021 extern "C"
2022 #endif
2023 char $2 ();
2024 /* The GNU C library defines this for functions which it implements
2025     to always fail with ENOSYS.  Some functions are actually named
2026     something starting with __ and the normal name is an alias.  */
2027 #if defined __stub_$2 || defined __stub___$2
2028 choke me
2029 #endif
2030
2031 int
2032 main ()
2033 {
2034 return $2 ();
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_link "$LINENO"; then :
2040   eval "$3=yes"
2041 else
2042   eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext \
2045     conftest$ac_exeext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$3
2048                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_func
2053
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064   $as_echo_n "(cached) " >&6
2065 else
2066   eval "$3=no"
2067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h.  */
2069 $4
2070 int
2071 main ()
2072 {
2073 if (sizeof ($2))
2074          return 0;
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 $4
2083 int
2084 main ()
2085 {
2086 if (sizeof (($2)))
2087             return 0;
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093
2094 else
2095   eval "$3=yes"
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_c_check_type
2107
2108 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2109 # ---------------------------------------------
2110 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2111 # accordingly.
2112 ac_fn_c_check_decl ()
2113 {
2114   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115   as_decl_name=`echo $2|sed 's/ *(.*//'`
2116   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2118 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2119 if eval \${$3+:} false; then :
2120   $as_echo_n "(cached) " >&6
2121 else
2122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h.  */
2124 $4
2125 int
2126 main ()
2127 {
2128 #ifndef $as_decl_name
2129 #ifdef __cplusplus
2130   (void) $as_decl_use;
2131 #else
2132   (void) $as_decl_name;
2133 #endif
2134 #endif
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141   eval "$3=yes"
2142 else
2143   eval "$3=no"
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 fi
2147 eval ac_res=\$$3
2148                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152 } # ac_fn_c_check_decl
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2156
2157 It was created by cryptsetup $as_me 1.6.7, which was
2158 generated by GNU Autoconf 2.69.  Invocation command line was
2159
2160   $ $0 $@
2161
2162 _ACEOF
2163 exec 5>>config.log
2164 {
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2169
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2178
2179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2186
2187 _ASUNAME
2188
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194     $as_echo "PATH: $as_dir"
2195   done
2196 IFS=$as_save_IFS
2197
2198 } >&5
2199
2200 cat >&5 <<_ACEOF
2201
2202
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2206
2207 _ACEOF
2208
2209
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2220 do
2221   for ac_arg
2222   do
2223     case $ac_arg in
2224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226     | -silent | --silent | --silen | --sile | --sil)
2227       continue ;;
2228     *\'*)
2229       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230     esac
2231     case $ac_pass in
2232     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233     2)
2234       as_fn_append ac_configure_args1 " '$ac_arg'"
2235       if test $ac_must_keep_next = true; then
2236         ac_must_keep_next=false # Got value, back to normal.
2237       else
2238         case $ac_arg in
2239           *=* | --config-cache | -C | -disable-* | --disable-* \
2240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242           | -with-* | --with-* | -without-* | --without-* | --x)
2243             case "$ac_configure_args0 " in
2244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245             esac
2246             ;;
2247           -* ) ac_must_keep_next=true ;;
2248         esac
2249       fi
2250       as_fn_append ac_configure_args " '$ac_arg'"
2251       ;;
2252     esac
2253   done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2257
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log.  We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264   # Save into config.log some information that might help in debugging.
2265   {
2266     echo
2267
2268     $as_echo "## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##"
2271     echo
2272     # The following way of writing the cache mishandles newlines in values,
2273 (
2274   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275     eval ac_val=\$$ac_var
2276     case $ac_val in #(
2277     *${as_nl}*)
2278       case $ac_var in #(
2279       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2281       esac
2282       case $ac_var in #(
2283       _ | IFS | as_nl) ;; #(
2284       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285       *) { eval $ac_var=; unset $ac_var;} ;;
2286       esac ;;
2287     esac
2288   done
2289   (set) 2>&1 |
2290     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291     *${as_nl}ac_space=\ *)
2292       sed -n \
2293         "s/'\''/'\''\\\\'\'''\''/g;
2294           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2295       ;; #(
2296     *)
2297       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2298       ;;
2299     esac |
2300     sort
2301 )
2302     echo
2303
2304     $as_echo "## ----------------- ##
2305 ## Output variables. ##
2306 ## ----------------- ##"
2307     echo
2308     for ac_var in $ac_subst_vars
2309     do
2310       eval ac_val=\$$ac_var
2311       case $ac_val in
2312       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313       esac
2314       $as_echo "$ac_var='\''$ac_val'\''"
2315     done | sort
2316     echo
2317
2318     if test -n "$ac_subst_files"; then
2319       $as_echo "## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##"
2322       echo
2323       for ac_var in $ac_subst_files
2324       do
2325         eval ac_val=\$$ac_var
2326         case $ac_val in
2327         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328         esac
2329         $as_echo "$ac_var='\''$ac_val'\''"
2330       done | sort
2331       echo
2332     fi
2333
2334     if test -s confdefs.h; then
2335       $as_echo "## ----------- ##
2336 ## confdefs.h. ##
2337 ## ----------- ##"
2338       echo
2339       cat confdefs.h
2340       echo
2341     fi
2342     test "$ac_signal" != 0 &&
2343       $as_echo "$as_me: caught signal $ac_signal"
2344     $as_echo "$as_me: exit $exit_status"
2345   } >&5
2346   rm -f core *.core core.conftest.* &&
2347     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2348     exit $exit_status
2349 ' 0
2350 for ac_signal in 1 2 13 15; do
2351   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2352 done
2353 ac_signal=0
2354
2355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2356 rm -f -r conftest* confdefs.h
2357
2358 $as_echo "/* confdefs.h */" > confdefs.h
2359
2360 # Predefined preprocessor variables.
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_NAME "$PACKAGE_NAME"
2364 _ACEOF
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_STRING "$PACKAGE_STRING"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_URL "$PACKAGE_URL"
2384 _ACEOF
2385
2386
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2389 ac_site_file1=NONE
2390 ac_site_file2=NONE
2391 if test -n "$CONFIG_SITE"; then
2392   # We do not want a PATH search for config.site.
2393   case $CONFIG_SITE in #((
2394     -*)  ac_site_file1=./$CONFIG_SITE;;
2395     */*) ac_site_file1=$CONFIG_SITE;;
2396     *)   ac_site_file1=./$CONFIG_SITE;;
2397   esac
2398 elif test "x$prefix" != xNONE; then
2399   ac_site_file1=$prefix/share/config.site
2400   ac_site_file2=$prefix/etc/config.site
2401 else
2402   ac_site_file1=$ac_default_prefix/share/config.site
2403   ac_site_file2=$ac_default_prefix/etc/config.site
2404 fi
2405 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2406 do
2407   test "x$ac_site_file" = xNONE && continue
2408   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411     sed 's/^/| /' "$ac_site_file" >&5
2412     . "$ac_site_file" \
2413       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 as_fn_error $? "failed to load site script $ac_site_file
2416 See \`config.log' for more details" "$LINENO" 5; }
2417   fi
2418 done
2419
2420 if test -r "$cache_file"; then
2421   # Some versions of bash will fail to source /dev/null (special files
2422   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2423   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2424     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425 $as_echo "$as_me: loading cache $cache_file" >&6;}
2426     case $cache_file in
2427       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2428       *)                      . "./$cache_file";;
2429     esac
2430   fi
2431 else
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433 $as_echo "$as_me: creating cache $cache_file" >&6;}
2434   >$cache_file
2435 fi
2436
2437 # Check that the precious variables saved in the cache have kept the same
2438 # value.
2439 ac_cache_corrupted=false
2440 for ac_var in $ac_precious_vars; do
2441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442   eval ac_new_set=\$ac_env_${ac_var}_set
2443   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444   eval ac_new_val=\$ac_env_${ac_var}_value
2445   case $ac_old_set,$ac_new_set in
2446     set,)
2447       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449       ac_cache_corrupted=: ;;
2450     ,set)
2451       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453       ac_cache_corrupted=: ;;
2454     ,);;
2455     *)
2456       if test "x$ac_old_val" != "x$ac_new_val"; then
2457         # differences in whitespace do not lead to failure.
2458         ac_old_val_w=`echo x $ac_old_val`
2459         ac_new_val_w=`echo x $ac_new_val`
2460         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463           ac_cache_corrupted=:
2464         else
2465           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467           eval $ac_var=\$ac_old_val
2468         fi
2469         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2470 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2471         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2472 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2473       fi;;
2474   esac
2475   # Pass precious variables to config.status.
2476   if test "$ac_new_set" = set; then
2477     case $ac_new_val in
2478     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479     *) ac_arg=$ac_var=$ac_new_val ;;
2480     esac
2481     case " $ac_configure_args " in
2482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2483       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484     esac
2485   fi
2486 done
2487 if $ac_cache_corrupted; then
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 fi
2494 ## -------------------- ##
2495 ## Main body of script. ##
2496 ## -------------------- ##
2497
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503
2504
2505
2506 LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
2507 LIBCRYPTSETUP_VERSION_INFO=11:0:7
2508
2509 # Check whether --enable-silent-rules was given.
2510 if test "${enable_silent_rules+set}" = set; then :
2511   enableval=$enable_silent_rules;
2512 fi
2513
2514 case $enable_silent_rules in # (((
2515   yes) AM_DEFAULT_VERBOSITY=0;;
2516    no) AM_DEFAULT_VERBOSITY=1;;
2517     *) AM_DEFAULT_VERBOSITY=0;;
2518 esac
2519 am_make=${MAKE-make}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2521 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2522 if ${am_cv_make_support_nested_variables+:} false; then :
2523   $as_echo_n "(cached) " >&6
2524 else
2525   if $as_echo 'TRUE=$(BAR$(V))
2526 BAR0=false
2527 BAR1=true
2528 V=1
2529 am__doit:
2530         @$(TRUE)
2531 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2532   am_cv_make_support_nested_variables=yes
2533 else
2534   am_cv_make_support_nested_variables=no
2535 fi
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2538 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2539 if test $am_cv_make_support_nested_variables = yes; then
2540     AM_V='$(V)'
2541   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2542 else
2543   AM_V=$AM_DEFAULT_VERBOSITY
2544   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2545 fi
2546 AM_BACKSLASH='\'
2547
2548
2549
2550
2551 ac_config_headers="$ac_config_headers config.h:config.h.in"
2552
2553
2554 # We do not want to run test in parallel. Really.
2555 # http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html
2556
2557 # For old automake use this
2558 #AM_INIT_AUTOMAKE(dist-xz)
2559 am__api_version='1.14'
2560
2561 ac_aux_dir=
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563   if test -f "$ac_dir/install-sh"; then
2564     ac_aux_dir=$ac_dir
2565     ac_install_sh="$ac_aux_dir/install-sh -c"
2566     break
2567   elif test -f "$ac_dir/install.sh"; then
2568     ac_aux_dir=$ac_dir
2569     ac_install_sh="$ac_aux_dir/install.sh -c"
2570     break
2571   elif test -f "$ac_dir/shtool"; then
2572     ac_aux_dir=$ac_dir
2573     ac_install_sh="$ac_aux_dir/shtool install -c"
2574     break
2575   fi
2576 done
2577 if test -z "$ac_aux_dir"; then
2578   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2579 fi
2580
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2587 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2588
2589
2590 # Find a good install program.  We prefer a C program (faster),
2591 # so one script is as good as another.  But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2596 # AIX /bin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617   ./ | .// | /[cC]/* | \
2618   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620   /usr/ucb/* ) ;;
2621   *)
2622     # OSF1 and SCO ODT 3.0 have their own names for install.
2623     # Don't use installbsd from OSF since it installs stuff as root
2624     # by default.
2625     for ac_prog in ginstall scoinst install; do
2626       for ac_exec_ext in '' $ac_executable_extensions; do
2627         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2628           if test $ac_prog = install &&
2629             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630             # AIX install.  It has an incompatible calling convention.
2631             :
2632           elif test $ac_prog = install &&
2633             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634             # program-specific install script used by HP pwplus--don't use.
2635             :
2636           else
2637             rm -rf conftest.one conftest.two conftest.dir
2638             echo one > conftest.one
2639             echo two > conftest.two
2640             mkdir conftest.dir
2641             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642               test -s conftest.one && test -s conftest.two &&
2643               test -s conftest.dir/conftest.one &&
2644               test -s conftest.dir/conftest.two
2645             then
2646               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2647               break 3
2648             fi
2649           fi
2650         fi
2651       done
2652     done
2653     ;;
2654 esac
2655
2656   done
2657 IFS=$as_save_IFS
2658
2659 rm -rf conftest.one conftest.two conftest.dir
2660
2661 fi
2662   if test "${ac_cv_path_install+set}" = set; then
2663     INSTALL=$ac_cv_path_install
2664   else
2665     # As a last resort, use the slow shell script.  Don't cache a
2666     # value for INSTALL within a source directory, because that will
2667     # break other packages using the cache if that directory is
2668     # removed, or if the value is a relative name.
2669     INSTALL=$ac_install_sh
2670   fi
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2674
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2678
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2680
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 # Reject unsafe characters in $srcdir or the absolute working directory
2686 # name.  Accept space and tab only in the latter.
2687 am_lf='
2688 '
2689 case `pwd` in
2690   *[\\\"\#\$\&\'\`$am_lf]*)
2691     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2692 esac
2693 case $srcdir in
2694   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2695     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2696 esac
2697
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments.  Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2702 # directory).
2703 if (
2704    am_has_slept=no
2705    for am_try in 1 2; do
2706      echo "timestamp, slept: $am_has_slept" > conftest.file
2707      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2708      if test "$*" = "X"; then
2709         # -L didn't work.
2710         set X `ls -t "$srcdir/configure" conftest.file`
2711      fi
2712      if test "$*" != "X $srcdir/configure conftest.file" \
2713         && test "$*" != "X conftest.file $srcdir/configure"; then
2714
2715         # If neither matched, then we have a broken ls.  This can happen
2716         # if, for instance, CONFIG_SHELL is bash and it inherits a
2717         # broken ls alias from the environment.  This has actually
2718         # happened.  Such a system could not be considered "sane".
2719         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2720   alias in your environment" "$LINENO" 5
2721      fi
2722      if test "$2" = conftest.file || test $am_try -eq 2; then
2723        break
2724      fi
2725      # Just in case.
2726      sleep 1
2727      am_has_slept=yes
2728    done
2729    test "$2" = conftest.file
2730    )
2731 then
2732    # Ok.
2733    :
2734 else
2735    as_fn_error $? "newly created file is older than distributed files!
2736 Check your system clock" "$LINENO" 5
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 # If we didn't sleep, we still need to ensure time stamps of config.status and
2741 # generated files are strictly newer.
2742 am_sleep_pid=
2743 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2744   ( sleep 1 ) &
2745   am_sleep_pid=$!
2746 fi
2747
2748 rm -f conftest.file
2749
2750 test "$program_prefix" != NONE &&
2751   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
2760 # Expand $ac_aux_dir to an absolute path.
2761 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2762
2763 if test x"${MISSING+set}" != xset; then
2764   case $am_aux_dir in
2765   *\ * | *\     *)
2766     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767   *)
2768     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769   esac
2770 fi
2771 # Use eval to expand $SHELL
2772 if eval "$MISSING --is-lightweight"; then
2773   am_missing_run="$MISSING "
2774 else
2775   am_missing_run=
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2778 fi
2779
2780 if test x"${install_sh}" != xset; then
2781   case $am_aux_dir in
2782   *\ * | *\     *)
2783     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784   *)
2785     install_sh="\${SHELL} $am_aux_dir/install-sh"
2786   esac
2787 fi
2788
2789 # Installed binaries are usually stripped using 'strip' when the user
2790 # run "make install-strip".  However 'strip' might not be the right
2791 # tool to use in cross-compilation environments, therefore Automake
2792 # will honor the 'STRIP' environment variable to overrule this program.
2793 if test "$cross_compiling" != no; then
2794   if test -n "$ac_tool_prefix"; then
2795   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_STRIP+:} false; then :
2800   $as_echo_n "(cached) " >&6
2801 else
2802   if test -n "$STRIP"; then
2803   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810     for ac_exec_ext in '' $ac_executable_extensions; do
2811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817   done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 STRIP=$ac_cv_prog_STRIP
2823 if test -n "$STRIP"; then
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
2826 else
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_STRIP"; then
2834   ac_ct_STRIP=$STRIP
2835   # Extract the first word of "strip", so it can be a program name with args.
2836 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2840   $as_echo_n "(cached) " >&6
2841 else
2842   if test -n "$ac_ct_STRIP"; then
2843   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850     for ac_exec_ext in '' $ac_executable_extensions; do
2851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852     ac_cv_prog_ac_ct_STRIP="strip"
2853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857   done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
2866 else
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871   if test "x$ac_ct_STRIP" = x; then
2872     STRIP=":"
2873   else
2874     case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880     STRIP=$ac_ct_STRIP
2881   fi
2882 else
2883   STRIP="$ac_cv_prog_STRIP"
2884 fi
2885
2886 fi
2887 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892   if ${ac_cv_path_mkdir+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897 do
2898   IFS=$as_save_IFS
2899   test -z "$as_dir" && as_dir=.
2900     for ac_prog in mkdir gmkdir; do
2901          for ac_exec_ext in '' $ac_executable_extensions; do
2902            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2903            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904              'mkdir (GNU coreutils) '* | \
2905              'mkdir (coreutils) '* | \
2906              'mkdir (fileutils) '4.1*)
2907                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2908                break 3;;
2909            esac
2910          done
2911        done
2912   done
2913 IFS=$as_save_IFS
2914
2915 fi
2916
2917   test -d ./--version && rmdir ./--version
2918   if test "${ac_cv_path_mkdir+set}" = set; then
2919     MKDIR_P="$ac_cv_path_mkdir -p"
2920   else
2921     # As a last resort, use the slow shell script.  Don't cache a
2922     # value for MKDIR_P within a source directory, because that will
2923     # break other packages using the cache if that directory is
2924     # removed, or if the value is a relative name.
2925     MKDIR_P="$ac_install_sh -d"
2926   fi
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
2930
2931 for ac_prog in gawk mawk nawk awk
2932 do
2933   # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   if test -n "$AWK"; then
2941   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_exec_ext in '' $ac_executable_extensions; do
2949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_prog_AWK="$ac_prog"
2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955   done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AWK=$ac_cv_prog_AWK
2961 if test -n "$AWK"; then
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970   test -n "$AWK" && break
2971 done
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2975 set x ${MAKE-make}
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   cat >conftest.make <<\_ACEOF
2981 SHELL = /bin/sh
2982 all:
2983         @echo '@@@%%%=$(MAKE)=@@@%%%'
2984 _ACEOF
2985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2987   *@@@%%%=?*=@@@%%%*)
2988     eval ac_cv_prog_make_${ac_make}_set=yes;;
2989   *)
2990     eval ac_cv_prog_make_${ac_make}_set=no;;
2991 esac
2992 rm -f conftest.make
2993 fi
2994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2997   SET_MAKE=
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001   SET_MAKE="MAKE=${MAKE-make}"
3002 fi
3003
3004 rm -rf .tst 2>/dev/null
3005 mkdir .tst 2>/dev/null
3006 if test -d .tst; then
3007   am__leading_dot=.
3008 else
3009   am__leading_dot=_
3010 fi
3011 rmdir .tst 2>/dev/null
3012
3013 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3014   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3015   # is not polluted with repeated "-I."
3016   am__isrc=' -I$(srcdir)'
3017   # test to see if srcdir already configured
3018   if test -f $srcdir/config.status; then
3019     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3020   fi
3021 fi
3022
3023 # test whether we have cygpath
3024 if test -z "$CYGPATH_W"; then
3025   if (cygpath --version) >/dev/null 2>/dev/null; then
3026     CYGPATH_W='cygpath -w'
3027   else
3028     CYGPATH_W=echo
3029   fi
3030 fi
3031
3032
3033 # Define the identity of the package.
3034  PACKAGE='cryptsetup'
3035  VERSION='1.6.7'
3036
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE "$PACKAGE"
3040 _ACEOF
3041
3042
3043 cat >>confdefs.h <<_ACEOF
3044 #define VERSION "$VERSION"
3045 _ACEOF
3046
3047 # Some tools Automake needs.
3048
3049 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050
3051
3052 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053
3054
3055 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056
3057
3058 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059
3060
3061 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3062
3063 # For better backward compatibility.  To be removed once Automake 1.9.x
3064 # dies out for good.  For more background, see:
3065 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3066 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3067 mkdir_p='$(MKDIR_P)'
3068
3069 # We need awk for the "check" target.  The system "awk" is bad on
3070 # some platforms.
3071 # Always define AMTAR for backward compatibility.  Yes, it's still used
3072 # in the wild :-(  We should find a proper way to deprecate it ...
3073 AMTAR='$${TAR-tar}'
3074
3075
3076 # We'll loop over all known methods to create a tar archive until one works.
3077 _am_tools='gnutar  pax cpio none'
3078
3079 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3080
3081
3082
3083
3084
3085
3086 # POSIX will say in a future version that running "rm -f" with no argument
3087 # is OK; and we want to be able to make that assumption in our Makefile
3088 # recipes.  So use an aggressive probe to check that the usage we want is
3089 # actually supported "in the wild" to an acceptable degree.
3090 # See automake bug#10828.
3091 # To make any issue more visible, cause the running configure to be aborted
3092 # by default if the 'rm' program in use doesn't match our expectations; the
3093 # user can still override this though.
3094 if rm -f && rm -fr && rm -rf; then : OK; else
3095   cat >&2 <<'END'
3096 Oops!
3097
3098 Your 'rm' program seems unable to run without file operands specified
3099 on the command line, even when the '-f' option is present.  This is contrary
3100 to the behaviour of most rm programs out there, and not conforming with
3101 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3102
3103 Please tell bug-automake@gnu.org about your system, including the value
3104 of your $PATH and any error possibly output before this message.  This
3105 can help us improve future automake versions.
3106
3107 END
3108   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3109     echo 'Configuration will proceed anyway, since you have set the' >&2
3110     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3111     echo >&2
3112   else
3113     cat >&2 <<'END'
3114 Aborting the configuration process, to ensure you take notice of the issue.
3115
3116 You can download and install GNU coreutils to get an 'rm' implementation
3117 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3118
3119 If you want to complete the configuration process using your problematic
3120 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3121 to "yes", and re-run configure.
3122
3123 END
3124     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3125   fi
3126 fi
3127
3128
3129 if test "x$prefix" = "xNONE"; then
3130         sysconfdir=/etc
3131 fi
3132
3133
3134 # Make sure we can run config.sub.
3135 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3136   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3137
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3139 $as_echo_n "checking build system type... " >&6; }
3140 if ${ac_cv_build+:} false; then :
3141   $as_echo_n "(cached) " >&6
3142 else
3143   ac_build_alias=$build_alias
3144 test "x$ac_build_alias" = x &&
3145   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3146 test "x$ac_build_alias" = x &&
3147   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3148 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3149   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3150
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3153 $as_echo "$ac_cv_build" >&6; }
3154 case $ac_cv_build in
3155 *-*-*) ;;
3156 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3157 esac
3158 build=$ac_cv_build
3159 ac_save_IFS=$IFS; IFS='-'
3160 set x $ac_cv_build
3161 shift
3162 build_cpu=$1
3163 build_vendor=$2
3164 shift; shift
3165 # Remember, the first character of IFS is used to create $*,
3166 # except with old shells:
3167 build_os=$*
3168 IFS=$ac_save_IFS
3169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3170
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3173 $as_echo_n "checking host system type... " >&6; }
3174 if ${ac_cv_host+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   if test "x$host_alias" = x; then
3178   ac_cv_host=$ac_cv_build
3179 else
3180   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3181     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3182 fi
3183
3184 fi
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3186 $as_echo "$ac_cv_host" >&6; }
3187 case $ac_cv_host in
3188 *-*-*) ;;
3189 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3190 esac
3191 host=$ac_cv_host
3192 ac_save_IFS=$IFS; IFS='-'
3193 set x $ac_cv_host
3194 shift
3195 host_cpu=$1
3196 host_vendor=$2
3197 shift; shift
3198 # Remember, the first character of IFS is used to create $*,
3199 # except with old shells:
3200 host_os=$*
3201 IFS=$ac_save_IFS
3202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3203
3204
3205 DEPDIR="${am__leading_dot}deps"
3206
3207 ac_config_commands="$ac_config_commands depfiles"
3208
3209
3210 am_make=${MAKE-make}
3211 cat > confinc << 'END'
3212 am__doit:
3213         @echo this is the am__doit target
3214 .PHONY: am__doit
3215 END
3216 # If we don't find an include directive, just comment out the code.
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3218 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3219 am__include="#"
3220 am__quote=
3221 _am_result=none
3222 # First try GNU make style include.
3223 echo "include confinc" > confmf
3224 # Ignore all kinds of additional output from 'make'.
3225 case `$am_make -s -f confmf 2> /dev/null` in #(
3226 *the\ am__doit\ target*)
3227   am__include=include
3228   am__quote=
3229   _am_result=GNU
3230   ;;
3231 esac
3232 # Now try BSD make style include.
3233 if test "$am__include" = "#"; then
3234    echo '.include "confinc"' > confmf
3235    case `$am_make -s -f confmf 2> /dev/null` in #(
3236    *the\ am__doit\ target*)
3237      am__include=.include
3238      am__quote="\""
3239      _am_result=BSD
3240      ;;
3241    esac
3242 fi
3243
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3246 $as_echo "$_am_result" >&6; }
3247 rm -f confinc confmf
3248
3249 # Check whether --enable-dependency-tracking was given.
3250 if test "${enable_dependency_tracking+set}" = set; then :
3251   enableval=$enable_dependency_tracking;
3252 fi
3253
3254 if test "x$enable_dependency_tracking" != xno; then
3255   am_depcomp="$ac_aux_dir/depcomp"
3256   AMDEPBACKSLASH='\'
3257   am__nodep='_no'
3258 fi
3259  if test "x$enable_dependency_tracking" != xno; then
3260   AMDEP_TRUE=
3261   AMDEP_FALSE='#'
3262 else
3263   AMDEP_TRUE='#'
3264   AMDEP_FALSE=
3265 fi
3266
3267
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   if test -n "$CC"; then
3282   ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311 fi
3312 if test -z "$ac_cv_prog_CC"; then
3313   ac_ct_CC=$CC
3314   # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   if test -n "$ac_ct_CC"; then
3322   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329     for ac_exec_ext in '' $ac_executable_extensions; do
3330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331     ac_cv_prog_ac_ct_CC="gcc"
3332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333     break 2
3334   fi
3335 done
3336   done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344 $as_echo "$ac_ct_CC" >&6; }
3345 else
3346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 fi
3349
3350   if test "x$ac_ct_CC" = x; then
3351     CC=""
3352   else
3353     case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359     CC=$ac_ct_CC
3360   fi
3361 else
3362   CC="$ac_cv_prog_CC"
3363 fi
3364
3365 if test -z "$CC"; then
3366           if test -n "$ac_tool_prefix"; then
3367     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$CC"; then
3375   ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382     for ac_exec_ext in '' $ac_executable_extensions; do
3383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384     ac_cv_prog_CC="${ac_tool_prefix}cc"
3385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389   done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 CC=$ac_cv_prog_CC
3395 if test -n "$CC"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403
3404   fi
3405 fi
3406 if test -z "$CC"; then
3407   # Extract the first word of "cc", so it can be a program name with args.
3408 set dummy cc; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_CC+:} false; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414   if test -n "$CC"; then
3415   ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417   ac_prog_rejected=no
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3426        ac_prog_rejected=yes
3427        continue
3428      fi
3429     ac_cv_prog_CC="cc"
3430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431     break 2
3432   fi
3433 done
3434   done
3435 IFS=$as_save_IFS
3436
3437 if test $ac_prog_rejected = yes; then
3438   # We found a bogon in the path, so make sure we never use it.
3439   set dummy $ac_cv_prog_CC
3440   shift
3441   if test $# != 0; then
3442     # We chose a different compiler from the bogus one.
3443     # However, it has the same basename, so the bogon will be chosen
3444     # first if we set CC to just the basename; use the full file name.
3445     shift
3446     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3447   fi
3448 fi
3449 fi
3450 fi
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454 $as_echo "$CC" >&6; }
3455 else
3456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458 fi
3459
3460
3461 fi
3462 if test -z "$CC"; then
3463   if test -n "$ac_tool_prefix"; then
3464   for ac_prog in cl.exe
3465   do
3466     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_CC+:} false; then :
3471   $as_echo_n "(cached) " >&6
3472 else
3473   if test -n "$CC"; then
3474   ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481     for ac_exec_ext in '' $ac_executable_extensions; do
3482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488   done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 $as_echo "$CC" >&6; }
3497 else
3498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 fi
3501
3502
3503     test -n "$CC" && break
3504   done
3505 fi
3506 if test -z "$CC"; then
3507   ac_ct_CC=$CC
3508   for ac_prog in cl.exe
3509 do
3510   # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   if test -n "$ac_ct_CC"; then
3518   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525     for ac_exec_ext in '' $ac_executable_extensions; do
3526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_prog_ac_ct_CC="$ac_prog"
3528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532   done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540 $as_echo "$ac_ct_CC" >&6; }
3541 else
3542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546
3547   test -n "$ac_ct_CC" && break
3548 done
3549
3550   if test "x$ac_ct_CC" = x; then
3551     CC=""
3552   else
3553     case $cross_compiling:$ac_tool_warned in
3554 yes:)
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3557 ac_tool_warned=yes ;;
3558 esac
3559     CC=$ac_ct_CC
3560   fi
3561 fi
3562
3563 fi
3564
3565
3566 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "no acceptable C compiler found in \$PATH
3569 See \`config.log' for more details" "$LINENO" 5; }
3570
3571 # Provide some information about the compiler.
3572 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3573 set X $ac_compile
3574 ac_compiler=$2
3575 for ac_option in --version -v -V -qversion; do
3576   { { ac_try="$ac_compiler $ac_option >&5"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3584   ac_status=$?
3585   if test -s conftest.err; then
3586     sed '10a\
3587 ... rest of stderr output deleted ...
3588          10q' conftest.err >conftest.er1
3589     cat conftest.er1 >&5
3590   fi
3591   rm -f conftest.er1 conftest.err
3592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593   test $ac_status = 0; }
3594 done
3595
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598
3599 int
3600 main ()
3601 {
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 ac_clean_files_save=$ac_clean_files
3608 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3609 # Try to create an executable without -o first, disregard a.out.
3610 # It will help us diagnose broken compilers, and finding out an intuition
3611 # of exeext.
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3613 $as_echo_n "checking whether the C compiler works... " >&6; }
3614 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3615
3616 # The possible output files:
3617 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3618
3619 ac_rmfiles=
3620 for ac_file in $ac_files
3621 do
3622   case $ac_file in
3623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3625   esac
3626 done
3627 rm -f $ac_rmfiles
3628
3629 if { { ac_try="$ac_link_default"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_link_default") 2>&5
3637   ac_status=$?
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; }; then :
3640   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3641 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3642 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3643 # so that the user can short-circuit this test for compilers unknown to
3644 # Autoconf.
3645 for ac_file in $ac_files ''
3646 do
3647   test -f "$ac_file" || continue
3648   case $ac_file in
3649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3650         ;;
3651     [ab].out )
3652         # We found the default executable, but exeext='' is most
3653         # certainly right.
3654         break;;
3655     *.* )
3656         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3657         then :; else
3658            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659         fi
3660         # We set ac_cv_exeext here because the later test for it is not
3661         # safe: cross compilers may not add the suffix if given an `-o'
3662         # argument, so we may need to know it at that point already.
3663         # Even if this section looks crufty: it has the advantage of
3664         # actually working.
3665         break;;
3666     * )
3667         break;;
3668   esac
3669 done
3670 test "$ac_cv_exeext" = no && ac_cv_exeext=
3671
3672 else
3673   ac_file=''
3674 fi
3675 if test -z "$ac_file"; then :
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 $as_echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error 77 "C compiler cannot create executables
3684 See \`config.log' for more details" "$LINENO" 5; }
3685 else
3686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3687 $as_echo "yes" >&6; }
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3690 $as_echo_n "checking for C compiler default output file name... " >&6; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3692 $as_echo "$ac_file" >&6; }
3693 ac_exeext=$ac_cv_exeext
3694
3695 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3696 ac_clean_files=$ac_clean_files_save
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3698 $as_echo_n "checking for suffix of executables... " >&6; }
3699 if { { ac_try="$ac_link"
3700 case "(($ac_try" in
3701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702   *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706   (eval "$ac_link") 2>&5
3707   ac_status=$?
3708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709   test $ac_status = 0; }; then :
3710   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3711 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3712 # work properly (i.e., refer to `conftest.exe'), while it won't with
3713 # `rm'.
3714 for ac_file in conftest.exe conftest conftest.*; do
3715   test -f "$ac_file" || continue
3716   case $ac_file in
3717     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3718     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719           break;;
3720     * ) break;;
3721   esac
3722 done
3723 else
3724   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3727 See \`config.log' for more details" "$LINENO" 5; }
3728 fi
3729 rm -f conftest conftest$ac_cv_exeext
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3731 $as_echo "$ac_cv_exeext" >&6; }
3732
3733 rm -f conftest.$ac_ext
3734 EXEEXT=$ac_cv_exeext
3735 ac_exeext=$EXEEXT
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h.  */
3738 #include <stdio.h>
3739 int
3740 main ()
3741 {
3742 FILE *f = fopen ("conftest.out", "w");
3743  return ferror (f) || fclose (f) != 0;
3744
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 ac_clean_files="$ac_clean_files conftest.out"
3750 # Check that the compiler produces executables we can run.  If not, either
3751 # the compiler is broken, or we cross compile.
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3753 $as_echo_n "checking whether we are cross compiling... " >&6; }
3754 if test "$cross_compiling" != yes; then
3755   { { ac_try="$ac_link"
3756 case "(($ac_try" in
3757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758   *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762   (eval "$ac_link") 2>&5
3763   ac_status=$?
3764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765   test $ac_status = 0; }
3766   if { ac_try='./conftest$ac_cv_exeext'
3767   { { case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772 $as_echo "$ac_try_echo"; } >&5
3773   (eval "$ac_try") 2>&5
3774   ac_status=$?
3775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776   test $ac_status = 0; }; }; then
3777     cross_compiling=no
3778   else
3779     if test "$cross_compiling" = maybe; then
3780         cross_compiling=yes
3781     else
3782         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error $? "cannot run C compiled programs.
3785 If you meant to cross compile, use \`--host'.
3786 See \`config.log' for more details" "$LINENO" 5; }
3787     fi
3788   fi
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3791 $as_echo "$cross_compiling" >&6; }
3792
3793 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3794 ac_clean_files=$ac_clean_files_save
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3796 $as_echo_n "checking for suffix of object files... " >&6; }
3797 if ${ac_cv_objext+:} false; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 rm -f conftest.o conftest.obj
3812 if { { ac_try="$ac_compile"
3813 case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819   (eval "$ac_compile") 2>&5
3820   ac_status=$?
3821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822   test $ac_status = 0; }; then :
3823   for ac_file in conftest.o conftest.obj conftest.*; do
3824   test -f "$ac_file" || continue;
3825   case $ac_file in
3826     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3827     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3828        break;;
3829   esac
3830 done
3831 else
3832   $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error $? "cannot compute suffix of object files: cannot compile
3838 See \`config.log' for more details" "$LINENO" 5; }
3839 fi
3840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3843 $as_echo "$ac_cv_objext" >&6; }
3844 OBJEXT=$ac_cv_objext
3845 ac_objext=$OBJEXT
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3847 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3848 if ${ac_cv_c_compiler_gnu+:} false; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853
3854 int
3855 main ()
3856 {
3857 #ifndef __GNUC__
3858        choke me
3859 #endif
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866   ac_compiler_gnu=yes
3867 else
3868   ac_compiler_gnu=no
3869 fi
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3872
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3875 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3876 if test $ac_compiler_gnu = yes; then
3877   GCC=yes
3878 else
3879   GCC=
3880 fi
3881 ac_test_CFLAGS=${CFLAGS+set}
3882 ac_save_CFLAGS=$CFLAGS
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3884 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3885 if ${ac_cv_prog_cc_g+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   ac_save_c_werror_flag=$ac_c_werror_flag
3889    ac_c_werror_flag=yes
3890    ac_cv_prog_cc_g=no
3891    CFLAGS="-g"
3892    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904   ac_cv_prog_cc_g=yes
3905 else
3906   CFLAGS=""
3907       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919
3920 else
3921   ac_c_werror_flag=$ac_save_c_werror_flag
3922          CFLAGS="-g"
3923          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 if ac_fn_c_try_compile "$LINENO"; then :
3935   ac_cv_prog_cc_g=yes
3936 fi
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 fi
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942    ac_c_werror_flag=$ac_save_c_werror_flag
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3945 $as_echo "$ac_cv_prog_cc_g" >&6; }
3946 if test "$ac_test_CFLAGS" = set; then
3947   CFLAGS=$ac_save_CFLAGS
3948 elif test $ac_cv_prog_cc_g = yes; then
3949   if test "$GCC" = yes; then
3950     CFLAGS="-g -O2"
3951   else
3952     CFLAGS="-g"
3953   fi
3954 else
3955   if test "$GCC" = yes; then
3956     CFLAGS="-O2"
3957   else
3958     CFLAGS=
3959   fi
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3962 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3963 if ${ac_cv_prog_cc_c89+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   ac_cv_prog_cc_c89=no
3967 ac_save_CC=$CC
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h.  */
3970 #include <stdarg.h>
3971 #include <stdio.h>
3972 struct stat;
3973 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3974 struct buf { int x; };
3975 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3976 static char *e (p, i)
3977      char **p;
3978      int i;
3979 {
3980   return p[i];
3981 }
3982 static char *f (char * (*g) (char **, int), char **p, ...)
3983 {
3984   char *s;
3985   va_list v;
3986   va_start (v,p);
3987   s = g (p, va_arg (v,int));
3988   va_end (v);
3989   return s;
3990 }
3991
3992 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3993    function prototypes and stuff, but not '\xHH' hex character constants.
3994    These don't provoke an error unfortunately, instead are silently treated
3995    as 'x'.  The following induces an error, until -std is added to get
3996    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3997    array size at least.  It's necessary to write '\x00'==0 to get something
3998    that's true only with -std.  */
3999 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4000
4001 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4002    inside strings and character constants.  */
4003 #define FOO(x) 'x'
4004 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4005
4006 int test (int i, double x);
4007 struct s1 {int (*f) (int a);};
4008 struct s2 {int (*f) (double a);};
4009 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4010 int argc;
4011 char **argv;
4012 int
4013 main ()
4014 {
4015 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4016   ;
4017   return 0;
4018 }
4019 _ACEOF
4020 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4021         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 do
4023   CC="$ac_save_CC $ac_arg"
4024   if ac_fn_c_try_compile "$LINENO"; then :
4025   ac_cv_prog_cc_c89=$ac_arg
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext
4028   test "x$ac_cv_prog_cc_c89" != "xno" && break
4029 done
4030 rm -f conftest.$ac_ext
4031 CC=$ac_save_CC
4032
4033 fi
4034 # AC_CACHE_VAL
4035 case "x$ac_cv_prog_cc_c89" in
4036   x)
4037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4038 $as_echo "none needed" >&6; } ;;
4039   xno)
4040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4041 $as_echo "unsupported" >&6; } ;;
4042   *)
4043     CC="$CC $ac_cv_prog_cc_c89"
4044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4045 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4046 esac
4047 if test "x$ac_cv_prog_cc_c89" != xno; then :
4048
4049 fi
4050
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4063 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4064 if ${am_cv_prog_cc_c_o+:} false; then :
4065   $as_echo_n "(cached) " >&6
4066 else
4067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078   # Make sure it works both with $CC and with simple cc.
4079   # Following AC_PROG_CC_C_O, we do the test twice because some
4080   # compilers refuse to overwrite an existing .o file with -o,
4081   # though they will create one.
4082   am_cv_prog_cc_c_o=yes
4083   for am_i in 1 2; do
4084     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4085    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4086    ac_status=$?
4087    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088    (exit $ac_status); } \
4089          && test -f conftest2.$ac_objext; then
4090       : OK
4091     else
4092       am_cv_prog_cc_c_o=no
4093       break
4094     fi
4095   done
4096   rm -f core conftest*
4097   unset am_i
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4100 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4101 if test "$am_cv_prog_cc_c_o" != yes; then
4102    # Losing compiler, so override with the script.
4103    # FIXME: It is wrong to rewrite CC.
4104    # But if we don't then we get into trouble of one sort or another.
4105    # A longer-term fix would be to have automake use am__CC in this case,
4106    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4107    CC="$am_aux_dir/compile $CC"
4108 fi
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114
4115
4116 depcc="$CC"   am_compiler_list=
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4119 $as_echo_n "checking dependency style of $depcc... " >&6; }
4120 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4124   # We make a subdir and do the tests there.  Otherwise we can end up
4125   # making bogus files that we don't know about and never remove.  For
4126   # instance it was reported that on HP-UX the gcc test will end up
4127   # making a dummy file named 'D' -- because '-MD' means "put the output
4128   # in D".
4129   rm -rf conftest.dir
4130   mkdir conftest.dir
4131   # Copy depcomp to subdir because otherwise we won't find it if we're
4132   # using a relative directory.
4133   cp "$am_depcomp" conftest.dir
4134   cd conftest.dir
4135   # We will build objects and dependencies in a subdirectory because
4136   # it helps to detect inapplicable dependency modes.  For instance
4137   # both Tru64's cc and ICC support -MD to output dependencies as a
4138   # side effect of compilation, but ICC will put the dependencies in
4139   # the current directory while Tru64 will put them in the object
4140   # directory.
4141   mkdir sub
4142
4143   am_cv_CC_dependencies_compiler_type=none
4144   if test "$am_compiler_list" = ""; then
4145      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4146   fi
4147   am__universal=false
4148   case " $depcc " in #(
4149      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4150      esac
4151
4152   for depmode in $am_compiler_list; do
4153     # Setup a source with many dependencies, because some compilers
4154     # like to wrap large dependency lists on column 80 (with \), and
4155     # we should not choose a depcomp mode which is confused by this.
4156     #
4157     # We need to recreate these files for each test, as the compiler may
4158     # overwrite some of them when testing with obscure command lines.
4159     # This happens at least with the AIX C compiler.
4160     : > sub/conftest.c
4161     for i in 1 2 3 4 5 6; do
4162       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4163       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4164       # Solaris 10 /bin/sh.
4165       echo '/* dummy */' > sub/conftst$i.h
4166     done
4167     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4168
4169     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4170     # mode.  It turns out that the SunPro C++ compiler does not properly
4171     # handle '-M -o', and we need to detect this.  Also, some Intel
4172     # versions had trouble with output in subdirs.
4173     am__obj=sub/conftest.${OBJEXT-o}
4174     am__minus_obj="-o $am__obj"
4175     case $depmode in
4176     gcc)
4177       # This depmode causes a compiler race in universal mode.
4178       test "$am__universal" = false || continue
4179       ;;
4180     nosideeffect)
4181       # After this tag, mechanisms are not by side-effect, so they'll
4182       # only be used when explicitly requested.
4183       if test "x$enable_dependency_tracking" = xyes; then
4184         continue
4185       else
4186         break
4187       fi
4188       ;;
4189     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4190       # This compiler won't grok '-c -o', but also, the minuso test has
4191       # not run yet.  These depmodes are late enough in the game, and
4192       # so weak that their functioning should not be impacted.
4193       am__obj=conftest.${OBJEXT-o}
4194       am__minus_obj=
4195       ;;
4196     none) break ;;
4197     esac
4198     if depmode=$depmode \
4199        source=sub/conftest.c object=$am__obj \
4200        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4201        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4202          >/dev/null 2>conftest.err &&
4203        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4204        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4205        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4206        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4207       # icc doesn't choke on unknown options, it will just issue warnings
4208       # or remarks (even with -Werror).  So we grep stderr for any message
4209       # that says an option was ignored or not supported.
4210       # When given -MP, icc 7.0 and 7.1 complain thusly:
4211       #   icc: Command line warning: ignoring option '-M'; no argument required
4212       # The diagnosis changed in icc 8.0:
4213       #   icc: Command line remark: option '-MP' not supported
4214       if (grep 'ignoring option' conftest.err ||
4215           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4216         am_cv_CC_dependencies_compiler_type=$depmode
4217         break
4218       fi
4219     fi
4220   done
4221
4222   cd ..
4223   rm -rf conftest.dir
4224 else
4225   am_cv_CC_dependencies_compiler_type=none
4226 fi
4227
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4230 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4231 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4232
4233  if
4234   test "x$enable_dependency_tracking" != xno \
4235   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4236   am__fastdepCC_TRUE=
4237   am__fastdepCC_FALSE='#'
4238 else
4239   am__fastdepCC_TRUE='#'
4240   am__fastdepCC_FALSE=
4241 fi
4242
4243
4244
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4251 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4252 # On Suns, sometimes $CPP names a directory.
4253 if test -n "$CPP" && test -d "$CPP"; then
4254   CPP=
4255 fi
4256 if test -z "$CPP"; then
4257   if ${ac_cv_prog_CPP+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260       # Double quotes because CPP needs to be expanded
4261     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4262     do
4263       ac_preproc_ok=false
4264 for ac_c_preproc_warn_flag in '' yes
4265 do
4266   # Use a header file that comes with gcc, so configuring glibc
4267   # with a fresh cross-compiler works.
4268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269   # <limits.h> exists even on freestanding compilers.
4270   # On the NeXT, cc -E runs the code through the compiler's parser,
4271   # not just through cpp. "Syntax error" is here to catch this case.
4272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274 #ifdef __STDC__
4275 # include <limits.h>
4276 #else
4277 # include <assert.h>
4278 #endif
4279                      Syntax error
4280 _ACEOF
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4282
4283 else
4284   # Broken: fails on valid input.
4285 continue
4286 fi
4287 rm -f conftest.err conftest.i conftest.$ac_ext
4288
4289   # OK, works on sane cases.  Now check whether nonexistent headers
4290   # can be detected and how.
4291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h.  */
4293 #include <ac_nonexistent.h>
4294 _ACEOF
4295 if ac_fn_c_try_cpp "$LINENO"; then :
4296   # Broken: success on invalid input.
4297 continue
4298 else
4299   # Passes both tests.
4300 ac_preproc_ok=:
4301 break
4302 fi
4303 rm -f conftest.err conftest.i conftest.$ac_ext
4304
4305 done
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.i conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then :
4309   break
4310 fi
4311
4312     done
4313     ac_cv_prog_CPP=$CPP
4314
4315 fi
4316   CPP=$ac_cv_prog_CPP
4317 else
4318   ac_cv_prog_CPP=$CPP
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4321 $as_echo "$CPP" >&6; }
4322 ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4324 do
4325   # Use a header file that comes with gcc, so configuring glibc
4326   # with a fresh cross-compiler works.
4327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328   # <limits.h> exists even on freestanding compilers.
4329   # On the NeXT, cc -E runs the code through the compiler's parser,
4330   # not just through cpp. "Syntax error" is here to catch this case.
4331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h.  */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4338                      Syntax error
4339 _ACEOF
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4341
4342 else
4343   # Broken: fails on valid input.
4344 continue
4345 fi
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4347
4348   # OK, works on sane cases.  Now check whether nonexistent headers
4349   # can be detected and how.
4350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352 #include <ac_nonexistent.h>
4353 _ACEOF
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355   # Broken: success on invalid input.
4356 continue
4357 else
4358   # Passes both tests.
4359 ac_preproc_ok=:
4360 break
4361 fi
4362 rm -f conftest.err conftest.i conftest.$ac_ext
4363
4364 done
4365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4366 rm -f conftest.i conftest.err conftest.$ac_ext
4367 if $ac_preproc_ok; then :
4368
4369 else
4370   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details" "$LINENO" 5; }
4374 fi
4375
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4384 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4385 if ${ac_cv_path_GREP+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   if test -z "$GREP"; then
4389   ac_path_GREP_found=false
4390   # Loop through the user's path and test for each of PROGNAME-LIST
4391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396     for ac_prog in grep ggrep; do
4397     for ac_exec_ext in '' $ac_executable_extensions; do
4398       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4399       as_fn_executable_p "$ac_path_GREP" || continue
4400 # Check for GNU ac_path_GREP and select it if it is found.
4401   # Check for GNU $ac_path_GREP
4402 case `"$ac_path_GREP" --version 2>&1` in
4403 *GNU*)
4404   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4405 *)
4406   ac_count=0
4407   $as_echo_n 0123456789 >"conftest.in"
4408   while :
4409   do
4410     cat "conftest.in" "conftest.in" >"conftest.tmp"
4411     mv "conftest.tmp" "conftest.in"
4412     cp "conftest.in" "conftest.nl"
4413     $as_echo 'GREP' >> "conftest.nl"
4414     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416     as_fn_arith $ac_count + 1 && ac_count=$as_val
4417     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4418       # Best one so far, save it but keep looking for a better one
4419       ac_cv_path_GREP="$ac_path_GREP"
4420       ac_path_GREP_max=$ac_count
4421     fi
4422     # 10*(2^10) chars as input seems more than enough
4423     test $ac_count -gt 10 && break
4424   done
4425   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4427
4428       $ac_path_GREP_found && break 3
4429     done
4430   done
4431   done
4432 IFS=$as_save_IFS
4433   if test -z "$ac_cv_path_GREP"; then
4434     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4435   fi
4436 else
4437   ac_cv_path_GREP=$GREP
4438 fi
4439
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4442 $as_echo "$ac_cv_path_GREP" >&6; }
4443  GREP="$ac_cv_path_GREP"
4444
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4447 $as_echo_n "checking for egrep... " >&6; }
4448 if ${ac_cv_path_EGREP+:} false; then :
4449   $as_echo_n "(cached) " >&6
4450 else
4451   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4452    then ac_cv_path_EGREP="$GREP -E"
4453    else
4454      if test -z "$EGREP"; then
4455   ac_path_EGREP_found=false
4456   # Loop through the user's path and test for each of PROGNAME-LIST
4457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462     for ac_prog in egrep; do
4463     for ac_exec_ext in '' $ac_executable_extensions; do
4464       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4465       as_fn_executable_p "$ac_path_EGREP" || continue
4466 # Check for GNU ac_path_EGREP and select it if it is found.
4467   # Check for GNU $ac_path_EGREP
4468 case `"$ac_path_EGREP" --version 2>&1` in
4469 *GNU*)
4470   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4471 *)
4472   ac_count=0
4473   $as_echo_n 0123456789 >"conftest.in"
4474   while :
4475   do
4476     cat "conftest.in" "conftest.in" >"conftest.tmp"
4477     mv "conftest.tmp" "conftest.in"
4478     cp "conftest.in" "conftest.nl"
4479     $as_echo 'EGREP' >> "conftest.nl"
4480     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482     as_fn_arith $ac_count + 1 && ac_count=$as_val
4483     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4484       # Best one so far, save it but keep looking for a better one
4485       ac_cv_path_EGREP="$ac_path_EGREP"
4486       ac_path_EGREP_max=$ac_count
4487     fi
4488     # 10*(2^10) chars as input seems more than enough
4489     test $ac_count -gt 10 && break
4490   done
4491   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492 esac
4493
4494       $ac_path_EGREP_found && break 3
4495     done
4496   done
4497   done
4498 IFS=$as_save_IFS
4499   if test -z "$ac_cv_path_EGREP"; then
4500     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501   fi
4502 else
4503   ac_cv_path_EGREP=$EGREP
4504 fi
4505
4506    fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4509 $as_echo "$ac_cv_path_EGREP" >&6; }
4510  EGREP="$ac_cv_path_EGREP"
4511
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4514 $as_echo_n "checking for ANSI C header files... " >&6; }
4515 if ${ac_cv_header_stdc+:} false; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520 #include <stdlib.h>
4521 #include <stdarg.h>
4522 #include <string.h>
4523 #include <float.h>
4524
4525 int
4526 main ()
4527 {
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534   ac_cv_header_stdc=yes
4535 else
4536   ac_cv_header_stdc=no
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539
4540 if test $ac_cv_header_stdc = yes; then
4541   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h.  */
4544 #include <string.h>
4545
4546 _ACEOF
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548   $EGREP "memchr" >/dev/null 2>&1; then :
4549
4550 else
4551   ac_cv_header_stdc=no
4552 fi
4553 rm -f conftest*
4554
4555 fi
4556
4557 if test $ac_cv_header_stdc = yes; then
4558   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561 #include <stdlib.h>
4562
4563 _ACEOF
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565   $EGREP "free" >/dev/null 2>&1; then :
4566
4567 else
4568   ac_cv_header_stdc=no
4569 fi
4570 rm -f conftest*
4571
4572 fi
4573
4574 if test $ac_cv_header_stdc = yes; then
4575   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4576   if test "$cross_compiling" = yes; then :
4577   :
4578 else
4579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581 #include <ctype.h>
4582 #include <stdlib.h>
4583 #if ((' ' & 0x0FF) == 0x020)
4584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4586 #else
4587 # define ISLOWER(c) \
4588                    (('a' <= (c) && (c) <= 'i') \
4589                      || ('j' <= (c) && (c) <= 'r') \
4590                      || ('s' <= (c) && (c) <= 'z'))
4591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4592 #endif
4593
4594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4595 int
4596 main ()
4597 {
4598   int i;
4599   for (i = 0; i < 256; i++)
4600     if (XOR (islower (i), ISLOWER (i))
4601         || toupper (i) != TOUPPER (i))
4602       return 2;
4603   return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_c_try_run "$LINENO"; then :
4607
4608 else
4609   ac_cv_header_stdc=no
4610 fi
4611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4612   conftest.$ac_objext conftest.beam conftest.$ac_ext
4613 fi
4614
4615 fi
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4618 $as_echo "$ac_cv_header_stdc" >&6; }
4619 if test $ac_cv_header_stdc = yes; then
4620
4621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4622
4623 fi
4624
4625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4627                   inttypes.h stdint.h unistd.h
4628 do :
4629   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4631 "
4632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4633   cat >>confdefs.h <<_ACEOF
4634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635 _ACEOF
4636
4637 fi
4638
4639 done
4640
4641
4642
4643   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4644 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4645   MINIX=yes
4646 else
4647   MINIX=
4648 fi
4649
4650
4651   if test "$MINIX" = yes; then
4652
4653 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4654
4655
4656 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4657
4658
4659 $as_echo "#define _MINIX 1" >>confdefs.h
4660
4661   fi
4662
4663
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4666 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4667   $as_echo_n "(cached) " >&6
4668 else
4669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h.  */
4671
4672 #         define __EXTENSIONS__ 1
4673           $ac_includes_default
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683   ac_cv_safe_to_define___extensions__=yes
4684 else
4685   ac_cv_safe_to_define___extensions__=no
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4690 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4691   test $ac_cv_safe_to_define___extensions__ = yes &&
4692     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4693
4694   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4695
4696   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4697
4698   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4699
4700   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4701
4702
4703 ac_ext=c
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 if test -n "$ac_tool_prefix"; then
4709   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_CC+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   if test -n "$CC"; then
4717   ac_cv_prog_CC="$CC" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731   done
4732 IFS=$as_save_IFS
4733
4734 fi
4735 fi
4736 CC=$ac_cv_prog_CC
4737 if test -n "$CC"; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4739 $as_echo "$CC" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745
4746 fi
4747 if test -z "$ac_cv_prog_CC"; then
4748   ac_ct_CC=$CC
4749   # Extract the first word of "gcc", so it can be a program name with args.
4750 set dummy gcc; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756   if test -n "$ac_ct_CC"; then
4757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762   IFS=$as_save_IFS
4763   test -z "$as_dir" && as_dir=.
4764     for ac_exec_ext in '' $ac_executable_extensions; do
4765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766     ac_cv_prog_ac_ct_CC="gcc"
4767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768     break 2
4769   fi
4770 done
4771   done
4772 IFS=$as_save_IFS
4773
4774 fi
4775 fi
4776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4777 if test -n "$ac_ct_CC"; then
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4779 $as_echo "$ac_ct_CC" >&6; }
4780 else
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784
4785   if test "x$ac_ct_CC" = x; then
4786     CC=""
4787   else
4788     case $cross_compiling:$ac_tool_warned in
4789 yes:)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792 ac_tool_warned=yes ;;
4793 esac
4794     CC=$ac_ct_CC
4795   fi
4796 else
4797   CC="$ac_cv_prog_CC"
4798 fi
4799
4800 if test -z "$CC"; then
4801           if test -n "$ac_tool_prefix"; then
4802     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}cc; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_CC+:} false; then :
4807   $as_echo_n "(cached) " >&6
4808 else
4809   if test -n "$CC"; then
4810   ac_cv_prog_CC="$CC" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817     for ac_exec_ext in '' $ac_executable_extensions; do
4818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819     ac_cv_prog_CC="${ac_tool_prefix}cc"
4820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821     break 2
4822   fi
4823 done
4824   done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 CC=$ac_cv_prog_CC
4830 if test -n "$CC"; then
4831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4832 $as_echo "$CC" >&6; }
4833 else
4834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838
4839   fi
4840 fi
4841 if test -z "$CC"; then
4842   # Extract the first word of "cc", so it can be a program name with args.
4843 set dummy cc; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_CC+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   if test -n "$CC"; then
4850   ac_cv_prog_CC="$CC" # Let the user override the test.
4851 else
4852   ac_prog_rejected=no
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4861        ac_prog_rejected=yes
4862        continue
4863      fi
4864     ac_cv_prog_CC="cc"
4865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869   done
4870 IFS=$as_save_IFS
4871
4872 if test $ac_prog_rejected = yes; then
4873   # We found a bogon in the path, so make sure we never use it.
4874   set dummy $ac_cv_prog_CC
4875   shift
4876   if test $# != 0; then
4877     # We chose a different compiler from the bogus one.
4878     # However, it has the same basename, so the bogon will be chosen
4879     # first if we set CC to just the basename; use the full file name.
4880     shift
4881     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4882   fi
4883 fi
4884 fi
4885 fi
4886 CC=$ac_cv_prog_CC
4887 if test -n "$CC"; then
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4889 $as_echo "$CC" >&6; }
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 fi
4897 if test -z "$CC"; then
4898   if test -n "$ac_tool_prefix"; then
4899   for ac_prog in cl.exe
4900   do
4901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_prog_CC+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   if test -n "$CC"; then
4909   ac_cv_prog_CC="$CC" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916     for ac_exec_ext in '' $ac_executable_extensions; do
4917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923   done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 CC=$ac_cv_prog_CC
4929 if test -n "$CC"; then
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931 $as_echo "$CC" >&6; }
4932 else
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938     test -n "$CC" && break
4939   done
4940 fi
4941 if test -z "$CC"; then
4942   ac_ct_CC=$CC
4943   for ac_prog in cl.exe
4944 do
4945   # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$ac_ct_CC"; then
4953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962     ac_cv_prog_ac_ct_CC="$ac_prog"
4963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4973 if test -n "$ac_ct_CC"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4975 $as_echo "$ac_ct_CC" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982   test -n "$ac_ct_CC" && break
4983 done
4984
4985   if test "x$ac_ct_CC" = x; then
4986     CC=""
4987   else
4988     case $cross_compiling:$ac_tool_warned in
4989 yes:)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994     CC=$ac_ct_CC
4995   fi
4996 fi
4997
4998 fi
4999
5000
5001 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error $? "no acceptable C compiler found in \$PATH
5004 See \`config.log' for more details" "$LINENO" 5; }
5005
5006 # Provide some information about the compiler.
5007 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5008 set X $ac_compile
5009 ac_compiler=$2
5010 for ac_option in --version -v -V -qversion; do
5011   { { ac_try="$ac_compiler $ac_option >&5"
5012 case "(($ac_try" in
5013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014   *) ac_try_echo=$ac_try;;
5015 esac
5016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5017 $as_echo "$ac_try_echo"; } >&5
5018   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5019   ac_status=$?
5020   if test -s conftest.err; then
5021     sed '10a\
5022 ... rest of stderr output deleted ...
5023          10q' conftest.err >conftest.er1
5024     cat conftest.er1 >&5
5025   fi
5026   rm -f conftest.er1 conftest.err
5027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5028   test $ac_status = 0; }
5029 done
5030
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5033 if ${ac_cv_c_compiler_gnu+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h.  */
5038
5039 int
5040 main ()
5041 {
5042 #ifndef __GNUC__
5043        choke me
5044 #endif
5045
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051   ac_compiler_gnu=yes
5052 else
5053   ac_compiler_gnu=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5057
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5061 if test $ac_compiler_gnu = yes; then
5062   GCC=yes
5063 else
5064   GCC=
5065 fi
5066 ac_test_CFLAGS=${CFLAGS+set}
5067 ac_save_CFLAGS=$CFLAGS
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5070 if ${ac_cv_prog_cc_g+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   ac_save_c_werror_flag=$ac_c_werror_flag
5074    ac_c_werror_flag=yes
5075    ac_cv_prog_cc_g=no
5076    CFLAGS="-g"
5077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h.  */
5079
5080 int
5081 main ()
5082 {
5083
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089   ac_cv_prog_cc_g=yes
5090 else
5091   CFLAGS=""
5092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094
5095 int
5096 main ()
5097 {
5098
5099   ;
5100   return 0;
5101 }
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104
5105 else
5106   ac_c_werror_flag=$ac_save_c_werror_flag
5107          CFLAGS="-g"
5108          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h.  */
5110
5111 int
5112 main ()
5113 {
5114
5115   ;
5116   return 0;
5117 }
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120   ac_cv_prog_cc_g=yes
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127    ac_c_werror_flag=$ac_save_c_werror_flag
5128 fi
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5130 $as_echo "$ac_cv_prog_cc_g" >&6; }
5131 if test "$ac_test_CFLAGS" = set; then
5132   CFLAGS=$ac_save_CFLAGS
5133 elif test $ac_cv_prog_cc_g = yes; then
5134   if test "$GCC" = yes; then
5135     CFLAGS="-g -O2"
5136   else
5137     CFLAGS="-g"
5138   fi
5139 else
5140   if test "$GCC" = yes; then
5141     CFLAGS="-O2"
5142   else
5143     CFLAGS=
5144   fi
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5148 if ${ac_cv_prog_cc_c89+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   ac_cv_prog_cc_c89=no
5152 ac_save_CC=$CC
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h.  */
5155 #include <stdarg.h>
5156 #include <stdio.h>
5157 struct stat;
5158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5159 struct buf { int x; };
5160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5161 static char *e (p, i)
5162      char **p;
5163      int i;
5164 {
5165   return p[i];
5166 }
5167 static char *f (char * (*g) (char **, int), char **p, ...)
5168 {
5169   char *s;
5170   va_list v;
5171   va_start (v,p);
5172   s = g (p, va_arg (v,int));
5173   va_end (v);
5174   return s;
5175 }
5176
5177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5178    function prototypes and stuff, but not '\xHH' hex character constants.
5179    These don't provoke an error unfortunately, instead are silently treated
5180    as 'x'.  The following induces an error, until -std is added to get
5181    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5182    array size at least.  It's necessary to write '\x00'==0 to get something
5183    that's true only with -std.  */
5184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5185
5186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5187    inside strings and character constants.  */
5188 #define FOO(x) 'x'
5189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5190
5191 int test (int i, double x);
5192 struct s1 {int (*f) (int a);};
5193 struct s2 {int (*f) (double a);};
5194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5195 int argc;
5196 char **argv;
5197 int
5198 main ()
5199 {
5200 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5206         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5207 do
5208   CC="$ac_save_CC $ac_arg"
5209   if ac_fn_c_try_compile "$LINENO"; then :
5210   ac_cv_prog_cc_c89=$ac_arg
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext
5213   test "x$ac_cv_prog_cc_c89" != "xno" && break
5214 done
5215 rm -f conftest.$ac_ext
5216 CC=$ac_save_CC
5217
5218 fi
5219 # AC_CACHE_VAL
5220 case "x$ac_cv_prog_cc_c89" in
5221   x)
5222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5223 $as_echo "none needed" >&6; } ;;
5224   xno)
5225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5226 $as_echo "unsupported" >&6; } ;;
5227   *)
5228     CC="$CC $ac_cv_prog_cc_c89"
5229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5231 esac
5232 if test "x$ac_cv_prog_cc_c89" != xno; then :
5233
5234 fi
5235
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242 ac_ext=c
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5248 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5249 if ${am_cv_prog_cc_c_o+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h.  */
5254
5255 int
5256 main ()
5257 {
5258
5259   ;
5260   return 0;
5261 }
5262 _ACEOF
5263   # Make sure it works both with $CC and with simple cc.
5264   # Following AC_PROG_CC_C_O, we do the test twice because some
5265   # compilers refuse to overwrite an existing .o file with -o,
5266   # though they will create one.
5267   am_cv_prog_cc_c_o=yes
5268   for am_i in 1 2; do
5269     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5270    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5271    ac_status=$?
5272    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273    (exit $ac_status); } \
5274          && test -f conftest2.$ac_objext; then
5275       : OK
5276     else
5277       am_cv_prog_cc_c_o=no
5278       break
5279     fi
5280   done
5281   rm -f core conftest*
5282   unset am_i
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5285 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5286 if test "$am_cv_prog_cc_c_o" != yes; then
5287    # Losing compiler, so override with the script.
5288    # FIXME: It is wrong to rewrite CC.
5289    # But if we don't then we get into trouble of one sort or another.
5290    # A longer-term fix would be to have automake use am__CC in this case,
5291    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5292    CC="$am_aux_dir/compile $CC"
5293 fi
5294 ac_ext=c
5295 ac_cpp='$CPP $CPPFLAGS'
5296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5299
5300
5301 depcc="$CC"   am_compiler_list=
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5304 $as_echo_n "checking dependency style of $depcc... " >&6; }
5305 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5309   # We make a subdir and do the tests there.  Otherwise we can end up
5310   # making bogus files that we don't know about and never remove.  For
5311   # instance it was reported that on HP-UX the gcc test will end up
5312   # making a dummy file named 'D' -- because '-MD' means "put the output
5313   # in D".
5314   rm -rf conftest.dir
5315   mkdir conftest.dir
5316   # Copy depcomp to subdir because otherwise we won't find it if we're
5317   # using a relative directory.
5318   cp "$am_depcomp" conftest.dir
5319   cd conftest.dir
5320   # We will build objects and dependencies in a subdirectory because
5321   # it helps to detect inapplicable dependency modes.  For instance
5322   # both Tru64's cc and ICC support -MD to output dependencies as a
5323   # side effect of compilation, but ICC will put the dependencies in
5324   # the current directory while Tru64 will put them in the object
5325   # directory.
5326   mkdir sub
5327
5328   am_cv_CC_dependencies_compiler_type=none
5329   if test "$am_compiler_list" = ""; then
5330      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5331   fi
5332   am__universal=false
5333   case " $depcc " in #(
5334      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5335      esac
5336
5337   for depmode in $am_compiler_list; do
5338     # Setup a source with many dependencies, because some compilers
5339     # like to wrap large dependency lists on column 80 (with \), and
5340     # we should not choose a depcomp mode which is confused by this.
5341     #
5342     # We need to recreate these files for each test, as the compiler may
5343     # overwrite some of them when testing with obscure command lines.
5344     # This happens at least with the AIX C compiler.
5345     : > sub/conftest.c
5346     for i in 1 2 3 4 5 6; do
5347       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5349       # Solaris 10 /bin/sh.
5350       echo '/* dummy */' > sub/conftst$i.h
5351     done
5352     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353
5354     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5355     # mode.  It turns out that the SunPro C++ compiler does not properly
5356     # handle '-M -o', and we need to detect this.  Also, some Intel
5357     # versions had trouble with output in subdirs.
5358     am__obj=sub/conftest.${OBJEXT-o}
5359     am__minus_obj="-o $am__obj"
5360     case $depmode in
5361     gcc)
5362       # This depmode causes a compiler race in universal mode.
5363       test "$am__universal" = false || continue
5364       ;;
5365     nosideeffect)
5366       # After this tag, mechanisms are not by side-effect, so they'll
5367       # only be used when explicitly requested.
5368       if test "x$enable_dependency_tracking" = xyes; then
5369         continue
5370       else
5371         break
5372       fi
5373       ;;
5374     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5375       # This compiler won't grok '-c -o', but also, the minuso test has
5376       # not run yet.  These depmodes are late enough in the game, and
5377       # so weak that their functioning should not be impacted.
5378       am__obj=conftest.${OBJEXT-o}
5379       am__minus_obj=
5380       ;;
5381     none) break ;;
5382     esac
5383     if depmode=$depmode \
5384        source=sub/conftest.c object=$am__obj \
5385        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387          >/dev/null 2>conftest.err &&
5388        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392       # icc doesn't choke on unknown options, it will just issue warnings
5393       # or remarks (even with -Werror).  So we grep stderr for any message
5394       # that says an option was ignored or not supported.
5395       # When given -MP, icc 7.0 and 7.1 complain thusly:
5396       #   icc: Command line warning: ignoring option '-M'; no argument required
5397       # The diagnosis changed in icc 8.0:
5398       #   icc: Command line remark: option '-MP' not supported
5399       if (grep 'ignoring option' conftest.err ||
5400           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401         am_cv_CC_dependencies_compiler_type=$depmode
5402         break
5403       fi
5404     fi
5405   done
5406
5407   cd ..
5408   rm -rf conftest.dir
5409 else
5410   am_cv_CC_dependencies_compiler_type=none
5411 fi
5412
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5417
5418  if
5419   test "x$enable_dependency_tracking" != xno \
5420   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5421   am__fastdepCC_TRUE=
5422   am__fastdepCC_FALSE='#'
5423 else
5424   am__fastdepCC_TRUE='#'
5425   am__fastdepCC_FALSE=
5426 fi
5427
5428
5429
5430 ac_ext=c
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5437 # On Suns, sometimes $CPP names a directory.
5438 if test -n "$CPP" && test -d "$CPP"; then
5439   CPP=
5440 fi
5441 if test -z "$CPP"; then
5442   if ${ac_cv_prog_CPP+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445       # Double quotes because CPP needs to be expanded
5446     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5447     do
5448       ac_preproc_ok=false
5449 for ac_c_preproc_warn_flag in '' yes
5450 do
5451   # Use a header file that comes with gcc, so configuring glibc
5452   # with a fresh cross-compiler works.
5453   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454   # <limits.h> exists even on freestanding compilers.
5455   # On the NeXT, cc -E runs the code through the compiler's parser,
5456   # not just through cpp. "Syntax error" is here to catch this case.
5457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h.  */
5459 #ifdef __STDC__
5460 # include <limits.h>
5461 #else
5462 # include <assert.h>
5463 #endif
5464                      Syntax error
5465 _ACEOF
5466 if ac_fn_c_try_cpp "$LINENO"; then :
5467
5468 else
5469   # Broken: fails on valid input.
5470 continue
5471 fi
5472 rm -f conftest.err conftest.i conftest.$ac_ext
5473
5474   # OK, works on sane cases.  Now check whether nonexistent headers
5475   # can be detected and how.
5476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478 #include <ac_nonexistent.h>
5479 _ACEOF
5480 if ac_fn_c_try_cpp "$LINENO"; then :
5481   # Broken: success on invalid input.
5482 continue
5483 else
5484   # Passes both tests.
5485 ac_preproc_ok=:
5486 break
5487 fi
5488 rm -f conftest.err conftest.i conftest.$ac_ext
5489
5490 done
5491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492 rm -f conftest.i conftest.err conftest.$ac_ext
5493 if $ac_preproc_ok; then :
5494   break
5495 fi
5496
5497     done
5498     ac_cv_prog_CPP=$CPP
5499
5500 fi
5501   CPP=$ac_cv_prog_CPP
5502 else
5503   ac_cv_prog_CPP=$CPP
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5506 $as_echo "$CPP" >&6; }
5507 ac_preproc_ok=false
5508 for ac_c_preproc_warn_flag in '' yes
5509 do
5510   # Use a header file that comes with gcc, so configuring glibc
5511   # with a fresh cross-compiler works.
5512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5513   # <limits.h> exists even on freestanding compilers.
5514   # On the NeXT, cc -E runs the code through the compiler's parser,
5515   # not just through cpp. "Syntax error" is here to catch this case.
5516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h.  */
5518 #ifdef __STDC__
5519 # include <limits.h>
5520 #else
5521 # include <assert.h>
5522 #endif
5523                      Syntax error
5524 _ACEOF
5525 if ac_fn_c_try_cpp "$LINENO"; then :
5526
5527 else
5528   # Broken: fails on valid input.
5529 continue
5530 fi
5531 rm -f conftest.err conftest.i conftest.$ac_ext
5532
5533   # OK, works on sane cases.  Now check whether nonexistent headers
5534   # can be detected and how.
5535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h.  */
5537 #include <ac_nonexistent.h>
5538 _ACEOF
5539 if ac_fn_c_try_cpp "$LINENO"; then :
5540   # Broken: success on invalid input.
5541 continue
5542 else
5543   # Passes both tests.
5544 ac_preproc_ok=:
5545 break
5546 fi
5547 rm -f conftest.err conftest.i conftest.$ac_ext
5548
5549 done
5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551 rm -f conftest.i conftest.err conftest.$ac_ext
5552 if $ac_preproc_ok; then :
5553
5554 else
5555   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details" "$LINENO" 5; }
5559 fi
5560
5561 ac_ext=c
5562 ac_cpp='$CPP $CPPFLAGS'
5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5570 set x ${MAKE-make}
5571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5572 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   cat >conftest.make <<\_ACEOF
5576 SHELL = /bin/sh
5577 all:
5578         @echo '@@@%%%=$(MAKE)=@@@%%%'
5579 _ACEOF
5580 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5582   *@@@%%%=?*=@@@%%%*)
5583     eval ac_cv_prog_make_${ac_make}_set=yes;;
5584   *)
5585     eval ac_cv_prog_make_${ac_make}_set=no;;
5586 esac
5587 rm -f conftest.make
5588 fi
5589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591 $as_echo "yes" >&6; }
5592   SET_MAKE=
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596   SET_MAKE="MAKE=${MAKE-make}"
5597 fi
5598
5599 # Check whether --enable-static was given.
5600 if test "${enable_static+set}" = set; then :
5601   enableval=$enable_static; p=${PACKAGE-default}
5602     case $enableval in
5603     yes) enable_static=yes ;;
5604     no) enable_static=no ;;
5605     *)
5606      enable_static=no
5607       # Look at the argument we got.  We use all the common list separators.
5608       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5609       for pkg in $enableval; do
5610         IFS="$lt_save_ifs"
5611         if test "X$pkg" = "X$p"; then
5612           enable_static=yes
5613         fi
5614       done
5615       IFS="$lt_save_ifs"
5616       ;;
5617     esac
5618 else
5619   enable_static=no
5620 fi
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 case `pwd` in
5631   *\ * | *\     *)
5632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5633 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5634 esac
5635
5636
5637
5638 macro_version='2.4.2'
5639 macro_revision='1.3337'
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 ltmain="$ac_aux_dir/ltmain.sh"
5654
5655 # Backslashify metacharacters that are still active within
5656 # double-quoted strings.
5657 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5658
5659 # Same as above, but do not quote variable references.
5660 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5661
5662 # Sed substitution to delay expansion of an escaped shell variable in a
5663 # double_quote_subst'ed string.
5664 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5665
5666 # Sed substitution to delay expansion of an escaped single quote.
5667 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5668
5669 # Sed substitution to avoid accidental globbing in evaled expressions
5670 no_glob_subst='s/\*/\\\*/g'
5671
5672 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5673 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5674 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5675
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5677 $as_echo_n "checking how to print strings... " >&6; }
5678 # Test print first, because it will be a builtin if present.
5679 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5680    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5681   ECHO='print -r --'
5682 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5683   ECHO='printf %s\n'
5684 else
5685   # Use this function as a fallback that always works.
5686   func_fallback_echo ()
5687   {
5688     eval 'cat <<_LTECHO_EOF
5689 $1
5690 _LTECHO_EOF'
5691   }
5692   ECHO='func_fallback_echo'
5693 fi
5694
5695 # func_echo_all arg...
5696 # Invoke $ECHO with all args, space-separated.
5697 func_echo_all ()
5698 {
5699     $ECHO ""
5700 }
5701
5702 case "$ECHO" in
5703   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5704 $as_echo "printf" >&6; } ;;
5705   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5706 $as_echo "print -r" >&6; } ;;
5707   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5708 $as_echo "cat" >&6; } ;;
5709 esac
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5725 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5726 if ${ac_cv_path_SED+:} false; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5730      for ac_i in 1 2 3 4 5 6 7; do
5731        ac_script="$ac_script$as_nl$ac_script"
5732      done
5733      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5734      { ac_script=; unset ac_script;}
5735      if test -z "$SED"; then
5736   ac_path_SED_found=false
5737   # Loop through the user's path and test for each of PROGNAME-LIST
5738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_prog in sed gsed; do
5744     for ac_exec_ext in '' $ac_executable_extensions; do
5745       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5746       as_fn_executable_p "$ac_path_SED" || continue
5747 # Check for GNU ac_path_SED and select it if it is found.
5748   # Check for GNU $ac_path_SED
5749 case `"$ac_path_SED" --version 2>&1` in
5750 *GNU*)
5751   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5752 *)
5753   ac_count=0
5754   $as_echo_n 0123456789 >"conftest.in"
5755   while :
5756   do
5757     cat "conftest.in" "conftest.in" >"conftest.tmp"
5758     mv "conftest.tmp" "conftest.in"
5759     cp "conftest.in" "conftest.nl"
5760     $as_echo '' >> "conftest.nl"
5761     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5762     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5763     as_fn_arith $ac_count + 1 && ac_count=$as_val
5764     if test $ac_count -gt ${ac_path_SED_max-0}; then
5765       # Best one so far, save it but keep looking for a better one
5766       ac_cv_path_SED="$ac_path_SED"
5767       ac_path_SED_max=$ac_count
5768     fi
5769     # 10*(2^10) chars as input seems more than enough
5770     test $ac_count -gt 10 && break
5771   done
5772   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5773 esac
5774
5775       $ac_path_SED_found && break 3
5776     done
5777   done
5778   done
5779 IFS=$as_save_IFS
5780   if test -z "$ac_cv_path_SED"; then
5781     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5782   fi
5783 else
5784   ac_cv_path_SED=$SED
5785 fi
5786
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5789 $as_echo "$ac_cv_path_SED" >&6; }
5790  SED="$ac_cv_path_SED"
5791   rm -f conftest.sed
5792
5793 test -z "$SED" && SED=sed
5794 Xsed="$SED -e 1s/^X//"
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5807 $as_echo_n "checking for fgrep... " >&6; }
5808 if ${ac_cv_path_FGREP+:} false; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5812    then ac_cv_path_FGREP="$GREP -F"
5813    else
5814      if test -z "$FGREP"; then
5815   ac_path_FGREP_found=false
5816   # Loop through the user's path and test for each of PROGNAME-LIST
5817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_prog in fgrep; do
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5825       as_fn_executable_p "$ac_path_FGREP" || continue
5826 # Check for GNU ac_path_FGREP and select it if it is found.
5827   # Check for GNU $ac_path_FGREP
5828 case `"$ac_path_FGREP" --version 2>&1` in
5829 *GNU*)
5830   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5831 *)
5832   ac_count=0
5833   $as_echo_n 0123456789 >"conftest.in"
5834   while :
5835   do
5836     cat "conftest.in" "conftest.in" >"conftest.tmp"
5837     mv "conftest.tmp" "conftest.in"
5838     cp "conftest.in" "conftest.nl"
5839     $as_echo 'FGREP' >> "conftest.nl"
5840     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5841     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5842     as_fn_arith $ac_count + 1 && ac_count=$as_val
5843     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5844       # Best one so far, save it but keep looking for a better one
5845       ac_cv_path_FGREP="$ac_path_FGREP"
5846       ac_path_FGREP_max=$ac_count
5847     fi
5848     # 10*(2^10) chars as input seems more than enough
5849     test $ac_count -gt 10 && break
5850   done
5851   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5852 esac
5853
5854       $ac_path_FGREP_found && break 3
5855     done
5856   done
5857   done
5858 IFS=$as_save_IFS
5859   if test -z "$ac_cv_path_FGREP"; then
5860     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5861   fi
5862 else
5863   ac_cv_path_FGREP=$FGREP
5864 fi
5865
5866    fi
5867 fi
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5869 $as_echo "$ac_cv_path_FGREP" >&6; }
5870  FGREP="$ac_cv_path_FGREP"
5871
5872
5873 test -z "$GREP" && GREP=grep
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 # Check whether --with-gnu-ld was given.
5894 if test "${with_gnu_ld+set}" = set; then :
5895   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5896 else
5897   with_gnu_ld=no
5898 fi
5899
5900 ac_prog=ld
5901 if test "$GCC" = yes; then
5902   # Check if gcc -print-prog-name=ld gives a path.
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5904 $as_echo_n "checking for ld used by $CC... " >&6; }
5905   case $host in
5906   *-*-mingw*)
5907     # gcc leaves a trailing carriage return which upsets mingw
5908     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5909   *)
5910     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5911   esac
5912   case $ac_prog in
5913     # Accept absolute paths.
5914     [\\/]* | ?:[\\/]*)
5915       re_direlt='/[^/][^/]*/\.\./'
5916       # Canonicalize the pathname of ld
5917       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5918       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5919         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5920       done
5921       test -z "$LD" && LD="$ac_prog"
5922       ;;
5923   "")
5924     # If it fails, then pretend we aren't using GCC.
5925     ac_prog=ld
5926     ;;
5927   *)
5928     # If it is relative, then search for the first ld in PATH.
5929     with_gnu_ld=unknown
5930     ;;
5931   esac
5932 elif test "$with_gnu_ld" = yes; then
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5934 $as_echo_n "checking for GNU ld... " >&6; }
5935 else
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5937 $as_echo_n "checking for non-GNU ld... " >&6; }
5938 fi
5939 if ${lt_cv_path_LD+:} false; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   if test -z "$LD"; then
5943   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5944   for ac_dir in $PATH; do
5945     IFS="$lt_save_ifs"
5946     test -z "$ac_dir" && ac_dir=.
5947     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5948       lt_cv_path_LD="$ac_dir/$ac_prog"
5949       # Check to see if the program is GNU ld.  I'd rather use --version,
5950       # but apparently some variants of GNU ld only accept -v.
5951       # Break only if it was the GNU/non-GNU ld that we prefer.
5952       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5953       *GNU* | *'with BFD'*)
5954         test "$with_gnu_ld" != no && break
5955         ;;
5956       *)
5957         test "$with_gnu_ld" != yes && break
5958         ;;
5959       esac
5960     fi
5961   done
5962   IFS="$lt_save_ifs"
5963 else
5964   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5965 fi
5966 fi
5967
5968 LD="$lt_cv_path_LD"
5969 if test -n "$LD"; then
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5971 $as_echo "$LD" >&6; }
5972 else
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5978 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5979 if ${lt_cv_prog_gnu_ld+:} false; then :
5980   $as_echo_n "(cached) " >&6
5981 else
5982   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5983 case `$LD -v 2>&1 </dev/null` in
5984 *GNU* | *'with BFD'*)
5985   lt_cv_prog_gnu_ld=yes
5986   ;;
5987 *)
5988   lt_cv_prog_gnu_ld=no
5989   ;;
5990 esac
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5993 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5994 with_gnu_ld=$lt_cv_prog_gnu_ld
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6005 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6006 if ${lt_cv_path_NM+:} false; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009   if test -n "$NM"; then
6010   # Let the user override the test.
6011   lt_cv_path_NM="$NM"
6012 else
6013   lt_nm_to_check="${ac_tool_prefix}nm"
6014   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6015     lt_nm_to_check="$lt_nm_to_check nm"
6016   fi
6017   for lt_tmp_nm in $lt_nm_to_check; do
6018     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6019     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6020       IFS="$lt_save_ifs"
6021       test -z "$ac_dir" && ac_dir=.
6022       tmp_nm="$ac_dir/$lt_tmp_nm"
6023       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6024         # Check to see if the nm accepts a BSD-compat flag.
6025         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6026         #   nm: unknown option "B" ignored
6027         # Tru64's nm complains that /dev/null is an invalid object file
6028         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6029         */dev/null* | *'Invalid file or object type'*)
6030           lt_cv_path_NM="$tmp_nm -B"
6031           break
6032           ;;
6033         *)
6034           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6035           */dev/null*)
6036             lt_cv_path_NM="$tmp_nm -p"
6037             break
6038             ;;
6039           *)
6040             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6041             continue # so that we can try to find one that supports BSD flags
6042             ;;
6043           esac
6044           ;;
6045         esac
6046       fi
6047     done
6048     IFS="$lt_save_ifs"
6049   done
6050   : ${lt_cv_path_NM=no}
6051 fi
6052 fi
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6054 $as_echo "$lt_cv_path_NM" >&6; }
6055 if test "$lt_cv_path_NM" != "no"; then
6056   NM="$lt_cv_path_NM"
6057 else
6058   # Didn't find any BSD compatible name lister, look for dumpbin.
6059   if test -n "$DUMPBIN"; then :
6060     # Let the user override the test.
6061   else
6062     if test -n "$ac_tool_prefix"; then
6063   for ac_prog in dumpbin "link -dump"
6064   do
6065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_DUMPBIN+:} false; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   if test -n "$DUMPBIN"; then
6073   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087   done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 DUMPBIN=$ac_cv_prog_DUMPBIN
6093 if test -n "$DUMPBIN"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6095 $as_echo "$DUMPBIN" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101
6102     test -n "$DUMPBIN" && break
6103   done
6104 fi
6105 if test -z "$DUMPBIN"; then
6106   ac_ct_DUMPBIN=$DUMPBIN
6107   for ac_prog in dumpbin "link -dump"
6108 do
6109   # Extract the first word of "$ac_prog", so it can be a program name with args.
6110 set dummy $ac_prog; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   if test -n "$ac_ct_DUMPBIN"; then
6117   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6137 if test -n "$ac_ct_DUMPBIN"; then
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6139 $as_echo "$ac_ct_DUMPBIN" >&6; }
6140 else
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145
6146   test -n "$ac_ct_DUMPBIN" && break
6147 done
6148
6149   if test "x$ac_ct_DUMPBIN" = x; then
6150     DUMPBIN=":"
6151   else
6152     case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158     DUMPBIN=$ac_ct_DUMPBIN
6159   fi
6160 fi
6161
6162     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6163     *COFF*)
6164       DUMPBIN="$DUMPBIN -symbols"
6165       ;;
6166     *)
6167       DUMPBIN=:
6168       ;;
6169     esac
6170   fi
6171
6172   if test "$DUMPBIN" != ":"; then
6173     NM="$DUMPBIN"
6174   fi
6175 fi
6176 test -z "$NM" && NM=nm
6177
6178
6179
6180
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6184 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6185 if ${lt_cv_nm_interface+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   lt_cv_nm_interface="BSD nm"
6189   echo "int some_variable = 0;" > conftest.$ac_ext
6190   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6191   (eval "$ac_compile" 2>conftest.err)
6192   cat conftest.err >&5
6193   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6194   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6195   cat conftest.err >&5
6196   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6197   cat conftest.out >&5
6198   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6199     lt_cv_nm_interface="MS dumpbin"
6200   fi
6201   rm -f conftest*
6202 fi
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6204 $as_echo "$lt_cv_nm_interface" >&6; }
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6207 $as_echo_n "checking whether ln -s works... " >&6; }
6208 LN_S=$as_ln_s
6209 if test "$LN_S" = "ln -s"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6211 $as_echo "yes" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6214 $as_echo "no, using $LN_S" >&6; }
6215 fi
6216
6217 # find the maximum length of command line arguments
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6219 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6220 if ${lt_cv_sys_max_cmd_len+:} false; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223     i=0
6224   teststring="ABCD"
6225
6226   case $build_os in
6227   msdosdjgpp*)
6228     # On DJGPP, this test can blow up pretty badly due to problems in libc
6229     # (any single argument exceeding 2000 bytes causes a buffer overrun
6230     # during glob expansion).  Even if it were fixed, the result of this
6231     # check would be larger than it should be.
6232     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6233     ;;
6234
6235   gnu*)
6236     # Under GNU Hurd, this test is not required because there is
6237     # no limit to the length of command line arguments.
6238     # Libtool will interpret -1 as no limit whatsoever
6239     lt_cv_sys_max_cmd_len=-1;
6240     ;;
6241
6242   cygwin* | mingw* | cegcc*)
6243     # On Win9x/ME, this test blows up -- it succeeds, but takes
6244     # about 5 minutes as the teststring grows exponentially.
6245     # Worse, since 9x/ME are not pre-emptively multitasking,
6246     # you end up with a "frozen" computer, even though with patience
6247     # the test eventually succeeds (with a max line length of 256k).
6248     # Instead, let's just punt: use the minimum linelength reported by
6249     # all of the supported platforms: 8192 (on NT/2K/XP).
6250     lt_cv_sys_max_cmd_len=8192;
6251     ;;
6252
6253   mint*)
6254     # On MiNT this can take a long time and run out of memory.
6255     lt_cv_sys_max_cmd_len=8192;
6256     ;;
6257
6258   amigaos*)
6259     # On AmigaOS with pdksh, this test takes hours, literally.
6260     # So we just punt and use a minimum line length of 8192.
6261     lt_cv_sys_max_cmd_len=8192;
6262     ;;
6263
6264   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6265     # This has been around since 386BSD, at least.  Likely further.
6266     if test -x /sbin/sysctl; then
6267       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6268     elif test -x /usr/sbin/sysctl; then
6269       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6270     else
6271       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6272     fi
6273     # And add a safety zone
6274     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6275     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6276     ;;
6277
6278   interix*)
6279     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6280     lt_cv_sys_max_cmd_len=196608
6281     ;;
6282
6283   os2*)
6284     # The test takes a long time on OS/2.
6285     lt_cv_sys_max_cmd_len=8192
6286     ;;
6287
6288   osf*)
6289     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6290     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6291     # nice to cause kernel panics so lets avoid the loop below.
6292     # First set a reasonable default.
6293     lt_cv_sys_max_cmd_len=16384
6294     #
6295     if test -x /sbin/sysconfig; then
6296       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6297         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6298       esac
6299     fi
6300     ;;
6301   sco3.2v5*)
6302     lt_cv_sys_max_cmd_len=102400
6303     ;;
6304   sysv5* | sco5v6* | sysv4.2uw2*)
6305     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6306     if test -n "$kargmax"; then
6307       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6308     else
6309       lt_cv_sys_max_cmd_len=32768
6310     fi
6311     ;;
6312   *)
6313     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6314     if test -n "$lt_cv_sys_max_cmd_len" && \
6315         test undefined != "$lt_cv_sys_max_cmd_len"; then
6316       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6317       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6318     else
6319       # Make teststring a little bigger before we do anything with it.
6320       # a 1K string should be a reasonable start.
6321       for i in 1 2 3 4 5 6 7 8 ; do
6322         teststring=$teststring$teststring
6323       done
6324       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6325       # If test is not a shell built-in, we'll probably end up computing a
6326       # maximum length that is only half of the actual maximum length, but
6327       # we can't tell.
6328       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6329                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6330               test $i != 17 # 1/2 MB should be enough
6331       do
6332         i=`expr $i + 1`
6333         teststring=$teststring$teststring
6334       done
6335       # Only check the string length outside the loop.
6336       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6337       teststring=
6338       # Add a significant safety factor because C++ compilers can tack on
6339       # massive amounts of additional arguments before passing them to the
6340       # linker.  It appears as though 1/2 is a usable value.
6341       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6342     fi
6343     ;;
6344   esac
6345
6346 fi
6347
6348 if test -n $lt_cv_sys_max_cmd_len ; then
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6350 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6351 else
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6353 $as_echo "none" >&6; }
6354 fi
6355 max_cmd_len=$lt_cv_sys_max_cmd_len
6356
6357
6358
6359
6360
6361
6362 : ${CP="cp -f"}
6363 : ${MV="mv -f"}
6364 : ${RM="rm -f"}
6365
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6367 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6368 # Try some XSI features
6369 xsi_shell=no
6370 ( _lt_dummy="a/b/c"
6371   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6372       = c,a/b,b/c, \
6373     && eval 'test $(( 1 + 1 )) -eq 2 \
6374     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6375   && xsi_shell=yes
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6377 $as_echo "$xsi_shell" >&6; }
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6381 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6382 lt_shell_append=no
6383 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6384     >/dev/null 2>&1 \
6385   && lt_shell_append=yes
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6387 $as_echo "$lt_shell_append" >&6; }
6388
6389
6390 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6391   lt_unset=unset
6392 else
6393   lt_unset=false
6394 fi
6395
6396
6397
6398
6399
6400 # test EBCDIC or ASCII
6401 case `echo X|tr X '\101'` in
6402  A) # ASCII based system
6403     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6404   lt_SP2NL='tr \040 \012'
6405   lt_NL2SP='tr \015\012 \040\040'
6406   ;;
6407  *) # EBCDIC based system
6408   lt_SP2NL='tr \100 \n'
6409   lt_NL2SP='tr \r\n \100\100'
6410   ;;
6411 esac
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6422 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6423 if ${lt_cv_to_host_file_cmd+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   case $host in
6427   *-*-mingw* )
6428     case $build in
6429       *-*-mingw* ) # actually msys
6430         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6431         ;;
6432       *-*-cygwin* )
6433         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6434         ;;
6435       * ) # otherwise, assume *nix
6436         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6437         ;;
6438     esac
6439     ;;
6440   *-*-cygwin* )
6441     case $build in
6442       *-*-mingw* ) # actually msys
6443         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6444         ;;
6445       *-*-cygwin* )
6446         lt_cv_to_host_file_cmd=func_convert_file_noop
6447         ;;
6448       * ) # otherwise, assume *nix
6449         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6450         ;;
6451     esac
6452     ;;
6453   * ) # unhandled hosts (and "normal" native builds)
6454     lt_cv_to_host_file_cmd=func_convert_file_noop
6455     ;;
6456 esac
6457
6458 fi
6459
6460 to_host_file_cmd=$lt_cv_to_host_file_cmd
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6462 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6463
6464
6465
6466
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6469 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6470 if ${lt_cv_to_tool_file_cmd+:} false; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   #assume ordinary cross tools, or native build.
6474 lt_cv_to_tool_file_cmd=func_convert_file_noop
6475 case $host in
6476   *-*-mingw* )
6477     case $build in
6478       *-*-mingw* ) # actually msys
6479         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6480         ;;
6481     esac
6482     ;;
6483 esac
6484
6485 fi
6486
6487 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6489 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6496 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6497 if ${lt_cv_ld_reload_flag+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   lt_cv_ld_reload_flag='-r'
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6503 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6504 reload_flag=$lt_cv_ld_reload_flag
6505 case $reload_flag in
6506 "" | " "*) ;;
6507 *) reload_flag=" $reload_flag" ;;
6508 esac
6509 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6510 case $host_os in
6511   cygwin* | mingw* | pw32* | cegcc*)
6512     if test "$GCC" != yes; then
6513       reload_cmds=false
6514     fi
6515     ;;
6516   darwin*)
6517     if test "$GCC" = yes; then
6518       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6519     else
6520       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6521     fi
6522     ;;
6523 esac
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533 if test -n "$ac_tool_prefix"; then
6534   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_OBJDUMP+:} false; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   if test -n "$OBJDUMP"; then
6542   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549     for ac_exec_ext in '' $ac_executable_extensions; do
6550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556   done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 OBJDUMP=$ac_cv_prog_OBJDUMP
6562 if test -n "$OBJDUMP"; then
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6564 $as_echo "$OBJDUMP" >&6; }
6565 else
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_prog_OBJDUMP"; then
6573   ac_ct_OBJDUMP=$OBJDUMP
6574   # Extract the first word of "objdump", so it can be a program name with args.
6575 set dummy objdump; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   if test -n "$ac_ct_OBJDUMP"; then
6582   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6602 if test -n "$ac_ct_OBJDUMP"; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6604 $as_echo "$ac_ct_OBJDUMP" >&6; }
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610   if test "x$ac_ct_OBJDUMP" = x; then
6611     OBJDUMP="false"
6612   else
6613     case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619     OBJDUMP=$ac_ct_OBJDUMP
6620   fi
6621 else
6622   OBJDUMP="$ac_cv_prog_OBJDUMP"
6623 fi
6624
6625 test -z "$OBJDUMP" && OBJDUMP=objdump
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6636 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6637 if ${lt_cv_deplibs_check_method+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   lt_cv_file_magic_cmd='$MAGIC_CMD'
6641 lt_cv_file_magic_test_file=
6642 lt_cv_deplibs_check_method='unknown'
6643 # Need to set the preceding variable on all platforms that support
6644 # interlibrary dependencies.
6645 # 'none' -- dependencies not supported.
6646 # `unknown' -- same as none, but documents that we really don't know.
6647 # 'pass_all' -- all dependencies passed with no checks.
6648 # 'test_compile' -- check by making test program.
6649 # 'file_magic [[regex]]' -- check by looking for files in library path
6650 # which responds to the $file_magic_cmd with a given extended regex.
6651 # If you have `file' or equivalent on your system and you're not sure
6652 # whether `pass_all' will *always* work, you probably want this one.
6653
6654 case $host_os in
6655 aix[4-9]*)
6656   lt_cv_deplibs_check_method=pass_all
6657   ;;
6658
6659 beos*)
6660   lt_cv_deplibs_check_method=pass_all
6661   ;;
6662
6663 bsdi[45]*)
6664   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6665   lt_cv_file_magic_cmd='/usr/bin/file -L'
6666   lt_cv_file_magic_test_file=/shlib/libc.so
6667   ;;
6668
6669 cygwin*)
6670   # func_win32_libid is a shell function defined in ltmain.sh
6671   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6672   lt_cv_file_magic_cmd='func_win32_libid'
6673   ;;
6674
6675 mingw* | pw32*)
6676   # Base MSYS/MinGW do not provide the 'file' command needed by
6677   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6678   # unless we find 'file', for example because we are cross-compiling.
6679   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6680   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6681     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6682     lt_cv_file_magic_cmd='func_win32_libid'
6683   else
6684     # Keep this pattern in sync with the one in func_win32_libid.
6685     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6686     lt_cv_file_magic_cmd='$OBJDUMP -f'
6687   fi
6688   ;;
6689
6690 cegcc*)
6691   # use the weaker test based on 'objdump'. See mingw*.
6692   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6693   lt_cv_file_magic_cmd='$OBJDUMP -f'
6694   ;;
6695
6696 darwin* | rhapsody*)
6697   lt_cv_deplibs_check_method=pass_all
6698   ;;
6699
6700 freebsd* | dragonfly*)
6701   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6702     case $host_cpu in
6703     i*86 )
6704       # Not sure whether the presence of OpenBSD here was a mistake.
6705       # Let's accept both of them until this is cleared up.
6706       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6707       lt_cv_file_magic_cmd=/usr/bin/file
6708       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6709       ;;
6710     esac
6711   else
6712     lt_cv_deplibs_check_method=pass_all
6713   fi
6714   ;;
6715
6716 haiku*)
6717   lt_cv_deplibs_check_method=pass_all
6718   ;;
6719
6720 hpux10.20* | hpux11*)
6721   lt_cv_file_magic_cmd=/usr/bin/file
6722   case $host_cpu in
6723   ia64*)
6724     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6725     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6726     ;;
6727   hppa*64*)
6728     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]'
6729     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6730     ;;
6731   *)
6732     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6733     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6734     ;;
6735   esac
6736   ;;
6737
6738 interix[3-9]*)
6739   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6740   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6741   ;;
6742
6743 irix5* | irix6* | nonstopux*)
6744   case $LD in
6745   *-32|*"-32 ") libmagic=32-bit;;
6746   *-n32|*"-n32 ") libmagic=N32;;
6747   *-64|*"-64 ") libmagic=64-bit;;
6748   *) libmagic=never-match;;
6749   esac
6750   lt_cv_deplibs_check_method=pass_all
6751   ;;
6752
6753 # This must be glibc/ELF.
6754 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6755   lt_cv_deplibs_check_method=pass_all
6756   ;;
6757
6758 netbsd* | netbsdelf*-gnu)
6759   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6760     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6761   else
6762     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6763   fi
6764   ;;
6765
6766 newos6*)
6767   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6768   lt_cv_file_magic_cmd=/usr/bin/file
6769   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6770   ;;
6771
6772 *nto* | *qnx*)
6773   lt_cv_deplibs_check_method=pass_all
6774   ;;
6775
6776 openbsd*)
6777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6778     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6779   else
6780     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6781   fi
6782   ;;
6783
6784 osf3* | osf4* | osf5*)
6785   lt_cv_deplibs_check_method=pass_all
6786   ;;
6787
6788 rdos*)
6789   lt_cv_deplibs_check_method=pass_all
6790   ;;
6791
6792 solaris*)
6793   lt_cv_deplibs_check_method=pass_all
6794   ;;
6795
6796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6797   lt_cv_deplibs_check_method=pass_all
6798   ;;
6799
6800 sysv4 | sysv4.3*)
6801   case $host_vendor in
6802   motorola)
6803     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]'
6804     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6805     ;;
6806   ncr)
6807     lt_cv_deplibs_check_method=pass_all
6808     ;;
6809   sequent)
6810     lt_cv_file_magic_cmd='/bin/file'
6811     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6812     ;;
6813   sni)
6814     lt_cv_file_magic_cmd='/bin/file'
6815     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6816     lt_cv_file_magic_test_file=/lib/libc.so
6817     ;;
6818   siemens)
6819     lt_cv_deplibs_check_method=pass_all
6820     ;;
6821   pc)
6822     lt_cv_deplibs_check_method=pass_all
6823     ;;
6824   esac
6825   ;;
6826
6827 tpf*)
6828   lt_cv_deplibs_check_method=pass_all
6829   ;;
6830 esac
6831
6832 fi
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6834 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6835
6836 file_magic_glob=
6837 want_nocaseglob=no
6838 if test "$build" = "$host"; then
6839   case $host_os in
6840   mingw* | pw32*)
6841     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6842       want_nocaseglob=yes
6843     else
6844       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6845     fi
6846     ;;
6847   esac
6848 fi
6849
6850 file_magic_cmd=$lt_cv_file_magic_cmd
6851 deplibs_check_method=$lt_cv_deplibs_check_method
6852 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 if test -n "$ac_tool_prefix"; then
6876   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_DLLTOOL+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   if test -n "$DLLTOOL"; then
6884   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891     for ac_exec_ext in '' $ac_executable_extensions; do
6892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898   done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 DLLTOOL=$ac_cv_prog_DLLTOOL
6904 if test -n "$DLLTOOL"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6906 $as_echo "$DLLTOOL" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912
6913 fi
6914 if test -z "$ac_cv_prog_DLLTOOL"; then
6915   ac_ct_DLLTOOL=$DLLTOOL
6916   # Extract the first word of "dlltool", so it can be a program name with args.
6917 set dummy dlltool; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6921   $as_echo_n "(cached) " >&6
6922 else
6923   if test -n "$ac_ct_DLLTOOL"; then
6924   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931     for ac_exec_ext in '' $ac_executable_extensions; do
6932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938   done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6944 if test -n "$ac_ct_DLLTOOL"; then
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6946 $as_echo "$ac_ct_DLLTOOL" >&6; }
6947 else
6948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6950 fi
6951
6952   if test "x$ac_ct_DLLTOOL" = x; then
6953     DLLTOOL="false"
6954   else
6955     case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961     DLLTOOL=$ac_ct_DLLTOOL
6962   fi
6963 else
6964   DLLTOOL="$ac_cv_prog_DLLTOOL"
6965 fi
6966
6967 test -z "$DLLTOOL" && DLLTOOL=dlltool
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6979 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6980 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6981   $as_echo_n "(cached) " >&6
6982 else
6983   lt_cv_sharedlib_from_linklib_cmd='unknown'
6984
6985 case $host_os in
6986 cygwin* | mingw* | pw32* | cegcc*)
6987   # two different shell functions defined in ltmain.sh
6988   # decide which to use based on capabilities of $DLLTOOL
6989   case `$DLLTOOL --help 2>&1` in
6990   *--identify-strict*)
6991     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6992     ;;
6993   *)
6994     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6995     ;;
6996   esac
6997   ;;
6998 *)
6999   # fallback: assume linklib IS sharedlib
7000   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7001   ;;
7002 esac
7003
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7006 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7007 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7008 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7009
7010
7011
7012
7013
7014
7015
7016 if test -n "$ac_tool_prefix"; then
7017   for ac_prog in ar
7018   do
7019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_AR+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   if test -n "$AR"; then
7027   ac_cv_prog_AR="$AR" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 AR=$ac_cv_prog_AR
7047 if test -n "$AR"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7049 $as_echo "$AR" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055
7056     test -n "$AR" && break
7057   done
7058 fi
7059 if test -z "$AR"; then
7060   ac_ct_AR=$AR
7061   for ac_prog in ar
7062 do
7063   # Extract the first word of "$ac_prog", so it can be a program name with args.
7064 set dummy $ac_prog; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -n "$ac_ct_AR"; then
7071   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080     ac_cv_prog_ac_ct_AR="$ac_prog"
7081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7091 if test -n "$ac_ct_AR"; then
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7093 $as_echo "$ac_ct_AR" >&6; }
7094 else
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100   test -n "$ac_ct_AR" && break
7101 done
7102
7103   if test "x$ac_ct_AR" = x; then
7104     AR="false"
7105   else
7106     case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112     AR=$ac_ct_AR
7113   fi
7114 fi
7115
7116 : ${AR=ar}
7117 : ${AR_FLAGS=cru}
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7130 $as_echo_n "checking for archiver @FILE support... " >&6; }
7131 if ${lt_cv_ar_at_file+:} false; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   lt_cv_ar_at_file=no
7135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h.  */
7137
7138 int
7139 main ()
7140 {
7141
7142   ;
7143   return 0;
7144 }
7145 _ACEOF
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147   echo conftest.$ac_objext > conftest.lst
7148       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7149       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7150   (eval $lt_ar_try) 2>&5
7151   ac_status=$?
7152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153   test $ac_status = 0; }
7154       if test "$ac_status" -eq 0; then
7155         # Ensure the archiver fails upon bogus file names.
7156         rm -f conftest.$ac_objext libconftest.a
7157         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7158   (eval $lt_ar_try) 2>&5
7159   ac_status=$?
7160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161   test $ac_status = 0; }
7162         if test "$ac_status" -ne 0; then
7163           lt_cv_ar_at_file=@
7164         fi
7165       fi
7166       rm -f conftest.* libconftest.a
7167
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170
7171 fi
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7173 $as_echo "$lt_cv_ar_at_file" >&6; }
7174
7175 if test "x$lt_cv_ar_at_file" = xno; then
7176   archiver_list_spec=
7177 else
7178   archiver_list_spec=$lt_cv_ar_at_file
7179 fi
7180
7181
7182
7183
7184
7185
7186
7187 if test -n "$ac_tool_prefix"; then
7188   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}strip; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_STRIP+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$STRIP"; then
7196   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 STRIP=$ac_cv_prog_STRIP
7216 if test -n "$STRIP"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7218 $as_echo "$STRIP" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_STRIP"; then
7227   ac_ct_STRIP=$STRIP
7228   # Extract the first word of "strip", so it can be a program name with args.
7229 set dummy strip; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$ac_ct_STRIP"; then
7236   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243     for ac_exec_ext in '' $ac_executable_extensions; do
7244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245     ac_cv_prog_ac_ct_STRIP="strip"
7246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250   done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7256 if test -n "$ac_ct_STRIP"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7258 $as_echo "$ac_ct_STRIP" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264   if test "x$ac_ct_STRIP" = x; then
7265     STRIP=":"
7266   else
7267     case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273     STRIP=$ac_ct_STRIP
7274   fi
7275 else
7276   STRIP="$ac_cv_prog_STRIP"
7277 fi
7278
7279 test -z "$STRIP" && STRIP=:
7280
7281
7282
7283
7284
7285
7286 if test -n "$ac_tool_prefix"; then
7287   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_RANLIB+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$RANLIB"; then
7295   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 RANLIB=$ac_cv_prog_RANLIB
7315 if test -n "$RANLIB"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7317 $as_echo "$RANLIB" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_RANLIB"; then
7326   ac_ct_RANLIB=$RANLIB
7327   # Extract the first word of "ranlib", so it can be a program name with args.
7328 set dummy ranlib; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   if test -n "$ac_ct_RANLIB"; then
7335   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344     ac_cv_prog_ac_ct_RANLIB="ranlib"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7355 if test -n "$ac_ct_RANLIB"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7357 $as_echo "$ac_ct_RANLIB" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363   if test "x$ac_ct_RANLIB" = x; then
7364     RANLIB=":"
7365   else
7366     case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372     RANLIB=$ac_ct_RANLIB
7373   fi
7374 else
7375   RANLIB="$ac_cv_prog_RANLIB"
7376 fi
7377
7378 test -z "$RANLIB" && RANLIB=:
7379
7380
7381
7382
7383
7384
7385 # Determine commands to create old-style static archives.
7386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7387 old_postinstall_cmds='chmod 644 $oldlib'
7388 old_postuninstall_cmds=
7389
7390 if test -n "$RANLIB"; then
7391   case $host_os in
7392   openbsd*)
7393     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7394     ;;
7395   *)
7396     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7397     ;;
7398   esac
7399   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7400 fi
7401
7402 case $host_os in
7403   darwin*)
7404     lock_old_archive_extraction=yes ;;
7405   *)
7406     lock_old_archive_extraction=no ;;
7407 esac
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447 # If no C compiler was specified, use CC.
7448 LTCC=${LTCC-"$CC"}
7449
7450 # If no C compiler flags were specified, use CFLAGS.
7451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7452
7453 # Allow CC to be a program name with arguments.
7454 compiler=$CC
7455
7456
7457 # Check for command to grab the raw symbol name followed by C symbol from nm.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7459 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7460 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463
7464 # These are sane defaults that work on at least a few old systems.
7465 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7466
7467 # Character class describing NM global symbol codes.
7468 symcode='[BCDEGRST]'
7469
7470 # Regexp to match symbols that can be accessed directly from C.
7471 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7472
7473 # Define system-specific variables.
7474 case $host_os in
7475 aix*)
7476   symcode='[BCDT]'
7477   ;;
7478 cygwin* | mingw* | pw32* | cegcc*)
7479   symcode='[ABCDGISTW]'
7480   ;;
7481 hpux*)
7482   if test "$host_cpu" = ia64; then
7483     symcode='[ABCDEGRST]'
7484   fi
7485   ;;
7486 irix* | nonstopux*)
7487   symcode='[BCDEGRST]'
7488   ;;
7489 osf*)
7490   symcode='[BCDEGQRST]'
7491   ;;
7492 solaris*)
7493   symcode='[BDRT]'
7494   ;;
7495 sco3.2v5*)
7496   symcode='[DT]'
7497   ;;
7498 sysv4.2uw2*)
7499   symcode='[DT]'
7500   ;;
7501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7502   symcode='[ABDT]'
7503   ;;
7504 sysv4)
7505   symcode='[DFNSTU]'
7506   ;;
7507 esac
7508
7509 # If we're using GNU nm, then use its standard symbol codes.
7510 case `$NM -V 2>&1` in
7511 *GNU* | *'with BFD'*)
7512   symcode='[ABCDGIRSTW]' ;;
7513 esac
7514
7515 # Transform an extracted symbol line into a proper C declaration.
7516 # Some systems (esp. on ia64) link data and code symbols differently,
7517 # so use this general approach.
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519
7520 # Transform an extracted symbol line into symbol name and symbol address
7521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7522 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7523
7524 # Handle CRLF in mingw tool chain
7525 opt_cr=
7526 case $build_os in
7527 mingw*)
7528   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7529   ;;
7530 esac
7531
7532 # Try without a prefix underscore, then with it.
7533 for ac_symprfx in "" "_"; do
7534
7535   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7536   symxfrm="\\1 $ac_symprfx\\2 \\2"
7537
7538   # Write the raw and C identifiers.
7539   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7540     # Fake it for dumpbin and say T for any non-static function
7541     # and D for any global variable.
7542     # Also find C++ and __fastcall symbols from MSVC++,
7543     # which start with @ or ?.
7544     lt_cv_sys_global_symbol_pipe="$AWK '"\
7545 "     {last_section=section; section=\$ 3};"\
7546 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7547 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7548 "     \$ 0!~/External *\|/{next};"\
7549 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7550 "     {if(hide[section]) next};"\
7551 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7552 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7553 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7554 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7555 "     ' prfx=^$ac_symprfx"
7556   else
7557     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7558   fi
7559   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7560
7561   # Check to see that the pipe works correctly.
7562   pipe_works=no
7563
7564   rm -f conftest*
7565   cat > conftest.$ac_ext <<_LT_EOF
7566 #ifdef __cplusplus
7567 extern "C" {
7568 #endif
7569 char nm_test_var;
7570 void nm_test_func(void);
7571 void nm_test_func(void){}
7572 #ifdef __cplusplus
7573 }
7574 #endif
7575 int main(){nm_test_var='a';nm_test_func();return(0);}
7576 _LT_EOF
7577
7578   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7579   (eval $ac_compile) 2>&5
7580   ac_status=$?
7581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582   test $ac_status = 0; }; then
7583     # Now try to grab the symbols.
7584     nlist=conftest.nm
7585     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7586   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7587   ac_status=$?
7588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589   test $ac_status = 0; } && test -s "$nlist"; then
7590       # Try sorting and uniquifying the output.
7591       if sort "$nlist" | uniq > "$nlist"T; then
7592         mv -f "$nlist"T "$nlist"
7593       else
7594         rm -f "$nlist"T
7595       fi
7596
7597       # Make sure that we snagged all the symbols we need.
7598       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7599         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7600           cat <<_LT_EOF > conftest.$ac_ext
7601 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7602 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7603 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7604    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7605 # define LT_DLSYM_CONST
7606 #elif defined(__osf__)
7607 /* This system does not cope well with relocations in const data.  */
7608 # define LT_DLSYM_CONST
7609 #else
7610 # define LT_DLSYM_CONST const
7611 #endif
7612
7613 #ifdef __cplusplus
7614 extern "C" {
7615 #endif
7616
7617 _LT_EOF
7618           # Now generate the symbol file.
7619           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7620
7621           cat <<_LT_EOF >> conftest.$ac_ext
7622
7623 /* The mapping between symbol names and symbols.  */
7624 LT_DLSYM_CONST struct {
7625   const char *name;
7626   void       *address;
7627 }
7628 lt__PROGRAM__LTX_preloaded_symbols[] =
7629 {
7630   { "@PROGRAM@", (void *) 0 },
7631 _LT_EOF
7632           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7633           cat <<\_LT_EOF >> conftest.$ac_ext
7634   {0, (void *) 0}
7635 };
7636
7637 /* This works around a problem in FreeBSD linker */
7638 #ifdef FREEBSD_WORKAROUND
7639 static const void *lt_preloaded_setup() {
7640   return lt__PROGRAM__LTX_preloaded_symbols;
7641 }
7642 #endif
7643
7644 #ifdef __cplusplus
7645 }
7646 #endif
7647 _LT_EOF
7648           # Now try linking the two files.
7649           mv conftest.$ac_objext conftstm.$ac_objext
7650           lt_globsym_save_LIBS=$LIBS
7651           lt_globsym_save_CFLAGS=$CFLAGS
7652           LIBS="conftstm.$ac_objext"
7653           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7654           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7655   (eval $ac_link) 2>&5
7656   ac_status=$?
7657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7659             pipe_works=yes
7660           fi
7661           LIBS=$lt_globsym_save_LIBS
7662           CFLAGS=$lt_globsym_save_CFLAGS
7663         else
7664           echo "cannot find nm_test_func in $nlist" >&5
7665         fi
7666       else
7667         echo "cannot find nm_test_var in $nlist" >&5
7668       fi
7669     else
7670       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7671     fi
7672   else
7673     echo "$progname: failed program was:" >&5
7674     cat conftest.$ac_ext >&5
7675   fi
7676   rm -rf conftest* conftst*
7677
7678   # Do not use the global_symbol_pipe unless it works.
7679   if test "$pipe_works" = yes; then
7680     break
7681   else
7682     lt_cv_sys_global_symbol_pipe=
7683   fi
7684 done
7685
7686 fi
7687
7688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7689   lt_cv_sys_global_symbol_to_cdecl=
7690 fi
7691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7693 $as_echo "failed" >&6; }
7694 else
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7696 $as_echo "ok" >&6; }
7697 fi
7698
7699 # Response file support.
7700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7701   nm_file_list_spec='@'
7702 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7703   nm_file_list_spec='@'
7704 fi
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7733 $as_echo_n "checking for sysroot... " >&6; }
7734
7735 # Check whether --with-sysroot was given.
7736 if test "${with_sysroot+set}" = set; then :
7737   withval=$with_sysroot;
7738 else
7739   with_sysroot=no
7740 fi
7741
7742
7743 lt_sysroot=
7744 case ${with_sysroot} in #(
7745  yes)
7746    if test "$GCC" = yes; then
7747      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7748    fi
7749    ;; #(
7750  /*)
7751    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7752    ;; #(
7753  no|'')
7754    ;; #(
7755  *)
7756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7757 $as_echo "${with_sysroot}" >&6; }
7758    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7759    ;;
7760 esac
7761
7762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7763 $as_echo "${lt_sysroot:-no}" >&6; }
7764
7765
7766
7767
7768
7769 # Check whether --enable-libtool-lock was given.
7770 if test "${enable_libtool_lock+set}" = set; then :
7771   enableval=$enable_libtool_lock;
7772 fi
7773
7774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7775
7776 # Some flags need to be propagated to the compiler or linker for good
7777 # libtool support.
7778 case $host in
7779 ia64-*-hpux*)
7780   # Find out which ABI we are using.
7781   echo 'int i;' > conftest.$ac_ext
7782   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7783   (eval $ac_compile) 2>&5
7784   ac_status=$?
7785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786   test $ac_status = 0; }; then
7787     case `/usr/bin/file conftest.$ac_objext` in
7788       *ELF-32*)
7789         HPUX_IA64_MODE="32"
7790         ;;
7791       *ELF-64*)
7792         HPUX_IA64_MODE="64"
7793         ;;
7794     esac
7795   fi
7796   rm -rf conftest*
7797   ;;
7798 *-*-irix6*)
7799   # Find out which ABI we are using.
7800   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802   (eval $ac_compile) 2>&5
7803   ac_status=$?
7804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805   test $ac_status = 0; }; then
7806     if test "$lt_cv_prog_gnu_ld" = yes; then
7807       case `/usr/bin/file conftest.$ac_objext` in
7808         *32-bit*)
7809           LD="${LD-ld} -melf32bsmip"
7810           ;;
7811         *N32*)
7812           LD="${LD-ld} -melf32bmipn32"
7813           ;;
7814         *64-bit*)
7815           LD="${LD-ld} -melf64bmip"
7816         ;;
7817       esac
7818     else
7819       case `/usr/bin/file conftest.$ac_objext` in
7820         *32-bit*)
7821           LD="${LD-ld} -32"
7822           ;;
7823         *N32*)
7824           LD="${LD-ld} -n32"
7825           ;;
7826         *64-bit*)
7827           LD="${LD-ld} -64"
7828           ;;
7829       esac
7830     fi
7831   fi
7832   rm -rf conftest*
7833   ;;
7834
7835 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7836 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7837   # Find out which ABI we are using.
7838   echo 'int i;' > conftest.$ac_ext
7839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7840   (eval $ac_compile) 2>&5
7841   ac_status=$?
7842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843   test $ac_status = 0; }; then
7844     case `/usr/bin/file conftest.o` in
7845       *32-bit*)
7846         case $host in
7847           x86_64-*kfreebsd*-gnu)
7848             LD="${LD-ld} -m elf_i386_fbsd"
7849             ;;
7850           x86_64-*linux*)
7851             case `/usr/bin/file conftest.o` in
7852               *x86-64*)
7853                 LD="${LD-ld} -m elf32_x86_64"
7854                 ;;
7855               *)
7856                 LD="${LD-ld} -m elf_i386"
7857                 ;;
7858             esac
7859             ;;
7860           powerpc64le-*)
7861             LD="${LD-ld} -m elf32lppclinux"
7862             ;;
7863           powerpc64-*)
7864             LD="${LD-ld} -m elf32ppclinux"
7865             ;;
7866           s390x-*linux*)
7867             LD="${LD-ld} -m elf_s390"
7868             ;;
7869           sparc64-*linux*)
7870             LD="${LD-ld} -m elf32_sparc"
7871             ;;
7872         esac
7873         ;;
7874       *64-bit*)
7875         case $host in
7876           x86_64-*kfreebsd*-gnu)
7877             LD="${LD-ld} -m elf_x86_64_fbsd"
7878             ;;
7879           x86_64-*linux*)
7880             LD="${LD-ld} -m elf_x86_64"
7881             ;;
7882           powerpcle-*)
7883             LD="${LD-ld} -m elf64lppc"
7884             ;;
7885           powerpc-*)
7886             LD="${LD-ld} -m elf64ppc"
7887             ;;
7888           s390*-*linux*|s390*-*tpf*)
7889             LD="${LD-ld} -m elf64_s390"
7890             ;;
7891           sparc*-*linux*)
7892             LD="${LD-ld} -m elf64_sparc"
7893             ;;
7894         esac
7895         ;;
7896     esac
7897   fi
7898   rm -rf conftest*
7899   ;;
7900
7901 *-*-sco3.2v5*)
7902   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7903   SAVE_CFLAGS="$CFLAGS"
7904   CFLAGS="$CFLAGS -belf"
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7906 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7907 if ${lt_cv_cc_needs_belf+:} false; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   ac_ext=c
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h.  */
7918
7919 int
7920 main ()
7921 {
7922
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928   lt_cv_cc_needs_belf=yes
7929 else
7930   lt_cv_cc_needs_belf=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext \
7933     conftest$ac_exeext conftest.$ac_ext
7934      ac_ext=c
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7942 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7943   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7944     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7945     CFLAGS="$SAVE_CFLAGS"
7946   fi
7947   ;;
7948 *-*solaris*)
7949   # Find out which ABI we are using.
7950   echo 'int i;' > conftest.$ac_ext
7951   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7952   (eval $ac_compile) 2>&5
7953   ac_status=$?
7954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955   test $ac_status = 0; }; then
7956     case `/usr/bin/file conftest.o` in
7957     *64-bit*)
7958       case $lt_cv_prog_gnu_ld in
7959       yes*)
7960         case $host in
7961         i?86-*-solaris*)
7962           LD="${LD-ld} -m elf_x86_64"
7963           ;;
7964         sparc*-*-solaris*)
7965           LD="${LD-ld} -m elf64_sparc"
7966           ;;
7967         esac
7968         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7969         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7970           LD="${LD-ld}_sol2"
7971         fi
7972         ;;
7973       *)
7974         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7975           LD="${LD-ld} -64"
7976         fi
7977         ;;
7978       esac
7979       ;;
7980     esac
7981   fi
7982   rm -rf conftest*
7983   ;;
7984 esac
7985
7986 need_locks="$enable_libtool_lock"
7987
7988 if test -n "$ac_tool_prefix"; then
7989   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}mt; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7994   $as_echo_n "(cached) " >&6
7995 else
7996   if test -n "$MANIFEST_TOOL"; then
7997   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004     for ac_exec_ext in '' $ac_executable_extensions; do
8005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011   done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8017 if test -n "$MANIFEST_TOOL"; then
8018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8019 $as_echo "$MANIFEST_TOOL" >&6; }
8020 else
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025
8026 fi
8027 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8028   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8029   # Extract the first word of "mt", so it can be a program name with args.
8030 set dummy mt; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   if test -n "$ac_ct_MANIFEST_TOOL"; then
8037   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044     for ac_exec_ext in '' $ac_executable_extensions; do
8045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051   done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8057 if test -n "$ac_ct_MANIFEST_TOOL"; then
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8059 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8060 else
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8066     MANIFEST_TOOL=":"
8067   else
8068     case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8075   fi
8076 else
8077   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8078 fi
8079
8080 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8082 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8083 if ${lt_cv_path_mainfest_tool+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   lt_cv_path_mainfest_tool=no
8087   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8088   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8089   cat conftest.err >&5
8090   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8091     lt_cv_path_mainfest_tool=yes
8092   fi
8093   rm -f conftest*
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8096 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8097 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8098   MANIFEST_TOOL=:
8099 fi
8100
8101
8102
8103
8104
8105
8106   case $host_os in
8107     rhapsody* | darwin*)
8108     if test -n "$ac_tool_prefix"; then
8109   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8110 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   if test -n "$DSYMUTIL"; then
8117   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122   IFS=$as_save_IFS
8123   test -z "$as_dir" && as_dir=.
8124     for ac_exec_ext in '' $ac_executable_extensions; do
8125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128     break 2
8129   fi
8130 done
8131   done
8132 IFS=$as_save_IFS
8133
8134 fi
8135 fi
8136 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8137 if test -n "$DSYMUTIL"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8139 $as_echo "$DSYMUTIL" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145
8146 fi
8147 if test -z "$ac_cv_prog_DSYMUTIL"; then
8148   ac_ct_DSYMUTIL=$DSYMUTIL
8149   # Extract the first word of "dsymutil", so it can be a program name with args.
8150 set dummy dsymutil; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   if test -n "$ac_ct_DSYMUTIL"; then
8157   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164     for ac_exec_ext in '' $ac_executable_extensions; do
8165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171   done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8177 if test -n "$ac_ct_DSYMUTIL"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8179 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185   if test "x$ac_ct_DSYMUTIL" = x; then
8186     DSYMUTIL=":"
8187   else
8188     case $cross_compiling:$ac_tool_warned in
8189 yes:)
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8192 ac_tool_warned=yes ;;
8193 esac
8194     DSYMUTIL=$ac_ct_DSYMUTIL
8195   fi
8196 else
8197   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8198 fi
8199
8200     if test -n "$ac_tool_prefix"; then
8201   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8202 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_prog_NMEDIT+:} false; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   if test -n "$NMEDIT"; then
8209   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214   IFS=$as_save_IFS
8215   test -z "$as_dir" && as_dir=.
8216     for ac_exec_ext in '' $ac_executable_extensions; do
8217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220     break 2
8221   fi
8222 done
8223   done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 NMEDIT=$ac_cv_prog_NMEDIT
8229 if test -n "$NMEDIT"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8231 $as_echo "$NMEDIT" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237
8238 fi
8239 if test -z "$ac_cv_prog_NMEDIT"; then
8240   ac_ct_NMEDIT=$NMEDIT
8241   # Extract the first word of "nmedit", so it can be a program name with args.
8242 set dummy nmedit; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   if test -n "$ac_ct_NMEDIT"; then
8249   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256     for ac_exec_ext in '' $ac_executable_extensions; do
8257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263   done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8269 if test -n "$ac_ct_NMEDIT"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8271 $as_echo "$ac_ct_NMEDIT" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277   if test "x$ac_ct_NMEDIT" = x; then
8278     NMEDIT=":"
8279   else
8280     case $cross_compiling:$ac_tool_warned in
8281 yes:)
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284 ac_tool_warned=yes ;;
8285 esac
8286     NMEDIT=$ac_ct_NMEDIT
8287   fi
8288 else
8289   NMEDIT="$ac_cv_prog_NMEDIT"
8290 fi
8291
8292     if test -n "$ac_tool_prefix"; then
8293   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_LIPO+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   if test -n "$LIPO"; then
8301   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308     for ac_exec_ext in '' $ac_executable_extensions; do
8309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315   done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 LIPO=$ac_cv_prog_LIPO
8321 if test -n "$LIPO"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8323 $as_echo "$LIPO" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330 fi
8331 if test -z "$ac_cv_prog_LIPO"; then
8332   ac_ct_LIPO=$LIPO
8333   # Extract the first word of "lipo", so it can be a program name with args.
8334 set dummy lipo; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$ac_ct_LIPO"; then
8341   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348     for ac_exec_ext in '' $ac_executable_extensions; do
8349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350     ac_cv_prog_ac_ct_LIPO="lipo"
8351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355   done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8361 if test -n "$ac_ct_LIPO"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8363 $as_echo "$ac_ct_LIPO" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369   if test "x$ac_ct_LIPO" = x; then
8370     LIPO=":"
8371   else
8372     case $cross_compiling:$ac_tool_warned in
8373 yes:)
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376 ac_tool_warned=yes ;;
8377 esac
8378     LIPO=$ac_ct_LIPO
8379   fi
8380 else
8381   LIPO="$ac_cv_prog_LIPO"
8382 fi
8383
8384     if test -n "$ac_tool_prefix"; then
8385   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8386 set dummy ${ac_tool_prefix}otool; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_OTOOL+:} false; then :
8390   $as_echo_n "(cached) " >&6
8391 else
8392   if test -n "$OTOOL"; then
8393   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400     for ac_exec_ext in '' $ac_executable_extensions; do
8401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407   done
8408 IFS=$as_save_IFS
8409
8410 fi
8411 fi
8412 OTOOL=$ac_cv_prog_OTOOL
8413 if test -n "$OTOOL"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8415 $as_echo "$OTOOL" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422 fi
8423 if test -z "$ac_cv_prog_OTOOL"; then
8424   ac_ct_OTOOL=$OTOOL
8425   # Extract the first word of "otool", so it can be a program name with args.
8426 set dummy otool; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   if test -n "$ac_ct_OTOOL"; then
8433   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440     for ac_exec_ext in '' $ac_executable_extensions; do
8441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442     ac_cv_prog_ac_ct_OTOOL="otool"
8443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447   done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8453 if test -n "$ac_ct_OTOOL"; then
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8455 $as_echo "$ac_ct_OTOOL" >&6; }
8456 else
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461   if test "x$ac_ct_OTOOL" = x; then
8462     OTOOL=":"
8463   else
8464     case $cross_compiling:$ac_tool_warned in
8465 yes:)
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8469 esac
8470     OTOOL=$ac_ct_OTOOL
8471   fi
8472 else
8473   OTOOL="$ac_cv_prog_OTOOL"
8474 fi
8475
8476     if test -n "$ac_tool_prefix"; then
8477   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8478 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_prog_OTOOL64+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   if test -n "$OTOOL64"; then
8485   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490   IFS=$as_save_IFS
8491   test -z "$as_dir" && as_dir=.
8492     for ac_exec_ext in '' $ac_executable_extensions; do
8493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496     break 2
8497   fi
8498 done
8499   done
8500 IFS=$as_save_IFS
8501
8502 fi
8503 fi
8504 OTOOL64=$ac_cv_prog_OTOOL64
8505 if test -n "$OTOOL64"; then
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8507 $as_echo "$OTOOL64" >&6; }
8508 else
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513
8514 fi
8515 if test -z "$ac_cv_prog_OTOOL64"; then
8516   ac_ct_OTOOL64=$OTOOL64
8517   # Extract the first word of "otool64", so it can be a program name with args.
8518 set dummy otool64; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8522   $as_echo_n "(cached) " >&6
8523 else
8524   if test -n "$ac_ct_OTOOL64"; then
8525   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530   IFS=$as_save_IFS
8531   test -z "$as_dir" && as_dir=.
8532     for ac_exec_ext in '' $ac_executable_extensions; do
8533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534     ac_cv_prog_ac_ct_OTOOL64="otool64"
8535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536     break 2
8537   fi
8538 done
8539   done
8540 IFS=$as_save_IFS
8541
8542 fi
8543 fi
8544 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8545 if test -n "$ac_ct_OTOOL64"; then
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8547 $as_echo "$ac_ct_OTOOL64" >&6; }
8548 else
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553   if test "x$ac_ct_OTOOL64" = x; then
8554     OTOOL64=":"
8555   else
8556     case $cross_compiling:$ac_tool_warned in
8557 yes:)
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560 ac_tool_warned=yes ;;
8561 esac
8562     OTOOL64=$ac_ct_OTOOL64
8563   fi
8564 else
8565   OTOOL64="$ac_cv_prog_OTOOL64"
8566 fi
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8595 $as_echo_n "checking for -single_module linker flag... " >&6; }
8596 if ${lt_cv_apple_cc_single_mod+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   lt_cv_apple_cc_single_mod=no
8600       if test -z "${LT_MULTI_MODULE}"; then
8601         # By default we will add the -single_module flag. You can override
8602         # by either setting the environment variable LT_MULTI_MODULE
8603         # non-empty at configure time, or by adding -multi_module to the
8604         # link flags.
8605         rm -rf libconftest.dylib*
8606         echo "int foo(void){return 1;}" > conftest.c
8607         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8608 -dynamiclib -Wl,-single_module conftest.c" >&5
8609         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8610           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8611         _lt_result=$?
8612         # If there is a non-empty error log, and "single_module"
8613         # appears in it, assume the flag caused a linker warning
8614         if test -s conftest.err && $GREP single_module conftest.err; then
8615           cat conftest.err >&5
8616         # Otherwise, if the output was created with a 0 exit code from
8617         # the compiler, it worked.
8618         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8619           lt_cv_apple_cc_single_mod=yes
8620         else
8621           cat conftest.err >&5
8622         fi
8623         rm -rf libconftest.dylib*
8624         rm -f conftest.*
8625       fi
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8628 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8629
8630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8631 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8632 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8633   $as_echo_n "(cached) " >&6
8634 else
8635   lt_cv_ld_exported_symbols_list=no
8636       save_LDFLAGS=$LDFLAGS
8637       echo "_main" > conftest.sym
8638       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8639       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h.  */
8641
8642 int
8643 main ()
8644 {
8645
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 if ac_fn_c_try_link "$LINENO"; then :
8651   lt_cv_ld_exported_symbols_list=yes
8652 else
8653   lt_cv_ld_exported_symbols_list=no
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext \
8656     conftest$ac_exeext conftest.$ac_ext
8657         LDFLAGS="$save_LDFLAGS"
8658
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8661 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8662
8663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8664 $as_echo_n "checking for -force_load linker flag... " >&6; }
8665 if ${lt_cv_ld_force_load+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   lt_cv_ld_force_load=no
8669       cat > conftest.c << _LT_EOF
8670 int forced_loaded() { return 2;}
8671 _LT_EOF
8672       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8673       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8674       echo "$AR cru libconftest.a conftest.o" >&5
8675       $AR cru libconftest.a conftest.o 2>&5
8676       echo "$RANLIB libconftest.a" >&5
8677       $RANLIB libconftest.a 2>&5
8678       cat > conftest.c << _LT_EOF
8679 int main() { return 0;}
8680 _LT_EOF
8681       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8682       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8683       _lt_result=$?
8684       if test -s conftest.err && $GREP force_load conftest.err; then
8685         cat conftest.err >&5
8686       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8687         lt_cv_ld_force_load=yes
8688       else
8689         cat conftest.err >&5
8690       fi
8691         rm -f conftest.err libconftest.a conftest conftest.c
8692         rm -rf conftest.dSYM
8693
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8696 $as_echo "$lt_cv_ld_force_load" >&6; }
8697     case $host_os in
8698     rhapsody* | darwin1.[012])
8699       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8700     darwin1.*)
8701       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8702     darwin*) # darwin 5.x on
8703       # if running on 10.5 or later, the deployment target defaults
8704       # to the OS version, if on x86, and 10.4, the deployment
8705       # target defaults to 10.4. Don't you love it?
8706       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8707         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8708           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8709         10.[012]*)
8710           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8711         10.*)
8712           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8713       esac
8714     ;;
8715   esac
8716     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8717       _lt_dar_single_mod='$single_module'
8718     fi
8719     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8720       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8721     else
8722       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8723     fi
8724     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8725       _lt_dsymutil='~$DSYMUTIL $lib || :'
8726     else
8727       _lt_dsymutil=
8728     fi
8729     ;;
8730   esac
8731
8732 for ac_header in dlfcn.h
8733 do :
8734   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8735 "
8736 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8737   cat >>confdefs.h <<_ACEOF
8738 #define HAVE_DLFCN_H 1
8739 _ACEOF
8740
8741 fi
8742
8743 done
8744
8745
8746
8747
8748
8749 # Set options
8750
8751
8752
8753         enable_dlopen=no
8754
8755
8756   enable_win32_dll=no
8757
8758
8759             # Check whether --enable-shared was given.
8760 if test "${enable_shared+set}" = set; then :
8761   enableval=$enable_shared; p=${PACKAGE-default}
8762     case $enableval in
8763     yes) enable_shared=yes ;;
8764     no) enable_shared=no ;;
8765     *)
8766       enable_shared=no
8767       # Look at the argument we got.  We use all the common list separators.
8768       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8769       for pkg in $enableval; do
8770         IFS="$lt_save_ifs"
8771         if test "X$pkg" = "X$p"; then
8772           enable_shared=yes
8773         fi
8774       done
8775       IFS="$lt_save_ifs"
8776       ;;
8777     esac
8778 else
8779   enable_shared=yes
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792 # Check whether --with-pic was given.
8793 if test "${with_pic+set}" = set; then :
8794   withval=$with_pic; lt_p=${PACKAGE-default}
8795     case $withval in
8796     yes|no) pic_mode=$withval ;;
8797     *)
8798       pic_mode=default
8799       # Look at the argument we got.  We use all the common list separators.
8800       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8801       for lt_pkg in $withval; do
8802         IFS="$lt_save_ifs"
8803         if test "X$lt_pkg" = "X$lt_p"; then
8804           pic_mode=yes
8805         fi
8806       done
8807       IFS="$lt_save_ifs"
8808       ;;
8809     esac
8810 else
8811   pic_mode=default
8812 fi
8813
8814
8815 test -z "$pic_mode" && pic_mode=default
8816
8817
8818
8819
8820
8821
8822
8823   # Check whether --enable-fast-install was given.
8824 if test "${enable_fast_install+set}" = set; then :
8825   enableval=$enable_fast_install; p=${PACKAGE-default}
8826     case $enableval in
8827     yes) enable_fast_install=yes ;;
8828     no) enable_fast_install=no ;;
8829     *)
8830       enable_fast_install=no
8831       # Look at the argument we got.  We use all the common list separators.
8832       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8833       for pkg in $enableval; do
8834         IFS="$lt_save_ifs"
8835         if test "X$pkg" = "X$p"; then
8836           enable_fast_install=yes
8837         fi
8838       done
8839       IFS="$lt_save_ifs"
8840       ;;
8841     esac
8842 else
8843   enable_fast_install=yes
8844 fi
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856 # This can be used to rebuild libtool when needed
8857 LIBTOOL_DEPS="$ltmain"
8858
8859 # Always use our own libtool.
8860 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891 test -z "$LN_S" && LN_S="ln -s"
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906 if test -n "${ZSH_VERSION+set}" ; then
8907    setopt NO_GLOB_SUBST
8908 fi
8909
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8911 $as_echo_n "checking for objdir... " >&6; }
8912 if ${lt_cv_objdir+:} false; then :
8913   $as_echo_n "(cached) " >&6
8914 else
8915   rm -f .libs 2>/dev/null
8916 mkdir .libs 2>/dev/null
8917 if test -d .libs; then
8918   lt_cv_objdir=.libs
8919 else
8920   # MS-DOS does not allow filenames that begin with a dot.
8921   lt_cv_objdir=_libs
8922 fi
8923 rmdir .libs 2>/dev/null
8924 fi
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8926 $as_echo "$lt_cv_objdir" >&6; }
8927 objdir=$lt_cv_objdir
8928
8929
8930
8931
8932
8933 cat >>confdefs.h <<_ACEOF
8934 #define LT_OBJDIR "$lt_cv_objdir/"
8935 _ACEOF
8936
8937
8938
8939
8940 case $host_os in
8941 aix3*)
8942   # AIX sometimes has problems with the GCC collect2 program.  For some
8943   # reason, if we set the COLLECT_NAMES environment variable, the problems
8944   # vanish in a puff of smoke.
8945   if test "X${COLLECT_NAMES+set}" != Xset; then
8946     COLLECT_NAMES=
8947     export COLLECT_NAMES
8948   fi
8949   ;;
8950 esac
8951
8952 # Global variables:
8953 ofile=libtool
8954 can_build_shared=yes
8955
8956 # All known linkers require a `.a' archive for static linking (except MSVC,
8957 # which needs '.lib').
8958 libext=a
8959
8960 with_gnu_ld="$lt_cv_prog_gnu_ld"
8961
8962 old_CC="$CC"
8963 old_CFLAGS="$CFLAGS"
8964
8965 # Set sane defaults for various variables
8966 test -z "$CC" && CC=cc
8967 test -z "$LTCC" && LTCC=$CC
8968 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8969 test -z "$LD" && LD=ld
8970 test -z "$ac_objext" && ac_objext=o
8971
8972 for cc_temp in $compiler""; do
8973   case $cc_temp in
8974     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8975     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8976     \-*) ;;
8977     *) break;;
8978   esac
8979 done
8980 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8981
8982
8983 # Only perform the check for file, if the check method requires it
8984 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8985 case $deplibs_check_method in
8986 file_magic*)
8987   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8989 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8990 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8991   $as_echo_n "(cached) " >&6
8992 else
8993   case $MAGIC_CMD in
8994 [\\/*] |  ?:[\\/]*)
8995   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8996   ;;
8997 *)
8998   lt_save_MAGIC_CMD="$MAGIC_CMD"
8999   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9000   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9001   for ac_dir in $ac_dummy; do
9002     IFS="$lt_save_ifs"
9003     test -z "$ac_dir" && ac_dir=.
9004     if test -f $ac_dir/${ac_tool_prefix}file; then
9005       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9006       if test -n "$file_magic_test_file"; then
9007         case $deplibs_check_method in
9008         "file_magic "*)
9009           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9010           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9011           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9012             $EGREP "$file_magic_regex" > /dev/null; then
9013             :
9014           else
9015             cat <<_LT_EOF 1>&2
9016
9017 *** Warning: the command libtool uses to detect shared libraries,
9018 *** $file_magic_cmd, produces output that libtool cannot recognize.
9019 *** The result is that libtool may fail to recognize shared libraries
9020 *** as such.  This will affect the creation of libtool libraries that
9021 *** depend on shared libraries, but programs linked with such libtool
9022 *** libraries will work regardless of this problem.  Nevertheless, you
9023 *** may want to report the problem to your system manager and/or to
9024 *** bug-libtool@gnu.org
9025
9026 _LT_EOF
9027           fi ;;
9028         esac
9029       fi
9030       break
9031     fi
9032   done
9033   IFS="$lt_save_ifs"
9034   MAGIC_CMD="$lt_save_MAGIC_CMD"
9035   ;;
9036 esac
9037 fi
9038
9039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9040 if test -n "$MAGIC_CMD"; then
9041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9042 $as_echo "$MAGIC_CMD" >&6; }
9043 else
9044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9046 fi
9047
9048
9049
9050
9051
9052 if test -z "$lt_cv_path_MAGIC_CMD"; then
9053   if test -n "$ac_tool_prefix"; then
9054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9055 $as_echo_n "checking for file... " >&6; }
9056 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9057   $as_echo_n "(cached) " >&6
9058 else
9059   case $MAGIC_CMD in
9060 [\\/*] |  ?:[\\/]*)
9061   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9062   ;;
9063 *)
9064   lt_save_MAGIC_CMD="$MAGIC_CMD"
9065   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9066   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9067   for ac_dir in $ac_dummy; do
9068     IFS="$lt_save_ifs"
9069     test -z "$ac_dir" && ac_dir=.
9070     if test -f $ac_dir/file; then
9071       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9072       if test -n "$file_magic_test_file"; then
9073         case $deplibs_check_method in
9074         "file_magic "*)
9075           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9076           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9077           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9078             $EGREP "$file_magic_regex" > /dev/null; then
9079             :
9080           else
9081             cat <<_LT_EOF 1>&2
9082
9083 *** Warning: the command libtool uses to detect shared libraries,
9084 *** $file_magic_cmd, produces output that libtool cannot recognize.
9085 *** The result is that libtool may fail to recognize shared libraries
9086 *** as such.  This will affect the creation of libtool libraries that
9087 *** depend on shared libraries, but programs linked with such libtool
9088 *** libraries will work regardless of this problem.  Nevertheless, you
9089 *** may want to report the problem to your system manager and/or to
9090 *** bug-libtool@gnu.org
9091
9092 _LT_EOF
9093           fi ;;
9094         esac
9095       fi
9096       break
9097     fi
9098   done
9099   IFS="$lt_save_ifs"
9100   MAGIC_CMD="$lt_save_MAGIC_CMD"
9101   ;;
9102 esac
9103 fi
9104
9105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9106 if test -n "$MAGIC_CMD"; then
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9108 $as_echo "$MAGIC_CMD" >&6; }
9109 else
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9112 fi
9113
9114
9115   else
9116     MAGIC_CMD=:
9117   fi
9118 fi
9119
9120   fi
9121   ;;
9122 esac
9123
9124 # Use C for the default configuration in the libtool script
9125
9126 lt_save_CC="$CC"
9127 ac_ext=c
9128 ac_cpp='$CPP $CPPFLAGS'
9129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9132
9133
9134 # Source file extension for C test sources.
9135 ac_ext=c
9136
9137 # Object file extension for compiled C test sources.
9138 objext=o
9139 objext=$objext
9140
9141 # Code to be used in simple compile tests
9142 lt_simple_compile_test_code="int some_variable = 0;"
9143
9144 # Code to be used in simple link tests
9145 lt_simple_link_test_code='int main(){return(0);}'
9146
9147
9148
9149
9150
9151
9152
9153 # If no C compiler was specified, use CC.
9154 LTCC=${LTCC-"$CC"}
9155
9156 # If no C compiler flags were specified, use CFLAGS.
9157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9158
9159 # Allow CC to be a program name with arguments.
9160 compiler=$CC
9161
9162 # Save the default compiler, since it gets overwritten when the other
9163 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9164 compiler_DEFAULT=$CC
9165
9166 # save warnings/boilerplate of simple test code
9167 ac_outfile=conftest.$ac_objext
9168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9170 _lt_compiler_boilerplate=`cat conftest.err`
9171 $RM conftest*
9172
9173 ac_outfile=conftest.$ac_objext
9174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9176 _lt_linker_boilerplate=`cat conftest.err`
9177 $RM -r conftest*
9178
9179
9180 ## CAVEAT EMPTOR:
9181 ## There is no encapsulation within the following macros, do not change
9182 ## the running order or otherwise move them around unless you know exactly
9183 ## what you are doing...
9184 if test -n "$compiler"; then
9185
9186 lt_prog_compiler_no_builtin_flag=
9187
9188 if test "$GCC" = yes; then
9189   case $cc_basename in
9190   nvcc*)
9191     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9192   *)
9193     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9194   esac
9195
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9197 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9198 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9199   $as_echo_n "(cached) " >&6
9200 else
9201   lt_cv_prog_compiler_rtti_exceptions=no
9202    ac_outfile=conftest.$ac_objext
9203    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9204    lt_compiler_flag="-fno-rtti -fno-exceptions"
9205    # Insert the option either (1) after the last *FLAGS variable, or
9206    # (2) before a word containing "conftest.", or (3) at the end.
9207    # Note that $ac_compile itself does not contain backslashes and begins
9208    # with a dollar sign (not a hyphen), so the echo should work correctly.
9209    # The option is referenced via a variable to avoid confusing sed.
9210    lt_compile=`echo "$ac_compile" | $SED \
9211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9213    -e 's:$: $lt_compiler_flag:'`
9214    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9215    (eval "$lt_compile" 2>conftest.err)
9216    ac_status=$?
9217    cat conftest.err >&5
9218    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219    if (exit $ac_status) && test -s "$ac_outfile"; then
9220      # The compiler can only warn and ignore the option if not recognized
9221      # So say no if there are warnings other than the usual output.
9222      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9223      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9224      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9225        lt_cv_prog_compiler_rtti_exceptions=yes
9226      fi
9227    fi
9228    $RM conftest*
9229
9230 fi
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9232 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9233
9234 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9235     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9236 else
9237     :
9238 fi
9239
9240 fi
9241
9242
9243
9244
9245
9246
9247   lt_prog_compiler_wl=
9248 lt_prog_compiler_pic=
9249 lt_prog_compiler_static=
9250
9251
9252   if test "$GCC" = yes; then
9253     lt_prog_compiler_wl='-Wl,'
9254     lt_prog_compiler_static='-static'
9255
9256     case $host_os in
9257       aix*)
9258       # All AIX code is PIC.
9259       if test "$host_cpu" = ia64; then
9260         # AIX 5 now supports IA64 processor
9261         lt_prog_compiler_static='-Bstatic'
9262       fi
9263       ;;
9264
9265     amigaos*)
9266       case $host_cpu in
9267       powerpc)
9268             # see comment about AmigaOS4 .so support
9269             lt_prog_compiler_pic='-fPIC'
9270         ;;
9271       m68k)
9272             # FIXME: we need at least 68020 code to build shared libraries, but
9273             # adding the `-m68020' flag to GCC prevents building anything better,
9274             # like `-m68040'.
9275             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9276         ;;
9277       esac
9278       ;;
9279
9280     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9281       # PIC is the default for these OSes.
9282       ;;
9283
9284     mingw* | cygwin* | pw32* | os2* | cegcc*)
9285       # This hack is so that the source file can tell whether it is being
9286       # built for inclusion in a dll (and should export symbols for example).
9287       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9288       # (--disable-auto-import) libraries
9289       lt_prog_compiler_pic='-DDLL_EXPORT'
9290       ;;
9291
9292     darwin* | rhapsody*)
9293       # PIC is the default on this platform
9294       # Common symbols not allowed in MH_DYLIB files
9295       lt_prog_compiler_pic='-fno-common'
9296       ;;
9297
9298     haiku*)
9299       # PIC is the default for Haiku.
9300       # The "-static" flag exists, but is broken.
9301       lt_prog_compiler_static=
9302       ;;
9303
9304     hpux*)
9305       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9306       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9307       # sets the default TLS model and affects inlining.
9308       case $host_cpu in
9309       hppa*64*)
9310         # +Z the default
9311         ;;
9312       *)
9313         lt_prog_compiler_pic='-fPIC'
9314         ;;
9315       esac
9316       ;;
9317
9318     interix[3-9]*)
9319       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9320       # Instead, we relocate shared libraries at runtime.
9321       ;;
9322
9323     msdosdjgpp*)
9324       # Just because we use GCC doesn't mean we suddenly get shared libraries
9325       # on systems that don't support them.
9326       lt_prog_compiler_can_build_shared=no
9327       enable_shared=no
9328       ;;
9329
9330     *nto* | *qnx*)
9331       # QNX uses GNU C++, but need to define -shared option too, otherwise
9332       # it will coredump.
9333       lt_prog_compiler_pic='-fPIC -shared'
9334       ;;
9335
9336     sysv4*MP*)
9337       if test -d /usr/nec; then
9338         lt_prog_compiler_pic=-Kconform_pic
9339       fi
9340       ;;
9341
9342     *)
9343       lt_prog_compiler_pic='-fPIC'
9344       ;;
9345     esac
9346
9347     case $cc_basename in
9348     nvcc*) # Cuda Compiler Driver 2.2
9349       lt_prog_compiler_wl='-Xlinker '
9350       if test -n "$lt_prog_compiler_pic"; then
9351         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9352       fi
9353       ;;
9354     esac
9355   else
9356     # PORTME Check for flag to pass linker flags through the system compiler.
9357     case $host_os in
9358     aix*)
9359       lt_prog_compiler_wl='-Wl,'
9360       if test "$host_cpu" = ia64; then
9361         # AIX 5 now supports IA64 processor
9362         lt_prog_compiler_static='-Bstatic'
9363       else
9364         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9365       fi
9366       ;;
9367
9368     mingw* | cygwin* | pw32* | os2* | cegcc*)
9369       # This hack is so that the source file can tell whether it is being
9370       # built for inclusion in a dll (and should export symbols for example).
9371       lt_prog_compiler_pic='-DDLL_EXPORT'
9372       ;;
9373
9374     hpux9* | hpux10* | hpux11*)
9375       lt_prog_compiler_wl='-Wl,'
9376       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9377       # not for PA HP-UX.
9378       case $host_cpu in
9379       hppa*64*|ia64*)
9380         # +Z the default
9381         ;;
9382       *)
9383         lt_prog_compiler_pic='+Z'
9384         ;;
9385       esac
9386       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9387       lt_prog_compiler_static='${wl}-a ${wl}archive'
9388       ;;
9389
9390     irix5* | irix6* | nonstopux*)
9391       lt_prog_compiler_wl='-Wl,'
9392       # PIC (with -KPIC) is the default.
9393       lt_prog_compiler_static='-non_shared'
9394       ;;
9395
9396     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9397       case $cc_basename in
9398       # old Intel for x86_64 which still supported -KPIC.
9399       ecc*)
9400         lt_prog_compiler_wl='-Wl,'
9401         lt_prog_compiler_pic='-KPIC'
9402         lt_prog_compiler_static='-static'
9403         ;;
9404       # icc used to be incompatible with GCC.
9405       # ICC 10 doesn't accept -KPIC any more.
9406       icc* | ifort*)
9407         lt_prog_compiler_wl='-Wl,'
9408         lt_prog_compiler_pic='-fPIC'
9409         lt_prog_compiler_static='-static'
9410         ;;
9411       # Lahey Fortran 8.1.
9412       lf95*)
9413         lt_prog_compiler_wl='-Wl,'
9414         lt_prog_compiler_pic='--shared'
9415         lt_prog_compiler_static='--static'
9416         ;;
9417       nagfor*)
9418         # NAG Fortran compiler
9419         lt_prog_compiler_wl='-Wl,-Wl,,'
9420         lt_prog_compiler_pic='-PIC'
9421         lt_prog_compiler_static='-Bstatic'
9422         ;;
9423       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9424         # Portland Group compilers (*not* the Pentium gcc compiler,
9425         # which looks to be a dead project)
9426         lt_prog_compiler_wl='-Wl,'
9427         lt_prog_compiler_pic='-fpic'
9428         lt_prog_compiler_static='-Bstatic'
9429         ;;
9430       ccc*)
9431         lt_prog_compiler_wl='-Wl,'
9432         # All Alpha code is PIC.
9433         lt_prog_compiler_static='-non_shared'
9434         ;;
9435       xl* | bgxl* | bgf* | mpixl*)
9436         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9437         lt_prog_compiler_wl='-Wl,'
9438         lt_prog_compiler_pic='-qpic'
9439         lt_prog_compiler_static='-qstaticlink'
9440         ;;
9441       *)
9442         case `$CC -V 2>&1 | sed 5q` in
9443         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9444           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9445           lt_prog_compiler_pic='-KPIC'
9446           lt_prog_compiler_static='-Bstatic'
9447           lt_prog_compiler_wl=''
9448           ;;
9449         *Sun\ F* | *Sun*Fortran*)
9450           lt_prog_compiler_pic='-KPIC'
9451           lt_prog_compiler_static='-Bstatic'
9452           lt_prog_compiler_wl='-Qoption ld '
9453           ;;
9454         *Sun\ C*)
9455           # Sun C 5.9
9456           lt_prog_compiler_pic='-KPIC'
9457           lt_prog_compiler_static='-Bstatic'
9458           lt_prog_compiler_wl='-Wl,'
9459           ;;
9460         *Intel*\ [CF]*Compiler*)
9461           lt_prog_compiler_wl='-Wl,'
9462           lt_prog_compiler_pic='-fPIC'
9463           lt_prog_compiler_static='-static'
9464           ;;
9465         *Portland\ Group*)
9466           lt_prog_compiler_wl='-Wl,'
9467           lt_prog_compiler_pic='-fpic'
9468           lt_prog_compiler_static='-Bstatic'
9469           ;;
9470         esac
9471         ;;
9472       esac
9473       ;;
9474
9475     newsos6)
9476       lt_prog_compiler_pic='-KPIC'
9477       lt_prog_compiler_static='-Bstatic'
9478       ;;
9479
9480     *nto* | *qnx*)
9481       # QNX uses GNU C++, but need to define -shared option too, otherwise
9482       # it will coredump.
9483       lt_prog_compiler_pic='-fPIC -shared'
9484       ;;
9485
9486     osf3* | osf4* | osf5*)
9487       lt_prog_compiler_wl='-Wl,'
9488       # All OSF/1 code is PIC.
9489       lt_prog_compiler_static='-non_shared'
9490       ;;
9491
9492     rdos*)
9493       lt_prog_compiler_static='-non_shared'
9494       ;;
9495
9496     solaris*)
9497       lt_prog_compiler_pic='-KPIC'
9498       lt_prog_compiler_static='-Bstatic'
9499       case $cc_basename in
9500       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9501         lt_prog_compiler_wl='-Qoption ld ';;
9502       *)
9503         lt_prog_compiler_wl='-Wl,';;
9504       esac
9505       ;;
9506
9507     sunos4*)
9508       lt_prog_compiler_wl='-Qoption ld '
9509       lt_prog_compiler_pic='-PIC'
9510       lt_prog_compiler_static='-Bstatic'
9511       ;;
9512
9513     sysv4 | sysv4.2uw2* | sysv4.3*)
9514       lt_prog_compiler_wl='-Wl,'
9515       lt_prog_compiler_pic='-KPIC'
9516       lt_prog_compiler_static='-Bstatic'
9517       ;;
9518
9519     sysv4*MP*)
9520       if test -d /usr/nec ;then
9521         lt_prog_compiler_pic='-Kconform_pic'
9522         lt_prog_compiler_static='-Bstatic'
9523       fi
9524       ;;
9525
9526     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9527       lt_prog_compiler_wl='-Wl,'
9528       lt_prog_compiler_pic='-KPIC'
9529       lt_prog_compiler_static='-Bstatic'
9530       ;;
9531
9532     unicos*)
9533       lt_prog_compiler_wl='-Wl,'
9534       lt_prog_compiler_can_build_shared=no
9535       ;;
9536
9537     uts4*)
9538       lt_prog_compiler_pic='-pic'
9539       lt_prog_compiler_static='-Bstatic'
9540       ;;
9541
9542     *)
9543       lt_prog_compiler_can_build_shared=no
9544       ;;
9545     esac
9546   fi
9547
9548 case $host_os in
9549   # For platforms which do not support PIC, -DPIC is meaningless:
9550   *djgpp*)
9551     lt_prog_compiler_pic=
9552     ;;
9553   *)
9554     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9555     ;;
9556 esac
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9559 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9560 if ${lt_cv_prog_compiler_pic+:} false; then :
9561   $as_echo_n "(cached) " >&6
9562 else
9563   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9566 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9567 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9568
9569 #
9570 # Check to make sure the PIC flag actually works.
9571 #
9572 if test -n "$lt_prog_compiler_pic"; then
9573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9574 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9575 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9576   $as_echo_n "(cached) " >&6
9577 else
9578   lt_cv_prog_compiler_pic_works=no
9579    ac_outfile=conftest.$ac_objext
9580    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9581    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9582    # Insert the option either (1) after the last *FLAGS variable, or
9583    # (2) before a word containing "conftest.", or (3) at the end.
9584    # Note that $ac_compile itself does not contain backslashes and begins
9585    # with a dollar sign (not a hyphen), so the echo should work correctly.
9586    # The option is referenced via a variable to avoid confusing sed.
9587    lt_compile=`echo "$ac_compile" | $SED \
9588    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9590    -e 's:$: $lt_compiler_flag:'`
9591    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9592    (eval "$lt_compile" 2>conftest.err)
9593    ac_status=$?
9594    cat conftest.err >&5
9595    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596    if (exit $ac_status) && test -s "$ac_outfile"; then
9597      # The compiler can only warn and ignore the option if not recognized
9598      # So say no if there are warnings other than the usual output.
9599      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9600      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9601      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9602        lt_cv_prog_compiler_pic_works=yes
9603      fi
9604    fi
9605    $RM conftest*
9606
9607 fi
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9609 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9610
9611 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9612     case $lt_prog_compiler_pic in
9613      "" | " "*) ;;
9614      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9615      esac
9616 else
9617     lt_prog_compiler_pic=
9618      lt_prog_compiler_can_build_shared=no
9619 fi
9620
9621 fi
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633 #
9634 # Check to make sure the static flag actually works.
9635 #
9636 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9639 if ${lt_cv_prog_compiler_static_works+:} false; then :
9640   $as_echo_n "(cached) " >&6
9641 else
9642   lt_cv_prog_compiler_static_works=no
9643    save_LDFLAGS="$LDFLAGS"
9644    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9645    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9646    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9647      # The linker can only warn and ignore the option if not recognized
9648      # So say no if there are warnings
9649      if test -s conftest.err; then
9650        # Append any errors to the config.log.
9651        cat conftest.err 1>&5
9652        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9653        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654        if diff conftest.exp conftest.er2 >/dev/null; then
9655          lt_cv_prog_compiler_static_works=yes
9656        fi
9657      else
9658        lt_cv_prog_compiler_static_works=yes
9659      fi
9660    fi
9661    $RM -r conftest*
9662    LDFLAGS="$save_LDFLAGS"
9663
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9666 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9667
9668 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9669     :
9670 else
9671     lt_prog_compiler_static=
9672 fi
9673
9674
9675
9676
9677
9678
9679
9680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9682 if ${lt_cv_prog_compiler_c_o+:} false; then :
9683   $as_echo_n "(cached) " >&6
9684 else
9685   lt_cv_prog_compiler_c_o=no
9686    $RM -r conftest 2>/dev/null
9687    mkdir conftest
9688    cd conftest
9689    mkdir out
9690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9691
9692    lt_compiler_flag="-o out/conftest2.$ac_objext"
9693    # Insert the option either (1) after the last *FLAGS variable, or
9694    # (2) before a word containing "conftest.", or (3) at the end.
9695    # Note that $ac_compile itself does not contain backslashes and begins
9696    # with a dollar sign (not a hyphen), so the echo should work correctly.
9697    lt_compile=`echo "$ac_compile" | $SED \
9698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9700    -e 's:$: $lt_compiler_flag:'`
9701    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9702    (eval "$lt_compile" 2>out/conftest.err)
9703    ac_status=$?
9704    cat out/conftest.err >&5
9705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9707    then
9708      # The compiler can only warn and ignore the option if not recognized
9709      # So say no if there are warnings
9710      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9711      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9712      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9713        lt_cv_prog_compiler_c_o=yes
9714      fi
9715    fi
9716    chmod u+w . 2>&5
9717    $RM conftest*
9718    # SGI C++ compiler will create directory out/ii_files/ for
9719    # template instantiation
9720    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9721    $RM out/* && rmdir out
9722    cd ..
9723    $RM -r conftest
9724    $RM conftest*
9725
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9728 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9729
9730
9731
9732
9733
9734
9735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9736 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9737 if ${lt_cv_prog_compiler_c_o+:} false; then :
9738   $as_echo_n "(cached) " >&6
9739 else
9740   lt_cv_prog_compiler_c_o=no
9741    $RM -r conftest 2>/dev/null
9742    mkdir conftest
9743    cd conftest
9744    mkdir out
9745    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9746
9747    lt_compiler_flag="-o out/conftest2.$ac_objext"
9748    # Insert the option either (1) after the last *FLAGS variable, or
9749    # (2) before a word containing "conftest.", or (3) at the end.
9750    # Note that $ac_compile itself does not contain backslashes and begins
9751    # with a dollar sign (not a hyphen), so the echo should work correctly.
9752    lt_compile=`echo "$ac_compile" | $SED \
9753    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9754    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9755    -e 's:$: $lt_compiler_flag:'`
9756    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9757    (eval "$lt_compile" 2>out/conftest.err)
9758    ac_status=$?
9759    cat out/conftest.err >&5
9760    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9762    then
9763      # The compiler can only warn and ignore the option if not recognized
9764      # So say no if there are warnings
9765      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9766      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9767      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9768        lt_cv_prog_compiler_c_o=yes
9769      fi
9770    fi
9771    chmod u+w . 2>&5
9772    $RM conftest*
9773    # SGI C++ compiler will create directory out/ii_files/ for
9774    # template instantiation
9775    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9776    $RM out/* && rmdir out
9777    cd ..
9778    $RM -r conftest
9779    $RM conftest*
9780
9781 fi
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9783 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9784
9785
9786
9787
9788 hard_links="nottested"
9789 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9790   # do not overwrite the value of need_locks provided by the user
9791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9792 $as_echo_n "checking if we can lock with hard links... " >&6; }
9793   hard_links=yes
9794   $RM conftest*
9795   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9796   touch conftest.a
9797   ln conftest.a conftest.b 2>&5 || hard_links=no
9798   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9800 $as_echo "$hard_links" >&6; }
9801   if test "$hard_links" = no; then
9802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9803 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9804     need_locks=warn
9805   fi
9806 else
9807   need_locks=no
9808 fi
9809
9810
9811
9812
9813
9814
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9817
9818   runpath_var=
9819   allow_undefined_flag=
9820   always_export_symbols=no
9821   archive_cmds=
9822   archive_expsym_cmds=
9823   compiler_needs_object=no
9824   enable_shared_with_static_runtimes=no
9825   export_dynamic_flag_spec=
9826   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9827   hardcode_automatic=no
9828   hardcode_direct=no
9829   hardcode_direct_absolute=no
9830   hardcode_libdir_flag_spec=
9831   hardcode_libdir_separator=
9832   hardcode_minus_L=no
9833   hardcode_shlibpath_var=unsupported
9834   inherit_rpath=no
9835   link_all_deplibs=unknown
9836   module_cmds=
9837   module_expsym_cmds=
9838   old_archive_from_new_cmds=
9839   old_archive_from_expsyms_cmds=
9840   thread_safe_flag_spec=
9841   whole_archive_flag_spec=
9842   # include_expsyms should be a list of space-separated symbols to be *always*
9843   # included in the symbol list
9844   include_expsyms=
9845   # exclude_expsyms can be an extended regexp of symbols to exclude
9846   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9847   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9848   # as well as any symbol that contains `d'.
9849   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9850   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9851   # platforms (ab)use it in PIC code, but their linkers get confused if
9852   # the symbol is explicitly referenced.  Since portable code cannot
9853   # rely on this symbol name, it's probably fine to never include it in
9854   # preloaded symbol tables.
9855   # Exclude shared library initialization/finalization symbols.
9856   extract_expsyms_cmds=
9857
9858   case $host_os in
9859   cygwin* | mingw* | pw32* | cegcc*)
9860     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9861     # When not using gcc, we currently assume that we are using
9862     # Microsoft Visual C++.
9863     if test "$GCC" != yes; then
9864       with_gnu_ld=no
9865     fi
9866     ;;
9867   interix*)
9868     # we just hope/assume this is gcc and not c89 (= MSVC++)
9869     with_gnu_ld=yes
9870     ;;
9871   openbsd*)
9872     with_gnu_ld=no
9873     ;;
9874   linux* | k*bsd*-gnu | gnu*)
9875     link_all_deplibs=no
9876     ;;
9877   esac
9878
9879   ld_shlibs=yes
9880
9881   # On some targets, GNU ld is compatible enough with the native linker
9882   # that we're better off using the native interface for both.
9883   lt_use_gnu_ld_interface=no
9884   if test "$with_gnu_ld" = yes; then
9885     case $host_os in
9886       aix*)
9887         # The AIX port of GNU ld has always aspired to compatibility
9888         # with the native linker.  However, as the warning in the GNU ld
9889         # block says, versions before 2.19.5* couldn't really create working
9890         # shared libraries, regardless of the interface used.
9891         case `$LD -v 2>&1` in
9892           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9893           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9894           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9895           *)
9896             lt_use_gnu_ld_interface=yes
9897             ;;
9898         esac
9899         ;;
9900       *)
9901         lt_use_gnu_ld_interface=yes
9902         ;;
9903     esac
9904   fi
9905
9906   if test "$lt_use_gnu_ld_interface" = yes; then
9907     # If archive_cmds runs LD, not CC, wlarc should be empty
9908     wlarc='${wl}'
9909
9910     # Set some defaults for GNU ld with shared library support. These
9911     # are reset later if shared libraries are not supported. Putting them
9912     # here allows them to be overridden if necessary.
9913     runpath_var=LD_RUN_PATH
9914     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915     export_dynamic_flag_spec='${wl}--export-dynamic'
9916     # ancient GNU ld didn't support --whole-archive et. al.
9917     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9918       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9919     else
9920       whole_archive_flag_spec=
9921     fi
9922     supports_anon_versioning=no
9923     case `$LD -v 2>&1` in
9924       *GNU\ gold*) supports_anon_versioning=yes ;;
9925       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9926       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9927       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9928       *\ 2.11.*) ;; # other 2.11 versions
9929       *) supports_anon_versioning=yes ;;
9930     esac
9931
9932     # See if GNU ld supports shared libraries.
9933     case $host_os in
9934     aix[3-9]*)
9935       # On AIX/PPC, the GNU linker is very broken
9936       if test "$host_cpu" != ia64; then
9937         ld_shlibs=no
9938         cat <<_LT_EOF 1>&2
9939
9940 *** Warning: the GNU linker, at least up to release 2.19, is reported
9941 *** to be unable to reliably create shared libraries on AIX.
9942 *** Therefore, libtool is disabling shared libraries support.  If you
9943 *** really care for shared libraries, you may want to install binutils
9944 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9945 *** You will then need to restart the configuration process.
9946
9947 _LT_EOF
9948       fi
9949       ;;
9950
9951     amigaos*)
9952       case $host_cpu in
9953       powerpc)
9954             # see comment about AmigaOS4 .so support
9955             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956             archive_expsym_cmds=''
9957         ;;
9958       m68k)
9959             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)'
9960             hardcode_libdir_flag_spec='-L$libdir'
9961             hardcode_minus_L=yes
9962         ;;
9963       esac
9964       ;;
9965
9966     beos*)
9967       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968         allow_undefined_flag=unsupported
9969         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9970         # support --undefined.  This deserves some investigation.  FIXME
9971         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972       else
9973         ld_shlibs=no
9974       fi
9975       ;;
9976
9977     cygwin* | mingw* | pw32* | cegcc*)
9978       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9979       # as there is no search path for DLLs.
9980       hardcode_libdir_flag_spec='-L$libdir'
9981       export_dynamic_flag_spec='${wl}--export-all-symbols'
9982       allow_undefined_flag=unsupported
9983       always_export_symbols=no
9984       enable_shared_with_static_runtimes=yes
9985       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'
9986       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9987
9988       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9989         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9990         # If the export-symbols file already is a .def file (1st line
9991         # is EXPORTS), use it as is; otherwise, prepend...
9992         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9993           cp $export_symbols $output_objdir/$soname.def;
9994         else
9995           echo EXPORTS > $output_objdir/$soname.def;
9996           cat $export_symbols >> $output_objdir/$soname.def;
9997         fi~
9998         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9999       else
10000         ld_shlibs=no
10001       fi
10002       ;;
10003
10004     haiku*)
10005       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006       link_all_deplibs=yes
10007       ;;
10008
10009     interix[3-9]*)
10010       hardcode_direct=no
10011       hardcode_shlibpath_var=no
10012       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10013       export_dynamic_flag_spec='${wl}-E'
10014       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10015       # Instead, shared libraries are loaded at an image base (0x10000000 by
10016       # default) and relocated if they conflict, which is a slow very memory
10017       # consuming and fragmenting process.  To avoid this, we pick a random,
10018       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10019       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10020       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10021       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'
10022       ;;
10023
10024     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10025       tmp_diet=no
10026       if test "$host_os" = linux-dietlibc; then
10027         case $cc_basename in
10028           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10029         esac
10030       fi
10031       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10032          && test "$tmp_diet" = no
10033       then
10034         tmp_addflag=' $pic_flag'
10035         tmp_sharedflag='-shared'
10036         case $cc_basename,$host_cpu in
10037         pgcc*)                          # Portland Group C compiler
10038           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'
10039           tmp_addflag=' $pic_flag'
10040           ;;
10041         pgf77* | pgf90* | pgf95* | pgfortran*)
10042                                         # Portland Group f77 and f90 compilers
10043           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'
10044           tmp_addflag=' $pic_flag -Mnomain' ;;
10045         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10046           tmp_addflag=' -i_dynamic' ;;
10047         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10048           tmp_addflag=' -i_dynamic -nofor_main' ;;
10049         ifc* | ifort*)                  # Intel Fortran compiler
10050           tmp_addflag=' -nofor_main' ;;
10051         lf95*)                          # Lahey Fortran 8.1
10052           whole_archive_flag_spec=
10053           tmp_sharedflag='--shared' ;;
10054         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10055           tmp_sharedflag='-qmkshrobj'
10056           tmp_addflag= ;;
10057         nvcc*)  # Cuda Compiler Driver 2.2
10058           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'
10059           compiler_needs_object=yes
10060           ;;
10061         esac
10062         case `$CC -V 2>&1 | sed 5q` in
10063         *Sun\ C*)                       # Sun C 5.9
10064           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'
10065           compiler_needs_object=yes
10066           tmp_sharedflag='-G' ;;
10067         *Sun\ F*)                       # Sun Fortran 8.3
10068           tmp_sharedflag='-G' ;;
10069         esac
10070         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071
10072         if test "x$supports_anon_versioning" = xyes; then
10073           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10074             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10075             echo "local: *; };" >> $output_objdir/$libname.ver~
10076             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10077         fi
10078
10079         case $cc_basename in
10080         xlf* | bgf* | bgxlf* | mpixlf*)
10081           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10082           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10083           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10085           if test "x$supports_anon_versioning" = xyes; then
10086             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10087               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10088               echo "local: *; };" >> $output_objdir/$libname.ver~
10089               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10090           fi
10091           ;;
10092         esac
10093       else
10094         ld_shlibs=no
10095       fi
10096       ;;
10097
10098     netbsd* | netbsdelf*-gnu)
10099       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10101         wlarc=
10102       else
10103         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105       fi
10106       ;;
10107
10108     solaris*)
10109       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10110         ld_shlibs=no
10111         cat <<_LT_EOF 1>&2
10112
10113 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10114 *** create shared libraries on Solaris systems.  Therefore, libtool
10115 *** is disabling shared libraries support.  We urge you to upgrade GNU
10116 *** binutils to release 2.9.1 or newer.  Another option is to modify
10117 *** your PATH or compiler configuration so that the native linker is
10118 *** used, and then restart.
10119
10120 _LT_EOF
10121       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10124       else
10125         ld_shlibs=no
10126       fi
10127       ;;
10128
10129     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10130       case `$LD -v 2>&1` in
10131         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10132         ld_shlibs=no
10133         cat <<_LT_EOF 1>&2
10134
10135 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10136 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10137 *** is disabling shared libraries support.  We urge you to upgrade GNU
10138 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10139 *** your PATH or compiler configuration so that the native linker is
10140 *** used, and then restart.
10141
10142 _LT_EOF
10143         ;;
10144         *)
10145           # For security reasons, it is highly recommended that you always
10146           # use absolute paths for naming shared libraries, and exclude the
10147           # DT_RUNPATH tag from executables and libraries.  But doing so
10148           # requires that you compile everything twice, which is a pain.
10149           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10150             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153           else
10154             ld_shlibs=no
10155           fi
10156         ;;
10157       esac
10158       ;;
10159
10160     sunos4*)
10161       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10162       wlarc=
10163       hardcode_direct=yes
10164       hardcode_shlibpath_var=no
10165       ;;
10166
10167     *)
10168       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10169         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10170         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10171       else
10172         ld_shlibs=no
10173       fi
10174       ;;
10175     esac
10176
10177     if test "$ld_shlibs" = no; then
10178       runpath_var=
10179       hardcode_libdir_flag_spec=
10180       export_dynamic_flag_spec=
10181       whole_archive_flag_spec=
10182     fi
10183   else
10184     # PORTME fill in a description of your system's linker (not GNU ld)
10185     case $host_os in
10186     aix3*)
10187       allow_undefined_flag=unsupported
10188       always_export_symbols=yes
10189       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'
10190       # Note: this linker hardcodes the directories in LIBPATH if there
10191       # are no directories specified by -L.
10192       hardcode_minus_L=yes
10193       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10194         # Neither direct hardcoding nor static linking is supported with a
10195         # broken collect2.
10196         hardcode_direct=unsupported
10197       fi
10198       ;;
10199
10200     aix[4-9]*)
10201       if test "$host_cpu" = ia64; then
10202         # On IA64, the linker does run time linking by default, so we don't
10203         # have to do anything special.
10204         aix_use_runtimelinking=no
10205         exp_sym_flag='-Bexport'
10206         no_entry_flag=""
10207       else
10208         # If we're using GNU nm, then we don't want the "-C" option.
10209         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10210         # Also, AIX nm treats weak defined symbols like other global
10211         # defined symbols, whereas GNU nm marks them as "W".
10212         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10213           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'
10214         else
10215           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'
10216         fi
10217         aix_use_runtimelinking=no
10218
10219         # Test if we are trying to use run time linking or normal
10220         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10221         # need to do runtime linking.
10222         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10223           for ld_flag in $LDFLAGS; do
10224           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10225             aix_use_runtimelinking=yes
10226             break
10227           fi
10228           done
10229           ;;
10230         esac
10231
10232         exp_sym_flag='-bexport'
10233         no_entry_flag='-bnoentry'
10234       fi
10235
10236       # When large executables or shared objects are built, AIX ld can
10237       # have problems creating the table of contents.  If linking a library
10238       # or program results in "error TOC overflow" add -mminimal-toc to
10239       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10240       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10241
10242       archive_cmds=''
10243       hardcode_direct=yes
10244       hardcode_direct_absolute=yes
10245       hardcode_libdir_separator=':'
10246       link_all_deplibs=yes
10247       file_list_spec='${wl}-f,'
10248
10249       if test "$GCC" = yes; then
10250         case $host_os in aix4.[012]|aix4.[012].*)
10251         # We only want to do this on AIX 4.2 and lower, the check
10252         # below for broken collect2 doesn't work under 4.3+
10253           collect2name=`${CC} -print-prog-name=collect2`
10254           if test -f "$collect2name" &&
10255            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10256           then
10257           # We have reworked collect2
10258           :
10259           else
10260           # We have old collect2
10261           hardcode_direct=unsupported
10262           # It fails to find uninstalled libraries when the uninstalled
10263           # path is not listed in the libpath.  Setting hardcode_minus_L
10264           # to unsupported forces relinking
10265           hardcode_minus_L=yes
10266           hardcode_libdir_flag_spec='-L$libdir'
10267           hardcode_libdir_separator=
10268           fi
10269           ;;
10270         esac
10271         shared_flag='-shared'
10272         if test "$aix_use_runtimelinking" = yes; then
10273           shared_flag="$shared_flag "'${wl}-G'
10274         fi
10275         link_all_deplibs=no
10276       else
10277         # not using gcc
10278         if test "$host_cpu" = ia64; then
10279         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10280         # chokes on -Wl,-G. The following line is correct:
10281           shared_flag='-G'
10282         else
10283           if test "$aix_use_runtimelinking" = yes; then
10284             shared_flag='${wl}-G'
10285           else
10286             shared_flag='${wl}-bM:SRE'
10287           fi
10288         fi
10289       fi
10290
10291       export_dynamic_flag_spec='${wl}-bexpall'
10292       # It seems that -bexpall does not export symbols beginning with
10293       # underscore (_), so it is better to generate a list of symbols to export.
10294       always_export_symbols=yes
10295       if test "$aix_use_runtimelinking" = yes; then
10296         # Warning - without using the other runtime loading flags (-brtl),
10297         # -berok will link without error, but may produce a broken library.
10298         allow_undefined_flag='-berok'
10299         # Determine the default libpath from the value encoded in an
10300         # empty executable.
10301         if test "${lt_cv_aix_libpath+set}" = set; then
10302   aix_libpath=$lt_cv_aix_libpath
10303 else
10304   if ${lt_cv_aix_libpath_+:} false; then :
10305   $as_echo_n "(cached) " >&6
10306 else
10307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h.  */
10309
10310 int
10311 main ()
10312 {
10313
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"; then :
10319
10320   lt_aix_libpath_sed='
10321       /Import File Strings/,/^$/ {
10322           /^0/ {
10323               s/^0  *\([^ ]*\) *$/\1/
10324               p
10325           }
10326       }'
10327   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10328   # Check for a 64-bit object if we didn't find anything.
10329   if test -z "$lt_cv_aix_libpath_"; then
10330     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331   fi
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext \
10334     conftest$ac_exeext conftest.$ac_ext
10335   if test -z "$lt_cv_aix_libpath_"; then
10336     lt_cv_aix_libpath_="/usr/lib:/lib"
10337   fi
10338
10339 fi
10340
10341   aix_libpath=$lt_cv_aix_libpath_
10342 fi
10343
10344         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10345         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"
10346       else
10347         if test "$host_cpu" = ia64; then
10348           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10349           allow_undefined_flag="-z nodefs"
10350           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"
10351         else
10352          # Determine the default libpath from the value encoded in an
10353          # empty executable.
10354          if test "${lt_cv_aix_libpath+set}" = set; then
10355   aix_libpath=$lt_cv_aix_libpath
10356 else
10357   if ${lt_cv_aix_libpath_+:} false; then :
10358   $as_echo_n "(cached) " >&6
10359 else
10360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h.  */
10362
10363 int
10364 main ()
10365 {
10366
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 if ac_fn_c_try_link "$LINENO"; then :
10372
10373   lt_aix_libpath_sed='
10374       /Import File Strings/,/^$/ {
10375           /^0/ {
10376               s/^0  *\([^ ]*\) *$/\1/
10377               p
10378           }
10379       }'
10380   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10381   # Check for a 64-bit object if we didn't find anything.
10382   if test -z "$lt_cv_aix_libpath_"; then
10383     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10384   fi
10385 fi
10386 rm -f core conftest.err conftest.$ac_objext \
10387     conftest$ac_exeext conftest.$ac_ext
10388   if test -z "$lt_cv_aix_libpath_"; then
10389     lt_cv_aix_libpath_="/usr/lib:/lib"
10390   fi
10391
10392 fi
10393
10394   aix_libpath=$lt_cv_aix_libpath_
10395 fi
10396
10397          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10398           # Warning - without using the other run time loading flags,
10399           # -berok will link without error, but may produce a broken library.
10400           no_undefined_flag=' ${wl}-bernotok'
10401           allow_undefined_flag=' ${wl}-berok'
10402           if test "$with_gnu_ld" = yes; then
10403             # We only use this code for GNU lds that support --whole-archive.
10404             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10405           else
10406             # Exported symbols can be pulled into shared objects from archives
10407             whole_archive_flag_spec='$convenience'
10408           fi
10409           archive_cmds_need_lc=yes
10410           # This is similar to how AIX traditionally builds its shared libraries.
10411           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'
10412         fi
10413       fi
10414       ;;
10415
10416     amigaos*)
10417       case $host_cpu in
10418       powerpc)
10419             # see comment about AmigaOS4 .so support
10420             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421             archive_expsym_cmds=''
10422         ;;
10423       m68k)
10424             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)'
10425             hardcode_libdir_flag_spec='-L$libdir'
10426             hardcode_minus_L=yes
10427         ;;
10428       esac
10429       ;;
10430
10431     bsdi[45]*)
10432       export_dynamic_flag_spec=-rdynamic
10433       ;;
10434
10435     cygwin* | mingw* | pw32* | cegcc*)
10436       # When not using gcc, we currently assume that we are using
10437       # Microsoft Visual C++.
10438       # hardcode_libdir_flag_spec is actually meaningless, as there is
10439       # no search path for DLLs.
10440       case $cc_basename in
10441       cl*)
10442         # Native MSVC
10443         hardcode_libdir_flag_spec=' '
10444         allow_undefined_flag=unsupported
10445         always_export_symbols=yes
10446         file_list_spec='@'
10447         # Tell ltmain to make .lib files, not .a files.
10448         libext=lib
10449         # Tell ltmain to make .dll files, not .so files.
10450         shrext_cmds=".dll"
10451         # FIXME: Setting linknames here is a bad hack.
10452         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10453         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10454             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10455           else
10456             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10457           fi~
10458           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10459           linknames='
10460         # The linker will not automatically build a static lib if we build a DLL.
10461         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10462         enable_shared_with_static_runtimes=yes
10463         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10464         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10465         # Don't use ranlib
10466         old_postinstall_cmds='chmod 644 $oldlib'
10467         postlink_cmds='lt_outputfile="@OUTPUT@"~
10468           lt_tool_outputfile="@TOOL_OUTPUT@"~
10469           case $lt_outputfile in
10470             *.exe|*.EXE) ;;
10471             *)
10472               lt_outputfile="$lt_outputfile.exe"
10473               lt_tool_outputfile="$lt_tool_outputfile.exe"
10474               ;;
10475           esac~
10476           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10477             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10478             $RM "$lt_outputfile.manifest";
10479           fi'
10480         ;;
10481       *)
10482         # Assume MSVC wrapper
10483         hardcode_libdir_flag_spec=' '
10484         allow_undefined_flag=unsupported
10485         # Tell ltmain to make .lib files, not .a files.
10486         libext=lib
10487         # Tell ltmain to make .dll files, not .so files.
10488         shrext_cmds=".dll"
10489         # FIXME: Setting linknames here is a bad hack.
10490         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10491         # The linker will automatically build a .lib file if we build a DLL.
10492         old_archive_from_new_cmds='true'
10493         # FIXME: Should let the user specify the lib program.
10494         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10495         enable_shared_with_static_runtimes=yes
10496         ;;
10497       esac
10498       ;;
10499
10500     darwin* | rhapsody*)
10501
10502
10503   archive_cmds_need_lc=no
10504   hardcode_direct=no
10505   hardcode_automatic=yes
10506   hardcode_shlibpath_var=unsupported
10507   if test "$lt_cv_ld_force_load" = "yes"; then
10508     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\"`'
10509
10510   else
10511     whole_archive_flag_spec=''
10512   fi
10513   link_all_deplibs=yes
10514   allow_undefined_flag="$_lt_dar_allow_undefined"
10515   case $cc_basename in
10516      ifort*) _lt_dar_can_shared=yes ;;
10517      *) _lt_dar_can_shared=$GCC ;;
10518   esac
10519   if test "$_lt_dar_can_shared" = "yes"; then
10520     output_verbose_link_cmd=func_echo_all
10521     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10522     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10523     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}"
10524     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}"
10525
10526   else
10527   ld_shlibs=no
10528   fi
10529
10530       ;;
10531
10532     dgux*)
10533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534       hardcode_libdir_flag_spec='-L$libdir'
10535       hardcode_shlibpath_var=no
10536       ;;
10537
10538     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10539     # support.  Future versions do this automatically, but an explicit c++rt0.o
10540     # does not break anything, and helps significantly (at the cost of a little
10541     # extra space).
10542     freebsd2.2*)
10543       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10544       hardcode_libdir_flag_spec='-R$libdir'
10545       hardcode_direct=yes
10546       hardcode_shlibpath_var=no
10547       ;;
10548
10549     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10550     freebsd2.*)
10551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10552       hardcode_direct=yes
10553       hardcode_minus_L=yes
10554       hardcode_shlibpath_var=no
10555       ;;
10556
10557     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10558     freebsd* | dragonfly*)
10559       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10560       hardcode_libdir_flag_spec='-R$libdir'
10561       hardcode_direct=yes
10562       hardcode_shlibpath_var=no
10563       ;;
10564
10565     hpux9*)
10566       if test "$GCC" = yes; then
10567         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'
10568       else
10569         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'
10570       fi
10571       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10572       hardcode_libdir_separator=:
10573       hardcode_direct=yes
10574
10575       # hardcode_minus_L: Not really in the search PATH,
10576       # but as the default location of the library.
10577       hardcode_minus_L=yes
10578       export_dynamic_flag_spec='${wl}-E'
10579       ;;
10580
10581     hpux10*)
10582       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10583         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10584       else
10585         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10586       fi
10587       if test "$with_gnu_ld" = no; then
10588         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589         hardcode_libdir_separator=:
10590         hardcode_direct=yes
10591         hardcode_direct_absolute=yes
10592         export_dynamic_flag_spec='${wl}-E'
10593         # hardcode_minus_L: Not really in the search PATH,
10594         # but as the default location of the library.
10595         hardcode_minus_L=yes
10596       fi
10597       ;;
10598
10599     hpux11*)
10600       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10601         case $host_cpu in
10602         hppa*64*)
10603           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10604           ;;
10605         ia64*)
10606           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10607           ;;
10608         *)
10609           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10610           ;;
10611         esac
10612       else
10613         case $host_cpu in
10614         hppa*64*)
10615           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10616           ;;
10617         ia64*)
10618           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10619           ;;
10620         *)
10621
10622           # Older versions of the 11.00 compiler do not understand -b yet
10623           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10624           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10625 $as_echo_n "checking if $CC understands -b... " >&6; }
10626 if ${lt_cv_prog_compiler__b+:} false; then :
10627   $as_echo_n "(cached) " >&6
10628 else
10629   lt_cv_prog_compiler__b=no
10630    save_LDFLAGS="$LDFLAGS"
10631    LDFLAGS="$LDFLAGS -b"
10632    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10633    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10634      # The linker can only warn and ignore the option if not recognized
10635      # So say no if there are warnings
10636      if test -s conftest.err; then
10637        # Append any errors to the config.log.
10638        cat conftest.err 1>&5
10639        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10640        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10641        if diff conftest.exp conftest.er2 >/dev/null; then
10642          lt_cv_prog_compiler__b=yes
10643        fi
10644      else
10645        lt_cv_prog_compiler__b=yes
10646      fi
10647    fi
10648    $RM -r conftest*
10649    LDFLAGS="$save_LDFLAGS"
10650
10651 fi
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10653 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10654
10655 if test x"$lt_cv_prog_compiler__b" = xyes; then
10656     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10657 else
10658     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10659 fi
10660
10661           ;;
10662         esac
10663       fi
10664       if test "$with_gnu_ld" = no; then
10665         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10666         hardcode_libdir_separator=:
10667
10668         case $host_cpu in
10669         hppa*64*|ia64*)
10670           hardcode_direct=no
10671           hardcode_shlibpath_var=no
10672           ;;
10673         *)
10674           hardcode_direct=yes
10675           hardcode_direct_absolute=yes
10676           export_dynamic_flag_spec='${wl}-E'
10677
10678           # hardcode_minus_L: Not really in the search PATH,
10679           # but as the default location of the library.
10680           hardcode_minus_L=yes
10681           ;;
10682         esac
10683       fi
10684       ;;
10685
10686     irix5* | irix6* | nonstopux*)
10687       if test "$GCC" = yes; then
10688         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'
10689         # Try to use the -exported_symbol ld option, if it does not
10690         # work, assume that -exports_file does not work either and
10691         # implicitly export all symbols.
10692         # This should be the same for all languages, so no per-tag cache variable.
10693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10694 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10695 if ${lt_cv_irix_exported_symbol+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   save_LDFLAGS="$LDFLAGS"
10699            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10700            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h.  */
10702 int foo (void) { return 0; }
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"; then :
10705   lt_cv_irix_exported_symbol=yes
10706 else
10707   lt_cv_irix_exported_symbol=no
10708 fi
10709 rm -f core conftest.err conftest.$ac_objext \
10710     conftest$ac_exeext conftest.$ac_ext
10711            LDFLAGS="$save_LDFLAGS"
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10714 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10715         if test "$lt_cv_irix_exported_symbol" = yes; then
10716           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'
10717         fi
10718       else
10719         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'
10720         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'
10721       fi
10722       archive_cmds_need_lc='no'
10723       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10724       hardcode_libdir_separator=:
10725       inherit_rpath=yes
10726       link_all_deplibs=yes
10727       ;;
10728
10729     netbsd* | netbsdelf*-gnu)
10730       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10731         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10732       else
10733         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10734       fi
10735       hardcode_libdir_flag_spec='-R$libdir'
10736       hardcode_direct=yes
10737       hardcode_shlibpath_var=no
10738       ;;
10739
10740     newsos6)
10741       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10742       hardcode_direct=yes
10743       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10744       hardcode_libdir_separator=:
10745       hardcode_shlibpath_var=no
10746       ;;
10747
10748     *nto* | *qnx*)
10749       ;;
10750
10751     openbsd*)
10752       if test -f /usr/libexec/ld.so; then
10753         hardcode_direct=yes
10754         hardcode_shlibpath_var=no
10755         hardcode_direct_absolute=yes
10756         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10757           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10758           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10759           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10760           export_dynamic_flag_spec='${wl}-E'
10761         else
10762           case $host_os in
10763            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10764              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10765              hardcode_libdir_flag_spec='-R$libdir'
10766              ;;
10767            *)
10768              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10769              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10770              ;;
10771           esac
10772         fi
10773       else
10774         ld_shlibs=no
10775       fi
10776       ;;
10777
10778     os2*)
10779       hardcode_libdir_flag_spec='-L$libdir'
10780       hardcode_minus_L=yes
10781       allow_undefined_flag=unsupported
10782       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'
10783       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10784       ;;
10785
10786     osf3*)
10787       if test "$GCC" = yes; then
10788         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10789         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'
10790       else
10791         allow_undefined_flag=' -expect_unresolved \*'
10792         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'
10793       fi
10794       archive_cmds_need_lc='no'
10795       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10796       hardcode_libdir_separator=:
10797       ;;
10798
10799     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10800       if test "$GCC" = yes; then
10801         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10802         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'
10803         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10804       else
10805         allow_undefined_flag=' -expect_unresolved \*'
10806         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'
10807         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~
10808         $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'
10809
10810         # Both c and cxx compiler support -rpath directly
10811         hardcode_libdir_flag_spec='-rpath $libdir'
10812       fi
10813       archive_cmds_need_lc='no'
10814       hardcode_libdir_separator=:
10815       ;;
10816
10817     solaris*)
10818       no_undefined_flag=' -z defs'
10819       if test "$GCC" = yes; then
10820         wlarc='${wl}'
10821         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10822         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10823           $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'
10824       else
10825         case `$CC -V 2>&1` in
10826         *"Compilers 5.0"*)
10827           wlarc=''
10828           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10830           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10831           ;;
10832         *)
10833           wlarc='${wl}'
10834           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10835           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10837           ;;
10838         esac
10839       fi
10840       hardcode_libdir_flag_spec='-R$libdir'
10841       hardcode_shlibpath_var=no
10842       case $host_os in
10843       solaris2.[0-5] | solaris2.[0-5].*) ;;
10844       *)
10845         # The compiler driver will combine and reorder linker options,
10846         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10847         # but is careful enough not to reorder.
10848         # Supported since Solaris 2.6 (maybe 2.5.1?)
10849         if test "$GCC" = yes; then
10850           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10851         else
10852           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10853         fi
10854         ;;
10855       esac
10856       link_all_deplibs=yes
10857       ;;
10858
10859     sunos4*)
10860       if test "x$host_vendor" = xsequent; then
10861         # Use $CC to link under sequent, because it throws in some extra .o
10862         # files that make .init and .fini sections work.
10863         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10864       else
10865         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10866       fi
10867       hardcode_libdir_flag_spec='-L$libdir'
10868       hardcode_direct=yes
10869       hardcode_minus_L=yes
10870       hardcode_shlibpath_var=no
10871       ;;
10872
10873     sysv4)
10874       case $host_vendor in
10875         sni)
10876           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877           hardcode_direct=yes # is this really true???
10878         ;;
10879         siemens)
10880           ## LD is ld it makes a PLAMLIB
10881           ## CC just makes a GrossModule.
10882           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10883           reload_cmds='$CC -r -o $output$reload_objs'
10884           hardcode_direct=no
10885         ;;
10886         motorola)
10887           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10889         ;;
10890       esac
10891       runpath_var='LD_RUN_PATH'
10892       hardcode_shlibpath_var=no
10893       ;;
10894
10895     sysv4.3*)
10896       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897       hardcode_shlibpath_var=no
10898       export_dynamic_flag_spec='-Bexport'
10899       ;;
10900
10901     sysv4*MP*)
10902       if test -d /usr/nec; then
10903         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904         hardcode_shlibpath_var=no
10905         runpath_var=LD_RUN_PATH
10906         hardcode_runpath_var=yes
10907         ld_shlibs=yes
10908       fi
10909       ;;
10910
10911     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10912       no_undefined_flag='${wl}-z,text'
10913       archive_cmds_need_lc=no
10914       hardcode_shlibpath_var=no
10915       runpath_var='LD_RUN_PATH'
10916
10917       if test "$GCC" = yes; then
10918         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920       else
10921         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923       fi
10924       ;;
10925
10926     sysv5* | sco3.2v5* | sco5v6*)
10927       # Note: We can NOT use -z defs as we might desire, because we do not
10928       # link with -lc, and that would cause any symbols used from libc to
10929       # always be unresolved, which means just about no library would
10930       # ever link correctly.  If we're not using GNU ld we use -z text
10931       # though, which does catch some bad symbols but isn't as heavy-handed
10932       # as -z defs.
10933       no_undefined_flag='${wl}-z,text'
10934       allow_undefined_flag='${wl}-z,nodefs'
10935       archive_cmds_need_lc=no
10936       hardcode_shlibpath_var=no
10937       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10938       hardcode_libdir_separator=':'
10939       link_all_deplibs=yes
10940       export_dynamic_flag_spec='${wl}-Bexport'
10941       runpath_var='LD_RUN_PATH'
10942
10943       if test "$GCC" = yes; then
10944         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946       else
10947         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949       fi
10950       ;;
10951
10952     uts4*)
10953       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10954       hardcode_libdir_flag_spec='-L$libdir'
10955       hardcode_shlibpath_var=no
10956       ;;
10957
10958     *)
10959       ld_shlibs=no
10960       ;;
10961     esac
10962
10963     if test x$host_vendor = xsni; then
10964       case $host in
10965       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10966         export_dynamic_flag_spec='${wl}-Blargedynsym'
10967         ;;
10968       esac
10969     fi
10970   fi
10971
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10973 $as_echo "$ld_shlibs" >&6; }
10974 test "$ld_shlibs" = no && can_build_shared=no
10975
10976 with_gnu_ld=$with_gnu_ld
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 #
10993 # Do we need to explicitly link libc?
10994 #
10995 case "x$archive_cmds_need_lc" in
10996 x|xyes)
10997   # Assume -lc should be added
10998   archive_cmds_need_lc=yes
10999
11000   if test "$enable_shared" = yes && test "$GCC" = yes; then
11001     case $archive_cmds in
11002     *'~'*)
11003       # FIXME: we may have to deal with multi-command sequences.
11004       ;;
11005     '$CC '*)
11006       # Test whether the compiler implicitly links with -lc since on some
11007       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11008       # to ld, don't add -lc before -lgcc.
11009       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11011 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11012   $as_echo_n "(cached) " >&6
11013 else
11014   $RM conftest*
11015         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11016
11017         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11018   (eval $ac_compile) 2>&5
11019   ac_status=$?
11020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11021   test $ac_status = 0; } 2>conftest.err; then
11022           soname=conftest
11023           lib=conftest
11024           libobjs=conftest.$ac_objext
11025           deplibs=
11026           wl=$lt_prog_compiler_wl
11027           pic_flag=$lt_prog_compiler_pic
11028           compiler_flags=-v
11029           linker_flags=-v
11030           verstring=
11031           output_objdir=.
11032           libname=conftest
11033           lt_save_allow_undefined_flag=$allow_undefined_flag
11034           allow_undefined_flag=
11035           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11036   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11037   ac_status=$?
11038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039   test $ac_status = 0; }
11040           then
11041             lt_cv_archive_cmds_need_lc=no
11042           else
11043             lt_cv_archive_cmds_need_lc=yes
11044           fi
11045           allow_undefined_flag=$lt_save_allow_undefined_flag
11046         else
11047           cat conftest.err 1>&5
11048         fi
11049         $RM conftest*
11050
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11053 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11054       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11055       ;;
11056     esac
11057   fi
11058   ;;
11059 esac
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11214
11215 if test "$GCC" = yes; then
11216   case $host_os in
11217     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11218     *) lt_awk_arg="/^libraries:/" ;;
11219   esac
11220   case $host_os in
11221     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11222     *) lt_sed_strip_eq="s,=/,/,g" ;;
11223   esac
11224   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11225   case $lt_search_path_spec in
11226   *\;*)
11227     # if the path contains ";" then we assume it to be the separator
11228     # otherwise default to the standard path separator (i.e. ":") - it is
11229     # assumed that no part of a normal pathname contains ";" but that should
11230     # okay in the real world where ";" in dirpaths is itself problematic.
11231     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11232     ;;
11233   *)
11234     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11235     ;;
11236   esac
11237   # Ok, now we have the path, separated by spaces, we can step through it
11238   # and add multilib dir if necessary.
11239   lt_tmp_lt_search_path_spec=
11240   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11241   for lt_sys_path in $lt_search_path_spec; do
11242     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11243       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11244     else
11245       test -d "$lt_sys_path" && \
11246         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11247     fi
11248   done
11249   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11250 BEGIN {RS=" "; FS="/|\n";} {
11251   lt_foo="";
11252   lt_count=0;
11253   for (lt_i = NF; lt_i > 0; lt_i--) {
11254     if ($lt_i != "" && $lt_i != ".") {
11255       if ($lt_i == "..") {
11256         lt_count++;
11257       } else {
11258         if (lt_count == 0) {
11259           lt_foo="/" $lt_i lt_foo;
11260         } else {
11261           lt_count--;
11262         }
11263       }
11264     }
11265   }
11266   if (lt_foo != "") { lt_freq[lt_foo]++; }
11267   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11268 }'`
11269   # AWK program above erroneously prepends '/' to C:/dos/paths
11270   # for these hosts.
11271   case $host_os in
11272     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11273       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11274   esac
11275   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11276 else
11277   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11278 fi
11279 library_names_spec=
11280 libname_spec='lib$name'
11281 soname_spec=
11282 shrext_cmds=".so"
11283 postinstall_cmds=
11284 postuninstall_cmds=
11285 finish_cmds=
11286 finish_eval=
11287 shlibpath_var=
11288 shlibpath_overrides_runpath=unknown
11289 version_type=none
11290 dynamic_linker="$host_os ld.so"
11291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11292 need_lib_prefix=unknown
11293 hardcode_into_libs=no
11294
11295 # when you set need_version to no, make sure it does not cause -set_version
11296 # flags to be left without arguments
11297 need_version=unknown
11298
11299 case $host_os in
11300 aix3*)
11301   version_type=linux # correct to gnu/linux during the next big refactor
11302   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11303   shlibpath_var=LIBPATH
11304
11305   # AIX 3 has no versioning support, so we append a major version to the name.
11306   soname_spec='${libname}${release}${shared_ext}$major'
11307   ;;
11308
11309 aix[4-9]*)
11310   version_type=linux # correct to gnu/linux during the next big refactor
11311   need_lib_prefix=no
11312   need_version=no
11313   hardcode_into_libs=yes
11314   if test "$host_cpu" = ia64; then
11315     # AIX 5 supports IA64
11316     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11317     shlibpath_var=LD_LIBRARY_PATH
11318   else
11319     # With GCC up to 2.95.x, collect2 would create an import file
11320     # for dependence libraries.  The import file would start with
11321     # the line `#! .'.  This would cause the generated library to
11322     # depend on `.', always an invalid library.  This was fixed in
11323     # development snapshots of GCC prior to 3.0.
11324     case $host_os in
11325       aix4 | aix4.[01] | aix4.[01].*)
11326       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11327            echo ' yes '
11328            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11329         :
11330       else
11331         can_build_shared=no
11332       fi
11333       ;;
11334     esac
11335     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11336     # soname into executable. Probably we can add versioning support to
11337     # collect2, so additional links can be useful in future.
11338     if test "$aix_use_runtimelinking" = yes; then
11339       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11340       # instead of lib<name>.a to let people know that these are not
11341       # typical AIX shared libraries.
11342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343     else
11344       # We preserve .a as extension for shared libraries through AIX4.2
11345       # and later when we are not doing run time linking.
11346       library_names_spec='${libname}${release}.a $libname.a'
11347       soname_spec='${libname}${release}${shared_ext}$major'
11348     fi
11349     shlibpath_var=LIBPATH
11350   fi
11351   ;;
11352
11353 amigaos*)
11354   case $host_cpu in
11355   powerpc)
11356     # Since July 2007 AmigaOS4 officially supports .so libraries.
11357     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359     ;;
11360   m68k)
11361     library_names_spec='$libname.ixlibrary $libname.a'
11362     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11363     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'
11364     ;;
11365   esac
11366   ;;
11367
11368 beos*)
11369   library_names_spec='${libname}${shared_ext}'
11370   dynamic_linker="$host_os ld.so"
11371   shlibpath_var=LIBRARY_PATH
11372   ;;
11373
11374 bsdi[45]*)
11375   version_type=linux # correct to gnu/linux during the next big refactor
11376   need_version=no
11377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378   soname_spec='${libname}${release}${shared_ext}$major'
11379   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11380   shlibpath_var=LD_LIBRARY_PATH
11381   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11382   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11383   # the default ld.so.conf also contains /usr/contrib/lib and
11384   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11385   # libtool to hard-code these into programs
11386   ;;
11387
11388 cygwin* | mingw* | pw32* | cegcc*)
11389   version_type=windows
11390   shrext_cmds=".dll"
11391   need_version=no
11392   need_lib_prefix=no
11393
11394   case $GCC,$cc_basename in
11395   yes,*)
11396     # gcc
11397     library_names_spec='$libname.dll.a'
11398     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399     postinstall_cmds='base_file=`basename \${file}`~
11400       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11401       dldir=$destdir/`dirname \$dlpath`~
11402       test -d \$dldir || mkdir -p \$dldir~
11403       $install_prog $dir/$dlname \$dldir/$dlname~
11404       chmod a+x \$dldir/$dlname~
11405       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11406         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11407       fi'
11408     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409       dlpath=$dir/\$dldll~
11410        $RM \$dlpath'
11411     shlibpath_overrides_runpath=yes
11412
11413     case $host_os in
11414     cygwin*)
11415       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417
11418       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11419       ;;
11420     mingw* | cegcc*)
11421       # MinGW DLLs use traditional 'lib' prefix
11422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11423       ;;
11424     pw32*)
11425       # pw32 DLLs use 'pw' prefix rather than 'lib'
11426       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427       ;;
11428     esac
11429     dynamic_linker='Win32 ld.exe'
11430     ;;
11431
11432   *,cl*)
11433     # Native MSVC
11434     libname_spec='$name'
11435     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436     library_names_spec='${libname}.dll.lib'
11437
11438     case $build_os in
11439     mingw*)
11440       sys_lib_search_path_spec=
11441       lt_save_ifs=$IFS
11442       IFS=';'
11443       for lt_path in $LIB
11444       do
11445         IFS=$lt_save_ifs
11446         # Let DOS variable expansion print the short 8.3 style file name.
11447         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11448         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11449       done
11450       IFS=$lt_save_ifs
11451       # Convert to MSYS style.
11452       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11453       ;;
11454     cygwin*)
11455       # Convert to unix form, then to dos form, then back to unix form
11456       # but this time dos style (no spaces!) so that the unix form looks
11457       # like /cygdrive/c/PROGRA~1:/cygdr...
11458       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11459       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11460       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11461       ;;
11462     *)
11463       sys_lib_search_path_spec="$LIB"
11464       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11465         # It is most probably a Windows format PATH.
11466         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11467       else
11468         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11469       fi
11470       # FIXME: find the short name or the path components, as spaces are
11471       # common. (e.g. "Program Files" -> "PROGRA~1")
11472       ;;
11473     esac
11474
11475     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11476     postinstall_cmds='base_file=`basename \${file}`~
11477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11478       dldir=$destdir/`dirname \$dlpath`~
11479       test -d \$dldir || mkdir -p \$dldir~
11480       $install_prog $dir/$dlname \$dldir/$dlname'
11481     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11482       dlpath=$dir/\$dldll~
11483        $RM \$dlpath'
11484     shlibpath_overrides_runpath=yes
11485     dynamic_linker='Win32 link.exe'
11486     ;;
11487
11488   *)
11489     # Assume MSVC wrapper
11490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11491     dynamic_linker='Win32 ld.exe'
11492     ;;
11493   esac
11494   # FIXME: first we should search . and the directory the executable is in
11495   shlibpath_var=PATH
11496   ;;
11497
11498 darwin* | rhapsody*)
11499   dynamic_linker="$host_os dyld"
11500   version_type=darwin
11501   need_lib_prefix=no
11502   need_version=no
11503   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11504   soname_spec='${libname}${release}${major}$shared_ext'
11505   shlibpath_overrides_runpath=yes
11506   shlibpath_var=DYLD_LIBRARY_PATH
11507   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11508
11509   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11510   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11511   ;;
11512
11513 dgux*)
11514   version_type=linux # correct to gnu/linux during the next big refactor
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11518   soname_spec='${libname}${release}${shared_ext}$major'
11519   shlibpath_var=LD_LIBRARY_PATH
11520   ;;
11521
11522 freebsd* | dragonfly*)
11523   # DragonFly does not have aout.  When/if they implement a new
11524   # versioning mechanism, adjust this.
11525   if test -x /usr/bin/objformat; then
11526     objformat=`/usr/bin/objformat`
11527   else
11528     case $host_os in
11529     freebsd[23].*) objformat=aout ;;
11530     *) objformat=elf ;;
11531     esac
11532   fi
11533   version_type=freebsd-$objformat
11534   case $version_type in
11535     freebsd-elf*)
11536       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11537       need_version=no
11538       need_lib_prefix=no
11539       ;;
11540     freebsd-*)
11541       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11542       need_version=yes
11543       ;;
11544   esac
11545   shlibpath_var=LD_LIBRARY_PATH
11546   case $host_os in
11547   freebsd2.*)
11548     shlibpath_overrides_runpath=yes
11549     ;;
11550   freebsd3.[01]* | freebsdelf3.[01]*)
11551     shlibpath_overrides_runpath=yes
11552     hardcode_into_libs=yes
11553     ;;
11554   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11555   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11556     shlibpath_overrides_runpath=no
11557     hardcode_into_libs=yes
11558     ;;
11559   *) # from 4.6 on, and DragonFly
11560     shlibpath_overrides_runpath=yes
11561     hardcode_into_libs=yes
11562     ;;
11563   esac
11564   ;;
11565
11566 haiku*)
11567   version_type=linux # correct to gnu/linux during the next big refactor
11568   need_lib_prefix=no
11569   need_version=no
11570   dynamic_linker="$host_os runtime_loader"
11571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11572   soname_spec='${libname}${release}${shared_ext}$major'
11573   shlibpath_var=LIBRARY_PATH
11574   shlibpath_overrides_runpath=yes
11575   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11576   hardcode_into_libs=yes
11577   ;;
11578
11579 hpux9* | hpux10* | hpux11*)
11580   # Give a soname corresponding to the major version so that dld.sl refuses to
11581   # link against other versions.
11582   version_type=sunos
11583   need_lib_prefix=no
11584   need_version=no
11585   case $host_cpu in
11586   ia64*)
11587     shrext_cmds='.so'
11588     hardcode_into_libs=yes
11589     dynamic_linker="$host_os dld.so"
11590     shlibpath_var=LD_LIBRARY_PATH
11591     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593     soname_spec='${libname}${release}${shared_ext}$major'
11594     if test "X$HPUX_IA64_MODE" = X32; then
11595       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11596     else
11597       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11598     fi
11599     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11600     ;;
11601   hppa*64*)
11602     shrext_cmds='.sl'
11603     hardcode_into_libs=yes
11604     dynamic_linker="$host_os dld.sl"
11605     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11606     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608     soname_spec='${libname}${release}${shared_ext}$major'
11609     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11610     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11611     ;;
11612   *)
11613     shrext_cmds='.sl'
11614     dynamic_linker="$host_os dld.sl"
11615     shlibpath_var=SHLIB_PATH
11616     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618     soname_spec='${libname}${release}${shared_ext}$major'
11619     ;;
11620   esac
11621   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11622   postinstall_cmds='chmod 555 $lib'
11623   # or fails outright, so override atomically:
11624   install_override_mode=555
11625   ;;
11626
11627 interix[3-9]*)
11628   version_type=linux # correct to gnu/linux during the next big refactor
11629   need_lib_prefix=no
11630   need_version=no
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11632   soname_spec='${libname}${release}${shared_ext}$major'
11633   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11634   shlibpath_var=LD_LIBRARY_PATH
11635   shlibpath_overrides_runpath=no
11636   hardcode_into_libs=yes
11637   ;;
11638
11639 irix5* | irix6* | nonstopux*)
11640   case $host_os in
11641     nonstopux*) version_type=nonstopux ;;
11642     *)
11643         if test "$lt_cv_prog_gnu_ld" = yes; then
11644                 version_type=linux # correct to gnu/linux during the next big refactor
11645         else
11646                 version_type=irix
11647         fi ;;
11648   esac
11649   need_lib_prefix=no
11650   need_version=no
11651   soname_spec='${libname}${release}${shared_ext}$major'
11652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11653   case $host_os in
11654   irix5* | nonstopux*)
11655     libsuff= shlibsuff=
11656     ;;
11657   *)
11658     case $LD in # libtool.m4 will add one of these switches to LD
11659     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11660       libsuff= shlibsuff= libmagic=32-bit;;
11661     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11662       libsuff=32 shlibsuff=N32 libmagic=N32;;
11663     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11664       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11665     *) libsuff= shlibsuff= libmagic=never-match;;
11666     esac
11667     ;;
11668   esac
11669   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11670   shlibpath_overrides_runpath=no
11671   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11672   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11673   hardcode_into_libs=yes
11674   ;;
11675
11676 # No shared lib support for Linux oldld, aout, or coff.
11677 linux*oldld* | linux*aout* | linux*coff*)
11678   dynamic_linker=no
11679   ;;
11680
11681 # This must be glibc/ELF.
11682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11683   version_type=linux # correct to gnu/linux during the next big refactor
11684   need_lib_prefix=no
11685   need_version=no
11686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687   soname_spec='${libname}${release}${shared_ext}$major'
11688   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11689   shlibpath_var=LD_LIBRARY_PATH
11690   shlibpath_overrides_runpath=no
11691
11692   # Some binutils ld are patched to set DT_RUNPATH
11693   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   lt_cv_shlibpath_overrides_runpath=no
11697     save_LDFLAGS=$LDFLAGS
11698     save_libdir=$libdir
11699     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11700          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11701     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h.  */
11703
11704 int
11705 main ()
11706 {
11707
11708   ;
11709   return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"; then :
11713   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11714   lt_cv_shlibpath_overrides_runpath=yes
11715 fi
11716 fi
11717 rm -f core conftest.err conftest.$ac_objext \
11718     conftest$ac_exeext conftest.$ac_ext
11719     LDFLAGS=$save_LDFLAGS
11720     libdir=$save_libdir
11721
11722 fi
11723
11724   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11725
11726   # This implies no fast_install, which is unacceptable.
11727   # Some rework will be needed to allow for fast_install
11728   # before this can be enabled.
11729   hardcode_into_libs=yes
11730
11731   # Append ld.so.conf contents to the search path
11732   if test -f /etc/ld.so.conf; then
11733     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' ' '`
11734     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11735   fi
11736
11737   # We used to test for /lib/ld.so.1 and disable shared libraries on
11738   # powerpc, because MkLinux only supported shared libraries with the
11739   # GNU dynamic linker.  Since this was broken with cross compilers,
11740   # most powerpc-linux boxes support dynamic linking these days and
11741   # people can always --disable-shared, the test was removed, and we
11742   # assume the GNU/Linux dynamic linker is in use.
11743   dynamic_linker='GNU/Linux ld.so'
11744   ;;
11745
11746 netbsdelf*-gnu)
11747   version_type=linux
11748   need_lib_prefix=no
11749   need_version=no
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11751   soname_spec='${libname}${release}${shared_ext}$major'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   shlibpath_overrides_runpath=no
11754   hardcode_into_libs=yes
11755   dynamic_linker='NetBSD ld.elf_so'
11756   ;;
11757
11758 netbsd*)
11759   version_type=sunos
11760   need_lib_prefix=no
11761   need_version=no
11762   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765     dynamic_linker='NetBSD (a.out) ld.so'
11766   else
11767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11768     soname_spec='${libname}${release}${shared_ext}$major'
11769     dynamic_linker='NetBSD ld.elf_so'
11770   fi
11771   shlibpath_var=LD_LIBRARY_PATH
11772   shlibpath_overrides_runpath=yes
11773   hardcode_into_libs=yes
11774   ;;
11775
11776 newsos6)
11777   version_type=linux # correct to gnu/linux during the next big refactor
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   shlibpath_overrides_runpath=yes
11781   ;;
11782
11783 *nto* | *qnx*)
11784   version_type=qnx
11785   need_lib_prefix=no
11786   need_version=no
11787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788   soname_spec='${libname}${release}${shared_ext}$major'
11789   shlibpath_var=LD_LIBRARY_PATH
11790   shlibpath_overrides_runpath=no
11791   hardcode_into_libs=yes
11792   dynamic_linker='ldqnx.so'
11793   ;;
11794
11795 openbsd*)
11796   version_type=sunos
11797   sys_lib_dlsearch_path_spec="/usr/lib"
11798   need_lib_prefix=no
11799   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11800   case $host_os in
11801     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11802     *)                          need_version=no  ;;
11803   esac
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11805   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11806   shlibpath_var=LD_LIBRARY_PATH
11807   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11808     case $host_os in
11809       openbsd2.[89] | openbsd2.[89].*)
11810         shlibpath_overrides_runpath=no
11811         ;;
11812       *)
11813         shlibpath_overrides_runpath=yes
11814         ;;
11815       esac
11816   else
11817     shlibpath_overrides_runpath=yes
11818   fi
11819   ;;
11820
11821 os2*)
11822   libname_spec='$name'
11823   shrext_cmds=".dll"
11824   need_lib_prefix=no
11825   library_names_spec='$libname${shared_ext} $libname.a'
11826   dynamic_linker='OS/2 ld.exe'
11827   shlibpath_var=LIBPATH
11828   ;;
11829
11830 osf3* | osf4* | osf5*)
11831   version_type=osf
11832   need_lib_prefix=no
11833   need_version=no
11834   soname_spec='${libname}${release}${shared_ext}$major'
11835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11838   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11839   ;;
11840
11841 rdos*)
11842   dynamic_linker=no
11843   ;;
11844
11845 solaris*)
11846   version_type=linux # correct to gnu/linux during the next big refactor
11847   need_lib_prefix=no
11848   need_version=no
11849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850   soname_spec='${libname}${release}${shared_ext}$major'
11851   shlibpath_var=LD_LIBRARY_PATH
11852   shlibpath_overrides_runpath=yes
11853   hardcode_into_libs=yes
11854   # ldd complains unless libraries are executable
11855   postinstall_cmds='chmod +x $lib'
11856   ;;
11857
11858 sunos4*)
11859   version_type=sunos
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11861   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11862   shlibpath_var=LD_LIBRARY_PATH
11863   shlibpath_overrides_runpath=yes
11864   if test "$with_gnu_ld" = yes; then
11865     need_lib_prefix=no
11866   fi
11867   need_version=yes
11868   ;;
11869
11870 sysv4 | sysv4.3*)
11871   version_type=linux # correct to gnu/linux during the next big refactor
11872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873   soname_spec='${libname}${release}${shared_ext}$major'
11874   shlibpath_var=LD_LIBRARY_PATH
11875   case $host_vendor in
11876     sni)
11877       shlibpath_overrides_runpath=no
11878       need_lib_prefix=no
11879       runpath_var=LD_RUN_PATH
11880       ;;
11881     siemens)
11882       need_lib_prefix=no
11883       ;;
11884     motorola)
11885       need_lib_prefix=no
11886       need_version=no
11887       shlibpath_overrides_runpath=no
11888       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11889       ;;
11890   esac
11891   ;;
11892
11893 sysv4*MP*)
11894   if test -d /usr/nec ;then
11895     version_type=linux # correct to gnu/linux during the next big refactor
11896     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11897     soname_spec='$libname${shared_ext}.$major'
11898     shlibpath_var=LD_LIBRARY_PATH
11899   fi
11900   ;;
11901
11902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11903   version_type=freebsd-elf
11904   need_lib_prefix=no
11905   need_version=no
11906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11907   soname_spec='${libname}${release}${shared_ext}$major'
11908   shlibpath_var=LD_LIBRARY_PATH
11909   shlibpath_overrides_runpath=yes
11910   hardcode_into_libs=yes
11911   if test "$with_gnu_ld" = yes; then
11912     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11913   else
11914     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11915     case $host_os in
11916       sco3.2v5*)
11917         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11918         ;;
11919     esac
11920   fi
11921   sys_lib_dlsearch_path_spec='/usr/lib'
11922   ;;
11923
11924 tpf*)
11925   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11926   version_type=linux # correct to gnu/linux during the next big refactor
11927   need_lib_prefix=no
11928   need_version=no
11929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930   shlibpath_var=LD_LIBRARY_PATH
11931   shlibpath_overrides_runpath=no
11932   hardcode_into_libs=yes
11933   ;;
11934
11935 uts4*)
11936   version_type=linux # correct to gnu/linux during the next big refactor
11937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938   soname_spec='${libname}${release}${shared_ext}$major'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   ;;
11941
11942 *)
11943   dynamic_linker=no
11944   ;;
11945 esac
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11947 $as_echo "$dynamic_linker" >&6; }
11948 test "$dynamic_linker" = no && can_build_shared=no
11949
11950 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11951 if test "$GCC" = yes; then
11952   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11953 fi
11954
11955 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11956   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11957 fi
11958 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11959   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11960 fi
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12054 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12055 hardcode_action=
12056 if test -n "$hardcode_libdir_flag_spec" ||
12057    test -n "$runpath_var" ||
12058    test "X$hardcode_automatic" = "Xyes" ; then
12059
12060   # We can hardcode non-existent directories.
12061   if test "$hardcode_direct" != no &&
12062      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12063      # have to relink, otherwise we might link with an installed library
12064      # when we should be linking with a yet-to-be-installed one
12065      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12066      test "$hardcode_minus_L" != no; then
12067     # Linking always hardcodes the temporary library directory.
12068     hardcode_action=relink
12069   else
12070     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12071     hardcode_action=immediate
12072   fi
12073 else
12074   # We cannot hardcode anything, or else we can only hardcode existing
12075   # directories.
12076   hardcode_action=unsupported
12077 fi
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12079 $as_echo "$hardcode_action" >&6; }
12080
12081 if test "$hardcode_action" = relink ||
12082    test "$inherit_rpath" = yes; then
12083   # Fast installation is not supported
12084   enable_fast_install=no
12085 elif test "$shlibpath_overrides_runpath" = yes ||
12086      test "$enable_shared" = no; then
12087   # Fast installation is not necessary
12088   enable_fast_install=needless
12089 fi
12090
12091
12092
12093
12094
12095
12096   if test "x$enable_dlopen" != xyes; then
12097   enable_dlopen=unknown
12098   enable_dlopen_self=unknown
12099   enable_dlopen_self_static=unknown
12100 else
12101   lt_cv_dlopen=no
12102   lt_cv_dlopen_libs=
12103
12104   case $host_os in
12105   beos*)
12106     lt_cv_dlopen="load_add_on"
12107     lt_cv_dlopen_libs=
12108     lt_cv_dlopen_self=yes
12109     ;;
12110
12111   mingw* | pw32* | cegcc*)
12112     lt_cv_dlopen="LoadLibrary"
12113     lt_cv_dlopen_libs=
12114     ;;
12115
12116   cygwin*)
12117     lt_cv_dlopen="dlopen"
12118     lt_cv_dlopen_libs=
12119     ;;
12120
12121   darwin*)
12122   # if libdl is installed we need to link against it
12123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12124 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12125 if ${ac_cv_lib_dl_dlopen+:} false; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-ldl  $LIBS"
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h.  */
12132
12133 /* Override any GCC internal prototype to avoid an error.
12134    Use char because int might match the return type of a GCC
12135    builtin and then its argument prototype would still apply.  */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 char dlopen ();
12140 int
12141 main ()
12142 {
12143 return dlopen ();
12144   ;
12145   return 0;
12146 }
12147 _ACEOF
12148 if ac_fn_c_try_link "$LINENO"; then :
12149   ac_cv_lib_dl_dlopen=yes
12150 else
12151   ac_cv_lib_dl_dlopen=no
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext \
12154     conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12158 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12159 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12160   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12161 else
12162
12163     lt_cv_dlopen="dyld"
12164     lt_cv_dlopen_libs=
12165     lt_cv_dlopen_self=yes
12166
12167 fi
12168
12169     ;;
12170
12171   *)
12172     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12173 if test "x$ac_cv_func_shl_load" = xyes; then :
12174   lt_cv_dlopen="shl_load"
12175 else
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12177 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12178 if ${ac_cv_lib_dld_shl_load+:} false; then :
12179   $as_echo_n "(cached) " >&6
12180 else
12181   ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-ldld  $LIBS"
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h.  */
12185
12186 /* Override any GCC internal prototype to avoid an error.
12187    Use char because int might match the return type of a GCC
12188    builtin and then its argument prototype would still apply.  */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 char shl_load ();
12193 int
12194 main ()
12195 {
12196 return shl_load ();
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202   ac_cv_lib_dld_shl_load=yes
12203 else
12204   ac_cv_lib_dld_shl_load=no
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext \
12207     conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12209 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12211 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12212 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12213   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12214 else
12215   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12216 if test "x$ac_cv_func_dlopen" = xyes; then :
12217   lt_cv_dlopen="dlopen"
12218 else
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12221 if ${ac_cv_lib_dl_dlopen+:} false; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-ldl  $LIBS"
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h.  */
12228
12229 /* Override any GCC internal prototype to avoid an error.
12230    Use char because int might match the return type of a GCC
12231    builtin and then its argument prototype would still apply.  */
12232 #ifdef __cplusplus
12233 extern "C"
12234 #endif
12235 char dlopen ();
12236 int
12237 main ()
12238 {
12239 return dlopen ();
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 if ac_fn_c_try_link "$LINENO"; then :
12245   ac_cv_lib_dl_dlopen=yes
12246 else
12247   ac_cv_lib_dl_dlopen=no
12248 fi
12249 rm -f core conftest.err conftest.$ac_objext \
12250     conftest$ac_exeext conftest.$ac_ext
12251 LIBS=$ac_check_lib_save_LIBS
12252 fi
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12254 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12255 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12256   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12257 else
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12259 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12260 if ${ac_cv_lib_svld_dlopen+:} false; then :
12261   $as_echo_n "(cached) " >&6
12262 else
12263   ac_check_lib_save_LIBS=$LIBS
12264 LIBS="-lsvld  $LIBS"
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h.  */
12267
12268 /* Override any GCC internal prototype to avoid an error.
12269    Use char because int might match the return type of a GCC
12270    builtin and then its argument prototype would still apply.  */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 char dlopen ();
12275 int
12276 main ()
12277 {
12278 return dlopen ();
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_link "$LINENO"; then :
12284   ac_cv_lib_svld_dlopen=yes
12285 else
12286   ac_cv_lib_svld_dlopen=no
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext \
12289     conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12293 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12294 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12296 else
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12298 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12299 if ${ac_cv_lib_dld_dld_link+:} false; then :
12300   $as_echo_n "(cached) " >&6
12301 else
12302   ac_check_lib_save_LIBS=$LIBS
12303 LIBS="-ldld  $LIBS"
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h.  */
12306
12307 /* Override any GCC internal prototype to avoid an error.
12308    Use char because int might match the return type of a GCC
12309    builtin and then its argument prototype would still apply.  */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 char dld_link ();
12314 int
12315 main ()
12316 {
12317 return dld_link ();
12318   ;
12319   return 0;
12320 }
12321 _ACEOF
12322 if ac_fn_c_try_link "$LINENO"; then :
12323   ac_cv_lib_dld_dld_link=yes
12324 else
12325   ac_cv_lib_dld_dld_link=no
12326 fi
12327 rm -f core conftest.err conftest.$ac_objext \
12328     conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12332 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12333 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12334   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12335 fi
12336
12337
12338 fi
12339
12340
12341 fi
12342
12343
12344 fi
12345
12346
12347 fi
12348
12349
12350 fi
12351
12352     ;;
12353   esac
12354
12355   if test "x$lt_cv_dlopen" != xno; then
12356     enable_dlopen=yes
12357   else
12358     enable_dlopen=no
12359   fi
12360
12361   case $lt_cv_dlopen in
12362   dlopen)
12363     save_CPPFLAGS="$CPPFLAGS"
12364     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12365
12366     save_LDFLAGS="$LDFLAGS"
12367     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12368
12369     save_LIBS="$LIBS"
12370     LIBS="$lt_cv_dlopen_libs $LIBS"
12371
12372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12373 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12374 if ${lt_cv_dlopen_self+:} false; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377           if test "$cross_compiling" = yes; then :
12378   lt_cv_dlopen_self=cross
12379 else
12380   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12381   lt_status=$lt_dlunknown
12382   cat > conftest.$ac_ext <<_LT_EOF
12383 #line $LINENO "configure"
12384 #include "confdefs.h"
12385
12386 #if HAVE_DLFCN_H
12387 #include <dlfcn.h>
12388 #endif
12389
12390 #include <stdio.h>
12391
12392 #ifdef RTLD_GLOBAL
12393 #  define LT_DLGLOBAL           RTLD_GLOBAL
12394 #else
12395 #  ifdef DL_GLOBAL
12396 #    define LT_DLGLOBAL         DL_GLOBAL
12397 #  else
12398 #    define LT_DLGLOBAL         0
12399 #  endif
12400 #endif
12401
12402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12403    find out it does not work in some platform. */
12404 #ifndef LT_DLLAZY_OR_NOW
12405 #  ifdef RTLD_LAZY
12406 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12407 #  else
12408 #    ifdef DL_LAZY
12409 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12410 #    else
12411 #      ifdef RTLD_NOW
12412 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12413 #      else
12414 #        ifdef DL_NOW
12415 #          define LT_DLLAZY_OR_NOW      DL_NOW
12416 #        else
12417 #          define LT_DLLAZY_OR_NOW      0
12418 #        endif
12419 #      endif
12420 #    endif
12421 #  endif
12422 #endif
12423
12424 /* When -fvisbility=hidden is used, assume the code has been annotated
12425    correspondingly for the symbols needed.  */
12426 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12427 int fnord () __attribute__((visibility("default")));
12428 #endif
12429
12430 int fnord () { return 42; }
12431 int main ()
12432 {
12433   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12434   int status = $lt_dlunknown;
12435
12436   if (self)
12437     {
12438       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12439       else
12440         {
12441           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12442           else puts (dlerror ());
12443         }
12444       /* dlclose (self); */
12445     }
12446   else
12447     puts (dlerror ());
12448
12449   return status;
12450 }
12451 _LT_EOF
12452   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12453   (eval $ac_link) 2>&5
12454   ac_status=$?
12455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12457     (./conftest; exit; ) >&5 2>/dev/null
12458     lt_status=$?
12459     case x$lt_status in
12460       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12461       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12462       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12463     esac
12464   else :
12465     # compilation failed
12466     lt_cv_dlopen_self=no
12467   fi
12468 fi
12469 rm -fr conftest*
12470
12471
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12474 $as_echo "$lt_cv_dlopen_self" >&6; }
12475
12476     if test "x$lt_cv_dlopen_self" = xyes; then
12477       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12478       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12479 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12480 if ${lt_cv_dlopen_self_static+:} false; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483           if test "$cross_compiling" = yes; then :
12484   lt_cv_dlopen_self_static=cross
12485 else
12486   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12487   lt_status=$lt_dlunknown
12488   cat > conftest.$ac_ext <<_LT_EOF
12489 #line $LINENO "configure"
12490 #include "confdefs.h"
12491
12492 #if HAVE_DLFCN_H
12493 #include <dlfcn.h>
12494 #endif
12495
12496 #include <stdio.h>
12497
12498 #ifdef RTLD_GLOBAL
12499 #  define LT_DLGLOBAL           RTLD_GLOBAL
12500 #else
12501 #  ifdef DL_GLOBAL
12502 #    define LT_DLGLOBAL         DL_GLOBAL
12503 #  else
12504 #    define LT_DLGLOBAL         0
12505 #  endif
12506 #endif
12507
12508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12509    find out it does not work in some platform. */
12510 #ifndef LT_DLLAZY_OR_NOW
12511 #  ifdef RTLD_LAZY
12512 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12513 #  else
12514 #    ifdef DL_LAZY
12515 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12516 #    else
12517 #      ifdef RTLD_NOW
12518 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12519 #      else
12520 #        ifdef DL_NOW
12521 #          define LT_DLLAZY_OR_NOW      DL_NOW
12522 #        else
12523 #          define LT_DLLAZY_OR_NOW      0
12524 #        endif
12525 #      endif
12526 #    endif
12527 #  endif
12528 #endif
12529
12530 /* When -fvisbility=hidden is used, assume the code has been annotated
12531    correspondingly for the symbols needed.  */
12532 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12533 int fnord () __attribute__((visibility("default")));
12534 #endif
12535
12536 int fnord () { return 42; }
12537 int main ()
12538 {
12539   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12540   int status = $lt_dlunknown;
12541
12542   if (self)
12543     {
12544       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12545       else
12546         {
12547           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12548           else puts (dlerror ());
12549         }
12550       /* dlclose (self); */
12551     }
12552   else
12553     puts (dlerror ());
12554
12555   return status;
12556 }
12557 _LT_EOF
12558   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12559   (eval $ac_link) 2>&5
12560   ac_status=$?
12561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12562   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12563     (./conftest; exit; ) >&5 2>/dev/null
12564     lt_status=$?
12565     case x$lt_status in
12566       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12567       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12568       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12569     esac
12570   else :
12571     # compilation failed
12572     lt_cv_dlopen_self_static=no
12573   fi
12574 fi
12575 rm -fr conftest*
12576
12577
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12580 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12581     fi
12582
12583     CPPFLAGS="$save_CPPFLAGS"
12584     LDFLAGS="$save_LDFLAGS"
12585     LIBS="$save_LIBS"
12586     ;;
12587   esac
12588
12589   case $lt_cv_dlopen_self in
12590   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12591   *) enable_dlopen_self=unknown ;;
12592   esac
12593
12594   case $lt_cv_dlopen_self_static in
12595   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12596   *) enable_dlopen_self_static=unknown ;;
12597   esac
12598 fi
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616 striplib=
12617 old_striplib=
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12619 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12620 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12621   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12622   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624 $as_echo "yes" >&6; }
12625 else
12626 # FIXME - insert some real tests, host_os isn't really good enough
12627   case $host_os in
12628   darwin*)
12629     if test -n "$STRIP" ; then
12630       striplib="$STRIP -x"
12631       old_striplib="$STRIP -S"
12632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12634     else
12635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637     fi
12638     ;;
12639   *)
12640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641 $as_echo "no" >&6; }
12642     ;;
12643   esac
12644 fi
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657   # Report which library types will actually be built
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12659 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12661 $as_echo "$can_build_shared" >&6; }
12662
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12664 $as_echo_n "checking whether to build shared libraries... " >&6; }
12665   test "$can_build_shared" = "no" && enable_shared=no
12666
12667   # On AIX, shared libraries and static libraries use the same namespace, and
12668   # are all built from PIC.
12669   case $host_os in
12670   aix3*)
12671     test "$enable_shared" = yes && enable_static=no
12672     if test -n "$RANLIB"; then
12673       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12674       postinstall_cmds='$RANLIB $lib'
12675     fi
12676     ;;
12677
12678   aix[4-9]*)
12679     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12680       test "$enable_shared" = yes && enable_static=no
12681     fi
12682     ;;
12683   esac
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12685 $as_echo "$enable_shared" >&6; }
12686
12687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12688 $as_echo_n "checking whether to build static libraries... " >&6; }
12689   # Make sure either enable_shared or enable_static is yes.
12690   test "$enable_shared" = yes || enable_static=yes
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12692 $as_echo "$enable_static" >&6; }
12693
12694
12695
12696
12697 fi
12698 ac_ext=c
12699 ac_cpp='$CPP $CPPFLAGS'
12700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12703
12704 CC="$lt_save_CC"
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720         ac_config_commands="$ac_config_commands libtool"
12721
12722
12723
12724
12725 # Only expand once:
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12736         if test -n "$ac_tool_prefix"; then
12737   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12738 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   case $PKG_CONFIG in
12745   [\\/]* | ?:[\\/]*)
12746   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12747   ;;
12748   *)
12749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12751 do
12752   IFS=$as_save_IFS
12753   test -z "$as_dir" && as_dir=.
12754     for ac_exec_ext in '' $ac_executable_extensions; do
12755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12756     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12758     break 2
12759   fi
12760 done
12761   done
12762 IFS=$as_save_IFS
12763
12764   ;;
12765 esac
12766 fi
12767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12768 if test -n "$PKG_CONFIG"; then
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12770 $as_echo "$PKG_CONFIG" >&6; }
12771 else
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12774 fi
12775
12776
12777 fi
12778 if test -z "$ac_cv_path_PKG_CONFIG"; then
12779   ac_pt_PKG_CONFIG=$PKG_CONFIG
12780   # Extract the first word of "pkg-config", so it can be a program name with args.
12781 set dummy pkg-config; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12785   $as_echo_n "(cached) " >&6
12786 else
12787   case $ac_pt_PKG_CONFIG in
12788   [\\/]* | ?:[\\/]*)
12789   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12790   ;;
12791   *)
12792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12794 do
12795   IFS=$as_save_IFS
12796   test -z "$as_dir" && as_dir=.
12797     for ac_exec_ext in '' $ac_executable_extensions; do
12798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801     break 2
12802   fi
12803 done
12804   done
12805 IFS=$as_save_IFS
12806
12807   ;;
12808 esac
12809 fi
12810 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12811 if test -n "$ac_pt_PKG_CONFIG"; then
12812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12813 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12814 else
12815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12817 fi
12818
12819   if test "x$ac_pt_PKG_CONFIG" = x; then
12820     PKG_CONFIG=""
12821   else
12822     case $cross_compiling:$ac_tool_warned in
12823 yes:)
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12826 ac_tool_warned=yes ;;
12827 esac
12828     PKG_CONFIG=$ac_pt_PKG_CONFIG
12829   fi
12830 else
12831   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12832 fi
12833
12834 fi
12835 if test -n "$PKG_CONFIG"; then
12836         _pkg_min_version=0.9.0
12837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12838 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12839         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12840                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841 $as_echo "yes" >&6; }
12842         else
12843                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845                 PKG_CONFIG=""
12846         fi
12847 fi
12848
12849 ac_header_dirent=no
12850 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12851   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12853 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12854 if eval \${$as_ac_Header+:} false; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h.  */
12859 #include <sys/types.h>
12860 #include <$ac_hdr>
12861
12862 int
12863 main ()
12864 {
12865 if ((DIR *) 0)
12866 return 0;
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 if ac_fn_c_try_compile "$LINENO"; then :
12872   eval "$as_ac_Header=yes"
12873 else
12874   eval "$as_ac_Header=no"
12875 fi
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 fi
12878 eval ac_res=\$$as_ac_Header
12879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12880 $as_echo "$ac_res" >&6; }
12881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12882   cat >>confdefs.h <<_ACEOF
12883 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12884 _ACEOF
12885
12886 ac_header_dirent=$ac_hdr; break
12887 fi
12888
12889 done
12890 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12891 if test $ac_header_dirent = dirent.h; then
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12893 $as_echo_n "checking for library containing opendir... " >&6; }
12894 if ${ac_cv_search_opendir+:} false; then :
12895   $as_echo_n "(cached) " >&6
12896 else
12897   ac_func_search_save_LIBS=$LIBS
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h.  */
12900
12901 /* Override any GCC internal prototype to avoid an error.
12902    Use char because int might match the return type of a GCC
12903    builtin and then its argument prototype would still apply.  */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 char opendir ();
12908 int
12909 main ()
12910 {
12911 return opendir ();
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 for ac_lib in '' dir; do
12917   if test -z "$ac_lib"; then
12918     ac_res="none required"
12919   else
12920     ac_res=-l$ac_lib
12921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12922   fi
12923   if ac_fn_c_try_link "$LINENO"; then :
12924   ac_cv_search_opendir=$ac_res
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext \
12927     conftest$ac_exeext
12928   if ${ac_cv_search_opendir+:} false; then :
12929   break
12930 fi
12931 done
12932 if ${ac_cv_search_opendir+:} false; then :
12933
12934 else
12935   ac_cv_search_opendir=no
12936 fi
12937 rm conftest.$ac_ext
12938 LIBS=$ac_func_search_save_LIBS
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12941 $as_echo "$ac_cv_search_opendir" >&6; }
12942 ac_res=$ac_cv_search_opendir
12943 if test "$ac_res" != no; then :
12944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12945
12946 fi
12947
12948 else
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12950 $as_echo_n "checking for library containing opendir... " >&6; }
12951 if ${ac_cv_search_opendir+:} false; then :
12952   $as_echo_n "(cached) " >&6
12953 else
12954   ac_func_search_save_LIBS=$LIBS
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h.  */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959    Use char because int might match the return type of a GCC
12960    builtin and then its argument prototype would still apply.  */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char opendir ();
12965 int
12966 main ()
12967 {
12968 return opendir ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 for ac_lib in '' x; do
12974   if test -z "$ac_lib"; then
12975     ac_res="none required"
12976   else
12977     ac_res=-l$ac_lib
12978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12979   fi
12980   if ac_fn_c_try_link "$LINENO"; then :
12981   ac_cv_search_opendir=$ac_res
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext \
12984     conftest$ac_exeext
12985   if ${ac_cv_search_opendir+:} false; then :
12986   break
12987 fi
12988 done
12989 if ${ac_cv_search_opendir+:} false; then :
12990
12991 else
12992   ac_cv_search_opendir=no
12993 fi
12994 rm conftest.$ac_ext
12995 LIBS=$ac_func_search_save_LIBS
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12998 $as_echo "$ac_cv_search_opendir" >&6; }
12999 ac_res=$ac_cv_search_opendir
13000 if test "$ac_res" != no; then :
13001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002
13003 fi
13004
13005 fi
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13008 $as_echo_n "checking for ANSI C header files... " >&6; }
13009 if ${ac_cv_header_stdc+:} false; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h.  */
13014 #include <stdlib.h>
13015 #include <stdarg.h>
13016 #include <string.h>
13017 #include <float.h>
13018
13019 int
13020 main ()
13021 {
13022
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028   ac_cv_header_stdc=yes
13029 else
13030   ac_cv_header_stdc=no
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033
13034 if test $ac_cv_header_stdc = yes; then
13035   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038 #include <string.h>
13039
13040 _ACEOF
13041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13042   $EGREP "memchr" >/dev/null 2>&1; then :
13043
13044 else
13045   ac_cv_header_stdc=no
13046 fi
13047 rm -f conftest*
13048
13049 fi
13050
13051 if test $ac_cv_header_stdc = yes; then
13052   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h.  */
13055 #include <stdlib.h>
13056
13057 _ACEOF
13058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13059   $EGREP "free" >/dev/null 2>&1; then :
13060
13061 else
13062   ac_cv_header_stdc=no
13063 fi
13064 rm -f conftest*
13065
13066 fi
13067
13068 if test $ac_cv_header_stdc = yes; then
13069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13070   if test "$cross_compiling" = yes; then :
13071   :
13072 else
13073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h.  */
13075 #include <ctype.h>
13076 #include <stdlib.h>
13077 #if ((' ' & 0x0FF) == 0x020)
13078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13080 #else
13081 # define ISLOWER(c) \
13082                    (('a' <= (c) && (c) <= 'i') \
13083                      || ('j' <= (c) && (c) <= 'r') \
13084                      || ('s' <= (c) && (c) <= 'z'))
13085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13086 #endif
13087
13088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13089 int
13090 main ()
13091 {
13092   int i;
13093   for (i = 0; i < 256; i++)
13094     if (XOR (islower (i), ISLOWER (i))
13095         || toupper (i) != TOUPPER (i))
13096       return 2;
13097   return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_run "$LINENO"; then :
13101
13102 else
13103   ac_cv_header_stdc=no
13104 fi
13105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13106   conftest.$ac_objext conftest.beam conftest.$ac_ext
13107 fi
13108
13109 fi
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13112 $as_echo "$ac_cv_header_stdc" >&6; }
13113 if test $ac_cv_header_stdc = yes; then
13114
13115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13116
13117 fi
13118
13119 for ac_header in fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
13120         ctype.h unistd.h locale.h byteswap.h endian.h
13121 do :
13122   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13123 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13125   cat >>confdefs.h <<_ACEOF
13126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13127 _ACEOF
13128
13129 fi
13130
13131 done
13132
13133
13134 for ac_header in uuid/uuid.h
13135 do :
13136   ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13137 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
13138   cat >>confdefs.h <<_ACEOF
13139 #define HAVE_UUID_UUID_H 1
13140 _ACEOF
13141
13142 else
13143   as_fn_error $? "You need the uuid library." "$LINENO" 5
13144 fi
13145
13146 done
13147
13148 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
13149 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
13150
13151 else
13152   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
13153 fi
13154
13155
13156
13157 saved_LIBS=$LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5
13159 $as_echo_n "checking for uuid_clear in -luuid... " >&6; }
13160 if ${ac_cv_lib_uuid_uuid_clear+:} false; then :
13161   $as_echo_n "(cached) " >&6
13162 else
13163   ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-luuid  $LIBS"
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167
13168 /* Override any GCC internal prototype to avoid an error.
13169    Use char because int might match the return type of a GCC
13170    builtin and then its argument prototype would still apply.  */
13171 #ifdef __cplusplus
13172 extern "C"
13173 #endif
13174 char uuid_clear ();
13175 int
13176 main ()
13177 {
13178 return uuid_clear ();
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_c_try_link "$LINENO"; then :
13184   ac_cv_lib_uuid_uuid_clear=yes
13185 else
13186   ac_cv_lib_uuid_uuid_clear=no
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext \
13189     conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5
13193 $as_echo "$ac_cv_lib_uuid_uuid_clear" >&6; }
13194 if test "x$ac_cv_lib_uuid_uuid_clear" = xyes; then :
13195   cat >>confdefs.h <<_ACEOF
13196 #define HAVE_LIBUUID 1
13197 _ACEOF
13198
13199   LIBS="-luuid $LIBS"
13200
13201 else
13202   as_fn_error $? "You need the uuid library." "$LINENO" 5
13203 fi
13204
13205 UUID_LIBS=$LIBS
13206
13207 LIBS=$saved_LIBS
13208
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13210 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13211 if ${ac_cv_search_clock_gettime+:} false; then :
13212   $as_echo_n "(cached) " >&6
13213 else
13214   ac_func_search_save_LIBS=$LIBS
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h.  */
13217
13218 /* Override any GCC internal prototype to avoid an error.
13219    Use char because int might match the return type of a GCC
13220    builtin and then its argument prototype would still apply.  */
13221 #ifdef __cplusplus
13222 extern "C"
13223 #endif
13224 char clock_gettime ();
13225 int
13226 main ()
13227 {
13228 return clock_gettime ();
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 for ac_lib in '' rt posix4; do
13234   if test -z "$ac_lib"; then
13235     ac_res="none required"
13236   else
13237     ac_res=-l$ac_lib
13238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13239   fi
13240   if ac_fn_c_try_link "$LINENO"; then :
13241   ac_cv_search_clock_gettime=$ac_res
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext \
13244     conftest$ac_exeext
13245   if ${ac_cv_search_clock_gettime+:} false; then :
13246   break
13247 fi
13248 done
13249 if ${ac_cv_search_clock_gettime+:} false; then :
13250
13251 else
13252   ac_cv_search_clock_gettime=no
13253 fi
13254 rm conftest.$ac_ext
13255 LIBS=$ac_func_search_save_LIBS
13256 fi
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13258 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13259 ac_res=$ac_cv_search_clock_gettime
13260 if test "$ac_res" != no; then :
13261   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13262
13263 fi
13264
13265 for ac_func in posix_memalign clock_gettime
13266 do :
13267   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13270   cat >>confdefs.h <<_ACEOF
13271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13272 _ACEOF
13273
13274 fi
13275 done
13276
13277
13278 if test "x$enable_largefile" = "xno" ; then
13279   as_fn_error $? "Building with --disable-largefile is not supported, it can cause data corruption." "$LINENO" 5
13280 fi
13281
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13283 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13284 if ${ac_cv_c_const+:} false; then :
13285   $as_echo_n "(cached) " >&6
13286 else
13287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h.  */
13289
13290 int
13291 main ()
13292 {
13293
13294 #ifndef __cplusplus
13295   /* Ultrix mips cc rejects this sort of thing.  */
13296   typedef int charset[2];
13297   const charset cs = { 0, 0 };
13298   /* SunOS 4.1.1 cc rejects this.  */
13299   char const *const *pcpcc;
13300   char **ppc;
13301   /* NEC SVR4.0.2 mips cc rejects this.  */
13302   struct point {int x, y;};
13303   static struct point const zero = {0,0};
13304   /* AIX XL C 1.02.0.0 rejects this.
13305      It does not let you subtract one const X* pointer from another in
13306      an arm of an if-expression whose if-part is not a constant
13307      expression */
13308   const char *g = "string";
13309   pcpcc = &g + (g ? g-g : 0);
13310   /* HPUX 7.0 cc rejects these. */
13311   ++pcpcc;
13312   ppc = (char**) pcpcc;
13313   pcpcc = (char const *const *) ppc;
13314   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13315     char tx;
13316     char *t = &tx;
13317     char const *s = 0 ? (char *) 0 : (char const *) 0;
13318
13319     *t++ = 0;
13320     if (s) return 0;
13321   }
13322   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13323     int x[] = {25, 17};
13324     const int *foo = &x[0];
13325     ++foo;
13326   }
13327   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13328     typedef const int *iptr;
13329     iptr p = 0;
13330     ++p;
13331   }
13332   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13333        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13334     struct s { int j; const int *ap[3]; } bx;
13335     struct s *b = &bx; b->j = 5;
13336   }
13337   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13338     const int foo = 10;
13339     if (!foo) return 0;
13340   }
13341   return !cs[0] && !zero.x;
13342 #endif
13343
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"; then :
13349   ac_cv_c_const=yes
13350 else
13351   ac_cv_c_const=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13356 $as_echo "$ac_cv_c_const" >&6; }
13357 if test $ac_cv_c_const = no; then
13358
13359 $as_echo "#define const /**/" >>confdefs.h
13360
13361 fi
13362
13363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13364 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13365 if ${ac_cv_c_bigendian+:} false; then :
13366   $as_echo_n "(cached) " >&6
13367 else
13368   ac_cv_c_bigendian=unknown
13369     # See if we're dealing with a universal compiler.
13370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h.  */
13372 #ifndef __APPLE_CC__
13373                not a universal capable compiler
13374              #endif
13375              typedef int dummy;
13376
13377 _ACEOF
13378 if ac_fn_c_try_compile "$LINENO"; then :
13379
13380         # Check for potential -arch flags.  It is not universal unless
13381         # there are at least two -arch flags with different values.
13382         ac_arch=
13383         ac_prev=
13384         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13385          if test -n "$ac_prev"; then
13386            case $ac_word in
13387              i?86 | x86_64 | ppc | ppc64)
13388                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13389                  ac_arch=$ac_word
13390                else
13391                  ac_cv_c_bigendian=universal
13392                  break
13393                fi
13394                ;;
13395            esac
13396            ac_prev=
13397          elif test "x$ac_word" = "x-arch"; then
13398            ac_prev=arch
13399          fi
13400        done
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403     if test $ac_cv_c_bigendian = unknown; then
13404       # See if sys/param.h defines the BYTE_ORDER macro.
13405       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h.  */
13407 #include <sys/types.h>
13408              #include <sys/param.h>
13409
13410 int
13411 main ()
13412 {
13413 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13414                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13415                      && LITTLE_ENDIAN)
13416               bogus endian macros
13417              #endif
13418
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424   # It does; now see whether it defined to BIG_ENDIAN or not.
13425          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h.  */
13427 #include <sys/types.h>
13428                 #include <sys/param.h>
13429
13430 int
13431 main ()
13432 {
13433 #if BYTE_ORDER != BIG_ENDIAN
13434                  not big endian
13435                 #endif
13436
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442   ac_cv_c_bigendian=yes
13443 else
13444   ac_cv_c_bigendian=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 fi
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449     fi
13450     if test $ac_cv_c_bigendian = unknown; then
13451       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13452       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h.  */
13454 #include <limits.h>
13455
13456 int
13457 main ()
13458 {
13459 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13460               bogus endian macros
13461              #endif
13462
13463   ;
13464   return 0;
13465 }
13466 _ACEOF
13467 if ac_fn_c_try_compile "$LINENO"; then :
13468   # It does; now see whether it defined to _BIG_ENDIAN or not.
13469          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h.  */
13471 #include <limits.h>
13472
13473 int
13474 main ()
13475 {
13476 #ifndef _BIG_ENDIAN
13477                  not big endian
13478                 #endif
13479
13480   ;
13481   return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_compile "$LINENO"; then :
13485   ac_cv_c_bigendian=yes
13486 else
13487   ac_cv_c_bigendian=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492     fi
13493     if test $ac_cv_c_bigendian = unknown; then
13494       # Compile a test program.
13495       if test "$cross_compiling" = yes; then :
13496   # Try to guess by grepping values from an object file.
13497          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h.  */
13499 short int ascii_mm[] =
13500                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13501                 short int ascii_ii[] =
13502                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13503                 int use_ascii (int i) {
13504                   return ascii_mm[i] + ascii_ii[i];
13505                 }
13506                 short int ebcdic_ii[] =
13507                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13508                 short int ebcdic_mm[] =
13509                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13510                 int use_ebcdic (int i) {
13511                   return ebcdic_mm[i] + ebcdic_ii[i];
13512                 }
13513                 extern int foo;
13514
13515 int
13516 main ()
13517 {
13518 return use_ascii (foo) == use_ebcdic (foo);
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 if ac_fn_c_try_compile "$LINENO"; then :
13524   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13525               ac_cv_c_bigendian=yes
13526             fi
13527             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13528               if test "$ac_cv_c_bigendian" = unknown; then
13529                 ac_cv_c_bigendian=no
13530               else
13531                 # finding both strings is unlikely to happen, but who knows?
13532                 ac_cv_c_bigendian=unknown
13533               fi
13534             fi
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 else
13538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h.  */
13540 $ac_includes_default
13541 int
13542 main ()
13543 {
13544
13545              /* Are we little or big endian?  From Harbison&Steele.  */
13546              union
13547              {
13548                long int l;
13549                char c[sizeof (long int)];
13550              } u;
13551              u.l = 1;
13552              return u.c[sizeof (long int) - 1] == 1;
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_run "$LINENO"; then :
13559   ac_cv_c_bigendian=no
13560 else
13561   ac_cv_c_bigendian=yes
13562 fi
13563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13564   conftest.$ac_objext conftest.beam conftest.$ac_ext
13565 fi
13566
13567     fi
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13570 $as_echo "$ac_cv_c_bigendian" >&6; }
13571  case $ac_cv_c_bigendian in #(
13572    yes)
13573      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13574 ;; #(
13575    no)
13576       ;; #(
13577    universal)
13578
13579 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13580
13581      ;; #(
13582    *)
13583      as_fn_error $? "unknown endianness
13584  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13585  esac
13586
13587 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13588 if test "x$ac_cv_type_off_t" = xyes; then :
13589
13590 else
13591
13592 cat >>confdefs.h <<_ACEOF
13593 #define off_t long int
13594 _ACEOF
13595
13596 fi
13597
13598 # Check whether --enable-largefile was given.
13599 if test "${enable_largefile+set}" = set; then :
13600   enableval=$enable_largefile;
13601 fi
13602
13603 if test "$enable_largefile" != no; then
13604
13605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13606 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13607 if ${ac_cv_sys_largefile_CC+:} false; then :
13608   $as_echo_n "(cached) " >&6
13609 else
13610   ac_cv_sys_largefile_CC=no
13611      if test "$GCC" != yes; then
13612        ac_save_CC=$CC
13613        while :; do
13614          # IRIX 6.2 and later do not support large files by default,
13615          # so use the C compiler's -n32 option if that helps.
13616          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h.  */
13618 #include <sys/types.h>
13619  /* Check that off_t can represent 2**63 - 1 correctly.
13620     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13621     since some C++ compilers masquerading as C compilers
13622     incorrectly reject 9223372036854775807.  */
13623 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13624   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13625                        && LARGE_OFF_T % 2147483647 == 1)
13626                       ? 1 : -1];
13627 int
13628 main ()
13629 {
13630
13631   ;
13632   return 0;
13633 }
13634 _ACEOF
13635          if ac_fn_c_try_compile "$LINENO"; then :
13636   break
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext
13639          CC="$CC -n32"
13640          if ac_fn_c_try_compile "$LINENO"; then :
13641   ac_cv_sys_largefile_CC=' -n32'; break
13642 fi
13643 rm -f core conftest.err conftest.$ac_objext
13644          break
13645        done
13646        CC=$ac_save_CC
13647        rm -f conftest.$ac_ext
13648     fi
13649 fi
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13651 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13652   if test "$ac_cv_sys_largefile_CC" != no; then
13653     CC=$CC$ac_cv_sys_largefile_CC
13654   fi
13655
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13657 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13658 if ${ac_cv_sys_file_offset_bits+:} false; then :
13659   $as_echo_n "(cached) " >&6
13660 else
13661   while :; do
13662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h.  */
13664 #include <sys/types.h>
13665  /* Check that off_t can represent 2**63 - 1 correctly.
13666     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13667     since some C++ compilers masquerading as C compilers
13668     incorrectly reject 9223372036854775807.  */
13669 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13670   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13671                        && LARGE_OFF_T % 2147483647 == 1)
13672                       ? 1 : -1];
13673 int
13674 main ()
13675 {
13676
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_compile "$LINENO"; then :
13682   ac_cv_sys_file_offset_bits=no; break
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h.  */
13687 #define _FILE_OFFSET_BITS 64
13688 #include <sys/types.h>
13689  /* Check that off_t can represent 2**63 - 1 correctly.
13690     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13691     since some C++ compilers masquerading as C compilers
13692     incorrectly reject 9223372036854775807.  */
13693 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13694   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13695                        && LARGE_OFF_T % 2147483647 == 1)
13696                       ? 1 : -1];
13697 int
13698 main ()
13699 {
13700
13701   ;
13702   return 0;
13703 }
13704 _ACEOF
13705 if ac_fn_c_try_compile "$LINENO"; then :
13706   ac_cv_sys_file_offset_bits=64; break
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709   ac_cv_sys_file_offset_bits=unknown
13710   break
13711 done
13712 fi
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13714 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13715 case $ac_cv_sys_file_offset_bits in #(
13716   no | unknown) ;;
13717   *)
13718 cat >>confdefs.h <<_ACEOF
13719 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13720 _ACEOF
13721 ;;
13722 esac
13723 rm -rf conftest*
13724   if test $ac_cv_sys_file_offset_bits = unknown; then
13725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13726 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13727 if ${ac_cv_sys_large_files+:} false; then :
13728   $as_echo_n "(cached) " >&6
13729 else
13730   while :; do
13731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h.  */
13733 #include <sys/types.h>
13734  /* Check that off_t can represent 2**63 - 1 correctly.
13735     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13736     since some C++ compilers masquerading as C compilers
13737     incorrectly reject 9223372036854775807.  */
13738 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13739   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13740                        && LARGE_OFF_T % 2147483647 == 1)
13741                       ? 1 : -1];
13742 int
13743 main ()
13744 {
13745
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751   ac_cv_sys_large_files=no; break
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h.  */
13756 #define _LARGE_FILES 1
13757 #include <sys/types.h>
13758  /* Check that off_t can represent 2**63 - 1 correctly.
13759     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13760     since some C++ compilers masquerading as C compilers
13761     incorrectly reject 9223372036854775807.  */
13762 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13763   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13764                        && LARGE_OFF_T % 2147483647 == 1)
13765                       ? 1 : -1];
13766 int
13767 main ()
13768 {
13769
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775   ac_cv_sys_large_files=1; break
13776 fi
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778   ac_cv_sys_large_files=unknown
13779   break
13780 done
13781 fi
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13783 $as_echo "$ac_cv_sys_large_files" >&6; }
13784 case $ac_cv_sys_large_files in #(
13785   no | unknown) ;;
13786   *)
13787 cat >>confdefs.h <<_ACEOF
13788 #define _LARGE_FILES $ac_cv_sys_large_files
13789 _ACEOF
13790 ;;
13791 esac
13792 rm -rf conftest*
13793   fi
13794
13795
13796 fi
13797
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13799 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13800 if ${ac_cv_sys_largefile_source+:} false; then :
13801   $as_echo_n "(cached) " >&6
13802 else
13803   while :; do
13804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h.  */
13806 #include <sys/types.h> /* for off_t */
13807      #include <stdio.h>
13808 int
13809 main ()
13810 {
13811 int (*fp) (FILE *, off_t, int) = fseeko;
13812      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13813   ;
13814   return 0;
13815 }
13816 _ACEOF
13817 if ac_fn_c_try_link "$LINENO"; then :
13818   ac_cv_sys_largefile_source=no; break
13819 fi
13820 rm -f core conftest.err conftest.$ac_objext \
13821     conftest$ac_exeext conftest.$ac_ext
13822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h.  */
13824 #define _LARGEFILE_SOURCE 1
13825 #include <sys/types.h> /* for off_t */
13826      #include <stdio.h>
13827 int
13828 main ()
13829 {
13830 int (*fp) (FILE *, off_t, int) = fseeko;
13831      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13832   ;
13833   return 0;
13834 }
13835 _ACEOF
13836 if ac_fn_c_try_link "$LINENO"; then :
13837   ac_cv_sys_largefile_source=1; break
13838 fi
13839 rm -f core conftest.err conftest.$ac_objext \
13840     conftest$ac_exeext conftest.$ac_ext
13841   ac_cv_sys_largefile_source=unknown
13842   break
13843 done
13844 fi
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13846 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13847 case $ac_cv_sys_largefile_source in #(
13848   no | unknown) ;;
13849   *)
13850 cat >>confdefs.h <<_ACEOF
13851 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13852 _ACEOF
13853 ;;
13854 esac
13855 rm -rf conftest*
13856
13857 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13858 # in glibc 2.1.3, but that breaks too many other things.
13859 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13860 if test $ac_cv_sys_largefile_source != unknown; then
13861
13862 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13863
13864 fi
13865
13866 if test $ac_cv_c_compiler_gnu = yes; then
13867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13868 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13869 if ${ac_cv_prog_gcc_traditional+:} false; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872     ac_pattern="Autoconf.*'x'"
13873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h.  */
13875 #include <sgtty.h>
13876 Autoconf TIOCGETP
13877 _ACEOF
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13880   ac_cv_prog_gcc_traditional=yes
13881 else
13882   ac_cv_prog_gcc_traditional=no
13883 fi
13884 rm -f conftest*
13885
13886
13887   if test $ac_cv_prog_gcc_traditional = no; then
13888     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h.  */
13890 #include <termio.h>
13891 Autoconf TCGETA
13892 _ACEOF
13893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13894   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13895   ac_cv_prog_gcc_traditional=yes
13896 fi
13897 rm -f conftest*
13898
13899   fi
13900 fi
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13902 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13903   if test $ac_cv_prog_gcc_traditional = yes; then
13904     CC="$CC -traditional"
13905   fi
13906 fi
13907
13908 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13909 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
13910   ac_have_decl=1
13911 else
13912   ac_have_decl=0
13913 fi
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_DECL_STRERROR_R $ac_have_decl
13917 _ACEOF
13918
13919 for ac_func in strerror_r
13920 do :
13921   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13922 if test "x$ac_cv_func_strerror_r" = xyes; then :
13923   cat >>confdefs.h <<_ACEOF
13924 #define HAVE_STRERROR_R 1
13925 _ACEOF
13926
13927 fi
13928 done
13929
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13931 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13932 if ${ac_cv_func_strerror_r_char_p+:} false; then :
13933   $as_echo_n "(cached) " >&6
13934 else
13935
13936     ac_cv_func_strerror_r_char_p=no
13937     if test $ac_cv_have_decl_strerror_r = yes; then
13938       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940 $ac_includes_default
13941 int
13942 main ()
13943 {
13944
13945           char buf[100];
13946           char x = *strerror_r (0, buf, sizeof buf);
13947           char *p = strerror_r (0, buf, sizeof buf);
13948           return !p || x;
13949
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955   ac_cv_func_strerror_r_char_p=yes
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958     else
13959       # strerror_r is not declared.  Choose between
13960       # systems that have relatively inaccessible declarations for the
13961       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13962       # former has a strerror_r that returns char*, while the latter
13963       # has a strerror_r that returns `int'.
13964       # This test should segfault on the DEC system.
13965       if test "$cross_compiling" = yes; then :
13966   :
13967 else
13968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h.  */
13970 $ac_includes_default
13971         extern char *strerror_r ();
13972 int
13973 main ()
13974 {
13975 char buf[100];
13976           char x = *strerror_r (0, buf, sizeof buf);
13977           return ! isalpha (x);
13978   ;
13979   return 0;
13980 }
13981 _ACEOF
13982 if ac_fn_c_try_run "$LINENO"; then :
13983   ac_cv_func_strerror_r_char_p=yes
13984 fi
13985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13986   conftest.$ac_objext conftest.beam conftest.$ac_ext
13987 fi
13988
13989     fi
13990
13991 fi
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13993 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13994 if test $ac_cv_func_strerror_r_char_p = yes; then
13995
13996 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13997
13998 fi
13999
14000
14001
14002
14003 mkdir_p="$MKDIR_P"
14004 case $mkdir_p in
14005   [\\/$]* | ?:[\\/]*) ;;
14006   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14007 esac
14008
14009
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14011 $as_echo_n "checking whether NLS is requested... " >&6; }
14012     # Check whether --enable-nls was given.
14013 if test "${enable_nls+set}" = set; then :
14014   enableval=$enable_nls; USE_NLS=$enableval
14015 else
14016   USE_NLS=yes
14017 fi
14018
14019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14020 $as_echo "$USE_NLS" >&6; }
14021
14022
14023
14024
14025
14026
14027 # Prepare PATH_SEPARATOR.
14028 # The user is always right.
14029 if test "${PATH_SEPARATOR+set}" != set; then
14030   echo "#! /bin/sh" >conf$$.sh
14031   echo  "exit 0"   >>conf$$.sh
14032   chmod +x conf$$.sh
14033   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14034     PATH_SEPARATOR=';'
14035   else
14036     PATH_SEPARATOR=:
14037   fi
14038   rm -f conf$$.sh
14039 fi
14040
14041 # Find out how to test for executable files. Don't use a zero-byte file,
14042 # as systems may use methods other than mode bits to determine executability.
14043 cat >conf$$.file <<_ASEOF
14044 #! /bin/sh
14045 exit 0
14046 _ASEOF
14047 chmod +x conf$$.file
14048 if test -x conf$$.file >/dev/null 2>&1; then
14049   ac_executable_p="test -x"
14050 else
14051   ac_executable_p="test -f"
14052 fi
14053 rm -f conf$$.file
14054
14055 # Extract the first word of "msgfmt", so it can be a program name with args.
14056 set dummy msgfmt; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_MSGFMT+:} false; then :
14060   $as_echo_n "(cached) " >&6
14061 else
14062   case "$MSGFMT" in
14063   [\\/]* | ?:[\\/]*)
14064     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14065     ;;
14066   *)
14067     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14068     for ac_dir in $PATH; do
14069       IFS="$ac_save_IFS"
14070       test -z "$ac_dir" && ac_dir=.
14071       for ac_exec_ext in '' $ac_executable_extensions; do
14072         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14073           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14074           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14075      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14076             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14077             break 2
14078           fi
14079         fi
14080       done
14081     done
14082     IFS="$ac_save_IFS"
14083   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14084     ;;
14085 esac
14086 fi
14087 MSGFMT="$ac_cv_path_MSGFMT"
14088 if test "$MSGFMT" != ":"; then
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14090 $as_echo "$MSGFMT" >&6; }
14091 else
14092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14094 fi
14095
14096   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14097 set dummy gmsgfmt; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099 $as_echo_n "checking for $ac_word... " >&6; }
14100 if ${ac_cv_path_GMSGFMT+:} false; then :
14101   $as_echo_n "(cached) " >&6
14102 else
14103   case $GMSGFMT in
14104   [\\/]* | ?:[\\/]*)
14105   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14106   ;;
14107   *)
14108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14110 do
14111   IFS=$as_save_IFS
14112   test -z "$as_dir" && as_dir=.
14113     for ac_exec_ext in '' $ac_executable_extensions; do
14114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14115     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14117     break 2
14118   fi
14119 done
14120   done
14121 IFS=$as_save_IFS
14122
14123   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14124   ;;
14125 esac
14126 fi
14127 GMSGFMT=$ac_cv_path_GMSGFMT
14128 if test -n "$GMSGFMT"; then
14129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14130 $as_echo "$GMSGFMT" >&6; }
14131 else
14132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14134 fi
14135
14136
14137
14138     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14139     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14140     *) MSGFMT_015=$MSGFMT ;;
14141   esac
14142
14143   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14144     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14145     *) GMSGFMT_015=$GMSGFMT ;;
14146   esac
14147
14148
14149
14150 # Prepare PATH_SEPARATOR.
14151 # The user is always right.
14152 if test "${PATH_SEPARATOR+set}" != set; then
14153   echo "#! /bin/sh" >conf$$.sh
14154   echo  "exit 0"   >>conf$$.sh
14155   chmod +x conf$$.sh
14156   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14157     PATH_SEPARATOR=';'
14158   else
14159     PATH_SEPARATOR=:
14160   fi
14161   rm -f conf$$.sh
14162 fi
14163
14164 # Find out how to test for executable files. Don't use a zero-byte file,
14165 # as systems may use methods other than mode bits to determine executability.
14166 cat >conf$$.file <<_ASEOF
14167 #! /bin/sh
14168 exit 0
14169 _ASEOF
14170 chmod +x conf$$.file
14171 if test -x conf$$.file >/dev/null 2>&1; then
14172   ac_executable_p="test -x"
14173 else
14174   ac_executable_p="test -f"
14175 fi
14176 rm -f conf$$.file
14177
14178 # Extract the first word of "xgettext", so it can be a program name with args.
14179 set dummy xgettext; ac_word=$2
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14181 $as_echo_n "checking for $ac_word... " >&6; }
14182 if ${ac_cv_path_XGETTEXT+:} false; then :
14183   $as_echo_n "(cached) " >&6
14184 else
14185   case "$XGETTEXT" in
14186   [\\/]* | ?:[\\/]*)
14187     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14188     ;;
14189   *)
14190     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14191     for ac_dir in $PATH; do
14192       IFS="$ac_save_IFS"
14193       test -z "$ac_dir" && ac_dir=.
14194       for ac_exec_ext in '' $ac_executable_extensions; do
14195         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14196           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14197           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14198      (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
14199             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14200             break 2
14201           fi
14202         fi
14203       done
14204     done
14205     IFS="$ac_save_IFS"
14206   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14207     ;;
14208 esac
14209 fi
14210 XGETTEXT="$ac_cv_path_XGETTEXT"
14211 if test "$XGETTEXT" != ":"; then
14212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14213 $as_echo "$XGETTEXT" >&6; }
14214 else
14215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14217 fi
14218
14219     rm -f messages.po
14220
14221     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14222     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14223     *) XGETTEXT_015=$XGETTEXT ;;
14224   esac
14225
14226
14227
14228 # Prepare PATH_SEPARATOR.
14229 # The user is always right.
14230 if test "${PATH_SEPARATOR+set}" != set; then
14231   echo "#! /bin/sh" >conf$$.sh
14232   echo  "exit 0"   >>conf$$.sh
14233   chmod +x conf$$.sh
14234   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14235     PATH_SEPARATOR=';'
14236   else
14237     PATH_SEPARATOR=:
14238   fi
14239   rm -f conf$$.sh
14240 fi
14241
14242 # Find out how to test for executable files. Don't use a zero-byte file,
14243 # as systems may use methods other than mode bits to determine executability.
14244 cat >conf$$.file <<_ASEOF
14245 #! /bin/sh
14246 exit 0
14247 _ASEOF
14248 chmod +x conf$$.file
14249 if test -x conf$$.file >/dev/null 2>&1; then
14250   ac_executable_p="test -x"
14251 else
14252   ac_executable_p="test -f"
14253 fi
14254 rm -f conf$$.file
14255
14256 # Extract the first word of "msgmerge", so it can be a program name with args.
14257 set dummy msgmerge; ac_word=$2
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if ${ac_cv_path_MSGMERGE+:} false; then :
14261   $as_echo_n "(cached) " >&6
14262 else
14263   case "$MSGMERGE" in
14264   [\\/]* | ?:[\\/]*)
14265     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14266     ;;
14267   *)
14268     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14269     for ac_dir in $PATH; do
14270       IFS="$ac_save_IFS"
14271       test -z "$ac_dir" && ac_dir=.
14272       for ac_exec_ext in '' $ac_executable_extensions; do
14273         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14274           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14275           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14276             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14277             break 2
14278           fi
14279         fi
14280       done
14281     done
14282     IFS="$ac_save_IFS"
14283   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14284     ;;
14285 esac
14286 fi
14287 MSGMERGE="$ac_cv_path_MSGMERGE"
14288 if test "$MSGMERGE" != ":"; then
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14290 $as_echo "$MSGMERGE" >&6; }
14291 else
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293 $as_echo "no" >&6; }
14294 fi
14295
14296
14297         test -n "$localedir" || localedir='${datadir}/locale'
14298
14299
14300   ac_config_commands="$ac_config_commands po-directories"
14301
14302
14303
14304       if test "X$prefix" = "XNONE"; then
14305     acl_final_prefix="$ac_default_prefix"
14306   else
14307     acl_final_prefix="$prefix"
14308   fi
14309   if test "X$exec_prefix" = "XNONE"; then
14310     acl_final_exec_prefix='${prefix}'
14311   else
14312     acl_final_exec_prefix="$exec_prefix"
14313   fi
14314   acl_save_prefix="$prefix"
14315   prefix="$acl_final_prefix"
14316   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14317   prefix="$acl_save_prefix"
14318
14319
14320 # Check whether --with-gnu-ld was given.
14321 if test "${with_gnu_ld+set}" = set; then :
14322   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14323 else
14324   with_gnu_ld=no
14325 fi
14326
14327 # Prepare PATH_SEPARATOR.
14328 # The user is always right.
14329 if test "${PATH_SEPARATOR+set}" != set; then
14330   echo "#! /bin/sh" >conf$$.sh
14331   echo  "exit 0"   >>conf$$.sh
14332   chmod +x conf$$.sh
14333   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14334     PATH_SEPARATOR=';'
14335   else
14336     PATH_SEPARATOR=:
14337   fi
14338   rm -f conf$$.sh
14339 fi
14340 ac_prog=ld
14341 if test "$GCC" = yes; then
14342   # Check if gcc -print-prog-name=ld gives a path.
14343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14344 $as_echo_n "checking for ld used by GCC... " >&6; }
14345   case $host in
14346   *-*-mingw*)
14347     # gcc leaves a trailing carriage return which upsets mingw
14348     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14349   *)
14350     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14351   esac
14352   case $ac_prog in
14353     # Accept absolute paths.
14354     [\\/]* | [A-Za-z]:[\\/]*)
14355       re_direlt='/[^/][^/]*/\.\./'
14356       # Canonicalize the path of ld
14357       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14358       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14359         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14360       done
14361       test -z "$LD" && LD="$ac_prog"
14362       ;;
14363   "")
14364     # If it fails, then pretend we aren't using GCC.
14365     ac_prog=ld
14366     ;;
14367   *)
14368     # If it is relative, then search for the first ld in PATH.
14369     with_gnu_ld=unknown
14370     ;;
14371   esac
14372 elif test "$with_gnu_ld" = yes; then
14373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14374 $as_echo_n "checking for GNU ld... " >&6; }
14375 else
14376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14377 $as_echo_n "checking for non-GNU ld... " >&6; }
14378 fi
14379 if ${acl_cv_path_LD+:} false; then :
14380   $as_echo_n "(cached) " >&6
14381 else
14382   if test -z "$LD"; then
14383   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14384   for ac_dir in $PATH; do
14385     test -z "$ac_dir" && ac_dir=.
14386     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14387       acl_cv_path_LD="$ac_dir/$ac_prog"
14388       # Check to see if the program is GNU ld.  I'd rather use --version,
14389       # but apparently some GNU ld's only accept -v.
14390       # Break only if it was the GNU/non-GNU ld that we prefer.
14391       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14392       *GNU* | *'with BFD'*)
14393         test "$with_gnu_ld" != no && break ;;
14394       *)
14395         test "$with_gnu_ld" != yes && break ;;
14396       esac
14397     fi
14398   done
14399   IFS="$ac_save_ifs"
14400 else
14401   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14402 fi
14403 fi
14404
14405 LD="$acl_cv_path_LD"
14406 if test -n "$LD"; then
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14408 $as_echo "$LD" >&6; }
14409 else
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14412 fi
14413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14415 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14416 if ${acl_cv_prog_gnu_ld+:} false; then :
14417   $as_echo_n "(cached) " >&6
14418 else
14419   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14420 case `$LD -v 2>&1 </dev/null` in
14421 *GNU* | *'with BFD'*)
14422   acl_cv_prog_gnu_ld=yes ;;
14423 *)
14424   acl_cv_prog_gnu_ld=no ;;
14425 esac
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14428 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14429 with_gnu_ld=$acl_cv_prog_gnu_ld
14430
14431
14432
14433
14434                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14435 $as_echo_n "checking for shared library run path origin... " >&6; }
14436 if ${acl_cv_rpath+:} false; then :
14437   $as_echo_n "(cached) " >&6
14438 else
14439
14440     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14441     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14442     . ./conftest.sh
14443     rm -f ./conftest.sh
14444     acl_cv_rpath=done
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14448 $as_echo "$acl_cv_rpath" >&6; }
14449   wl="$acl_cv_wl"
14450   libext="$acl_cv_libext"
14451   shlibext="$acl_cv_shlibext"
14452   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14453   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14454   hardcode_direct="$acl_cv_hardcode_direct"
14455   hardcode_minus_L="$acl_cv_hardcode_minus_L"
14456     # Check whether --enable-rpath was given.
14457 if test "${enable_rpath+set}" = set; then :
14458   enableval=$enable_rpath; :
14459 else
14460   enable_rpath=yes
14461 fi
14462
14463
14464
14465                   acl_libdirstem=lib
14466   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14467   if test -n "$searchpath"; then
14468     acl_save_IFS="${IFS=        }"; IFS=":"
14469     for searchdir in $searchpath; do
14470       if test -d "$searchdir"; then
14471         case "$searchdir" in
14472           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14473           *) searchdir=`cd "$searchdir" && pwd`
14474              case "$searchdir" in
14475                */lib64 ) acl_libdirstem=lib64 ;;
14476              esac ;;
14477         esac
14478       fi
14479     done
14480     IFS="$acl_save_IFS"
14481   fi
14482
14483
14484
14485
14486
14487
14488
14489
14490     use_additional=yes
14491
14492   acl_save_prefix="$prefix"
14493   prefix="$acl_final_prefix"
14494   acl_save_exec_prefix="$exec_prefix"
14495   exec_prefix="$acl_final_exec_prefix"
14496
14497     eval additional_includedir=\"$includedir\"
14498     eval additional_libdir=\"$libdir\"
14499
14500   exec_prefix="$acl_save_exec_prefix"
14501   prefix="$acl_save_prefix"
14502
14503
14504 # Check whether --with-libiconv-prefix was given.
14505 if test "${with_libiconv_prefix+set}" = set; then :
14506   withval=$with_libiconv_prefix;
14507     if test "X$withval" = "Xno"; then
14508       use_additional=no
14509     else
14510       if test "X$withval" = "X"; then
14511
14512   acl_save_prefix="$prefix"
14513   prefix="$acl_final_prefix"
14514   acl_save_exec_prefix="$exec_prefix"
14515   exec_prefix="$acl_final_exec_prefix"
14516
14517           eval additional_includedir=\"$includedir\"
14518           eval additional_libdir=\"$libdir\"
14519
14520   exec_prefix="$acl_save_exec_prefix"
14521   prefix="$acl_save_prefix"
14522
14523       else
14524         additional_includedir="$withval/include"
14525         additional_libdir="$withval/$acl_libdirstem"
14526       fi
14527     fi
14528
14529 fi
14530
14531       LIBICONV=
14532   LTLIBICONV=
14533   INCICONV=
14534   rpathdirs=
14535   ltrpathdirs=
14536   names_already_handled=
14537   names_next_round='iconv '
14538   while test -n "$names_next_round"; do
14539     names_this_round="$names_next_round"
14540     names_next_round=
14541     for name in $names_this_round; do
14542       already_handled=
14543       for n in $names_already_handled; do
14544         if test "$n" = "$name"; then
14545           already_handled=yes
14546           break
14547         fi
14548       done
14549       if test -z "$already_handled"; then
14550         names_already_handled="$names_already_handled $name"
14551                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14552         eval value=\"\$HAVE_LIB$uppername\"
14553         if test -n "$value"; then
14554           if test "$value" = yes; then
14555             eval value=\"\$LIB$uppername\"
14556             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14557             eval value=\"\$LTLIB$uppername\"
14558             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14559           else
14560                                     :
14561           fi
14562         else
14563                               found_dir=
14564           found_la=
14565           found_so=
14566           found_a=
14567           if test $use_additional = yes; then
14568             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14569               found_dir="$additional_libdir"
14570               found_so="$additional_libdir/lib$name.$shlibext"
14571               if test -f "$additional_libdir/lib$name.la"; then
14572                 found_la="$additional_libdir/lib$name.la"
14573               fi
14574             else
14575               if test -f "$additional_libdir/lib$name.$libext"; then
14576                 found_dir="$additional_libdir"
14577                 found_a="$additional_libdir/lib$name.$libext"
14578                 if test -f "$additional_libdir/lib$name.la"; then
14579                   found_la="$additional_libdir/lib$name.la"
14580                 fi
14581               fi
14582             fi
14583           fi
14584           if test "X$found_dir" = "X"; then
14585             for x in $LDFLAGS $LTLIBICONV; do
14586
14587   acl_save_prefix="$prefix"
14588   prefix="$acl_final_prefix"
14589   acl_save_exec_prefix="$exec_prefix"
14590   exec_prefix="$acl_final_exec_prefix"
14591   eval x=\"$x\"
14592   exec_prefix="$acl_save_exec_prefix"
14593   prefix="$acl_save_prefix"
14594
14595               case "$x" in
14596                 -L*)
14597                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14598                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14599                     found_dir="$dir"
14600                     found_so="$dir/lib$name.$shlibext"
14601                     if test -f "$dir/lib$name.la"; then
14602                       found_la="$dir/lib$name.la"
14603                     fi
14604                   else
14605                     if test -f "$dir/lib$name.$libext"; then
14606                       found_dir="$dir"
14607                       found_a="$dir/lib$name.$libext"
14608                       if test -f "$dir/lib$name.la"; then
14609                         found_la="$dir/lib$name.la"
14610                       fi
14611                     fi
14612                   fi
14613                   ;;
14614               esac
14615               if test "X$found_dir" != "X"; then
14616                 break
14617               fi
14618             done
14619           fi
14620           if test "X$found_dir" != "X"; then
14621                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14622             if test "X$found_so" != "X"; then
14623                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14624                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14625               else
14626                                                                                 haveit=
14627                 for x in $ltrpathdirs; do
14628                   if test "X$x" = "X$found_dir"; then
14629                     haveit=yes
14630                     break
14631                   fi
14632                 done
14633                 if test -z "$haveit"; then
14634                   ltrpathdirs="$ltrpathdirs $found_dir"
14635                 fi
14636                                 if test "$hardcode_direct" = yes; then
14637                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14638                 else
14639                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14640                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14641                                                             haveit=
14642                     for x in $rpathdirs; do
14643                       if test "X$x" = "X$found_dir"; then
14644                         haveit=yes
14645                         break
14646                       fi
14647                     done
14648                     if test -z "$haveit"; then
14649                       rpathdirs="$rpathdirs $found_dir"
14650                     fi
14651                   else
14652                                                                                 haveit=
14653                     for x in $LDFLAGS $LIBICONV; do
14654
14655   acl_save_prefix="$prefix"
14656   prefix="$acl_final_prefix"
14657   acl_save_exec_prefix="$exec_prefix"
14658   exec_prefix="$acl_final_exec_prefix"
14659   eval x=\"$x\"
14660   exec_prefix="$acl_save_exec_prefix"
14661   prefix="$acl_save_prefix"
14662
14663                       if test "X$x" = "X-L$found_dir"; then
14664                         haveit=yes
14665                         break
14666                       fi
14667                     done
14668                     if test -z "$haveit"; then
14669                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14670                     fi
14671                     if test "$hardcode_minus_L" != no; then
14672                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14673                     else
14674                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14675                     fi
14676                   fi
14677                 fi
14678               fi
14679             else
14680               if test "X$found_a" != "X"; then
14681                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14682               else
14683                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14684               fi
14685             fi
14686                         additional_includedir=
14687             case "$found_dir" in
14688               */$acl_libdirstem | */$acl_libdirstem/)
14689                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14690                 additional_includedir="$basedir/include"
14691                 ;;
14692             esac
14693             if test "X$additional_includedir" != "X"; then
14694                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14695                 haveit=
14696                 if test "X$additional_includedir" = "X/usr/local/include"; then
14697                   if test -n "$GCC"; then
14698                     case $host_os in
14699                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14700                     esac
14701                   fi
14702                 fi
14703                 if test -z "$haveit"; then
14704                   for x in $CPPFLAGS $INCICONV; do
14705
14706   acl_save_prefix="$prefix"
14707   prefix="$acl_final_prefix"
14708   acl_save_exec_prefix="$exec_prefix"
14709   exec_prefix="$acl_final_exec_prefix"
14710   eval x=\"$x\"
14711   exec_prefix="$acl_save_exec_prefix"
14712   prefix="$acl_save_prefix"
14713
14714                     if test "X$x" = "X-I$additional_includedir"; then
14715                       haveit=yes
14716                       break
14717                     fi
14718                   done
14719                   if test -z "$haveit"; then
14720                     if test -d "$additional_includedir"; then
14721                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14722                     fi
14723                   fi
14724                 fi
14725               fi
14726             fi
14727                         if test -n "$found_la"; then
14728                                                         save_libdir="$libdir"
14729               case "$found_la" in
14730                 */* | *\\*) . "$found_la" ;;
14731                 *) . "./$found_la" ;;
14732               esac
14733               libdir="$save_libdir"
14734                             for dep in $dependency_libs; do
14735                 case "$dep" in
14736                   -L*)
14737                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14738                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14739                       haveit=
14740                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14741                         if test -n "$GCC"; then
14742                           case $host_os in
14743                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14744                           esac
14745                         fi
14746                       fi
14747                       if test -z "$haveit"; then
14748                         haveit=
14749                         for x in $LDFLAGS $LIBICONV; do
14750
14751   acl_save_prefix="$prefix"
14752   prefix="$acl_final_prefix"
14753   acl_save_exec_prefix="$exec_prefix"
14754   exec_prefix="$acl_final_exec_prefix"
14755   eval x=\"$x\"
14756   exec_prefix="$acl_save_exec_prefix"
14757   prefix="$acl_save_prefix"
14758
14759                           if test "X$x" = "X-L$additional_libdir"; then
14760                             haveit=yes
14761                             break
14762                           fi
14763                         done
14764                         if test -z "$haveit"; then
14765                           if test -d "$additional_libdir"; then
14766                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14767                           fi
14768                         fi
14769                         haveit=
14770                         for x in $LDFLAGS $LTLIBICONV; do
14771
14772   acl_save_prefix="$prefix"
14773   prefix="$acl_final_prefix"
14774   acl_save_exec_prefix="$exec_prefix"
14775   exec_prefix="$acl_final_exec_prefix"
14776   eval x=\"$x\"
14777   exec_prefix="$acl_save_exec_prefix"
14778   prefix="$acl_save_prefix"
14779
14780                           if test "X$x" = "X-L$additional_libdir"; then
14781                             haveit=yes
14782                             break
14783                           fi
14784                         done
14785                         if test -z "$haveit"; then
14786                           if test -d "$additional_libdir"; then
14787                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14788                           fi
14789                         fi
14790                       fi
14791                     fi
14792                     ;;
14793                   -R*)
14794                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14795                     if test "$enable_rpath" != no; then
14796                                                                   haveit=
14797                       for x in $rpathdirs; do
14798                         if test "X$x" = "X$dir"; then
14799                           haveit=yes
14800                           break
14801                         fi
14802                       done
14803                       if test -z "$haveit"; then
14804                         rpathdirs="$rpathdirs $dir"
14805                       fi
14806                                                                   haveit=
14807                       for x in $ltrpathdirs; do
14808                         if test "X$x" = "X$dir"; then
14809                           haveit=yes
14810                           break
14811                         fi
14812                       done
14813                       if test -z "$haveit"; then
14814                         ltrpathdirs="$ltrpathdirs $dir"
14815                       fi
14816                     fi
14817                     ;;
14818                   -l*)
14819                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14820                     ;;
14821                   *.la)
14822                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14823                     ;;
14824                   *)
14825                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14826                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14827                     ;;
14828                 esac
14829               done
14830             fi
14831           else
14832                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14833             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14834           fi
14835         fi
14836       fi
14837     done
14838   done
14839   if test "X$rpathdirs" != "X"; then
14840     if test -n "$hardcode_libdir_separator"; then
14841                         alldirs=
14842       for found_dir in $rpathdirs; do
14843         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14844       done
14845             acl_save_libdir="$libdir"
14846       libdir="$alldirs"
14847       eval flag=\"$hardcode_libdir_flag_spec\"
14848       libdir="$acl_save_libdir"
14849       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14850     else
14851             for found_dir in $rpathdirs; do
14852         acl_save_libdir="$libdir"
14853         libdir="$found_dir"
14854         eval flag=\"$hardcode_libdir_flag_spec\"
14855         libdir="$acl_save_libdir"
14856         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14857       done
14858     fi
14859   fi
14860   if test "X$ltrpathdirs" != "X"; then
14861             for found_dir in $ltrpathdirs; do
14862       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14863     done
14864   fi
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14884 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14885 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14886   $as_echo_n "(cached) " >&6
14887 else
14888   gt_save_LIBS="$LIBS"
14889      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14890      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h.  */
14892 #include <CoreFoundation/CFPreferences.h>
14893 int
14894 main ()
14895 {
14896 CFPreferencesCopyAppValue(NULL, NULL)
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 if ac_fn_c_try_link "$LINENO"; then :
14902   gt_cv_func_CFPreferencesCopyAppValue=yes
14903 else
14904   gt_cv_func_CFPreferencesCopyAppValue=no
14905 fi
14906 rm -f core conftest.err conftest.$ac_objext \
14907     conftest$ac_exeext conftest.$ac_ext
14908      LIBS="$gt_save_LIBS"
14909 fi
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14911 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14912   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14913
14914 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14915
14916   fi
14917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14918 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14919 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14920   $as_echo_n "(cached) " >&6
14921 else
14922   gt_save_LIBS="$LIBS"
14923      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14924      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h.  */
14926 #include <CoreFoundation/CFLocale.h>
14927 int
14928 main ()
14929 {
14930 CFLocaleCopyCurrent();
14931   ;
14932   return 0;
14933 }
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"; then :
14936   gt_cv_func_CFLocaleCopyCurrent=yes
14937 else
14938   gt_cv_func_CFLocaleCopyCurrent=no
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext \
14941     conftest$ac_exeext conftest.$ac_ext
14942      LIBS="$gt_save_LIBS"
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14945 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14946   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14947
14948 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14949
14950   fi
14951   INTL_MACOSX_LIBS=
14952   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14953     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14954   fi
14955
14956
14957
14958
14959
14960
14961   LIBINTL=
14962   LTLIBINTL=
14963   POSUB=
14964
14965     if test "$USE_NLS" = "yes"; then
14966     gt_use_preinstalled_gnugettext=no
14967
14968
14969
14970
14971
14972
14973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14974 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14975 if ${gt_cv_func_gnugettext2_libc+:} false; then :
14976   $as_echo_n "(cached) " >&6
14977 else
14978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h.  */
14980 #include <libintl.h>
14981 extern int _nl_msg_cat_cntr;
14982 extern int *_nl_domain_bindings;
14983 int
14984 main ()
14985 {
14986 bindtextdomain ("", "");
14987 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14988   ;
14989   return 0;
14990 }
14991 _ACEOF
14992 if ac_fn_c_try_link "$LINENO"; then :
14993   gt_cv_func_gnugettext2_libc=yes
14994 else
14995   gt_cv_func_gnugettext2_libc=no
14996 fi
14997 rm -f core conftest.err conftest.$ac_objext \
14998     conftest$ac_exeext conftest.$ac_ext
14999 fi
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
15001 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
15002
15003         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
15004
15005
15006
15007
15008
15009           am_save_CPPFLAGS="$CPPFLAGS"
15010
15011   for element in $INCICONV; do
15012     haveit=
15013     for x in $CPPFLAGS; do
15014
15015   acl_save_prefix="$prefix"
15016   prefix="$acl_final_prefix"
15017   acl_save_exec_prefix="$exec_prefix"
15018   exec_prefix="$acl_final_exec_prefix"
15019   eval x=\"$x\"
15020   exec_prefix="$acl_save_exec_prefix"
15021   prefix="$acl_save_prefix"
15022
15023       if test "X$x" = "X$element"; then
15024         haveit=yes
15025         break
15026       fi
15027     done
15028     if test -z "$haveit"; then
15029       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15030     fi
15031   done
15032
15033
15034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15035 $as_echo_n "checking for iconv... " >&6; }
15036 if ${am_cv_func_iconv+:} false; then :
15037   $as_echo_n "(cached) " >&6
15038 else
15039
15040     am_cv_func_iconv="no, consider installing GNU libiconv"
15041     am_cv_lib_iconv=no
15042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h.  */
15044 #include <stdlib.h>
15045 #include <iconv.h>
15046 int
15047 main ()
15048 {
15049 iconv_t cd = iconv_open("","");
15050        iconv(cd,NULL,NULL,NULL,NULL);
15051        iconv_close(cd);
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 if ac_fn_c_try_link "$LINENO"; then :
15057   am_cv_func_iconv=yes
15058 fi
15059 rm -f core conftest.err conftest.$ac_objext \
15060     conftest$ac_exeext conftest.$ac_ext
15061     if test "$am_cv_func_iconv" != yes; then
15062       am_save_LIBS="$LIBS"
15063       LIBS="$LIBS $LIBICONV"
15064       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h.  */
15066 #include <stdlib.h>
15067 #include <iconv.h>
15068 int
15069 main ()
15070 {
15071 iconv_t cd = iconv_open("","");
15072          iconv(cd,NULL,NULL,NULL,NULL);
15073          iconv_close(cd);
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 if ac_fn_c_try_link "$LINENO"; then :
15079   am_cv_lib_iconv=yes
15080         am_cv_func_iconv=yes
15081 fi
15082 rm -f core conftest.err conftest.$ac_objext \
15083     conftest$ac_exeext conftest.$ac_ext
15084       LIBS="$am_save_LIBS"
15085     fi
15086
15087 fi
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15089 $as_echo "$am_cv_func_iconv" >&6; }
15090   if test "$am_cv_func_iconv" = yes; then
15091
15092 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15093
15094   fi
15095   if test "$am_cv_lib_iconv" = yes; then
15096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15097 $as_echo_n "checking how to link with libiconv... " >&6; }
15098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15099 $as_echo "$LIBICONV" >&6; }
15100   else
15101             CPPFLAGS="$am_save_CPPFLAGS"
15102     LIBICONV=
15103     LTLIBICONV=
15104   fi
15105
15106
15107
15108
15109
15110
15111
15112     use_additional=yes
15113
15114   acl_save_prefix="$prefix"
15115   prefix="$acl_final_prefix"
15116   acl_save_exec_prefix="$exec_prefix"
15117   exec_prefix="$acl_final_exec_prefix"
15118
15119     eval additional_includedir=\"$includedir\"
15120     eval additional_libdir=\"$libdir\"
15121
15122   exec_prefix="$acl_save_exec_prefix"
15123   prefix="$acl_save_prefix"
15124
15125
15126 # Check whether --with-libintl-prefix was given.
15127 if test "${with_libintl_prefix+set}" = set; then :
15128   withval=$with_libintl_prefix;
15129     if test "X$withval" = "Xno"; then
15130       use_additional=no
15131     else
15132       if test "X$withval" = "X"; then
15133
15134   acl_save_prefix="$prefix"
15135   prefix="$acl_final_prefix"
15136   acl_save_exec_prefix="$exec_prefix"
15137   exec_prefix="$acl_final_exec_prefix"
15138
15139           eval additional_includedir=\"$includedir\"
15140           eval additional_libdir=\"$libdir\"
15141
15142   exec_prefix="$acl_save_exec_prefix"
15143   prefix="$acl_save_prefix"
15144
15145       else
15146         additional_includedir="$withval/include"
15147         additional_libdir="$withval/$acl_libdirstem"
15148       fi
15149     fi
15150
15151 fi
15152
15153       LIBINTL=
15154   LTLIBINTL=
15155   INCINTL=
15156   rpathdirs=
15157   ltrpathdirs=
15158   names_already_handled=
15159   names_next_round='intl '
15160   while test -n "$names_next_round"; do
15161     names_this_round="$names_next_round"
15162     names_next_round=
15163     for name in $names_this_round; do
15164       already_handled=
15165       for n in $names_already_handled; do
15166         if test "$n" = "$name"; then
15167           already_handled=yes
15168           break
15169         fi
15170       done
15171       if test -z "$already_handled"; then
15172         names_already_handled="$names_already_handled $name"
15173                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15174         eval value=\"\$HAVE_LIB$uppername\"
15175         if test -n "$value"; then
15176           if test "$value" = yes; then
15177             eval value=\"\$LIB$uppername\"
15178             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15179             eval value=\"\$LTLIB$uppername\"
15180             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15181           else
15182                                     :
15183           fi
15184         else
15185                               found_dir=
15186           found_la=
15187           found_so=
15188           found_a=
15189           if test $use_additional = yes; then
15190             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15191               found_dir="$additional_libdir"
15192               found_so="$additional_libdir/lib$name.$shlibext"
15193               if test -f "$additional_libdir/lib$name.la"; then
15194                 found_la="$additional_libdir/lib$name.la"
15195               fi
15196             else
15197               if test -f "$additional_libdir/lib$name.$libext"; then
15198                 found_dir="$additional_libdir"
15199                 found_a="$additional_libdir/lib$name.$libext"
15200                 if test -f "$additional_libdir/lib$name.la"; then
15201                   found_la="$additional_libdir/lib$name.la"
15202                 fi
15203               fi
15204             fi
15205           fi
15206           if test "X$found_dir" = "X"; then
15207             for x in $LDFLAGS $LTLIBINTL; do
15208
15209   acl_save_prefix="$prefix"
15210   prefix="$acl_final_prefix"
15211   acl_save_exec_prefix="$exec_prefix"
15212   exec_prefix="$acl_final_exec_prefix"
15213   eval x=\"$x\"
15214   exec_prefix="$acl_save_exec_prefix"
15215   prefix="$acl_save_prefix"
15216
15217               case "$x" in
15218                 -L*)
15219                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15220                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15221                     found_dir="$dir"
15222                     found_so="$dir/lib$name.$shlibext"
15223                     if test -f "$dir/lib$name.la"; then
15224                       found_la="$dir/lib$name.la"
15225                     fi
15226                   else
15227                     if test -f "$dir/lib$name.$libext"; then
15228                       found_dir="$dir"
15229                       found_a="$dir/lib$name.$libext"
15230                       if test -f "$dir/lib$name.la"; then
15231                         found_la="$dir/lib$name.la"
15232                       fi
15233                     fi
15234                   fi
15235                   ;;
15236               esac
15237               if test "X$found_dir" != "X"; then
15238                 break
15239               fi
15240             done
15241           fi
15242           if test "X$found_dir" != "X"; then
15243                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15244             if test "X$found_so" != "X"; then
15245                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15246                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15247               else
15248                                                                                 haveit=
15249                 for x in $ltrpathdirs; do
15250                   if test "X$x" = "X$found_dir"; then
15251                     haveit=yes
15252                     break
15253                   fi
15254                 done
15255                 if test -z "$haveit"; then
15256                   ltrpathdirs="$ltrpathdirs $found_dir"
15257                 fi
15258                                 if test "$hardcode_direct" = yes; then
15259                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15260                 else
15261                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15262                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15263                                                             haveit=
15264                     for x in $rpathdirs; do
15265                       if test "X$x" = "X$found_dir"; then
15266                         haveit=yes
15267                         break
15268                       fi
15269                     done
15270                     if test -z "$haveit"; then
15271                       rpathdirs="$rpathdirs $found_dir"
15272                     fi
15273                   else
15274                                                                                 haveit=
15275                     for x in $LDFLAGS $LIBINTL; do
15276
15277   acl_save_prefix="$prefix"
15278   prefix="$acl_final_prefix"
15279   acl_save_exec_prefix="$exec_prefix"
15280   exec_prefix="$acl_final_exec_prefix"
15281   eval x=\"$x\"
15282   exec_prefix="$acl_save_exec_prefix"
15283   prefix="$acl_save_prefix"
15284
15285                       if test "X$x" = "X-L$found_dir"; then
15286                         haveit=yes
15287                         break
15288                       fi
15289                     done
15290                     if test -z "$haveit"; then
15291                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15292                     fi
15293                     if test "$hardcode_minus_L" != no; then
15294                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15295                     else
15296                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15297                     fi
15298                   fi
15299                 fi
15300               fi
15301             else
15302               if test "X$found_a" != "X"; then
15303                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15304               else
15305                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15306               fi
15307             fi
15308                         additional_includedir=
15309             case "$found_dir" in
15310               */$acl_libdirstem | */$acl_libdirstem/)
15311                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15312                 additional_includedir="$basedir/include"
15313                 ;;
15314             esac
15315             if test "X$additional_includedir" != "X"; then
15316                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15317                 haveit=
15318                 if test "X$additional_includedir" = "X/usr/local/include"; then
15319                   if test -n "$GCC"; then
15320                     case $host_os in
15321                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15322                     esac
15323                   fi
15324                 fi
15325                 if test -z "$haveit"; then
15326                   for x in $CPPFLAGS $INCINTL; do
15327
15328   acl_save_prefix="$prefix"
15329   prefix="$acl_final_prefix"
15330   acl_save_exec_prefix="$exec_prefix"
15331   exec_prefix="$acl_final_exec_prefix"
15332   eval x=\"$x\"
15333   exec_prefix="$acl_save_exec_prefix"
15334   prefix="$acl_save_prefix"
15335
15336                     if test "X$x" = "X-I$additional_includedir"; then
15337                       haveit=yes
15338                       break
15339                     fi
15340                   done
15341                   if test -z "$haveit"; then
15342                     if test -d "$additional_includedir"; then
15343                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15344                     fi
15345                   fi
15346                 fi
15347               fi
15348             fi
15349                         if test -n "$found_la"; then
15350                                                         save_libdir="$libdir"
15351               case "$found_la" in
15352                 */* | *\\*) . "$found_la" ;;
15353                 *) . "./$found_la" ;;
15354               esac
15355               libdir="$save_libdir"
15356                             for dep in $dependency_libs; do
15357                 case "$dep" in
15358                   -L*)
15359                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15360                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15361                       haveit=
15362                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15363                         if test -n "$GCC"; then
15364                           case $host_os in
15365                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15366                           esac
15367                         fi
15368                       fi
15369                       if test -z "$haveit"; then
15370                         haveit=
15371                         for x in $LDFLAGS $LIBINTL; do
15372
15373   acl_save_prefix="$prefix"
15374   prefix="$acl_final_prefix"
15375   acl_save_exec_prefix="$exec_prefix"
15376   exec_prefix="$acl_final_exec_prefix"
15377   eval x=\"$x\"
15378   exec_prefix="$acl_save_exec_prefix"
15379   prefix="$acl_save_prefix"
15380
15381                           if test "X$x" = "X-L$additional_libdir"; then
15382                             haveit=yes
15383                             break
15384                           fi
15385                         done
15386                         if test -z "$haveit"; then
15387                           if test -d "$additional_libdir"; then
15388                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15389                           fi
15390                         fi
15391                         haveit=
15392                         for x in $LDFLAGS $LTLIBINTL; do
15393
15394   acl_save_prefix="$prefix"
15395   prefix="$acl_final_prefix"
15396   acl_save_exec_prefix="$exec_prefix"
15397   exec_prefix="$acl_final_exec_prefix"
15398   eval x=\"$x\"
15399   exec_prefix="$acl_save_exec_prefix"
15400   prefix="$acl_save_prefix"
15401
15402                           if test "X$x" = "X-L$additional_libdir"; then
15403                             haveit=yes
15404                             break
15405                           fi
15406                         done
15407                         if test -z "$haveit"; then
15408                           if test -d "$additional_libdir"; then
15409                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15410                           fi
15411                         fi
15412                       fi
15413                     fi
15414                     ;;
15415                   -R*)
15416                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15417                     if test "$enable_rpath" != no; then
15418                                                                   haveit=
15419                       for x in $rpathdirs; do
15420                         if test "X$x" = "X$dir"; then
15421                           haveit=yes
15422                           break
15423                         fi
15424                       done
15425                       if test -z "$haveit"; then
15426                         rpathdirs="$rpathdirs $dir"
15427                       fi
15428                                                                   haveit=
15429                       for x in $ltrpathdirs; do
15430                         if test "X$x" = "X$dir"; then
15431                           haveit=yes
15432                           break
15433                         fi
15434                       done
15435                       if test -z "$haveit"; then
15436                         ltrpathdirs="$ltrpathdirs $dir"
15437                       fi
15438                     fi
15439                     ;;
15440                   -l*)
15441                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15442                     ;;
15443                   *.la)
15444                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15445                     ;;
15446                   *)
15447                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15448                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15449                     ;;
15450                 esac
15451               done
15452             fi
15453           else
15454                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15455             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15456           fi
15457         fi
15458       fi
15459     done
15460   done
15461   if test "X$rpathdirs" != "X"; then
15462     if test -n "$hardcode_libdir_separator"; then
15463                         alldirs=
15464       for found_dir in $rpathdirs; do
15465         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15466       done
15467             acl_save_libdir="$libdir"
15468       libdir="$alldirs"
15469       eval flag=\"$hardcode_libdir_flag_spec\"
15470       libdir="$acl_save_libdir"
15471       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15472     else
15473             for found_dir in $rpathdirs; do
15474         acl_save_libdir="$libdir"
15475         libdir="$found_dir"
15476         eval flag=\"$hardcode_libdir_flag_spec\"
15477         libdir="$acl_save_libdir"
15478         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15479       done
15480     fi
15481   fi
15482   if test "X$ltrpathdirs" != "X"; then
15483             for found_dir in $ltrpathdirs; do
15484       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15485     done
15486   fi
15487
15488           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15489 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15490 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
15491   $as_echo_n "(cached) " >&6
15492 else
15493   gt_save_CPPFLAGS="$CPPFLAGS"
15494             CPPFLAGS="$CPPFLAGS $INCINTL"
15495             gt_save_LIBS="$LIBS"
15496             LIBS="$LIBS $LIBINTL"
15497                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h.  */
15499 #include <libintl.h>
15500 extern int _nl_msg_cat_cntr;
15501 extern
15502 #ifdef __cplusplus
15503 "C"
15504 #endif
15505 const char *_nl_expand_alias (const char *);
15506 int
15507 main ()
15508 {
15509 bindtextdomain ("", "");
15510 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15511   ;
15512   return 0;
15513 }
15514 _ACEOF
15515 if ac_fn_c_try_link "$LINENO"; then :
15516   gt_cv_func_gnugettext2_libintl=yes
15517 else
15518   gt_cv_func_gnugettext2_libintl=no
15519 fi
15520 rm -f core conftest.err conftest.$ac_objext \
15521     conftest$ac_exeext conftest.$ac_ext
15522                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
15523               LIBS="$LIBS $LIBICONV"
15524               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h.  */
15526 #include <libintl.h>
15527 extern int _nl_msg_cat_cntr;
15528 extern
15529 #ifdef __cplusplus
15530 "C"
15531 #endif
15532 const char *_nl_expand_alias (const char *);
15533 int
15534 main ()
15535 {
15536 bindtextdomain ("", "");
15537 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"; then :
15543   LIBINTL="$LIBINTL $LIBICONV"
15544                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15545                 gt_cv_func_gnugettext2_libintl=yes
15546
15547 fi
15548 rm -f core conftest.err conftest.$ac_objext \
15549     conftest$ac_exeext conftest.$ac_ext
15550             fi
15551             CPPFLAGS="$gt_save_CPPFLAGS"
15552             LIBS="$gt_save_LIBS"
15553 fi
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
15555 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
15556         fi
15557
15558                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
15559            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
15560                 && test "$PACKAGE" != gettext-runtime \
15561                 && test "$PACKAGE" != gettext-tools; }; then
15562           gt_use_preinstalled_gnugettext=yes
15563         else
15564                     LIBINTL=
15565           LTLIBINTL=
15566           INCINTL=
15567         fi
15568
15569
15570
15571     if test -n "$INTL_MACOSX_LIBS"; then
15572       if test "$gt_use_preinstalled_gnugettext" = "yes" \
15573          || test "$nls_cv_use_gnu_gettext" = "yes"; then
15574                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15575         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15576       fi
15577     fi
15578
15579     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15580        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15581
15582 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15583
15584     else
15585       USE_NLS=no
15586     fi
15587   fi
15588
15589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15590 $as_echo_n "checking whether to use NLS... " >&6; }
15591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15592 $as_echo "$USE_NLS" >&6; }
15593   if test "$USE_NLS" = "yes"; then
15594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15595 $as_echo_n "checking where the gettext function comes from... " >&6; }
15596     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15597       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15598         gt_source="external libintl"
15599       else
15600         gt_source="libc"
15601       fi
15602     else
15603       gt_source="included intl directory"
15604     fi
15605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15606 $as_echo "$gt_source" >&6; }
15607   fi
15608
15609   if test "$USE_NLS" = "yes"; then
15610
15611     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15612       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15614 $as_echo_n "checking how to link with libintl... " >&6; }
15615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15616 $as_echo "$LIBINTL" >&6; }
15617
15618   for element in $INCINTL; do
15619     haveit=
15620     for x in $CPPFLAGS; do
15621
15622   acl_save_prefix="$prefix"
15623   prefix="$acl_final_prefix"
15624   acl_save_exec_prefix="$exec_prefix"
15625   exec_prefix="$acl_final_exec_prefix"
15626   eval x=\"$x\"
15627   exec_prefix="$acl_save_exec_prefix"
15628   prefix="$acl_save_prefix"
15629
15630       if test "X$x" = "X$element"; then
15631         haveit=yes
15632         break
15633       fi
15634     done
15635     if test -z "$haveit"; then
15636       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15637     fi
15638   done
15639
15640       fi
15641
15642
15643 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15644
15645
15646 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15647
15648     fi
15649
15650         POSUB=po
15651   fi
15652
15653
15654
15655     INTLLIBS="$LIBINTL"
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665 saved_LIBS=$LIBS
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptConfigFileToString in -lpopt" >&5
15667 $as_echo_n "checking for poptConfigFileToString in -lpopt... " >&6; }
15668 if ${ac_cv_lib_popt_poptConfigFileToString+:} false; then :
15669   $as_echo_n "(cached) " >&6
15670 else
15671   ac_check_lib_save_LIBS=$LIBS
15672 LIBS="-lpopt  $LIBS"
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h.  */
15675
15676 /* Override any GCC internal prototype to avoid an error.
15677    Use char because int might match the return type of a GCC
15678    builtin and then its argument prototype would still apply.  */
15679 #ifdef __cplusplus
15680 extern "C"
15681 #endif
15682 char poptConfigFileToString ();
15683 int
15684 main ()
15685 {
15686 return poptConfigFileToString ();
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 if ac_fn_c_try_link "$LINENO"; then :
15692   ac_cv_lib_popt_poptConfigFileToString=yes
15693 else
15694   ac_cv_lib_popt_poptConfigFileToString=no
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697     conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15699 fi
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
15701 $as_echo "$ac_cv_lib_popt_poptConfigFileToString" >&6; }
15702 if test "x$ac_cv_lib_popt_poptConfigFileToString" = xyes; then :
15703   cat >>confdefs.h <<_ACEOF
15704 #define HAVE_LIBPOPT 1
15705 _ACEOF
15706
15707   LIBS="-lpopt $LIBS"
15708
15709 else
15710   as_fn_error $? "You need popt 1.7 or newer to compile." "$LINENO" 5
15711 fi
15712
15713 POPT_LIBS=$LIBS
15714
15715 LIBS=$saved_LIBS
15716
15717 # Check whether --enable-fips was given.
15718 if test "${enable_fips+set}" = set; then :
15719   enableval=$enable_fips; with_fips=$enableval
15720 else
15721   with_fips=no
15722 fi
15723
15724
15725 if test "x$with_fips" = "xyes"; then
15726
15727 $as_echo "#define ENABLE_FIPS 1" >>confdefs.h
15728
15729
15730         if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then
15731                 as_fn_error $? "Static build is not compatible with FIPS." "$LINENO" 5
15732         fi
15733 fi
15734
15735
15736
15737 # Check whether --enable-pwquality was given.
15738 if test "${enable_pwquality+set}" = set; then :
15739   enableval=$enable_pwquality; with_pwquality=$enableval
15740 else
15741   with_pwquality=no
15742 fi
15743
15744
15745 if test "x$with_pwquality" = "xyes"; then
15746
15747 $as_echo "#define ENABLE_PWQUALITY 1" >>confdefs.h
15748
15749
15750 pkg_failed=no
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWQUALITY" >&5
15752 $as_echo_n "checking for PWQUALITY... " >&6; }
15753
15754 if test -n "$PWQUALITY_CFLAGS"; then
15755     pkg_cv_PWQUALITY_CFLAGS="$PWQUALITY_CFLAGS"
15756  elif test -n "$PKG_CONFIG"; then
15757     if test -n "$PKG_CONFIG" && \
15758     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
15759   ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
15760   ac_status=$?
15761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15762   test $ac_status = 0; }; then
15763   pkg_cv_PWQUALITY_CFLAGS=`$PKG_CONFIG --cflags "pwquality >= 1.0.0" 2>/dev/null`
15764                       test "x$?" != "x0" && pkg_failed=yes
15765 else
15766   pkg_failed=yes
15767 fi
15768  else
15769     pkg_failed=untried
15770 fi
15771 if test -n "$PWQUALITY_LIBS"; then
15772     pkg_cv_PWQUALITY_LIBS="$PWQUALITY_LIBS"
15773  elif test -n "$PKG_CONFIG"; then
15774     if test -n "$PKG_CONFIG" && \
15775     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
15776   ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
15777   ac_status=$?
15778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15779   test $ac_status = 0; }; then
15780   pkg_cv_PWQUALITY_LIBS=`$PKG_CONFIG --libs "pwquality >= 1.0.0" 2>/dev/null`
15781                       test "x$?" != "x0" && pkg_failed=yes
15782 else
15783   pkg_failed=yes
15784 fi
15785  else
15786     pkg_failed=untried
15787 fi
15788
15789
15790
15791 if test $pkg_failed = yes; then
15792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15794
15795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15796         _pkg_short_errors_supported=yes
15797 else
15798         _pkg_short_errors_supported=no
15799 fi
15800         if test $_pkg_short_errors_supported = yes; then
15801                 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
15802         else
15803                 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
15804         fi
15805         # Put the nasty error message in config.log where it belongs
15806         echo "$PWQUALITY_PKG_ERRORS" >&5
15807
15808         as_fn_error $? "You need pwquality library." "$LINENO" 5
15809 elif test $pkg_failed = untried; then
15810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 $as_echo "no" >&6; }
15812         as_fn_error $? "You need pwquality library." "$LINENO" 5
15813 else
15814         PWQUALITY_CFLAGS=$pkg_cv_PWQUALITY_CFLAGS
15815         PWQUALITY_LIBS=$pkg_cv_PWQUALITY_LIBS
15816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817 $as_echo "yes" >&6; }
15818
15819 fi
15820
15821                 PWQUALITY_STATIC_LIBS="$PWQUALITY_LIBS -lcrack -lz"
15822 fi
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835 saved_LIBS=$LIBS
15836
15837 # Check whether --enable-static-cryptsetup was given.
15838 if test "${enable_static_cryptsetup+set}" = set; then :
15839   enableval=$enable_static_cryptsetup;
15840 fi
15841
15842 if test x$enable_static_cryptsetup = xyes; then
15843         if test x$enable_static = xno; then
15844                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Requested static cryptsetup build, enabling static library." >&5
15845 $as_echo "$as_me: WARNING: Requested static cryptsetup build, enabling static library." >&2;}
15846                 enable_static=yes
15847         fi
15848 fi
15849  if test x$enable_static_cryptsetup = xyes; then
15850   STATIC_TOOLS_TRUE=
15851   STATIC_TOOLS_FALSE='#'
15852 else
15853   STATIC_TOOLS_TRUE='#'
15854   STATIC_TOOLS_FALSE=
15855 fi
15856
15857
15858 # Check whether --enable-veritysetup was given.
15859 if test "${enable_veritysetup+set}" = set; then :
15860   enableval=$enable_veritysetup;
15861 else
15862   enable_veritysetup=yes
15863 fi
15864
15865  if test x$enable_veritysetup = xyes; then
15866   VERITYSETUP_TRUE=
15867   VERITYSETUP_FALSE='#'
15868 else
15869   VERITYSETUP_TRUE='#'
15870   VERITYSETUP_FALSE=
15871 fi
15872
15873
15874 # Check whether --enable-cryptsetup-reencrypt was given.
15875 if test "${enable_cryptsetup_reencrypt+set}" = set; then :
15876   enableval=$enable_cryptsetup_reencrypt;
15877 fi
15878
15879  if test x$enable_cryptsetup_reencrypt = xyes; then
15880   REENCRYPT_TRUE=
15881   REENCRYPT_FALSE='#'
15882 else
15883   REENCRYPT_TRUE='#'
15884   REENCRYPT_FALSE=
15885 fi
15886
15887
15888 # Check whether --enable-selinux was given.
15889 if test "${enable_selinux+set}" = set; then :
15890   enableval=$enable_selinux;
15891 fi
15892
15893
15894 # Check whether --enable-udev was given.
15895 if test "${enable_udev+set}" = set; then :
15896   enableval=$enable_udev;
15897 else
15898   enable_udev=yes
15899 fi
15900
15901
15902
15903 pkg_failed=no
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEVMAPPER" >&5
15905 $as_echo_n "checking for DEVMAPPER... " >&6; }
15906
15907 if test -n "$DEVMAPPER_CFLAGS"; then
15908     pkg_cv_DEVMAPPER_CFLAGS="$DEVMAPPER_CFLAGS"
15909  elif test -n "$PKG_CONFIG"; then
15910     if test -n "$PKG_CONFIG" && \
15911     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
15912   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
15913   ac_status=$?
15914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15915   test $ac_status = 0; }; then
15916   pkg_cv_DEVMAPPER_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.03" 2>/dev/null`
15917                       test "x$?" != "x0" && pkg_failed=yes
15918 else
15919   pkg_failed=yes
15920 fi
15921  else
15922     pkg_failed=untried
15923 fi
15924 if test -n "$DEVMAPPER_LIBS"; then
15925     pkg_cv_DEVMAPPER_LIBS="$DEVMAPPER_LIBS"
15926  elif test -n "$PKG_CONFIG"; then
15927     if test -n "$PKG_CONFIG" && \
15928     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
15929   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
15930   ac_status=$?
15931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15932   test $ac_status = 0; }; then
15933   pkg_cv_DEVMAPPER_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.03" 2>/dev/null`
15934                       test "x$?" != "x0" && pkg_failed=yes
15935 else
15936   pkg_failed=yes
15937 fi
15938  else
15939     pkg_failed=untried
15940 fi
15941
15942
15943
15944 if test $pkg_failed = yes; then
15945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15947
15948 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15949         _pkg_short_errors_supported=yes
15950 else
15951         _pkg_short_errors_supported=no
15952 fi
15953         if test $_pkg_short_errors_supported = yes; then
15954                 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
15955         else
15956                 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
15957         fi
15958         # Put the nasty error message in config.log where it belongs
15959         echo "$DEVMAPPER_PKG_ERRORS" >&5
15960
15961
15962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
15963 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
15964 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
15965   $as_echo_n "(cached) " >&6
15966 else
15967   ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-ldevmapper  $LIBS"
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h.  */
15971
15972 /* Override any GCC internal prototype to avoid an error.
15973    Use char because int might match the return type of a GCC
15974    builtin and then its argument prototype would still apply.  */
15975 #ifdef __cplusplus
15976 extern "C"
15977 #endif
15978 char dm_task_set_name ();
15979 int
15980 main ()
15981 {
15982 return dm_task_set_name ();
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 if ac_fn_c_try_link "$LINENO"; then :
15988   ac_cv_lib_devmapper_dm_task_set_name=yes
15989 else
15990   ac_cv_lib_devmapper_dm_task_set_name=no
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext \
15993     conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15995 fi
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
15997 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
15998 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
15999   cat >>confdefs.h <<_ACEOF
16000 #define HAVE_LIBDEVMAPPER 1
16001 _ACEOF
16002
16003   LIBS="-ldevmapper $LIBS"
16004
16005 else
16006   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
16007 fi
16008
16009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
16010 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
16011 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
16012   $as_echo_n "(cached) " >&6
16013 else
16014   ac_check_lib_save_LIBS=$LIBS
16015 LIBS="-ldevmapper  $LIBS"
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h.  */
16018
16019 /* Override any GCC internal prototype to avoid an error.
16020    Use char because int might match the return type of a GCC
16021    builtin and then its argument prototype would still apply.  */
16022 #ifdef __cplusplus
16023 extern "C"
16024 #endif
16025 char dm_task_set_message ();
16026 int
16027 main ()
16028 {
16029 return dm_task_set_message ();
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16035   ac_cv_lib_devmapper_dm_task_set_message=yes
16036 else
16037   ac_cv_lib_devmapper_dm_task_set_message=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext \
16040     conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
16044 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
16045 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
16046   cat >>confdefs.h <<_ACEOF
16047 #define HAVE_LIBDEVMAPPER 1
16048 _ACEOF
16049
16050   LIBS="-ldevmapper $LIBS"
16051
16052 else
16053   as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
16054 fi
16055
16056         DEVMAPPER_LIBS=$LIBS
16057
16058 elif test $pkg_failed = untried; then
16059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060 $as_echo "no" >&6; }
16061
16062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
16063 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
16064 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067   ac_check_lib_save_LIBS=$LIBS
16068 LIBS="-ldevmapper  $LIBS"
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h.  */
16071
16072 /* Override any GCC internal prototype to avoid an error.
16073    Use char because int might match the return type of a GCC
16074    builtin and then its argument prototype would still apply.  */
16075 #ifdef __cplusplus
16076 extern "C"
16077 #endif
16078 char dm_task_set_name ();
16079 int
16080 main ()
16081 {
16082 return dm_task_set_name ();
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 if ac_fn_c_try_link "$LINENO"; then :
16088   ac_cv_lib_devmapper_dm_task_set_name=yes
16089 else
16090   ac_cv_lib_devmapper_dm_task_set_name=no
16091 fi
16092 rm -f core conftest.err conftest.$ac_objext \
16093     conftest$ac_exeext conftest.$ac_ext
16094 LIBS=$ac_check_lib_save_LIBS
16095 fi
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
16097 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
16098 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
16099   cat >>confdefs.h <<_ACEOF
16100 #define HAVE_LIBDEVMAPPER 1
16101 _ACEOF
16102
16103   LIBS="-ldevmapper $LIBS"
16104
16105 else
16106   as_fn_error $? "You need the device-mapper library." "$LINENO" 5
16107 fi
16108
16109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
16110 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
16111 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
16112   $as_echo_n "(cached) " >&6
16113 else
16114   ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-ldevmapper  $LIBS"
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h.  */
16118
16119 /* Override any GCC internal prototype to avoid an error.
16120    Use char because int might match the return type of a GCC
16121    builtin and then its argument prototype would still apply.  */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char dm_task_set_message ();
16126 int
16127 main ()
16128 {
16129 return dm_task_set_message ();
16130   ;
16131   return 0;
16132 }
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135   ac_cv_lib_devmapper_dm_task_set_message=yes
16136 else
16137   ac_cv_lib_devmapper_dm_task_set_message=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140     conftest$ac_exeext conftest.$ac_ext
16141 LIBS=$ac_check_lib_save_LIBS
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
16144 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
16145 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
16146   cat >>confdefs.h <<_ACEOF
16147 #define HAVE_LIBDEVMAPPER 1
16148 _ACEOF
16149
16150   LIBS="-ldevmapper $LIBS"
16151
16152 else
16153   as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
16154 fi
16155
16156         DEVMAPPER_LIBS=$LIBS
16157
16158 else
16159         DEVMAPPER_CFLAGS=$pkg_cv_DEVMAPPER_CFLAGS
16160         DEVMAPPER_LIBS=$pkg_cv_DEVMAPPER_LIBS
16161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16162 $as_echo "yes" >&6; }
16163
16164 fi
16165 LIBS=$saved_LIBS
16166
16167 LIBS="$LIBS $DEVMAPPER_LIBS"
16168 ac_fn_c_check_decl "$LINENO" "dm_task_secure_data" "ac_cv_have_decl_dm_task_secure_data" "#include <libdevmapper.h>
16169 "
16170 if test "x$ac_cv_have_decl_dm_task_secure_data" = xyes; then :
16171   ac_have_decl=1
16172 else
16173   ac_have_decl=0
16174 fi
16175
16176 cat >>confdefs.h <<_ACEOF
16177 #define HAVE_DECL_DM_TASK_SECURE_DATA $ac_have_decl
16178 _ACEOF
16179
16180 ac_fn_c_check_decl "$LINENO" "dm_task_retry_remove" "ac_cv_have_decl_dm_task_retry_remove" "#include <libdevmapper.h>
16181 "
16182 if test "x$ac_cv_have_decl_dm_task_retry_remove" = xyes; then :
16183   ac_have_decl=1
16184 else
16185   ac_have_decl=0
16186 fi
16187
16188 cat >>confdefs.h <<_ACEOF
16189 #define HAVE_DECL_DM_TASK_RETRY_REMOVE $ac_have_decl
16190 _ACEOF
16191
16192 ac_fn_c_check_decl "$LINENO" "DM_UDEV_DISABLE_DISK_RULES_FLAG" "ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" "#include <libdevmapper.h>
16193 "
16194 if test "x$ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" = xyes; then :
16195   ac_have_decl=1
16196 else
16197   ac_have_decl=0
16198 fi
16199
16200 cat >>confdefs.h <<_ACEOF
16201 #define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG $ac_have_decl
16202 _ACEOF
16203 if test $ac_have_decl = 1; then :
16204   have_cookie=yes
16205 else
16206   have_cookie=no
16207 fi
16208
16209 if test "x$enable_udev" = xyes; then
16210         if test "x$have_cookie" = xno; then
16211                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&5
16212 $as_echo "$as_me: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&2;}
16213         else
16214
16215 $as_echo "#define USE_UDEV 1" >>confdefs.h
16216
16217         fi
16218 fi
16219 LIBS=$saved_LIBS
16220
16221
16222 # Check whether --with-crypto_backend was given.
16223 if test "${with_crypto_backend+set}" = set; then :
16224   withval=$with_crypto_backend;
16225 else
16226   with_crypto_backend=gcrypt
16227
16228 fi
16229
16230
16231 # Check whether --enable-kernel_crypto was given.
16232 if test "${enable_kernel_crypto+set}" = set; then :
16233   enableval=$enable_kernel_crypto; with_kernel_crypto=$enableval
16234 else
16235   with_kernel_crypto=yes
16236 fi
16237
16238
16239 if test "x$with_kernel_crypto" = "xyes"; then
16240         for ac_header in linux/if_alg.h
16241 do :
16242   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
16243 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
16244   cat >>confdefs.h <<_ACEOF
16245 #define HAVE_LINUX_IF_ALG_H 1
16246 _ACEOF
16247
16248 else
16249   as_fn_error $? "You need Linux kernel headers with userspace crypto interface. (Or use --disable-kernel_crypto.)" "$LINENO" 5
16250 fi
16251
16252 done
16253
16254
16255 $as_echo "#define ENABLE_AF_ALG 1" >>confdefs.h
16256
16257 fi
16258
16259 case $with_crypto_backend in
16260         gcrypt)
16261         if test "x$with_fips" = "xyes"; then
16262                 GCRYPT_REQ_VERSION=1.4.5
16263         else
16264                 GCRYPT_REQ_VERSION=1.1.42
16265         fi
16266                 # Check whether --enable-gcrypt-pbkdf2 was given.
16267 if test "${enable_gcrypt_pbkdf2+set}" = set; then :
16268   enableval=$enable_gcrypt_pbkdf2; if test "x$enableval" = "xyes"; then
16269                         use_internal_pbkdf2=0
16270                 else
16271                         use_internal_pbkdf2=1
16272                 fi
16273 else
16274
16275
16276 # Check whether --with-libgcrypt-prefix was given.
16277 if test "${with_libgcrypt_prefix+set}" = set; then :
16278   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
16279 else
16280   libgcrypt_config_prefix=""
16281 fi
16282
16283   if test x$libgcrypt_config_prefix != x ; then
16284      if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16285         LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16286      fi
16287   fi
16288
16289   if test -n "$ac_tool_prefix"; then
16290   # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
16291 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16295   $as_echo_n "(cached) " >&6
16296 else
16297   case $LIBGCRYPT_CONFIG in
16298   [\\/]* | ?:[\\/]*)
16299   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16300   ;;
16301   *)
16302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303 for as_dir in $PATH
16304 do
16305   IFS=$as_save_IFS
16306   test -z "$as_dir" && as_dir=.
16307     for ac_exec_ext in '' $ac_executable_extensions; do
16308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16309     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16311     break 2
16312   fi
16313 done
16314   done
16315 IFS=$as_save_IFS
16316
16317   ;;
16318 esac
16319 fi
16320 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16321 if test -n "$LIBGCRYPT_CONFIG"; then
16322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16323 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
16324 else
16325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16326 $as_echo "no" >&6; }
16327 fi
16328
16329
16330 fi
16331 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
16332   ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
16333   # Extract the first word of "libgcrypt-config", so it can be a program name with args.
16334 set dummy libgcrypt-config; ac_word=$2
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16336 $as_echo_n "checking for $ac_word... " >&6; }
16337 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
16338   $as_echo_n "(cached) " >&6
16339 else
16340   case $ac_pt_LIBGCRYPT_CONFIG in
16341   [\\/]* | ?:[\\/]*)
16342   ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16343   ;;
16344   *)
16345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16346 for as_dir in $PATH
16347 do
16348   IFS=$as_save_IFS
16349   test -z "$as_dir" && as_dir=.
16350     for ac_exec_ext in '' $ac_executable_extensions; do
16351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16352     ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16354     break 2
16355   fi
16356 done
16357   done
16358 IFS=$as_save_IFS
16359
16360   ;;
16361 esac
16362 fi
16363 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
16364 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
16365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
16366 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
16367 else
16368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16369 $as_echo "no" >&6; }
16370 fi
16371
16372   if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
16373     LIBGCRYPT_CONFIG="no"
16374   else
16375     case $cross_compiling:$ac_tool_warned in
16376 yes:)
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16379 ac_tool_warned=yes ;;
16380 esac
16381     LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
16382   fi
16383 else
16384   LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
16385 fi
16386
16387   tmp=1.6.1
16388   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16389      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
16390      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16391   else
16392      req_libgcrypt_api=0
16393      min_libgcrypt_version="$tmp"
16394   fi
16395
16396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16397 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16398   ok=no
16399   if test "$LIBGCRYPT_CONFIG" != "no" ; then
16400     req_major=`echo $min_libgcrypt_version | \
16401                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16402     req_minor=`echo $min_libgcrypt_version | \
16403                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16404     req_micro=`echo $min_libgcrypt_version | \
16405                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16406     libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16407     major=`echo $libgcrypt_config_version | \
16408                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16409     minor=`echo $libgcrypt_config_version | \
16410                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16411     micro=`echo $libgcrypt_config_version | \
16412                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16413     if test "$major" -gt "$req_major"; then
16414         ok=yes
16415     else
16416         if test "$major" -eq "$req_major"; then
16417             if test "$minor" -gt "$req_minor"; then
16418                ok=yes
16419             else
16420                if test "$minor" -eq "$req_minor"; then
16421                    if test "$micro" -ge "$req_micro"; then
16422                      ok=yes
16423                    fi
16424                fi
16425             fi
16426         fi
16427     fi
16428   fi
16429   if test $ok = yes; then
16430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16431 $as_echo "yes ($libgcrypt_config_version)" >&6; }
16432   else
16433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434 $as_echo "no" >&6; }
16435   fi
16436   if test $ok = yes; then
16437      # If we have a recent libgcrypt, we should also check that the
16438      # API is compatible
16439      if test "$req_libgcrypt_api" -gt 0 ; then
16440         tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16441         if test "$tmp" -gt 0 ; then
16442            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
16443 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
16444            if test "$req_libgcrypt_api" -eq "$tmp" ; then
16445              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16446 $as_echo "okay" >&6; }
16447            else
16448              ok=no
16449              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16450 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16451            fi
16452         fi
16453      fi
16454   fi
16455   if test $ok = yes; then
16456     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16457     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16458     use_internal_pbkdf2=0
16459     libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
16460     if test x"$libgcrypt_config_host" != xnone ; then
16461       if test x"$libgcrypt_config_host" != x"$host" ; then
16462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16463 ***
16464 *** The config script $LIBGCRYPT_CONFIG was
16465 *** built for $libgcrypt_config_host and thus may not match the
16466 *** used host $host.
16467 *** You may want to use the configure option --with-libgcrypt-prefix
16468 *** to specify a matching config script.
16469 ***" >&5
16470 $as_echo "$as_me: WARNING:
16471 ***
16472 *** The config script $LIBGCRYPT_CONFIG was
16473 *** built for $libgcrypt_config_host and thus may not match the
16474 *** used host $host.
16475 *** You may want to use the configure option --with-libgcrypt-prefix
16476 *** to specify a matching config script.
16477 ***" >&2;}
16478       fi
16479     fi
16480   else
16481     LIBGCRYPT_CFLAGS=""
16482     LIBGCRYPT_LIBS=""
16483     use_internal_pbkdf2=1
16484   fi
16485
16486
16487
16488 fi
16489
16490
16491
16492 # Check whether --with-libgcrypt-prefix was given.
16493 if test "${with_libgcrypt_prefix+set}" = set; then :
16494   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
16495 else
16496   libgcrypt_config_prefix=""
16497 fi
16498
16499   if test x$libgcrypt_config_prefix != x ; then
16500      if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16501         LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16502      fi
16503   fi
16504
16505   if test -n "$ac_tool_prefix"; then
16506   # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
16507 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16509 $as_echo_n "checking for $ac_word... " >&6; }
16510 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16511   $as_echo_n "(cached) " >&6
16512 else
16513   case $LIBGCRYPT_CONFIG in
16514   [\\/]* | ?:[\\/]*)
16515   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16516   ;;
16517   *)
16518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16519 for as_dir in $PATH
16520 do
16521   IFS=$as_save_IFS
16522   test -z "$as_dir" && as_dir=.
16523     for ac_exec_ext in '' $ac_executable_extensions; do
16524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16525     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16527     break 2
16528   fi
16529 done
16530   done
16531 IFS=$as_save_IFS
16532
16533   ;;
16534 esac
16535 fi
16536 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16537 if test -n "$LIBGCRYPT_CONFIG"; then
16538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16539 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
16540 else
16541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16543 fi
16544
16545
16546 fi
16547 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
16548   ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
16549   # Extract the first word of "libgcrypt-config", so it can be a program name with args.
16550 set dummy libgcrypt-config; ac_word=$2
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16552 $as_echo_n "checking for $ac_word... " >&6; }
16553 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
16554   $as_echo_n "(cached) " >&6
16555 else
16556   case $ac_pt_LIBGCRYPT_CONFIG in
16557   [\\/]* | ?:[\\/]*)
16558   ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16559   ;;
16560   *)
16561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16563 do
16564   IFS=$as_save_IFS
16565   test -z "$as_dir" && as_dir=.
16566     for ac_exec_ext in '' $ac_executable_extensions; do
16567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16568     ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16570     break 2
16571   fi
16572 done
16573   done
16574 IFS=$as_save_IFS
16575
16576   ;;
16577 esac
16578 fi
16579 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
16580 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
16581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
16582 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
16583 else
16584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585 $as_echo "no" >&6; }
16586 fi
16587
16588   if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
16589     LIBGCRYPT_CONFIG="no"
16590   else
16591     case $cross_compiling:$ac_tool_warned in
16592 yes:)
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16595 ac_tool_warned=yes ;;
16596 esac
16597     LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
16598   fi
16599 else
16600   LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
16601 fi
16602
16603   tmp=$GCRYPT_REQ_VERSION
16604   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16605      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
16606      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16607   else
16608      req_libgcrypt_api=0
16609      min_libgcrypt_version="$tmp"
16610   fi
16611
16612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16613 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16614   ok=no
16615   if test "$LIBGCRYPT_CONFIG" != "no" ; then
16616     req_major=`echo $min_libgcrypt_version | \
16617                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16618     req_minor=`echo $min_libgcrypt_version | \
16619                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16620     req_micro=`echo $min_libgcrypt_version | \
16621                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16622     libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16623     major=`echo $libgcrypt_config_version | \
16624                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16625     minor=`echo $libgcrypt_config_version | \
16626                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16627     micro=`echo $libgcrypt_config_version | \
16628                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16629     if test "$major" -gt "$req_major"; then
16630         ok=yes
16631     else
16632         if test "$major" -eq "$req_major"; then
16633             if test "$minor" -gt "$req_minor"; then
16634                ok=yes
16635             else
16636                if test "$minor" -eq "$req_minor"; then
16637                    if test "$micro" -ge "$req_micro"; then
16638                      ok=yes
16639                    fi
16640                fi
16641             fi
16642         fi
16643     fi
16644   fi
16645   if test $ok = yes; then
16646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16647 $as_echo "yes ($libgcrypt_config_version)" >&6; }
16648   else
16649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16651   fi
16652   if test $ok = yes; then
16653      # If we have a recent libgcrypt, we should also check that the
16654      # API is compatible
16655      if test "$req_libgcrypt_api" -gt 0 ; then
16656         tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16657         if test "$tmp" -gt 0 ; then
16658            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
16659 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
16660            if test "$req_libgcrypt_api" -eq "$tmp" ; then
16661              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16662 $as_echo "okay" >&6; }
16663            else
16664              ok=no
16665              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16666 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16667            fi
16668         fi
16669      fi
16670   fi
16671   if test $ok = yes; then
16672     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16673     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16674     :
16675     libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
16676     if test x"$libgcrypt_config_host" != xnone ; then
16677       if test x"$libgcrypt_config_host" != x"$host" ; then
16678   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16679 ***
16680 *** The config script $LIBGCRYPT_CONFIG was
16681 *** built for $libgcrypt_config_host and thus may not match the
16682 *** used host $host.
16683 *** You may want to use the configure option --with-libgcrypt-prefix
16684 *** to specify a matching config script.
16685 ***" >&5
16686 $as_echo "$as_me: WARNING:
16687 ***
16688 *** The config script $LIBGCRYPT_CONFIG was
16689 *** built for $libgcrypt_config_host and thus may not match the
16690 *** used host $host.
16691 *** You may want to use the configure option --with-libgcrypt-prefix
16692 *** to specify a matching config script.
16693 ***" >&2;}
16694       fi
16695     fi
16696   else
16697     LIBGCRYPT_CFLAGS=""
16698     LIBGCRYPT_LIBS=""
16699     as_fn_error $? "You need the gcrypt library." "$LINENO" 5
16700   fi
16701
16702
16703
16704
16705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if internal cryptsetup PBKDF2 is compiled-in" >&5
16706 $as_echo_n "checking if internal cryptsetup PBKDF2 is compiled-in... " >&6; }
16707         if test $use_internal_pbkdf2 = 0; then
16708                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709 $as_echo "no" >&6; }
16710         else
16711                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16712 $as_echo "yes" >&6; }
16713
16714         if test "x$with_fips" = "xyes"; then
16715                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
16716         fi
16717
16718         fi
16719
16720         if test x$enable_static_cryptsetup = xyes; then
16721                 saved_LIBS=$LIBS
16722                 LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static"
16723                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
16724 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
16725 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
16726   $as_echo_n "(cached) " >&6
16727 else
16728   ac_check_lib_save_LIBS=$LIBS
16729 LIBS="-lgcrypt -lgpg-error $LIBS"
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h.  */
16732
16733 /* Override any GCC internal prototype to avoid an error.
16734    Use char because int might match the return type of a GCC
16735    builtin and then its argument prototype would still apply.  */
16736 #ifdef __cplusplus
16737 extern "C"
16738 #endif
16739 char gcry_check_version ();
16740 int
16741 main ()
16742 {
16743 return gcry_check_version ();
16744   ;
16745   return 0;
16746 }
16747 _ACEOF
16748 if ac_fn_c_try_link "$LINENO"; then :
16749   ac_cv_lib_gcrypt_gcry_check_version=yes
16750 else
16751   ac_cv_lib_gcrypt_gcry_check_version=no
16752 fi
16753 rm -f core conftest.err conftest.$ac_objext \
16754     conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
16758 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
16759 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
16760   cat >>confdefs.h <<_ACEOF
16761 #define HAVE_LIBGCRYPT 1
16762 _ACEOF
16763
16764   LIBS="-lgcrypt $LIBS"
16765
16766 else
16767   as_fn_error $? "Cannot find static gcrypt library." "$LINENO" 5
16768 fi
16769
16770                 LIBGCRYPT_STATIC_LIBS="$LIBGCRYPT_LIBS -lgpg-error"
16771                 LIBS=$saved_LIBS
16772         fi
16773
16774         CRYPTO_CFLAGS=$LIBGCRYPT_CFLAGS
16775         CRYPTO_LIBS=$LIBGCRYPT_LIBS
16776         CRYPTO_STATIC_LIBS=$LIBGCRYPT_STATIC_LIBS
16777
16778
16779 cat >>confdefs.h <<_ACEOF
16780 #define GCRYPT_REQ_VERSION "$GCRYPT_REQ_VERSION"
16781 _ACEOF
16782
16783  ;;
16784         openssl)
16785
16786 pkg_failed=no
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
16788 $as_echo_n "checking for OPENSSL... " >&6; }
16789
16790 if test -n "$OPENSSL_CFLAGS"; then
16791     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16792  elif test -n "$PKG_CONFIG"; then
16793     if test -n "$PKG_CONFIG" && \
16794     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
16795   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
16796   ac_status=$?
16797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16798   test $ac_status = 0; }; then
16799   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
16800                       test "x$?" != "x0" && pkg_failed=yes
16801 else
16802   pkg_failed=yes
16803 fi
16804  else
16805     pkg_failed=untried
16806 fi
16807 if test -n "$OPENSSL_LIBS"; then
16808     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16809  elif test -n "$PKG_CONFIG"; then
16810     if test -n "$PKG_CONFIG" && \
16811     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
16812   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
16813   ac_status=$?
16814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815   test $ac_status = 0; }; then
16816   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
16817                       test "x$?" != "x0" && pkg_failed=yes
16818 else
16819   pkg_failed=yes
16820 fi
16821  else
16822     pkg_failed=untried
16823 fi
16824
16825
16826
16827 if test $pkg_failed = yes; then
16828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 $as_echo "no" >&6; }
16830
16831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16832         _pkg_short_errors_supported=yes
16833 else
16834         _pkg_short_errors_supported=no
16835 fi
16836         if test $_pkg_short_errors_supported = yes; then
16837                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
16838         else
16839                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
16840         fi
16841         # Put the nasty error message in config.log where it belongs
16842         echo "$OPENSSL_PKG_ERRORS" >&5
16843
16844         as_fn_error $? "You need openssl library." "$LINENO" 5
16845 elif test $pkg_failed = untried; then
16846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16847 $as_echo "no" >&6; }
16848         as_fn_error $? "You need openssl library." "$LINENO" 5
16849 else
16850         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16851         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 $as_echo "yes" >&6; }
16854
16855 fi
16856         CRYPTO_CFLAGS=$OPENSSL_CFLAGS
16857         CRYPTO_LIBS=$OPENSSL_LIBS
16858         use_internal_pbkdf2=0
16859
16860         if test x$enable_static_cryptsetup = xyes; then
16861                 saved_PKG_CONFIG=$PKG_CONFIG
16862                 PKG_CONFIG="$PKG_CONFIG --static"
16863
16864 pkg_failed=no
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_STATIC" >&5
16866 $as_echo_n "checking for OPENSSL_STATIC... " >&6; }
16867
16868 if test -n "$OPENSSL_STATIC_CFLAGS"; then
16869     pkg_cv_OPENSSL_STATIC_CFLAGS="$OPENSSL_STATIC_CFLAGS"
16870  elif test -n "$PKG_CONFIG"; then
16871     if test -n "$PKG_CONFIG" && \
16872     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16873   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16874   ac_status=$?
16875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16876   test $ac_status = 0; }; then
16877   pkg_cv_OPENSSL_STATIC_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
16878                       test "x$?" != "x0" && pkg_failed=yes
16879 else
16880   pkg_failed=yes
16881 fi
16882  else
16883     pkg_failed=untried
16884 fi
16885 if test -n "$OPENSSL_STATIC_LIBS"; then
16886     pkg_cv_OPENSSL_STATIC_LIBS="$OPENSSL_STATIC_LIBS"
16887  elif test -n "$PKG_CONFIG"; then
16888     if test -n "$PKG_CONFIG" && \
16889     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16890   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16891   ac_status=$?
16892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16893   test $ac_status = 0; }; then
16894   pkg_cv_OPENSSL_STATIC_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
16895                       test "x$?" != "x0" && pkg_failed=yes
16896 else
16897   pkg_failed=yes
16898 fi
16899  else
16900     pkg_failed=untried
16901 fi
16902
16903
16904
16905 if test $pkg_failed = yes; then
16906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16907 $as_echo "no" >&6; }
16908
16909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16910         _pkg_short_errors_supported=yes
16911 else
16912         _pkg_short_errors_supported=no
16913 fi
16914         if test $_pkg_short_errors_supported = yes; then
16915                 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
16916         else
16917                 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
16918         fi
16919         # Put the nasty error message in config.log where it belongs
16920         echo "$OPENSSL_STATIC_PKG_ERRORS" >&5
16921
16922         as_fn_error $? "Package requirements (openssl) were not met:
16923
16924 $OPENSSL_STATIC_PKG_ERRORS
16925
16926 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16927 installed software in a non-standard prefix.
16928
16929 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
16930 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
16931 See the pkg-config man page for more details." "$LINENO" 5
16932 elif test $pkg_failed = untried; then
16933         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16934 $as_echo "no" >&6; }
16935         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16937 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16938 is in your PATH or set the PKG_CONFIG environment variable to the full
16939 path to pkg-config.
16940
16941 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
16942 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
16943 See the pkg-config man page for more details.
16944
16945 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16946 See \`config.log' for more details" "$LINENO" 5; }
16947 else
16948         OPENSSL_STATIC_CFLAGS=$pkg_cv_OPENSSL_STATIC_CFLAGS
16949         OPENSSL_STATIC_LIBS=$pkg_cv_OPENSSL_STATIC_LIBS
16950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16951 $as_echo "yes" >&6; }
16952
16953 fi
16954                 CRYPTO_STATIC_LIBS=$OPENSSL_STATIC_LIBS
16955                 PKG_CONFIG=$saved_PKG_CONFIG
16956         fi
16957
16958         if test "x$with_fips" = "xyes"; then
16959                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
16960         fi
16961
16962  ;;
16963         nss)
16964         if test x$enable_static_cryptsetup = xyes; then
16965                 as_fn_error $? "Static build of cryptsetup is not supported with NSS." "$LINENO" 5
16966         fi
16967
16968         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&5
16969 $as_echo "$as_me: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&2;}
16970
16971
16972 pkg_failed=no
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
16974 $as_echo_n "checking for NSS... " >&6; }
16975
16976 if test -n "$NSS_CFLAGS"; then
16977     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
16978  elif test -n "$PKG_CONFIG"; then
16979     if test -n "$PKG_CONFIG" && \
16980     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16981   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
16982   ac_status=$?
16983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16984   test $ac_status = 0; }; then
16985   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
16986                       test "x$?" != "x0" && pkg_failed=yes
16987 else
16988   pkg_failed=yes
16989 fi
16990  else
16991     pkg_failed=untried
16992 fi
16993 if test -n "$NSS_LIBS"; then
16994     pkg_cv_NSS_LIBS="$NSS_LIBS"
16995  elif test -n "$PKG_CONFIG"; then
16996     if test -n "$PKG_CONFIG" && \
16997     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16998   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
16999   ac_status=$?
17000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001   test $ac_status = 0; }; then
17002   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
17003                       test "x$?" != "x0" && pkg_failed=yes
17004 else
17005   pkg_failed=yes
17006 fi
17007  else
17008     pkg_failed=untried
17009 fi
17010
17011
17012
17013 if test $pkg_failed = yes; then
17014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015 $as_echo "no" >&6; }
17016
17017 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17018         _pkg_short_errors_supported=yes
17019 else
17020         _pkg_short_errors_supported=no
17021 fi
17022         if test $_pkg_short_errors_supported = yes; then
17023                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
17024         else
17025                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
17026         fi
17027         # Put the nasty error message in config.log where it belongs
17028         echo "$NSS_PKG_ERRORS" >&5
17029
17030         as_fn_error $? "You need nss library." "$LINENO" 5
17031 elif test $pkg_failed = untried; then
17032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17034         as_fn_error $? "You need nss library." "$LINENO" 5
17035 else
17036         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
17037         NSS_LIBS=$pkg_cv_NSS_LIBS
17038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17039 $as_echo "yes" >&6; }
17040
17041 fi
17042
17043         saved_CFLAGS=$CFLAGS
17044         CFLAGS="$CFLAGS $NSS_CFLAGS"
17045         ac_fn_c_check_decl "$LINENO" "NSS_GetVersion" "ac_cv_have_decl_NSS_GetVersion" "#include <nss.h>
17046 "
17047 if test "x$ac_cv_have_decl_NSS_GetVersion" = xyes; then :
17048   ac_have_decl=1
17049 else
17050   ac_have_decl=0
17051 fi
17052
17053 cat >>confdefs.h <<_ACEOF
17054 #define HAVE_DECL_NSS_GETVERSION $ac_have_decl
17055 _ACEOF
17056
17057         CFLAGS=$saved_CFLAGS
17058
17059         CRYPTO_CFLAGS=$NSS_CFLAGS
17060         CRYPTO_LIBS=$NSS_LIBS
17061         use_internal_pbkdf2=1
17062
17063         if test "x$with_fips" = "xyes"; then
17064                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
17065         fi
17066
17067  ;;
17068         kernel)
17069         for ac_header in linux/if_alg.h
17070 do :
17071   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
17072 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
17073   cat >>confdefs.h <<_ACEOF
17074 #define HAVE_LINUX_IF_ALG_H 1
17075 _ACEOF
17076
17077 else
17078   as_fn_error $? "You need Linux kernel headers with userspace crypto interface." "$LINENO" 5
17079 fi
17080
17081 done
17082
17083 #       AC_CHECK_DECLS([AF_ALG],,
17084 #               [AC_MSG_ERROR([You need Linux kernel with userspace crypto interface.])],
17085 #               [#include <sys/socket.h>])
17086         use_internal_pbkdf2=1
17087
17088         if test "x$with_fips" = "xyes"; then
17089                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
17090         fi
17091
17092  ;;
17093         nettle)
17094         for ac_header in nettle/sha.h
17095 do :
17096   ac_fn_c_check_header_mongrel "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
17097 if test "x$ac_cv_header_nettle_sha_h" = xyes; then :
17098   cat >>confdefs.h <<_ACEOF
17099 #define HAVE_NETTLE_SHA_H 1
17100 _ACEOF
17101
17102 else
17103   as_fn_error $? "You need Nettle cryptographic library." "$LINENO" 5
17104 fi
17105
17106 done
17107
17108
17109         saved_LIBS=$LIBS
17110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_pbkdf2_hmac_sha256 in -lnettle" >&5
17111 $as_echo_n "checking for nettle_pbkdf2_hmac_sha256 in -lnettle... " >&6; }
17112 if ${ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256+:} false; then :
17113   $as_echo_n "(cached) " >&6
17114 else
17115   ac_check_lib_save_LIBS=$LIBS
17116 LIBS="-lnettle  $LIBS"
17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h.  */
17119
17120 /* Override any GCC internal prototype to avoid an error.
17121    Use char because int might match the return type of a GCC
17122    builtin and then its argument prototype would still apply.  */
17123 #ifdef __cplusplus
17124 extern "C"
17125 #endif
17126 char nettle_pbkdf2_hmac_sha256 ();
17127 int
17128 main ()
17129 {
17130 return nettle_pbkdf2_hmac_sha256 ();
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 if ac_fn_c_try_link "$LINENO"; then :
17136   ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=yes
17137 else
17138   ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=no
17139 fi
17140 rm -f core conftest.err conftest.$ac_objext \
17141     conftest$ac_exeext conftest.$ac_ext
17142 LIBS=$ac_check_lib_save_LIBS
17143 fi
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&5
17145 $as_echo "$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&6; }
17146 if test "x$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" = xyes; then :
17147   cat >>confdefs.h <<_ACEOF
17148 #define HAVE_LIBNETTLE 1
17149 _ACEOF
17150
17151   LIBS="-lnettle $LIBS"
17152
17153 else
17154   as_fn_error $? "You need Nettle library version 2.6 or more recent." "$LINENO" 5
17155 fi
17156
17157         CRYPTO_LIBS=$LIBS
17158         LIBS=$saved_LIBS
17159
17160         CRYPTO_STATIC_LIBS=$CRYPTO_LIBS
17161         use_internal_pbkdf2=0
17162
17163         if test "x$with_fips" = "xyes"; then
17164                 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
17165         fi
17166
17167  ;;
17168         *) as_fn_error $? "Unknown crypto backend." "$LINENO" 5 ;;
17169 esac
17170  if test $with_crypto_backend = gcrypt; then
17171   CRYPTO_BACKEND_GCRYPT_TRUE=
17172   CRYPTO_BACKEND_GCRYPT_FALSE='#'
17173 else
17174   CRYPTO_BACKEND_GCRYPT_TRUE='#'
17175   CRYPTO_BACKEND_GCRYPT_FALSE=
17176 fi
17177
17178  if test $with_crypto_backend = openssl; then
17179   CRYPTO_BACKEND_OPENSSL_TRUE=
17180   CRYPTO_BACKEND_OPENSSL_FALSE='#'
17181 else
17182   CRYPTO_BACKEND_OPENSSL_TRUE='#'
17183   CRYPTO_BACKEND_OPENSSL_FALSE=
17184 fi
17185
17186  if test $with_crypto_backend = nss; then
17187   CRYPTO_BACKEND_NSS_TRUE=
17188   CRYPTO_BACKEND_NSS_FALSE='#'
17189 else
17190   CRYPTO_BACKEND_NSS_TRUE='#'
17191   CRYPTO_BACKEND_NSS_FALSE=
17192 fi
17193
17194  if test $with_crypto_backend = kernel; then
17195   CRYPTO_BACKEND_KERNEL_TRUE=
17196   CRYPTO_BACKEND_KERNEL_FALSE='#'
17197 else
17198   CRYPTO_BACKEND_KERNEL_TRUE='#'
17199   CRYPTO_BACKEND_KERNEL_FALSE=
17200 fi
17201
17202  if test $with_crypto_backend = nettle; then
17203   CRYPTO_BACKEND_NETTLE_TRUE=
17204   CRYPTO_BACKEND_NETTLE_FALSE='#'
17205 else
17206   CRYPTO_BACKEND_NETTLE_TRUE='#'
17207   CRYPTO_BACKEND_NETTLE_FALSE=
17208 fi
17209
17210
17211  if test $use_internal_pbkdf2 = 1; then
17212   CRYPTO_INTERNAL_PBKDF2_TRUE=
17213   CRYPTO_INTERNAL_PBKDF2_FALSE='#'
17214 else
17215   CRYPTO_INTERNAL_PBKDF2_TRUE='#'
17216   CRYPTO_INTERNAL_PBKDF2_FALSE=
17217 fi
17218
17219
17220 cat >>confdefs.h <<_ACEOF
17221 #define USE_INTERNAL_PBKDF2 $use_internal_pbkdf2
17222 _ACEOF
17223
17224
17225 if test x$enable_static_cryptsetup = xyes; then
17226         saved_PKG_CONFIG=$PKG_CONFIG
17227         PKG_CONFIG="$PKG_CONFIG --static"
17228
17229         LIBS="$saved_LIBS -static"
17230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
17231 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
17232 if ${ac_cv_lib_popt_poptGetContext+:} false; then :
17233   $as_echo_n "(cached) " >&6
17234 else
17235   ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lpopt  $LIBS"
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h.  */
17239
17240 /* Override any GCC internal prototype to avoid an error.
17241    Use char because int might match the return type of a GCC
17242    builtin and then its argument prototype would still apply.  */
17243 #ifdef __cplusplus
17244 extern "C"
17245 #endif
17246 char poptGetContext ();
17247 int
17248 main ()
17249 {
17250 return poptGetContext ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 if ac_fn_c_try_link "$LINENO"; then :
17256   ac_cv_lib_popt_poptGetContext=yes
17257 else
17258   ac_cv_lib_popt_poptGetContext=no
17259 fi
17260 rm -f core conftest.err conftest.$ac_objext \
17261     conftest$ac_exeext conftest.$ac_ext
17262 LIBS=$ac_check_lib_save_LIBS
17263 fi
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
17265 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
17266 if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
17267   cat >>confdefs.h <<_ACEOF
17268 #define HAVE_LIBPOPT 1
17269 _ACEOF
17270
17271   LIBS="-lpopt $LIBS"
17272
17273 else
17274   as_fn_error $? "Cannot find static popt library." "$LINENO" 5
17275 fi
17276
17277
17278                 LIBS="$saved_LIBS -static"
17279
17280 pkg_failed=no
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEVMAPPER_STATIC" >&5
17282 $as_echo_n "checking for DEVMAPPER_STATIC... " >&6; }
17283
17284 if test -n "$DEVMAPPER_STATIC_CFLAGS"; then
17285     pkg_cv_DEVMAPPER_STATIC_CFLAGS="$DEVMAPPER_STATIC_CFLAGS"
17286  elif test -n "$PKG_CONFIG"; then
17287     if test -n "$PKG_CONFIG" && \
17288     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
17289   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
17290   ac_status=$?
17291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292   test $ac_status = 0; }; then
17293   pkg_cv_DEVMAPPER_STATIC_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.27" 2>/dev/null`
17294                       test "x$?" != "x0" && pkg_failed=yes
17295 else
17296   pkg_failed=yes
17297 fi
17298  else
17299     pkg_failed=untried
17300 fi
17301 if test -n "$DEVMAPPER_STATIC_LIBS"; then
17302     pkg_cv_DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS"
17303  elif test -n "$PKG_CONFIG"; then
17304     if test -n "$PKG_CONFIG" && \
17305     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
17306   ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
17307   ac_status=$?
17308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17309   test $ac_status = 0; }; then
17310   pkg_cv_DEVMAPPER_STATIC_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.27" 2>/dev/null`
17311                       test "x$?" != "x0" && pkg_failed=yes
17312 else
17313   pkg_failed=yes
17314 fi
17315  else
17316     pkg_failed=untried
17317 fi
17318
17319
17320
17321 if test $pkg_failed = yes; then
17322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17323 $as_echo "no" >&6; }
17324
17325 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17326         _pkg_short_errors_supported=yes
17327 else
17328         _pkg_short_errors_supported=no
17329 fi
17330         if test $_pkg_short_errors_supported = yes; then
17331                 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
17332         else
17333                 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
17334         fi
17335         # Put the nasty error message in config.log where it belongs
17336         echo "$DEVMAPPER_STATIC_PKG_ERRORS" >&5
17337
17338
17339                 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
17340                 if test "x$enable_selinux" != xno; then
17341                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
17342 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
17343 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
17344   $as_echo_n "(cached) " >&6
17345 else
17346   ac_check_lib_save_LIBS=$LIBS
17347 LIBS="-lsepol  $LIBS"
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h.  */
17350
17351 /* Override any GCC internal prototype to avoid an error.
17352    Use char because int might match the return type of a GCC
17353    builtin and then its argument prototype would still apply.  */
17354 #ifdef __cplusplus
17355 extern "C"
17356 #endif
17357 char sepol_bool_set ();
17358 int
17359 main ()
17360 {
17361 return sepol_bool_set ();
17362   ;
17363   return 0;
17364 }
17365 _ACEOF
17366 if ac_fn_c_try_link "$LINENO"; then :
17367   ac_cv_lib_sepol_sepol_bool_set=yes
17368 else
17369   ac_cv_lib_sepol_sepol_bool_set=no
17370 fi
17371 rm -f core conftest.err conftest.$ac_objext \
17372     conftest$ac_exeext conftest.$ac_ext
17373 LIBS=$ac_check_lib_save_LIBS
17374 fi
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
17376 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
17377 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
17378   cat >>confdefs.h <<_ACEOF
17379 #define HAVE_LIBSEPOL 1
17380 _ACEOF
17381
17382   LIBS="-lsepol $LIBS"
17383
17384 fi
17385
17386                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
17387 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17388 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
17389   $as_echo_n "(cached) " >&6
17390 else
17391   ac_check_lib_save_LIBS=$LIBS
17392 LIBS="-lselinux  $LIBS"
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h.  */
17395
17396 /* Override any GCC internal prototype to avoid an error.
17397    Use char because int might match the return type of a GCC
17398    builtin and then its argument prototype would still apply.  */
17399 #ifdef __cplusplus
17400 extern "C"
17401 #endif
17402 char is_selinux_enabled ();
17403 int
17404 main ()
17405 {
17406 return is_selinux_enabled ();
17407   ;
17408   return 0;
17409 }
17410 _ACEOF
17411 if ac_fn_c_try_link "$LINENO"; then :
17412   ac_cv_lib_selinux_is_selinux_enabled=yes
17413 else
17414   ac_cv_lib_selinux_is_selinux_enabled=no
17415 fi
17416 rm -f core conftest.err conftest.$ac_objext \
17417     conftest$ac_exeext conftest.$ac_ext
17418 LIBS=$ac_check_lib_save_LIBS
17419 fi
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17421 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17422 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
17423   cat >>confdefs.h <<_ACEOF
17424 #define HAVE_LIBSELINUX 1
17425 _ACEOF
17426
17427   LIBS="-lselinux $LIBS"
17428
17429 fi
17430
17431                         DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
17432                 fi
17433
17434 elif test $pkg_failed = untried; then
17435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436 $as_echo "no" >&6; }
17437
17438                 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
17439                 if test "x$enable_selinux" != xno; then
17440                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
17441 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
17442 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
17443   $as_echo_n "(cached) " >&6
17444 else
17445   ac_check_lib_save_LIBS=$LIBS
17446 LIBS="-lsepol  $LIBS"
17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h.  */
17449
17450 /* Override any GCC internal prototype to avoid an error.
17451    Use char because int might match the return type of a GCC
17452    builtin and then its argument prototype would still apply.  */
17453 #ifdef __cplusplus
17454 extern "C"
17455 #endif
17456 char sepol_bool_set ();
17457 int
17458 main ()
17459 {
17460 return sepol_bool_set ();
17461   ;
17462   return 0;
17463 }
17464 _ACEOF
17465 if ac_fn_c_try_link "$LINENO"; then :
17466   ac_cv_lib_sepol_sepol_bool_set=yes
17467 else
17468   ac_cv_lib_sepol_sepol_bool_set=no
17469 fi
17470 rm -f core conftest.err conftest.$ac_objext \
17471     conftest$ac_exeext conftest.$ac_ext
17472 LIBS=$ac_check_lib_save_LIBS
17473 fi
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
17475 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
17476 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
17477   cat >>confdefs.h <<_ACEOF
17478 #define HAVE_LIBSEPOL 1
17479 _ACEOF
17480
17481   LIBS="-lsepol $LIBS"
17482
17483 fi
17484
17485                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
17486 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17487 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
17488   $as_echo_n "(cached) " >&6
17489 else
17490   ac_check_lib_save_LIBS=$LIBS
17491 LIBS="-lselinux  $LIBS"
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h.  */
17494
17495 /* Override any GCC internal prototype to avoid an error.
17496    Use char because int might match the return type of a GCC
17497    builtin and then its argument prototype would still apply.  */
17498 #ifdef __cplusplus
17499 extern "C"
17500 #endif
17501 char is_selinux_enabled ();
17502 int
17503 main ()
17504 {
17505 return is_selinux_enabled ();
17506   ;
17507   return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"; then :
17511   ac_cv_lib_selinux_is_selinux_enabled=yes
17512 else
17513   ac_cv_lib_selinux_is_selinux_enabled=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext \
17516     conftest$ac_exeext conftest.$ac_ext
17517 LIBS=$ac_check_lib_save_LIBS
17518 fi
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17520 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17521 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
17522   cat >>confdefs.h <<_ACEOF
17523 #define HAVE_LIBSELINUX 1
17524 _ACEOF
17525
17526   LIBS="-lselinux $LIBS"
17527
17528 fi
17529
17530                         DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
17531                 fi
17532
17533 else
17534         DEVMAPPER_STATIC_CFLAGS=$pkg_cv_DEVMAPPER_STATIC_CFLAGS
17535         DEVMAPPER_STATIC_LIBS=$pkg_cv_DEVMAPPER_STATIC_LIBS
17536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17537 $as_echo "yes" >&6; }
17538
17539 fi
17540         LIBS="$saved_LIBS $DEVMAPPER_STATIC_LIBS"
17541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_uuid in -ldevmapper" >&5
17542 $as_echo_n "checking for dm_task_set_uuid in -ldevmapper... " >&6; }
17543 if ${ac_cv_lib_devmapper_dm_task_set_uuid+:} false; then :
17544   $as_echo_n "(cached) " >&6
17545 else
17546   ac_check_lib_save_LIBS=$LIBS
17547 LIBS="-ldevmapper  $LIBS"
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h.  */
17550
17551 /* Override any GCC internal prototype to avoid an error.
17552    Use char because int might match the return type of a GCC
17553    builtin and then its argument prototype would still apply.  */
17554 #ifdef __cplusplus
17555 extern "C"
17556 #endif
17557 char dm_task_set_uuid ();
17558 int
17559 main ()
17560 {
17561 return dm_task_set_uuid ();
17562   ;
17563   return 0;
17564 }
17565 _ACEOF
17566 if ac_fn_c_try_link "$LINENO"; then :
17567   ac_cv_lib_devmapper_dm_task_set_uuid=yes
17568 else
17569   ac_cv_lib_devmapper_dm_task_set_uuid=no
17570 fi
17571 rm -f core conftest.err conftest.$ac_objext \
17572     conftest$ac_exeext conftest.$ac_ext
17573 LIBS=$ac_check_lib_save_LIBS
17574 fi
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_uuid" >&5
17576 $as_echo "$ac_cv_lib_devmapper_dm_task_set_uuid" >&6; }
17577 if test "x$ac_cv_lib_devmapper_dm_task_set_uuid" = xyes; then :
17578   cat >>confdefs.h <<_ACEOF
17579 #define HAVE_LIBDEVMAPPER 1
17580 _ACEOF
17581
17582   LIBS="-ldevmapper $LIBS"
17583
17584 else
17585   as_fn_error $? "Cannot link with static device-mapper library." "$LINENO" 5
17586 fi
17587
17588
17589                 LIBS="$saved_LIBS -static"
17590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17591 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17592 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
17593   $as_echo_n "(cached) " >&6
17594 else
17595   ac_check_lib_save_LIBS=$LIBS
17596 LIBS="-luuid  $LIBS"
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h.  */
17599
17600 /* Override any GCC internal prototype to avoid an error.
17601    Use char because int might match the return type of a GCC
17602    builtin and then its argument prototype would still apply.  */
17603 #ifdef __cplusplus
17604 extern "C"
17605 #endif
17606 char uuid_generate ();
17607 int
17608 main ()
17609 {
17610 return uuid_generate ();
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 if ac_fn_c_try_link "$LINENO"; then :
17616   ac_cv_lib_uuid_uuid_generate=yes
17617 else
17618   ac_cv_lib_uuid_uuid_generate=no
17619 fi
17620 rm -f core conftest.err conftest.$ac_objext \
17621     conftest$ac_exeext conftest.$ac_ext
17622 LIBS=$ac_check_lib_save_LIBS
17623 fi
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17625 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17626 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
17627   cat >>confdefs.h <<_ACEOF
17628 #define HAVE_LIBUUID 1
17629 _ACEOF
17630
17631   LIBS="-luuid $LIBS"
17632
17633 else
17634   as_fn_error $? "Cannot find static uuid library." "$LINENO" 5
17635 fi
17636
17637
17638         LIBS=$saved_LIBS
17639         PKG_CONFIG=$saved_PKG_CONFIG
17640 fi
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655 # Check whether --enable-dev-random was given.
17656 if test "${enable_dev_random+set}" = set; then :
17657   enableval=$enable_dev_random; default_rng=/dev/random
17658 else
17659   default_rng=/dev/urandom
17660 fi
17661
17662
17663 cat >>confdefs.h <<_ACEOF
17664 #define DEFAULT_RNG "$default_rng"
17665 _ACEOF
17666
17667
17668
17669
17670
17671
17672
17673
17674 # Check whether --enable-python was given.
17675 if test "${enable_python+set}" = set; then :
17676   enableval=$enable_python; with_python=$enableval
17677 else
17678   with_python=no
17679 fi
17680
17681
17682
17683 # Check whether --with-python_version was given.
17684 if test "${with_python_version+set}" = set; then :
17685   withval=$with_python_version; PYTHON_VERSION=$withval
17686 else
17687   PYTHON_VERSION=2.6
17688 fi
17689
17690
17691 if test "x$with_python" = "xyes"; then
17692
17693
17694
17695
17696
17697
17698         if test -n "$PYTHON"; then
17699       # If the user set $PYTHON, use it and don't search something else.
17700       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= $PYTHON_VERSION" >&5
17701 $as_echo_n "checking whether $PYTHON version is >= $PYTHON_VERSION... " >&6; }
17702       prog="import sys
17703 # split strings by '.' and convert to numeric.  Append some zeros
17704 # because we need at least 4 digits for the hex conversion.
17705 # map returns an iterator in Python 3.0 and a list in 2.x
17706 minver = list(map(int, '$PYTHON_VERSION'.split('.'))) + [0, 0, 0]
17707 minverhex = 0
17708 # xrange is not present in Python 3.0 and range returns an iterator
17709 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17710 sys.exit(sys.hexversion < minverhex)"
17711   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17712    ($PYTHON -c "$prog") >&5 2>&5
17713    ac_status=$?
17714    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715    (exit $ac_status); }; then :
17716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717 $as_echo "yes" >&6; }
17718 else
17719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720 $as_echo "no" >&6; }
17721                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17722 fi
17723       am_display_PYTHON=$PYTHON
17724     else
17725       # Otherwise, try each interpreter until we find one that satisfies
17726       # VERSION.
17727       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= $PYTHON_VERSION" >&5
17728 $as_echo_n "checking for a Python interpreter with version >= $PYTHON_VERSION... " >&6; }
17729 if ${am_cv_pathless_PYTHON+:} false; then :
17730   $as_echo_n "(cached) " >&6
17731 else
17732
17733         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
17734           test "$am_cv_pathless_PYTHON" = none && break
17735           prog="import sys
17736 # split strings by '.' and convert to numeric.  Append some zeros
17737 # because we need at least 4 digits for the hex conversion.
17738 # map returns an iterator in Python 3.0 and a list in 2.x
17739 minver = list(map(int, '$PYTHON_VERSION'.split('.'))) + [0, 0, 0]
17740 minverhex = 0
17741 # xrange is not present in Python 3.0 and range returns an iterator
17742 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17743 sys.exit(sys.hexversion < minverhex)"
17744   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17745    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17746    ac_status=$?
17747    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748    (exit $ac_status); }; then :
17749   break
17750 fi
17751         done
17752 fi
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17754 $as_echo "$am_cv_pathless_PYTHON" >&6; }
17755       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17756       if test "$am_cv_pathless_PYTHON" = none; then
17757         PYTHON=:
17758       else
17759         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17760 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17762 $as_echo_n "checking for $ac_word... " >&6; }
17763 if ${ac_cv_path_PYTHON+:} false; then :
17764   $as_echo_n "(cached) " >&6
17765 else
17766   case $PYTHON in
17767   [\\/]* | ?:[\\/]*)
17768   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17769   ;;
17770   *)
17771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17772 for as_dir in $PATH
17773 do
17774   IFS=$as_save_IFS
17775   test -z "$as_dir" && as_dir=.
17776     for ac_exec_ext in '' $ac_executable_extensions; do
17777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17778     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17780     break 2
17781   fi
17782 done
17783   done
17784 IFS=$as_save_IFS
17785
17786   ;;
17787 esac
17788 fi
17789 PYTHON=$ac_cv_path_PYTHON
17790 if test -n "$PYTHON"; then
17791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17792 $as_echo "$PYTHON" >&6; }
17793 else
17794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17795 $as_echo "no" >&6; }
17796 fi
17797
17798
17799       fi
17800       am_display_PYTHON=$am_cv_pathless_PYTHON
17801     fi
17802
17803
17804   if test "$PYTHON" = :; then
17805       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
17806   else
17807
17808
17809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17810 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17811 if ${am_cv_python_version+:} false; then :
17812   $as_echo_n "(cached) " >&6
17813 else
17814   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17815 fi
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17817 $as_echo "$am_cv_python_version" >&6; }
17818   PYTHON_VERSION=$am_cv_python_version
17819
17820
17821
17822   PYTHON_PREFIX='${prefix}'
17823
17824   PYTHON_EXEC_PREFIX='${exec_prefix}'
17825
17826
17827
17828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17829 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17830 if ${am_cv_python_platform+:} false; then :
17831   $as_echo_n "(cached) " >&6
17832 else
17833   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17836 $as_echo "$am_cv_python_platform" >&6; }
17837   PYTHON_PLATFORM=$am_cv_python_platform
17838
17839
17840   # Just factor out some code duplication.
17841   am_python_setup_sysconfig="\
17842 import sys
17843 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17844 # with python 3.x.  See automake bug#10227.
17845 try:
17846     import sysconfig
17847 except ImportError:
17848     can_use_sysconfig = 0
17849 else:
17850     can_use_sysconfig = 1
17851 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17852 # <https://github.com/pypa/virtualenv/issues/118>
17853 try:
17854     from platform import python_implementation
17855     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17856         can_use_sysconfig = 0
17857 except ImportError:
17858     pass"
17859
17860
17861             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17862 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17863 if ${am_cv_python_pythondir+:} false; then :
17864   $as_echo_n "(cached) " >&6
17865 else
17866   if test "x$prefix" = xNONE
17867      then
17868        am_py_prefix=$ac_default_prefix
17869      else
17870        am_py_prefix=$prefix
17871      fi
17872      am_cv_python_pythondir=`$PYTHON -c "
17873 $am_python_setup_sysconfig
17874 if can_use_sysconfig:
17875     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17876 else:
17877     from distutils import sysconfig
17878     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17879 sys.stdout.write(sitedir)"`
17880      case $am_cv_python_pythondir in
17881      $am_py_prefix*)
17882        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17883        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17884        ;;
17885      *)
17886        case $am_py_prefix in
17887          /usr|/System*) ;;
17888          *)
17889           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17890           ;;
17891        esac
17892        ;;
17893      esac
17894
17895 fi
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17897 $as_echo "$am_cv_python_pythondir" >&6; }
17898   pythondir=$am_cv_python_pythondir
17899
17900
17901
17902   pkgpythondir=\${pythondir}/$PACKAGE
17903
17904
17905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17906 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17907 if ${am_cv_python_pyexecdir+:} false; then :
17908   $as_echo_n "(cached) " >&6
17909 else
17910   if test "x$exec_prefix" = xNONE
17911      then
17912        am_py_exec_prefix=$am_py_prefix
17913      else
17914        am_py_exec_prefix=$exec_prefix
17915      fi
17916      am_cv_python_pyexecdir=`$PYTHON -c "
17917 $am_python_setup_sysconfig
17918 if can_use_sysconfig:
17919     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17920 else:
17921     from distutils import sysconfig
17922     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17923 sys.stdout.write(sitedir)"`
17924      case $am_cv_python_pyexecdir in
17925      $am_py_exec_prefix*)
17926        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17927        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17928        ;;
17929      *)
17930        case $am_py_exec_prefix in
17931          /usr|/System*) ;;
17932          *)
17933            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17934            ;;
17935        esac
17936        ;;
17937      esac
17938
17939 fi
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17941 $as_echo "$am_cv_python_pyexecdir" >&6; }
17942   pyexecdir=$am_cv_python_pyexecdir
17943
17944
17945
17946   pkgpyexecdir=\${pyexecdir}/$PACKAGE
17947
17948
17949
17950   fi
17951
17952
17953
17954         if ! test -x "$PYTHON-config" ; then
17955             as_fn_error $? "Cannot find python development packages to build bindings" "$LINENO" 5
17956         fi
17957
17958         PYTHON_INCLUDES=$($PYTHON-config --includes)
17959
17960
17961         PYTHON_LIBS=$($PYTHON-config --libs)
17962
17963 fi
17964  if test "x$with_python" = "xyes"; then
17965   PYTHON_CRYPTSETUP_TRUE=
17966   PYTHON_CRYPTSETUP_FALSE='#'
17967 else
17968   PYTHON_CRYPTSETUP_TRUE='#'
17969   PYTHON_CRYPTSETUP_FALSE=
17970 fi
17971
17972
17973
17974 # Check whether --with-plain-hash was given.
17975 if test "${with_plain_hash+set}" = set; then :
17976   withval=$with_plain_hash;
17977 cat >>confdefs.h <<_ACEOF
17978 #define DEFAULT_PLAIN_HASH "$withval"
17979 _ACEOF
17980
17981
17982 else
17983
17984 cat >>confdefs.h <<_ACEOF
17985 #define DEFAULT_PLAIN_HASH "ripemd160"
17986 _ACEOF
17987
17988
17989
17990 fi
17991
17992
17993 # Check whether --with-plain-cipher was given.
17994 if test "${with_plain_cipher+set}" = set; then :
17995   withval=$with_plain_cipher;
17996 cat >>confdefs.h <<_ACEOF
17997 #define DEFAULT_PLAIN_CIPHER "$withval"
17998 _ACEOF
17999
18000
18001 else
18002
18003 cat >>confdefs.h <<_ACEOF
18004 #define DEFAULT_PLAIN_CIPHER "aes"
18005 _ACEOF
18006
18007
18008
18009 fi
18010
18011
18012 # Check whether --with-plain-mode was given.
18013 if test "${with_plain_mode+set}" = set; then :
18014   withval=$with_plain_mode;
18015 cat >>confdefs.h <<_ACEOF
18016 #define DEFAULT_PLAIN_MODE "$withval"
18017 _ACEOF
18018
18019
18020 else
18021
18022 cat >>confdefs.h <<_ACEOF
18023 #define DEFAULT_PLAIN_MODE "cbc-essiv:sha256"
18024 _ACEOF
18025
18026
18027
18028 fi
18029
18030
18031 # Check whether --with-plain-keybits was given.
18032 if test "${with_plain_keybits+set}" = set; then :
18033   withval=$with_plain_keybits;
18034 cat >>confdefs.h <<_ACEOF
18035 #define DEFAULT_PLAIN_KEYBITS $withval
18036 _ACEOF
18037
18038
18039 else
18040
18041 cat >>confdefs.h <<_ACEOF
18042 #define DEFAULT_PLAIN_KEYBITS 256
18043 _ACEOF
18044
18045
18046
18047 fi
18048
18049
18050
18051 # Check whether --with-luks1-hash was given.
18052 if test "${with_luks1_hash+set}" = set; then :
18053   withval=$with_luks1_hash;
18054 cat >>confdefs.h <<_ACEOF
18055 #define DEFAULT_LUKS1_HASH "$withval"
18056 _ACEOF
18057
18058
18059 else
18060
18061 cat >>confdefs.h <<_ACEOF
18062 #define DEFAULT_LUKS1_HASH "sha1"
18063 _ACEOF
18064
18065
18066
18067 fi
18068
18069
18070 # Check whether --with-luks1-cipher was given.
18071 if test "${with_luks1_cipher+set}" = set; then :
18072   withval=$with_luks1_cipher;
18073 cat >>confdefs.h <<_ACEOF
18074 #define DEFAULT_LUKS1_CIPHER "$withval"
18075 _ACEOF
18076
18077
18078 else
18079
18080 cat >>confdefs.h <<_ACEOF
18081 #define DEFAULT_LUKS1_CIPHER "aes"
18082 _ACEOF
18083
18084
18085
18086 fi
18087
18088
18089 # Check whether --with-luks1-mode was given.
18090 if test "${with_luks1_mode+set}" = set; then :
18091   withval=$with_luks1_mode;
18092 cat >>confdefs.h <<_ACEOF
18093 #define DEFAULT_LUKS1_MODE "$withval"
18094 _ACEOF
18095
18096
18097 else
18098
18099 cat >>confdefs.h <<_ACEOF
18100 #define DEFAULT_LUKS1_MODE "xts-plain64"
18101 _ACEOF
18102
18103
18104
18105 fi
18106
18107
18108 # Check whether --with-luks1-keybits was given.
18109 if test "${with_luks1_keybits+set}" = set; then :
18110   withval=$with_luks1_keybits;
18111 cat >>confdefs.h <<_ACEOF
18112 #define DEFAULT_LUKS1_KEYBITS $withval
18113 _ACEOF
18114
18115
18116 else
18117
18118 cat >>confdefs.h <<_ACEOF
18119 #define DEFAULT_LUKS1_KEYBITS 256
18120 _ACEOF
18121
18122
18123
18124 fi
18125
18126
18127 # Check whether --with-luks1-iter-time was given.
18128 if test "${with_luks1_iter_time+set}" = set; then :
18129   withval=$with_luks1_iter_time;
18130 cat >>confdefs.h <<_ACEOF
18131 #define DEFAULT_LUKS1_ITER_TIME $withval
18132 _ACEOF
18133
18134
18135 else
18136
18137 cat >>confdefs.h <<_ACEOF
18138 #define DEFAULT_LUKS1_ITER_TIME 1000
18139 _ACEOF
18140
18141
18142
18143 fi
18144
18145
18146
18147 # Check whether --with-loopaes-cipher was given.
18148 if test "${with_loopaes_cipher+set}" = set; then :
18149   withval=$with_loopaes_cipher;
18150 cat >>confdefs.h <<_ACEOF
18151 #define DEFAULT_LOOPAES_CIPHER "$withval"
18152 _ACEOF
18153
18154
18155 else
18156
18157 cat >>confdefs.h <<_ACEOF
18158 #define DEFAULT_LOOPAES_CIPHER "aes"
18159 _ACEOF
18160
18161
18162
18163 fi
18164
18165
18166 # Check whether --with-loopaes-keybits was given.
18167 if test "${with_loopaes_keybits+set}" = set; then :
18168   withval=$with_loopaes_keybits;
18169 cat >>confdefs.h <<_ACEOF
18170 #define DEFAULT_LOOPAES_KEYBITS $withval
18171 _ACEOF
18172
18173
18174 else
18175
18176 cat >>confdefs.h <<_ACEOF
18177 #define DEFAULT_LOOPAES_KEYBITS 256
18178 _ACEOF
18179
18180
18181
18182 fi
18183
18184
18185
18186 # Check whether --with-keyfile-size-maxkb was given.
18187 if test "${with_keyfile_size_maxkb+set}" = set; then :
18188   withval=$with_keyfile_size_maxkb;
18189 cat >>confdefs.h <<_ACEOF
18190 #define DEFAULT_KEYFILE_SIZE_MAXKB $withval
18191 _ACEOF
18192
18193
18194 else
18195
18196 cat >>confdefs.h <<_ACEOF
18197 #define DEFAULT_KEYFILE_SIZE_MAXKB 8192
18198 _ACEOF
18199
18200
18201
18202 fi
18203
18204
18205 # Check whether --with-passphrase-size-max was given.
18206 if test "${with_passphrase_size_max+set}" = set; then :
18207   withval=$with_passphrase_size_max;
18208 cat >>confdefs.h <<_ACEOF
18209 #define DEFAULT_PASSPHRASE_SIZE_MAX $withval
18210 _ACEOF
18211
18212
18213 else
18214
18215 cat >>confdefs.h <<_ACEOF
18216 #define DEFAULT_PASSPHRASE_SIZE_MAX 512
18217 _ACEOF
18218
18219
18220
18221 fi
18222
18223
18224
18225 # Check whether --with-verity-hash was given.
18226 if test "${with_verity_hash+set}" = set; then :
18227   withval=$with_verity_hash;
18228 cat >>confdefs.h <<_ACEOF
18229 #define DEFAULT_VERITY_HASH "$withval"
18230 _ACEOF
18231
18232
18233 else
18234
18235 cat >>confdefs.h <<_ACEOF
18236 #define DEFAULT_VERITY_HASH "sha256"
18237 _ACEOF
18238
18239
18240
18241 fi
18242
18243
18244 # Check whether --with-verity-data-block was given.
18245 if test "${with_verity_data_block+set}" = set; then :
18246   withval=$with_verity_data_block;
18247 cat >>confdefs.h <<_ACEOF
18248 #define DEFAULT_VERITY_DATA_BLOCK $withval
18249 _ACEOF
18250
18251
18252 else
18253
18254 cat >>confdefs.h <<_ACEOF
18255 #define DEFAULT_VERITY_DATA_BLOCK 4096
18256 _ACEOF
18257
18258
18259
18260 fi
18261
18262
18263 # Check whether --with-verity-hash-block was given.
18264 if test "${with_verity_hash_block+set}" = set; then :
18265   withval=$with_verity_hash_block;
18266 cat >>confdefs.h <<_ACEOF
18267 #define DEFAULT_VERITY_HASH_BLOCK $withval
18268 _ACEOF
18269
18270
18271 else
18272
18273 cat >>confdefs.h <<_ACEOF
18274 #define DEFAULT_VERITY_HASH_BLOCK 4096
18275 _ACEOF
18276
18277
18278
18279 fi
18280
18281
18282 # Check whether --with-verity-salt-size was given.
18283 if test "${with_verity_salt_size+set}" = set; then :
18284   withval=$with_verity_salt_size;
18285 cat >>confdefs.h <<_ACEOF
18286 #define DEFAULT_VERITY_SALT_SIZE $withval
18287 _ACEOF
18288
18289
18290 else
18291
18292 cat >>confdefs.h <<_ACEOF
18293 #define DEFAULT_VERITY_SALT_SIZE 32
18294 _ACEOF
18295
18296
18297
18298 fi
18299
18300
18301
18302 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libcryptsetup.pc lib/crypto_backend/Makefile lib/luks1/Makefile lib/loopaes/Makefile lib/verity/Makefile lib/tcrypt/Makefile src/Makefile po/Makefile.in man/Makefile tests/Makefile python/Makefile"
18303
18304 cat >confcache <<\_ACEOF
18305 # This file is a shell script that caches the results of configure
18306 # tests run on this system so they can be shared between configure
18307 # scripts and configure runs, see configure's option --config-cache.
18308 # It is not useful on other systems.  If it contains results you don't
18309 # want to keep, you may remove or edit it.
18310 #
18311 # config.status only pays attention to the cache file if you give it
18312 # the --recheck option to rerun configure.
18313 #
18314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18316 # following values.
18317
18318 _ACEOF
18319
18320 # The following way of writing the cache mishandles newlines in values,
18321 # but we know of no workaround that is simple, portable, and efficient.
18322 # So, we kill variables containing newlines.
18323 # Ultrix sh set writes to stderr and can't be redirected directly,
18324 # and sets the high bit in the cache file unless we assign to the vars.
18325 (
18326   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18327     eval ac_val=\$$ac_var
18328     case $ac_val in #(
18329     *${as_nl}*)
18330       case $ac_var in #(
18331       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18333       esac
18334       case $ac_var in #(
18335       _ | IFS | as_nl) ;; #(
18336       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18337       *) { eval $ac_var=; unset $ac_var;} ;;
18338       esac ;;
18339     esac
18340   done
18341
18342   (set) 2>&1 |
18343     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18344     *${as_nl}ac_space=\ *)
18345       # `set' does not quote correctly, so add quotes: double-quote
18346       # substitution turns \\\\ into \\, and sed turns \\ into \.
18347       sed -n \
18348         "s/'/'\\\\''/g;
18349           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18350       ;; #(
18351     *)
18352       # `set' quotes correctly as required by POSIX, so do not add quotes.
18353       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18354       ;;
18355     esac |
18356     sort
18357 ) |
18358   sed '
18359      /^ac_cv_env_/b end
18360      t clear
18361      :clear
18362      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18363      t end
18364      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18365      :end' >>confcache
18366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18367   if test -w "$cache_file"; then
18368     if test "x$cache_file" != "x/dev/null"; then
18369       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18370 $as_echo "$as_me: updating cache $cache_file" >&6;}
18371       if test ! -f "$cache_file" || test -h "$cache_file"; then
18372         cat confcache >"$cache_file"
18373       else
18374         case $cache_file in #(
18375         */* | ?:*)
18376           mv -f confcache "$cache_file"$$ &&
18377           mv -f "$cache_file"$$ "$cache_file" ;; #(
18378         *)
18379           mv -f confcache "$cache_file" ;;
18380         esac
18381       fi
18382     fi
18383   else
18384     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18386   fi
18387 fi
18388 rm -f confcache
18389
18390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18391 # Let make expand exec_prefix.
18392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18393
18394 DEFS=-DHAVE_CONFIG_H
18395
18396 ac_libobjs=
18397 ac_ltlibobjs=
18398 U=
18399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18400   # 1. Remove the extension, and $U if already installed.
18401   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18402   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18403   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18404   #    will be set to the directory where LIBOBJS objects are built.
18405   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18406   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18407 done
18408 LIBOBJS=$ac_libobjs
18409
18410 LTLIBOBJS=$ac_ltlibobjs
18411
18412
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18414 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18415    if test -n "$am_sleep_pid"; then
18416      # Hide warnings about reused PIDs.
18417      wait $am_sleep_pid 2>/dev/null
18418    fi
18419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18420 $as_echo "done" >&6; }
18421  if test -n "$EXEEXT"; then
18422   am__EXEEXT_TRUE=
18423   am__EXEEXT_FALSE='#'
18424 else
18425   am__EXEEXT_TRUE='#'
18426   am__EXEEXT_FALSE=
18427 fi
18428
18429 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18430   as_fn_error $? "conditional \"AMDEP\" was never defined.
18431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18432 fi
18433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18434   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18436 fi
18437 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18438   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18440 fi
18441
18442 if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then
18443   as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined.
18444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18445 fi
18446 if test -z "${VERITYSETUP_TRUE}" && test -z "${VERITYSETUP_FALSE}"; then
18447   as_fn_error $? "conditional \"VERITYSETUP\" was never defined.
18448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18449 fi
18450 if test -z "${REENCRYPT_TRUE}" && test -z "${REENCRYPT_FALSE}"; then
18451   as_fn_error $? "conditional \"REENCRYPT\" was never defined.
18452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18453 fi
18454 if test -z "${CRYPTO_BACKEND_GCRYPT_TRUE}" && test -z "${CRYPTO_BACKEND_GCRYPT_FALSE}"; then
18455   as_fn_error $? "conditional \"CRYPTO_BACKEND_GCRYPT\" was never defined.
18456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18457 fi
18458 if test -z "${CRYPTO_BACKEND_OPENSSL_TRUE}" && test -z "${CRYPTO_BACKEND_OPENSSL_FALSE}"; then
18459   as_fn_error $? "conditional \"CRYPTO_BACKEND_OPENSSL\" was never defined.
18460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18461 fi
18462 if test -z "${CRYPTO_BACKEND_NSS_TRUE}" && test -z "${CRYPTO_BACKEND_NSS_FALSE}"; then
18463   as_fn_error $? "conditional \"CRYPTO_BACKEND_NSS\" was never defined.
18464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18465 fi
18466 if test -z "${CRYPTO_BACKEND_KERNEL_TRUE}" && test -z "${CRYPTO_BACKEND_KERNEL_FALSE}"; then
18467   as_fn_error $? "conditional \"CRYPTO_BACKEND_KERNEL\" was never defined.
18468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18469 fi
18470 if test -z "${CRYPTO_BACKEND_NETTLE_TRUE}" && test -z "${CRYPTO_BACKEND_NETTLE_FALSE}"; then
18471   as_fn_error $? "conditional \"CRYPTO_BACKEND_NETTLE\" was never defined.
18472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18473 fi
18474 if test -z "${CRYPTO_INTERNAL_PBKDF2_TRUE}" && test -z "${CRYPTO_INTERNAL_PBKDF2_FALSE}"; then
18475   as_fn_error $? "conditional \"CRYPTO_INTERNAL_PBKDF2\" was never defined.
18476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18477 fi
18478 if test -z "${PYTHON_CRYPTSETUP_TRUE}" && test -z "${PYTHON_CRYPTSETUP_FALSE}"; then
18479   as_fn_error $? "conditional \"PYTHON_CRYPTSETUP\" was never defined.
18480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18481 fi
18482
18483 : "${CONFIG_STATUS=./config.status}"
18484 ac_write_fail=0
18485 ac_clean_files_save=$ac_clean_files
18486 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18488 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18489 as_write_fail=0
18490 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18491 #! $SHELL
18492 # Generated by $as_me.
18493 # Run this file to recreate the current configuration.
18494 # Compiler output produced by configure, useful for debugging
18495 # configure, is in config.log if it exists.
18496
18497 debug=false
18498 ac_cs_recheck=false
18499 ac_cs_silent=false
18500
18501 SHELL=\${CONFIG_SHELL-$SHELL}
18502 export SHELL
18503 _ASEOF
18504 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18505 ## -------------------- ##
18506 ## M4sh Initialization. ##
18507 ## -------------------- ##
18508
18509 # Be more Bourne compatible
18510 DUALCASE=1; export DUALCASE # for MKS sh
18511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18512   emulate sh
18513   NULLCMD=:
18514   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18515   # is contrary to our usage.  Disable this feature.
18516   alias -g '${1+"$@"}'='"$@"'
18517   setopt NO_GLOB_SUBST
18518 else
18519   case `(set -o) 2>/dev/null` in #(
18520   *posix*) :
18521     set -o posix ;; #(
18522   *) :
18523      ;;
18524 esac
18525 fi
18526
18527
18528 as_nl='
18529 '
18530 export as_nl
18531 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18532 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18535 # Prefer a ksh shell builtin over an external printf program on Solaris,
18536 # but without wasting forks for bash or zsh.
18537 if test -z "$BASH_VERSION$ZSH_VERSION" \
18538     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18539   as_echo='print -r --'
18540   as_echo_n='print -rn --'
18541 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18542   as_echo='printf %s\n'
18543   as_echo_n='printf %s'
18544 else
18545   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18546     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18547     as_echo_n='/usr/ucb/echo -n'
18548   else
18549     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18550     as_echo_n_body='eval
18551       arg=$1;
18552       case $arg in #(
18553       *"$as_nl"*)
18554         expr "X$arg" : "X\\(.*\\)$as_nl";
18555         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18556       esac;
18557       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18558     '
18559     export as_echo_n_body
18560     as_echo_n='sh -c $as_echo_n_body as_echo'
18561   fi
18562   export as_echo_body
18563   as_echo='sh -c $as_echo_body as_echo'
18564 fi
18565
18566 # The user is always right.
18567 if test "${PATH_SEPARATOR+set}" != set; then
18568   PATH_SEPARATOR=:
18569   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18570     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18571       PATH_SEPARATOR=';'
18572   }
18573 fi
18574
18575
18576 # IFS
18577 # We need space, tab and new line, in precisely that order.  Quoting is
18578 # there to prevent editors from complaining about space-tab.
18579 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18580 # splitting by setting IFS to empty value.)
18581 IFS=" ""        $as_nl"
18582
18583 # Find who we are.  Look in the path if we contain no directory separator.
18584 as_myself=
18585 case $0 in #((
18586   *[\\/]* ) as_myself=$0 ;;
18587   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588 for as_dir in $PATH
18589 do
18590   IFS=$as_save_IFS
18591   test -z "$as_dir" && as_dir=.
18592     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18593   done
18594 IFS=$as_save_IFS
18595
18596      ;;
18597 esac
18598 # We did not find ourselves, most probably we were run as `sh COMMAND'
18599 # in which case we are not to be found in the path.
18600 if test "x$as_myself" = x; then
18601   as_myself=$0
18602 fi
18603 if test ! -f "$as_myself"; then
18604   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18605   exit 1
18606 fi
18607
18608 # Unset variables that we do not need and which cause bugs (e.g. in
18609 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18610 # suppresses any "Segmentation fault" message there.  '((' could
18611 # trigger a bug in pdksh 5.2.14.
18612 for as_var in BASH_ENV ENV MAIL MAILPATH
18613 do eval test x\${$as_var+set} = xset \
18614   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18615 done
18616 PS1='$ '
18617 PS2='> '
18618 PS4='+ '
18619
18620 # NLS nuisances.
18621 LC_ALL=C
18622 export LC_ALL
18623 LANGUAGE=C
18624 export LANGUAGE
18625
18626 # CDPATH.
18627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18628
18629
18630 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18631 # ----------------------------------------
18632 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18633 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18634 # script with STATUS, using 1 if that was 0.
18635 as_fn_error ()
18636 {
18637   as_status=$1; test $as_status -eq 0 && as_status=1
18638   if test "$4"; then
18639     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18640     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18641   fi
18642   $as_echo "$as_me: error: $2" >&2
18643   as_fn_exit $as_status
18644 } # as_fn_error
18645
18646
18647 # as_fn_set_status STATUS
18648 # -----------------------
18649 # Set $? to STATUS, without forking.
18650 as_fn_set_status ()
18651 {
18652   return $1
18653 } # as_fn_set_status
18654
18655 # as_fn_exit STATUS
18656 # -----------------
18657 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18658 as_fn_exit ()
18659 {
18660   set +e
18661   as_fn_set_status $1
18662   exit $1
18663 } # as_fn_exit
18664
18665 # as_fn_unset VAR
18666 # ---------------
18667 # Portably unset VAR.
18668 as_fn_unset ()
18669 {
18670   { eval $1=; unset $1;}
18671 }
18672 as_unset=as_fn_unset
18673 # as_fn_append VAR VALUE
18674 # ----------------------
18675 # Append the text in VALUE to the end of the definition contained in VAR. Take
18676 # advantage of any shell optimizations that allow amortized linear growth over
18677 # repeated appends, instead of the typical quadratic growth present in naive
18678 # implementations.
18679 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18680   eval 'as_fn_append ()
18681   {
18682     eval $1+=\$2
18683   }'
18684 else
18685   as_fn_append ()
18686   {
18687     eval $1=\$$1\$2
18688   }
18689 fi # as_fn_append
18690
18691 # as_fn_arith ARG...
18692 # ------------------
18693 # Perform arithmetic evaluation on the ARGs, and store the result in the
18694 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18695 # must be portable across $(()) and expr.
18696 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18697   eval 'as_fn_arith ()
18698   {
18699     as_val=$(( $* ))
18700   }'
18701 else
18702   as_fn_arith ()
18703   {
18704     as_val=`expr "$@" || test $? -eq 1`
18705   }
18706 fi # as_fn_arith
18707
18708
18709 if expr a : '\(a\)' >/dev/null 2>&1 &&
18710    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18711   as_expr=expr
18712 else
18713   as_expr=false
18714 fi
18715
18716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18717   as_basename=basename
18718 else
18719   as_basename=false
18720 fi
18721
18722 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18723   as_dirname=dirname
18724 else
18725   as_dirname=false
18726 fi
18727
18728 as_me=`$as_basename -- "$0" ||
18729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18730          X"$0" : 'X\(//\)$' \| \
18731          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18732 $as_echo X/"$0" |
18733     sed '/^.*\/\([^/][^/]*\)\/*$/{
18734             s//\1/
18735             q
18736           }
18737           /^X\/\(\/\/\)$/{
18738             s//\1/
18739             q
18740           }
18741           /^X\/\(\/\).*/{
18742             s//\1/
18743             q
18744           }
18745           s/.*/./; q'`
18746
18747 # Avoid depending upon Character Ranges.
18748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18751 as_cr_digits='0123456789'
18752 as_cr_alnum=$as_cr_Letters$as_cr_digits
18753
18754 ECHO_C= ECHO_N= ECHO_T=
18755 case `echo -n x` in #(((((
18756 -n*)
18757   case `echo 'xy\c'` in
18758   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18759   xy)  ECHO_C='\c';;
18760   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18761        ECHO_T=' ';;
18762   esac;;
18763 *)
18764   ECHO_N='-n';;
18765 esac
18766
18767 rm -f conf$$ conf$$.exe conf$$.file
18768 if test -d conf$$.dir; then
18769   rm -f conf$$.dir/conf$$.file
18770 else
18771   rm -f conf$$.dir
18772   mkdir conf$$.dir 2>/dev/null
18773 fi
18774 if (echo >conf$$.file) 2>/dev/null; then
18775   if ln -s conf$$.file conf$$ 2>/dev/null; then
18776     as_ln_s='ln -s'
18777     # ... but there are two gotchas:
18778     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18779     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18780     # In both cases, we have to default to `cp -pR'.
18781     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18782       as_ln_s='cp -pR'
18783   elif ln conf$$.file conf$$ 2>/dev/null; then
18784     as_ln_s=ln
18785   else
18786     as_ln_s='cp -pR'
18787   fi
18788 else
18789   as_ln_s='cp -pR'
18790 fi
18791 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18792 rmdir conf$$.dir 2>/dev/null
18793
18794
18795 # as_fn_mkdir_p
18796 # -------------
18797 # Create "$as_dir" as a directory, including parents if necessary.
18798 as_fn_mkdir_p ()
18799 {
18800
18801   case $as_dir in #(
18802   -*) as_dir=./$as_dir;;
18803   esac
18804   test -d "$as_dir" || eval $as_mkdir_p || {
18805     as_dirs=
18806     while :; do
18807       case $as_dir in #(
18808       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18809       *) as_qdir=$as_dir;;
18810       esac
18811       as_dirs="'$as_qdir' $as_dirs"
18812       as_dir=`$as_dirname -- "$as_dir" ||
18813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18814          X"$as_dir" : 'X\(//\)[^/]' \| \
18815          X"$as_dir" : 'X\(//\)$' \| \
18816          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18817 $as_echo X"$as_dir" |
18818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18819             s//\1/
18820             q
18821           }
18822           /^X\(\/\/\)[^/].*/{
18823             s//\1/
18824             q
18825           }
18826           /^X\(\/\/\)$/{
18827             s//\1/
18828             q
18829           }
18830           /^X\(\/\).*/{
18831             s//\1/
18832             q
18833           }
18834           s/.*/./; q'`
18835       test -d "$as_dir" && break
18836     done
18837     test -z "$as_dirs" || eval "mkdir $as_dirs"
18838   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18839
18840
18841 } # as_fn_mkdir_p
18842 if mkdir -p . 2>/dev/null; then
18843   as_mkdir_p='mkdir -p "$as_dir"'
18844 else
18845   test -d ./-p && rmdir ./-p
18846   as_mkdir_p=false
18847 fi
18848
18849
18850 # as_fn_executable_p FILE
18851 # -----------------------
18852 # Test if FILE is an executable regular file.
18853 as_fn_executable_p ()
18854 {
18855   test -f "$1" && test -x "$1"
18856 } # as_fn_executable_p
18857 as_test_x='test -x'
18858 as_executable_p=as_fn_executable_p
18859
18860 # Sed expression to map a string onto a valid CPP name.
18861 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18862
18863 # Sed expression to map a string onto a valid variable name.
18864 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18865
18866
18867 exec 6>&1
18868 ## ----------------------------------- ##
18869 ## Main body of $CONFIG_STATUS script. ##
18870 ## ----------------------------------- ##
18871 _ASEOF
18872 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18873
18874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18875 # Save the log message, to keep $0 and so on meaningful, and to
18876 # report actual input values of CONFIG_FILES etc. instead of their
18877 # values after options handling.
18878 ac_log="
18879 This file was extended by cryptsetup $as_me 1.6.7, which was
18880 generated by GNU Autoconf 2.69.  Invocation command line was
18881
18882   CONFIG_FILES    = $CONFIG_FILES
18883   CONFIG_HEADERS  = $CONFIG_HEADERS
18884   CONFIG_LINKS    = $CONFIG_LINKS
18885   CONFIG_COMMANDS = $CONFIG_COMMANDS
18886   $ $0 $@
18887
18888 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18889 "
18890
18891 _ACEOF
18892
18893 case $ac_config_files in *"
18894 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18895 esac
18896
18897 case $ac_config_headers in *"
18898 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18899 esac
18900
18901
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 # Files that config.status was made for.
18904 config_files="$ac_config_files"
18905 config_headers="$ac_config_headers"
18906 config_commands="$ac_config_commands"
18907
18908 _ACEOF
18909
18910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18911 ac_cs_usage="\
18912 \`$as_me' instantiates files and other configuration actions
18913 from templates according to the current configuration.  Unless the files
18914 and actions are specified as TAGs, all are instantiated by default.
18915
18916 Usage: $0 [OPTION]... [TAG]...
18917
18918   -h, --help       print this help, then exit
18919   -V, --version    print version number and configuration settings, then exit
18920       --config     print configuration, then exit
18921   -q, --quiet, --silent
18922                    do not print progress messages
18923   -d, --debug      don't remove temporary files
18924       --recheck    update $as_me by reconfiguring in the same conditions
18925       --file=FILE[:TEMPLATE]
18926                    instantiate the configuration file FILE
18927       --header=FILE[:TEMPLATE]
18928                    instantiate the configuration header FILE
18929
18930 Configuration files:
18931 $config_files
18932
18933 Configuration headers:
18934 $config_headers
18935
18936 Configuration commands:
18937 $config_commands
18938
18939 Report bugs to the package provider."
18940
18941 _ACEOF
18942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18943 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18944 ac_cs_version="\\
18945 cryptsetup config.status 1.6.7
18946 configured by $0, generated by GNU Autoconf 2.69,
18947   with options \\"\$ac_cs_config\\"
18948
18949 Copyright (C) 2012 Free Software Foundation, Inc.
18950 This config.status script is free software; the Free Software Foundation
18951 gives unlimited permission to copy, distribute and modify it."
18952
18953 ac_pwd='$ac_pwd'
18954 srcdir='$srcdir'
18955 INSTALL='$INSTALL'
18956 MKDIR_P='$MKDIR_P'
18957 AWK='$AWK'
18958 test -n "\$AWK" || AWK=awk
18959 _ACEOF
18960
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962 # The default lists apply if the user does not specify any file.
18963 ac_need_defaults=:
18964 while test $# != 0
18965 do
18966   case $1 in
18967   --*=?*)
18968     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18969     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18970     ac_shift=:
18971     ;;
18972   --*=)
18973     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18974     ac_optarg=
18975     ac_shift=:
18976     ;;
18977   *)
18978     ac_option=$1
18979     ac_optarg=$2
18980     ac_shift=shift
18981     ;;
18982   esac
18983
18984   case $ac_option in
18985   # Handling of the options.
18986   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18987     ac_cs_recheck=: ;;
18988   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18989     $as_echo "$ac_cs_version"; exit ;;
18990   --config | --confi | --conf | --con | --co | --c )
18991     $as_echo "$ac_cs_config"; exit ;;
18992   --debug | --debu | --deb | --de | --d | -d )
18993     debug=: ;;
18994   --file | --fil | --fi | --f )
18995     $ac_shift
18996     case $ac_optarg in
18997     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18998     '') as_fn_error $? "missing file argument" ;;
18999     esac
19000     as_fn_append CONFIG_FILES " '$ac_optarg'"
19001     ac_need_defaults=false;;
19002   --header | --heade | --head | --hea )
19003     $ac_shift
19004     case $ac_optarg in
19005     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19006     esac
19007     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19008     ac_need_defaults=false;;
19009   --he | --h)
19010     # Conflict between --help and --header
19011     as_fn_error $? "ambiguous option: \`$1'
19012 Try \`$0 --help' for more information.";;
19013   --help | --hel | -h )
19014     $as_echo "$ac_cs_usage"; exit ;;
19015   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19016   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19017     ac_cs_silent=: ;;
19018
19019   # This is an error.
19020   -*) as_fn_error $? "unrecognized option: \`$1'
19021 Try \`$0 --help' for more information." ;;
19022
19023   *) as_fn_append ac_config_targets " $1"
19024      ac_need_defaults=false ;;
19025
19026   esac
19027   shift
19028 done
19029
19030 ac_configure_extra_args=
19031
19032 if $ac_cs_silent; then
19033   exec 6>/dev/null
19034   ac_configure_extra_args="$ac_configure_extra_args --silent"
19035 fi
19036
19037 _ACEOF
19038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19039 if \$ac_cs_recheck; then
19040   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19041   shift
19042   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19043   CONFIG_SHELL='$SHELL'
19044   export CONFIG_SHELL
19045   exec "\$@"
19046 fi
19047
19048 _ACEOF
19049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19050 exec 5>>config.log
19051 {
19052   echo
19053   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19054 ## Running $as_me. ##
19055 _ASBOX
19056   $as_echo "$ac_log"
19057 } >&5
19058
19059 _ACEOF
19060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19061 #
19062 # INIT-COMMANDS
19063 #
19064 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19065
19066
19067 # The HP-UX ksh and POSIX shell print the target directory to stdout
19068 # if CDPATH is set.
19069 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19070
19071 sed_quote_subst='$sed_quote_subst'
19072 double_quote_subst='$double_quote_subst'
19073 delay_variable_subst='$delay_variable_subst'
19074 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19075 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19076 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19077 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19078 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19079 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19080 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19081 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19082 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19083 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19084 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19085 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19086 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19087 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19088 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19089 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19090 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19091 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19092 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19093 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19094 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19095 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19096 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19097 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19098 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19099 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19100 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19101 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19102 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19103 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19104 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19105 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19106 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19107 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19108 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19109 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19110 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19111 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19112 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19113 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19114 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19115 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19116 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19117 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19118 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19119 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19120 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19121 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19122 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19123 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19124 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19125 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19126 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19127 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19128 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19129 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19130 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19131 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19132 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19133 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19134 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19135 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19136 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19137 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19138 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19139 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19140 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19141 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19142 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19143 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19144 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19145 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19146 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19147 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19148 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19149 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19150 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19151 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19152 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19153 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19154 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19155 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19156 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19157 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19158 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19159 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19160 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19161 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19162 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19163 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19164 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19165 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19166 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19167 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19168 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19169 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19170 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19171 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19172 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19173 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19174 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19175 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19176 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19177 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19178 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19179 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19180 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19181 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19182 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19183 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19184 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19185 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19186 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19187 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19188 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19189 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19190 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19191 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19192 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19193 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19194 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19195 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19196 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19197 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19198 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19199 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19200 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19201 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19202 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19203 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19204
19205 LTCC='$LTCC'
19206 LTCFLAGS='$LTCFLAGS'
19207 compiler='$compiler_DEFAULT'
19208
19209 # A function that is used when there is no print builtin or printf.
19210 func_fallback_echo ()
19211 {
19212   eval 'cat <<_LTECHO_EOF
19213 \$1
19214 _LTECHO_EOF'
19215 }
19216
19217 # Quote evaled strings.
19218 for var in SHELL \
19219 ECHO \
19220 PATH_SEPARATOR \
19221 SED \
19222 GREP \
19223 EGREP \
19224 FGREP \
19225 LD \
19226 NM \
19227 LN_S \
19228 lt_SP2NL \
19229 lt_NL2SP \
19230 reload_flag \
19231 OBJDUMP \
19232 deplibs_check_method \
19233 file_magic_cmd \
19234 file_magic_glob \
19235 want_nocaseglob \
19236 DLLTOOL \
19237 sharedlib_from_linklib_cmd \
19238 AR \
19239 AR_FLAGS \
19240 archiver_list_spec \
19241 STRIP \
19242 RANLIB \
19243 CC \
19244 CFLAGS \
19245 compiler \
19246 lt_cv_sys_global_symbol_pipe \
19247 lt_cv_sys_global_symbol_to_cdecl \
19248 lt_cv_sys_global_symbol_to_c_name_address \
19249 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19250 nm_file_list_spec \
19251 lt_prog_compiler_no_builtin_flag \
19252 lt_prog_compiler_pic \
19253 lt_prog_compiler_wl \
19254 lt_prog_compiler_static \
19255 lt_cv_prog_compiler_c_o \
19256 need_locks \
19257 MANIFEST_TOOL \
19258 DSYMUTIL \
19259 NMEDIT \
19260 LIPO \
19261 OTOOL \
19262 OTOOL64 \
19263 shrext_cmds \
19264 export_dynamic_flag_spec \
19265 whole_archive_flag_spec \
19266 compiler_needs_object \
19267 with_gnu_ld \
19268 allow_undefined_flag \
19269 no_undefined_flag \
19270 hardcode_libdir_flag_spec \
19271 hardcode_libdir_separator \
19272 exclude_expsyms \
19273 include_expsyms \
19274 file_list_spec \
19275 variables_saved_for_relink \
19276 libname_spec \
19277 library_names_spec \
19278 soname_spec \
19279 install_override_mode \
19280 finish_eval \
19281 old_striplib \
19282 striplib; do
19283     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19284     *[\\\\\\\`\\"\\\$]*)
19285       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19286       ;;
19287     *)
19288       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19289       ;;
19290     esac
19291 done
19292
19293 # Double-quote double-evaled strings.
19294 for var in reload_cmds \
19295 old_postinstall_cmds \
19296 old_postuninstall_cmds \
19297 old_archive_cmds \
19298 extract_expsyms_cmds \
19299 old_archive_from_new_cmds \
19300 old_archive_from_expsyms_cmds \
19301 archive_cmds \
19302 archive_expsym_cmds \
19303 module_cmds \
19304 module_expsym_cmds \
19305 export_symbols_cmds \
19306 prelink_cmds \
19307 postlink_cmds \
19308 postinstall_cmds \
19309 postuninstall_cmds \
19310 finish_cmds \
19311 sys_lib_search_path_spec \
19312 sys_lib_dlsearch_path_spec; do
19313     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19314     *[\\\\\\\`\\"\\\$]*)
19315       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19316       ;;
19317     *)
19318       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19319       ;;
19320     esac
19321 done
19322
19323 ac_aux_dir='$ac_aux_dir'
19324 xsi_shell='$xsi_shell'
19325 lt_shell_append='$lt_shell_append'
19326
19327 # See if we are running on zsh, and set the options which allow our
19328 # commands through without removal of \ escapes INIT.
19329 if test -n "\${ZSH_VERSION+set}" ; then
19330    setopt NO_GLOB_SUBST
19331 fi
19332
19333
19334     PACKAGE='$PACKAGE'
19335     VERSION='$VERSION'
19336     TIMESTAMP='$TIMESTAMP'
19337     RM='$RM'
19338     ofile='$ofile'
19339
19340
19341
19342 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19343     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19344     # from automake < 1.5.
19345     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19346     # Capture the value of LINGUAS because we need it to compute CATALOGS.
19347     LINGUAS="${LINGUAS-%UNSET%}"
19348
19349
19350 _ACEOF
19351
19352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19353
19354 # Handling of arguments.
19355 for ac_config_target in $ac_config_targets
19356 do
19357   case $ac_config_target in
19358     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
19359     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19360     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19361     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19362     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19363     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19364     "lib/libcryptsetup.pc") CONFIG_FILES="$CONFIG_FILES lib/libcryptsetup.pc" ;;
19365     "lib/crypto_backend/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto_backend/Makefile" ;;
19366     "lib/luks1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/luks1/Makefile" ;;
19367     "lib/loopaes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/loopaes/Makefile" ;;
19368     "lib/verity/Makefile") CONFIG_FILES="$CONFIG_FILES lib/verity/Makefile" ;;
19369     "lib/tcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tcrypt/Makefile" ;;
19370     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19371     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19372     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19373     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19374     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
19375
19376   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19377   esac
19378 done
19379
19380
19381 # If the user did not use the arguments to specify the items to instantiate,
19382 # then the envvar interface is used.  Set only those that are not.
19383 # We use the long form for the default assignment because of an extremely
19384 # bizarre bug on SunOS 4.1.3.
19385 if $ac_need_defaults; then
19386   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19387   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19388   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19389 fi
19390
19391 # Have a temporary directory for convenience.  Make it in the build tree
19392 # simply because there is no reason against having it here, and in addition,
19393 # creating and moving files from /tmp can sometimes cause problems.
19394 # Hook for its removal unless debugging.
19395 # Note that there is a small window in which the directory will not be cleaned:
19396 # after its creation but before its name has been assigned to `$tmp'.
19397 $debug ||
19398 {
19399   tmp= ac_tmp=
19400   trap 'exit_status=$?
19401   : "${ac_tmp:=$tmp}"
19402   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19403 ' 0
19404   trap 'as_fn_exit 1' 1 2 13 15
19405 }
19406 # Create a (secure) tmp directory for tmp files.
19407
19408 {
19409   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19410   test -d "$tmp"
19411 }  ||
19412 {
19413   tmp=./conf$$-$RANDOM
19414   (umask 077 && mkdir "$tmp")
19415 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19416 ac_tmp=$tmp
19417
19418 # Set up the scripts for CONFIG_FILES section.
19419 # No need to generate them if there are no CONFIG_FILES.
19420 # This happens for instance with `./config.status config.h'.
19421 if test -n "$CONFIG_FILES"; then
19422
19423
19424 ac_cr=`echo X | tr X '\015'`
19425 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19426 # But we know of no other shell where ac_cr would be empty at this
19427 # point, so we can use a bashism as a fallback.
19428 if test "x$ac_cr" = x; then
19429   eval ac_cr=\$\'\\r\'
19430 fi
19431 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19432 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19433   ac_cs_awk_cr='\\r'
19434 else
19435   ac_cs_awk_cr=$ac_cr
19436 fi
19437
19438 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19439 _ACEOF
19440
19441
19442 {
19443   echo "cat >conf$$subs.awk <<_ACEOF" &&
19444   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19445   echo "_ACEOF"
19446 } >conf$$subs.sh ||
19447   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19448 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19449 ac_delim='%!_!# '
19450 for ac_last_try in false false false false false :; do
19451   . ./conf$$subs.sh ||
19452     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19453
19454   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19455   if test $ac_delim_n = $ac_delim_num; then
19456     break
19457   elif $ac_last_try; then
19458     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19459   else
19460     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19461   fi
19462 done
19463 rm -f conf$$subs.sh
19464
19465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19466 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19467 _ACEOF
19468 sed -n '
19469 h
19470 s/^/S["/; s/!.*/"]=/
19471 p
19472 g
19473 s/^[^!]*!//
19474 :repl
19475 t repl
19476 s/'"$ac_delim"'$//
19477 t delim
19478 :nl
19479 h
19480 s/\(.\{148\}\)..*/\1/
19481 t more1
19482 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19483 p
19484 n
19485 b repl
19486 :more1
19487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19488 p
19489 g
19490 s/.\{148\}//
19491 t nl
19492 :delim
19493 h
19494 s/\(.\{148\}\)..*/\1/
19495 t more2
19496 s/["\\]/\\&/g; s/^/"/; s/$/"/
19497 p
19498 b
19499 :more2
19500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19501 p
19502 g
19503 s/.\{148\}//
19504 t delim
19505 ' <conf$$subs.awk | sed '
19506 /^[^""]/{
19507   N
19508   s/\n//
19509 }
19510 ' >>$CONFIG_STATUS || ac_write_fail=1
19511 rm -f conf$$subs.awk
19512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19513 _ACAWK
19514 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19515   for (key in S) S_is_set[key] = 1
19516   FS = "\a"
19517
19518 }
19519 {
19520   line = $ 0
19521   nfields = split(line, field, "@")
19522   substed = 0
19523   len = length(field[1])
19524   for (i = 2; i < nfields; i++) {
19525     key = field[i]
19526     keylen = length(key)
19527     if (S_is_set[key]) {
19528       value = S[key]
19529       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19530       len += length(value) + length(field[++i])
19531       substed = 1
19532     } else
19533       len += 1 + keylen
19534   }
19535
19536   print line
19537 }
19538
19539 _ACAWK
19540 _ACEOF
19541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19542 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19543   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19544 else
19545   cat
19546 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19547   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19548 _ACEOF
19549
19550 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19551 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19552 # trailing colons and then remove the whole line if VPATH becomes empty
19553 # (actually we leave an empty line to preserve line numbers).
19554 if test "x$srcdir" = x.; then
19555   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19556 h
19557 s///
19558 s/^/:/
19559 s/[      ]*$/:/
19560 s/:\$(srcdir):/:/g
19561 s/:\${srcdir}:/:/g
19562 s/:@srcdir@:/:/g
19563 s/^:*//
19564 s/:*$//
19565 x
19566 s/\(=[   ]*\).*/\1/
19567 G
19568 s/\n//
19569 s/^[^=]*=[       ]*$//
19570 }'
19571 fi
19572
19573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19574 fi # test -n "$CONFIG_FILES"
19575
19576 # Set up the scripts for CONFIG_HEADERS section.
19577 # No need to generate them if there are no CONFIG_HEADERS.
19578 # This happens for instance with `./config.status Makefile'.
19579 if test -n "$CONFIG_HEADERS"; then
19580 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19581 BEGIN {
19582 _ACEOF
19583
19584 # Transform confdefs.h into an awk script `defines.awk', embedded as
19585 # here-document in config.status, that substitutes the proper values into
19586 # config.h.in to produce config.h.
19587
19588 # Create a delimiter string that does not exist in confdefs.h, to ease
19589 # handling of long lines.
19590 ac_delim='%!_!# '
19591 for ac_last_try in false false :; do
19592   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19593   if test -z "$ac_tt"; then
19594     break
19595   elif $ac_last_try; then
19596     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19597   else
19598     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19599   fi
19600 done
19601
19602 # For the awk script, D is an array of macro values keyed by name,
19603 # likewise P contains macro parameters if any.  Preserve backslash
19604 # newline sequences.
19605
19606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19607 sed -n '
19608 s/.\{148\}/&'"$ac_delim"'/g
19609 t rset
19610 :rset
19611 s/^[     ]*#[    ]*define[       ][      ]*/ /
19612 t def
19613 d
19614 :def
19615 s/\\$//
19616 t bsnl
19617 s/["\\]/\\&/g
19618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19619 D["\1"]=" \3"/p
19620 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19621 d
19622 :bsnl
19623 s/["\\]/\\&/g
19624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19625 D["\1"]=" \3\\\\\\n"\\/p
19626 t cont
19627 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19628 t cont
19629 d
19630 :cont
19631 n
19632 s/.\{148\}/&'"$ac_delim"'/g
19633 t clear
19634 :clear
19635 s/\\$//
19636 t bsnlc
19637 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19638 d
19639 :bsnlc
19640 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19641 b cont
19642 ' <confdefs.h | sed '
19643 s/'"$ac_delim"'/"\\\
19644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19645
19646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19647   for (key in D) D_is_set[key] = 1
19648   FS = "\a"
19649 }
19650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19651   line = \$ 0
19652   split(line, arg, " ")
19653   if (arg[1] == "#") {
19654     defundef = arg[2]
19655     mac1 = arg[3]
19656   } else {
19657     defundef = substr(arg[1], 2)
19658     mac1 = arg[2]
19659   }
19660   split(mac1, mac2, "(") #)
19661   macro = mac2[1]
19662   prefix = substr(line, 1, index(line, defundef) - 1)
19663   if (D_is_set[macro]) {
19664     # Preserve the white space surrounding the "#".
19665     print prefix "define", macro P[macro] D[macro]
19666     next
19667   } else {
19668     # Replace #undef with comments.  This is necessary, for example,
19669     # in the case of _POSIX_SOURCE, which is predefined and required
19670     # on some systems where configure will not decide to define it.
19671     if (defundef == "undef") {
19672       print "/*", prefix defundef, macro, "*/"
19673       next
19674     }
19675   }
19676 }
19677 { print }
19678 _ACAWK
19679 _ACEOF
19680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19681   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19682 fi # test -n "$CONFIG_HEADERS"
19683
19684
19685 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19686 shift
19687 for ac_tag
19688 do
19689   case $ac_tag in
19690   :[FHLC]) ac_mode=$ac_tag; continue;;
19691   esac
19692   case $ac_mode$ac_tag in
19693   :[FHL]*:*);;
19694   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19695   :[FH]-) ac_tag=-:-;;
19696   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19697   esac
19698   ac_save_IFS=$IFS
19699   IFS=:
19700   set x $ac_tag
19701   IFS=$ac_save_IFS
19702   shift
19703   ac_file=$1
19704   shift
19705
19706   case $ac_mode in
19707   :L) ac_source=$1;;
19708   :[FH])
19709     ac_file_inputs=
19710     for ac_f
19711     do
19712       case $ac_f in
19713       -) ac_f="$ac_tmp/stdin";;
19714       *) # Look for the file first in the build tree, then in the source tree
19715          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19716          # because $ac_f cannot contain `:'.
19717          test -f "$ac_f" ||
19718            case $ac_f in
19719            [\\/$]*) false;;
19720            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19721            esac ||
19722            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19723       esac
19724       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19725       as_fn_append ac_file_inputs " '$ac_f'"
19726     done
19727
19728     # Let's still pretend it is `configure' which instantiates (i.e., don't
19729     # use $as_me), people would be surprised to read:
19730     #    /* config.h.  Generated by config.status.  */
19731     configure_input='Generated from '`
19732           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19733         `' by configure.'
19734     if test x"$ac_file" != x-; then
19735       configure_input="$ac_file.  $configure_input"
19736       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19737 $as_echo "$as_me: creating $ac_file" >&6;}
19738     fi
19739     # Neutralize special characters interpreted by sed in replacement strings.
19740     case $configure_input in #(
19741     *\&* | *\|* | *\\* )
19742        ac_sed_conf_input=`$as_echo "$configure_input" |
19743        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19744     *) ac_sed_conf_input=$configure_input;;
19745     esac
19746
19747     case $ac_tag in
19748     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19749       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19750     esac
19751     ;;
19752   esac
19753
19754   ac_dir=`$as_dirname -- "$ac_file" ||
19755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19756          X"$ac_file" : 'X\(//\)[^/]' \| \
19757          X"$ac_file" : 'X\(//\)$' \| \
19758          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19759 $as_echo X"$ac_file" |
19760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19761             s//\1/
19762             q
19763           }
19764           /^X\(\/\/\)[^/].*/{
19765             s//\1/
19766             q
19767           }
19768           /^X\(\/\/\)$/{
19769             s//\1/
19770             q
19771           }
19772           /^X\(\/\).*/{
19773             s//\1/
19774             q
19775           }
19776           s/.*/./; q'`
19777   as_dir="$ac_dir"; as_fn_mkdir_p
19778   ac_builddir=.
19779
19780 case "$ac_dir" in
19781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19782 *)
19783   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19784   # A ".." for each directory in $ac_dir_suffix.
19785   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19786   case $ac_top_builddir_sub in
19787   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19788   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19789   esac ;;
19790 esac
19791 ac_abs_top_builddir=$ac_pwd
19792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19793 # for backward compatibility:
19794 ac_top_builddir=$ac_top_build_prefix
19795
19796 case $srcdir in
19797   .)  # We are building in place.
19798     ac_srcdir=.
19799     ac_top_srcdir=$ac_top_builddir_sub
19800     ac_abs_top_srcdir=$ac_pwd ;;
19801   [\\/]* | ?:[\\/]* )  # Absolute name.
19802     ac_srcdir=$srcdir$ac_dir_suffix;
19803     ac_top_srcdir=$srcdir
19804     ac_abs_top_srcdir=$srcdir ;;
19805   *) # Relative name.
19806     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19807     ac_top_srcdir=$ac_top_build_prefix$srcdir
19808     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19809 esac
19810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19811
19812
19813   case $ac_mode in
19814   :F)
19815   #
19816   # CONFIG_FILE
19817   #
19818
19819   case $INSTALL in
19820   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19821   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19822   esac
19823   ac_MKDIR_P=$MKDIR_P
19824   case $MKDIR_P in
19825   [\\/$]* | ?:[\\/]* ) ;;
19826   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19827   esac
19828 _ACEOF
19829
19830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19831 # If the template does not know about datarootdir, expand it.
19832 # FIXME: This hack should be removed a few years after 2.60.
19833 ac_datarootdir_hack=; ac_datarootdir_seen=
19834 ac_sed_dataroot='
19835 /datarootdir/ {
19836   p
19837   q
19838 }
19839 /@datadir@/p
19840 /@docdir@/p
19841 /@infodir@/p
19842 /@localedir@/p
19843 /@mandir@/p'
19844 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19845 *datarootdir*) ac_datarootdir_seen=yes;;
19846 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19847   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19848 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19849 _ACEOF
19850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19851   ac_datarootdir_hack='
19852   s&@datadir@&$datadir&g
19853   s&@docdir@&$docdir&g
19854   s&@infodir@&$infodir&g
19855   s&@localedir@&$localedir&g
19856   s&@mandir@&$mandir&g
19857   s&\\\${datarootdir}&$datarootdir&g' ;;
19858 esac
19859 _ACEOF
19860
19861 # Neutralize VPATH when `$srcdir' = `.'.
19862 # Shell code in configure.ac might set extrasub.
19863 # FIXME: do we really want to maintain this feature?
19864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19865 ac_sed_extra="$ac_vpsub
19866 $extrasub
19867 _ACEOF
19868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19869 :t
19870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19871 s|@configure_input@|$ac_sed_conf_input|;t t
19872 s&@top_builddir@&$ac_top_builddir_sub&;t t
19873 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19874 s&@srcdir@&$ac_srcdir&;t t
19875 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19876 s&@top_srcdir@&$ac_top_srcdir&;t t
19877 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19878 s&@builddir@&$ac_builddir&;t t
19879 s&@abs_builddir@&$ac_abs_builddir&;t t
19880 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19881 s&@INSTALL@&$ac_INSTALL&;t t
19882 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19883 $ac_datarootdir_hack
19884 "
19885 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19886   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19887
19888 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19889   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19890   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19891       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19893 which seems to be undefined.  Please make sure it is defined" >&5
19894 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19895 which seems to be undefined.  Please make sure it is defined" >&2;}
19896
19897   rm -f "$ac_tmp/stdin"
19898   case $ac_file in
19899   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19900   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19901   esac \
19902   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19903  ;;
19904   :H)
19905   #
19906   # CONFIG_HEADER
19907   #
19908   if test x"$ac_file" != x-; then
19909     {
19910       $as_echo "/* $configure_input  */" \
19911       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19912     } >"$ac_tmp/config.h" \
19913       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19914     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19915       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19916 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19917     else
19918       rm -f "$ac_file"
19919       mv "$ac_tmp/config.h" "$ac_file" \
19920         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19921     fi
19922   else
19923     $as_echo "/* $configure_input  */" \
19924       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19925       || as_fn_error $? "could not create -" "$LINENO" 5
19926   fi
19927 # Compute "$ac_file"'s index in $config_headers.
19928 _am_arg="$ac_file"
19929 _am_stamp_count=1
19930 for _am_header in $config_headers :; do
19931   case $_am_header in
19932     $_am_arg | $_am_arg:* )
19933       break ;;
19934     * )
19935       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19936   esac
19937 done
19938 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19939 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19940          X"$_am_arg" : 'X\(//\)[^/]' \| \
19941          X"$_am_arg" : 'X\(//\)$' \| \
19942          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19943 $as_echo X"$_am_arg" |
19944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19945             s//\1/
19946             q
19947           }
19948           /^X\(\/\/\)[^/].*/{
19949             s//\1/
19950             q
19951           }
19952           /^X\(\/\/\)$/{
19953             s//\1/
19954             q
19955           }
19956           /^X\(\/\).*/{
19957             s//\1/
19958             q
19959           }
19960           s/.*/./; q'`/stamp-h$_am_stamp_count
19961  ;;
19962
19963   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19964 $as_echo "$as_me: executing $ac_file commands" >&6;}
19965  ;;
19966   esac
19967
19968
19969   case $ac_file$ac_mode in
19970     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19971   # Older Autoconf quotes --file arguments for eval, but not when files
19972   # are listed without --file.  Let's play safe and only enable the eval
19973   # if we detect the quoting.
19974   case $CONFIG_FILES in
19975   *\'*) eval set x "$CONFIG_FILES" ;;
19976   *)   set x $CONFIG_FILES ;;
19977   esac
19978   shift
19979   for mf
19980   do
19981     # Strip MF so we end up with the name of the file.
19982     mf=`echo "$mf" | sed -e 's/:.*$//'`
19983     # Check whether this is an Automake generated Makefile or not.
19984     # We used to match only the files named 'Makefile.in', but
19985     # some people rename them; so instead we look at the file content.
19986     # Grep'ing the first line is not enough: some people post-process
19987     # each Makefile.in and add a new line on top of each file to say so.
19988     # Grep'ing the whole file is not good either: AIX grep has a line
19989     # limit of 2048, but all sed's we know have understand at least 4000.
19990     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19991       dirpart=`$as_dirname -- "$mf" ||
19992 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19993          X"$mf" : 'X\(//\)[^/]' \| \
19994          X"$mf" : 'X\(//\)$' \| \
19995          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19996 $as_echo X"$mf" |
19997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19998             s//\1/
19999             q
20000           }
20001           /^X\(\/\/\)[^/].*/{
20002             s//\1/
20003             q
20004           }
20005           /^X\(\/\/\)$/{
20006             s//\1/
20007             q
20008           }
20009           /^X\(\/\).*/{
20010             s//\1/
20011             q
20012           }
20013           s/.*/./; q'`
20014     else
20015       continue
20016     fi
20017     # Extract the definition of DEPDIR, am__include, and am__quote
20018     # from the Makefile without running 'make'.
20019     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20020     test -z "$DEPDIR" && continue
20021     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20022     test -z "$am__include" && continue
20023     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20024     # Find all dependency output files, they are included files with
20025     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20026     # simplest approach to changing $(DEPDIR) to its actual value in the
20027     # expansion.
20028     for file in `sed -n "
20029       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20030          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20031       # Make sure the directory exists.
20032       test -f "$dirpart/$file" && continue
20033       fdir=`$as_dirname -- "$file" ||
20034 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20035          X"$file" : 'X\(//\)[^/]' \| \
20036          X"$file" : 'X\(//\)$' \| \
20037          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20038 $as_echo X"$file" |
20039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20040             s//\1/
20041             q
20042           }
20043           /^X\(\/\/\)[^/].*/{
20044             s//\1/
20045             q
20046           }
20047           /^X\(\/\/\)$/{
20048             s//\1/
20049             q
20050           }
20051           /^X\(\/\).*/{
20052             s//\1/
20053             q
20054           }
20055           s/.*/./; q'`
20056       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20057       # echo "creating $dirpart/$file"
20058       echo '# dummy' > "$dirpart/$file"
20059     done
20060   done
20061 }
20062  ;;
20063     "libtool":C)
20064
20065     # See if we are running on zsh, and set the options which allow our
20066     # commands through without removal of \ escapes.
20067     if test -n "${ZSH_VERSION+set}" ; then
20068       setopt NO_GLOB_SUBST
20069     fi
20070
20071     cfgfile="${ofile}T"
20072     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20073     $RM "$cfgfile"
20074
20075     cat <<_LT_EOF >> "$cfgfile"
20076 #! $SHELL
20077
20078 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20079 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20082 #
20083 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20084 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20085 #                 Foundation, Inc.
20086 #   Written by Gordon Matzigkeit, 1996
20087 #
20088 #   This file is part of GNU Libtool.
20089 #
20090 # GNU Libtool is free software; you can redistribute it and/or
20091 # modify it under the terms of the GNU General Public License as
20092 # published by the Free Software Foundation; either version 2 of
20093 # the License, or (at your option) any later version.
20094 #
20095 # As a special exception to the GNU General Public License,
20096 # if you distribute this file as part of a program or library that
20097 # is built using GNU Libtool, you may include this file under the
20098 # same distribution terms that you use for the rest of that program.
20099 #
20100 # GNU Libtool is distributed in the hope that it will be useful,
20101 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20103 # GNU General Public License for more details.
20104 #
20105 # You should have received a copy of the GNU General Public License
20106 # along with GNU Libtool; see the file COPYING.  If not, a copy
20107 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20108 # obtained by writing to the Free Software Foundation, Inc.,
20109 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20110
20111
20112 # The names of the tagged configurations supported by this script.
20113 available_tags=""
20114
20115 # ### BEGIN LIBTOOL CONFIG
20116
20117 # Whether or not to build static libraries.
20118 build_old_libs=$enable_static
20119
20120 # Which release of libtool.m4 was used?
20121 macro_version=$macro_version
20122 macro_revision=$macro_revision
20123
20124 # Whether or not to build shared libraries.
20125 build_libtool_libs=$enable_shared
20126
20127 # What type of objects to build.
20128 pic_mode=$pic_mode
20129
20130 # Whether or not to optimize for fast installation.
20131 fast_install=$enable_fast_install
20132
20133 # Shell to use when invoking shell scripts.
20134 SHELL=$lt_SHELL
20135
20136 # An echo program that protects backslashes.
20137 ECHO=$lt_ECHO
20138
20139 # The PATH separator for the build system.
20140 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20141
20142 # The host system.
20143 host_alias=$host_alias
20144 host=$host
20145 host_os=$host_os
20146
20147 # The build system.
20148 build_alias=$build_alias
20149 build=$build
20150 build_os=$build_os
20151
20152 # A sed program that does not truncate output.
20153 SED=$lt_SED
20154
20155 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20156 Xsed="\$SED -e 1s/^X//"
20157
20158 # A grep program that handles long lines.
20159 GREP=$lt_GREP
20160
20161 # An ERE matcher.
20162 EGREP=$lt_EGREP
20163
20164 # A literal string matcher.
20165 FGREP=$lt_FGREP
20166
20167 # A BSD- or MS-compatible name lister.
20168 NM=$lt_NM
20169
20170 # Whether we need soft or hard links.
20171 LN_S=$lt_LN_S
20172
20173 # What is the maximum length of a command?
20174 max_cmd_len=$max_cmd_len
20175
20176 # Object file suffix (normally "o").
20177 objext=$ac_objext
20178
20179 # Executable file suffix (normally "").
20180 exeext=$exeext
20181
20182 # whether the shell understands "unset".
20183 lt_unset=$lt_unset
20184
20185 # turn spaces into newlines.
20186 SP2NL=$lt_lt_SP2NL
20187
20188 # turn newlines into spaces.
20189 NL2SP=$lt_lt_NL2SP
20190
20191 # convert \$build file names to \$host format.
20192 to_host_file_cmd=$lt_cv_to_host_file_cmd
20193
20194 # convert \$build files to toolchain format.
20195 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20196
20197 # An object symbol dumper.
20198 OBJDUMP=$lt_OBJDUMP
20199
20200 # Method to check whether dependent libraries are shared objects.
20201 deplibs_check_method=$lt_deplibs_check_method
20202
20203 # Command to use when deplibs_check_method = "file_magic".
20204 file_magic_cmd=$lt_file_magic_cmd
20205
20206 # How to find potential files when deplibs_check_method = "file_magic".
20207 file_magic_glob=$lt_file_magic_glob
20208
20209 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20210 want_nocaseglob=$lt_want_nocaseglob
20211
20212 # DLL creation program.
20213 DLLTOOL=$lt_DLLTOOL
20214
20215 # Command to associate shared and link libraries.
20216 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20217
20218 # The archiver.
20219 AR=$lt_AR
20220
20221 # Flags to create an archive.
20222 AR_FLAGS=$lt_AR_FLAGS
20223
20224 # How to feed a file listing to the archiver.
20225 archiver_list_spec=$lt_archiver_list_spec
20226
20227 # A symbol stripping program.
20228 STRIP=$lt_STRIP
20229
20230 # Commands used to install an old-style archive.
20231 RANLIB=$lt_RANLIB
20232 old_postinstall_cmds=$lt_old_postinstall_cmds
20233 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20234
20235 # Whether to use a lock for old archive extraction.
20236 lock_old_archive_extraction=$lock_old_archive_extraction
20237
20238 # A C compiler.
20239 LTCC=$lt_CC
20240
20241 # LTCC compiler flags.
20242 LTCFLAGS=$lt_CFLAGS
20243
20244 # Take the output of nm and produce a listing of raw symbols and C names.
20245 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20246
20247 # Transform the output of nm in a proper C declaration.
20248 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20249
20250 # Transform the output of nm in a C name address pair.
20251 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20252
20253 # Transform the output of nm in a C name address pair when lib prefix is needed.
20254 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20255
20256 # Specify filename containing input files for \$NM.
20257 nm_file_list_spec=$lt_nm_file_list_spec
20258
20259 # The root where to search for dependent libraries,and in which our libraries should be installed.
20260 lt_sysroot=$lt_sysroot
20261
20262 # The name of the directory that contains temporary libtool files.
20263 objdir=$objdir
20264
20265 # Used to examine libraries when file_magic_cmd begins with "file".
20266 MAGIC_CMD=$MAGIC_CMD
20267
20268 # Must we lock files when doing compilation?
20269 need_locks=$lt_need_locks
20270
20271 # Manifest tool.
20272 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20273
20274 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20275 DSYMUTIL=$lt_DSYMUTIL
20276
20277 # Tool to change global to local symbols on Mac OS X.
20278 NMEDIT=$lt_NMEDIT
20279
20280 # Tool to manipulate fat objects and archives on Mac OS X.
20281 LIPO=$lt_LIPO
20282
20283 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20284 OTOOL=$lt_OTOOL
20285
20286 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20287 OTOOL64=$lt_OTOOL64
20288
20289 # Old archive suffix (normally "a").
20290 libext=$libext
20291
20292 # Shared library suffix (normally ".so").
20293 shrext_cmds=$lt_shrext_cmds
20294
20295 # The commands to extract the exported symbol list from a shared archive.
20296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20297
20298 # Variables whose values should be saved in libtool wrapper scripts and
20299 # restored at link time.
20300 variables_saved_for_relink=$lt_variables_saved_for_relink
20301
20302 # Do we need the "lib" prefix for modules?
20303 need_lib_prefix=$need_lib_prefix
20304
20305 # Do we need a version for libraries?
20306 need_version=$need_version
20307
20308 # Library versioning type.
20309 version_type=$version_type
20310
20311 # Shared library runtime path variable.
20312 runpath_var=$runpath_var
20313
20314 # Shared library path variable.
20315 shlibpath_var=$shlibpath_var
20316
20317 # Is shlibpath searched before the hard-coded library search path?
20318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20319
20320 # Format of library name prefix.
20321 libname_spec=$lt_libname_spec
20322
20323 # List of archive names.  First name is the real one, the rest are links.
20324 # The last name is the one that the linker finds with -lNAME
20325 library_names_spec=$lt_library_names_spec
20326
20327 # The coded name of the library, if different from the real name.
20328 soname_spec=$lt_soname_spec
20329
20330 # Permission mode override for installation of shared libraries.
20331 install_override_mode=$lt_install_override_mode
20332
20333 # Command to use after installation of a shared archive.
20334 postinstall_cmds=$lt_postinstall_cmds
20335
20336 # Command to use after uninstallation of a shared archive.
20337 postuninstall_cmds=$lt_postuninstall_cmds
20338
20339 # Commands used to finish a libtool library installation in a directory.
20340 finish_cmds=$lt_finish_cmds
20341
20342 # As "finish_cmds", except a single script fragment to be evaled but
20343 # not shown.
20344 finish_eval=$lt_finish_eval
20345
20346 # Whether we should hardcode library paths into libraries.
20347 hardcode_into_libs=$hardcode_into_libs
20348
20349 # Compile-time system search path for libraries.
20350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20351
20352 # Run-time system search path for libraries.
20353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20354
20355 # Whether dlopen is supported.
20356 dlopen_support=$enable_dlopen
20357
20358 # Whether dlopen of programs is supported.
20359 dlopen_self=$enable_dlopen_self
20360
20361 # Whether dlopen of statically linked programs is supported.
20362 dlopen_self_static=$enable_dlopen_self_static
20363
20364 # Commands to strip libraries.
20365 old_striplib=$lt_old_striplib
20366 striplib=$lt_striplib
20367
20368
20369 # The linker used to build libraries.
20370 LD=$lt_LD
20371
20372 # How to create reloadable object files.
20373 reload_flag=$lt_reload_flag
20374 reload_cmds=$lt_reload_cmds
20375
20376 # Commands used to build an old-style archive.
20377 old_archive_cmds=$lt_old_archive_cmds
20378
20379 # A language specific compiler.
20380 CC=$lt_compiler
20381
20382 # Is the compiler the GNU compiler?
20383 with_gcc=$GCC
20384
20385 # Compiler flag to turn off builtin functions.
20386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20387
20388 # Additional compiler flags for building library objects.
20389 pic_flag=$lt_lt_prog_compiler_pic
20390
20391 # How to pass a linker flag through the compiler.
20392 wl=$lt_lt_prog_compiler_wl
20393
20394 # Compiler flag to prevent dynamic linking.
20395 link_static_flag=$lt_lt_prog_compiler_static
20396
20397 # Does compiler simultaneously support -c and -o options?
20398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20399
20400 # Whether or not to add -lc for building shared libraries.
20401 build_libtool_need_lc=$archive_cmds_need_lc
20402
20403 # Whether or not to disallow shared libs when runtime libs are static.
20404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20405
20406 # Compiler flag to allow reflexive dlopens.
20407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20408
20409 # Compiler flag to generate shared objects directly from archives.
20410 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20411
20412 # Whether the compiler copes with passing no objects directly.
20413 compiler_needs_object=$lt_compiler_needs_object
20414
20415 # Create an old-style archive from a shared archive.
20416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20417
20418 # Create a temporary old-style archive to link instead of a shared archive.
20419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20420
20421 # Commands used to build a shared archive.
20422 archive_cmds=$lt_archive_cmds
20423 archive_expsym_cmds=$lt_archive_expsym_cmds
20424
20425 # Commands used to build a loadable module if different from building
20426 # a shared archive.
20427 module_cmds=$lt_module_cmds
20428 module_expsym_cmds=$lt_module_expsym_cmds
20429
20430 # Whether we are building with GNU ld or not.
20431 with_gnu_ld=$lt_with_gnu_ld
20432
20433 # Flag that allows shared libraries with undefined symbols to be built.
20434 allow_undefined_flag=$lt_allow_undefined_flag
20435
20436 # Flag that enforces no undefined symbols.
20437 no_undefined_flag=$lt_no_undefined_flag
20438
20439 # Flag to hardcode \$libdir into a binary during linking.
20440 # This must work even if \$libdir does not exist
20441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20442
20443 # Whether we need a single "-rpath" flag with a separated argument.
20444 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20445
20446 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20447 # DIR into the resulting binary.
20448 hardcode_direct=$hardcode_direct
20449
20450 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20451 # DIR into the resulting binary and the resulting library dependency is
20452 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20453 # library is relocated.
20454 hardcode_direct_absolute=$hardcode_direct_absolute
20455
20456 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20457 # into the resulting binary.
20458 hardcode_minus_L=$hardcode_minus_L
20459
20460 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20461 # into the resulting binary.
20462 hardcode_shlibpath_var=$hardcode_shlibpath_var
20463
20464 # Set to "yes" if building a shared library automatically hardcodes DIR
20465 # into the library and all subsequent libraries and executables linked
20466 # against it.
20467 hardcode_automatic=$hardcode_automatic
20468
20469 # Set to yes if linker adds runtime paths of dependent libraries
20470 # to runtime path list.
20471 inherit_rpath=$inherit_rpath
20472
20473 # Whether libtool must link a program against all its dependency libraries.
20474 link_all_deplibs=$link_all_deplibs
20475
20476 # Set to "yes" if exported symbols are required.
20477 always_export_symbols=$always_export_symbols
20478
20479 # The commands to list exported symbols.
20480 export_symbols_cmds=$lt_export_symbols_cmds
20481
20482 # Symbols that should not be listed in the preloaded symbols.
20483 exclude_expsyms=$lt_exclude_expsyms
20484
20485 # Symbols that must always be exported.
20486 include_expsyms=$lt_include_expsyms
20487
20488 # Commands necessary for linking programs (against libraries) with templates.
20489 prelink_cmds=$lt_prelink_cmds
20490
20491 # Commands necessary for finishing linking programs.
20492 postlink_cmds=$lt_postlink_cmds
20493
20494 # Specify filename containing input files.
20495 file_list_spec=$lt_file_list_spec
20496
20497 # How to hardcode a shared library path into an executable.
20498 hardcode_action=$hardcode_action
20499
20500 # ### END LIBTOOL CONFIG
20501
20502 _LT_EOF
20503
20504   case $host_os in
20505   aix3*)
20506     cat <<\_LT_EOF >> "$cfgfile"
20507 # AIX sometimes has problems with the GCC collect2 program.  For some
20508 # reason, if we set the COLLECT_NAMES environment variable, the problems
20509 # vanish in a puff of smoke.
20510 if test "X${COLLECT_NAMES+set}" != Xset; then
20511   COLLECT_NAMES=
20512   export COLLECT_NAMES
20513 fi
20514 _LT_EOF
20515     ;;
20516   esac
20517
20518
20519 ltmain="$ac_aux_dir/ltmain.sh"
20520
20521
20522   # We use sed instead of cat because bash on DJGPP gets confused if
20523   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20524   # text mode, it properly converts lines to CR/LF.  This bash problem
20525   # is reportedly fixed, but why not run on old versions too?
20526   sed '$q' "$ltmain" >> "$cfgfile" \
20527      || (rm -f "$cfgfile"; exit 1)
20528
20529   if test x"$xsi_shell" = xyes; then
20530   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20531 func_dirname ()\
20532 {\
20533 \    case ${1} in\
20534 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20535 \      *  ) func_dirname_result="${3}" ;;\
20536 \    esac\
20537 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20538   && mv -f "$cfgfile.tmp" "$cfgfile" \
20539     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20540 test 0 -eq $? || _lt_function_replace_fail=:
20541
20542
20543   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20544 func_basename ()\
20545 {\
20546 \    func_basename_result="${1##*/}"\
20547 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20548   && mv -f "$cfgfile.tmp" "$cfgfile" \
20549     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20550 test 0 -eq $? || _lt_function_replace_fail=:
20551
20552
20553   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20554 func_dirname_and_basename ()\
20555 {\
20556 \    case ${1} in\
20557 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20558 \      *  ) func_dirname_result="${3}" ;;\
20559 \    esac\
20560 \    func_basename_result="${1##*/}"\
20561 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20562   && mv -f "$cfgfile.tmp" "$cfgfile" \
20563     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20564 test 0 -eq $? || _lt_function_replace_fail=:
20565
20566
20567   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20568 func_stripname ()\
20569 {\
20570 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20571 \    # positional parameters, so assign one to ordinary parameter first.\
20572 \    func_stripname_result=${3}\
20573 \    func_stripname_result=${func_stripname_result#"${1}"}\
20574 \    func_stripname_result=${func_stripname_result%"${2}"}\
20575 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20576   && mv -f "$cfgfile.tmp" "$cfgfile" \
20577     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20578 test 0 -eq $? || _lt_function_replace_fail=:
20579
20580
20581   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20582 func_split_long_opt ()\
20583 {\
20584 \    func_split_long_opt_name=${1%%=*}\
20585 \    func_split_long_opt_arg=${1#*=}\
20586 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20587   && mv -f "$cfgfile.tmp" "$cfgfile" \
20588     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20589 test 0 -eq $? || _lt_function_replace_fail=:
20590
20591
20592   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20593 func_split_short_opt ()\
20594 {\
20595 \    func_split_short_opt_arg=${1#??}\
20596 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20597 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20598   && mv -f "$cfgfile.tmp" "$cfgfile" \
20599     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20600 test 0 -eq $? || _lt_function_replace_fail=:
20601
20602
20603   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20604 func_lo2o ()\
20605 {\
20606 \    case ${1} in\
20607 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20608 \      *)    func_lo2o_result=${1} ;;\
20609 \    esac\
20610 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20611   && mv -f "$cfgfile.tmp" "$cfgfile" \
20612     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20613 test 0 -eq $? || _lt_function_replace_fail=:
20614
20615
20616   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20617 func_xform ()\
20618 {\
20619     func_xform_result=${1%.*}.lo\
20620 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20621   && mv -f "$cfgfile.tmp" "$cfgfile" \
20622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20623 test 0 -eq $? || _lt_function_replace_fail=:
20624
20625
20626   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20627 func_arith ()\
20628 {\
20629     func_arith_result=$(( $* ))\
20630 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20631   && mv -f "$cfgfile.tmp" "$cfgfile" \
20632     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20633 test 0 -eq $? || _lt_function_replace_fail=:
20634
20635
20636   sed -e '/^func_len ()$/,/^} # func_len /c\
20637 func_len ()\
20638 {\
20639     func_len_result=${#1}\
20640 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20641   && mv -f "$cfgfile.tmp" "$cfgfile" \
20642     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20643 test 0 -eq $? || _lt_function_replace_fail=:
20644
20645 fi
20646
20647 if test x"$lt_shell_append" = xyes; then
20648   sed -e '/^func_append ()$/,/^} # func_append /c\
20649 func_append ()\
20650 {\
20651     eval "${1}+=\\${2}"\
20652 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20653   && mv -f "$cfgfile.tmp" "$cfgfile" \
20654     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20655 test 0 -eq $? || _lt_function_replace_fail=:
20656
20657
20658   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20659 func_append_quoted ()\
20660 {\
20661 \    func_quote_for_eval "${2}"\
20662 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20663 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20664   && mv -f "$cfgfile.tmp" "$cfgfile" \
20665     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20666 test 0 -eq $? || _lt_function_replace_fail=:
20667
20668
20669   # Save a `func_append' function call where possible by direct use of '+='
20670   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20671     && mv -f "$cfgfile.tmp" "$cfgfile" \
20672       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20673   test 0 -eq $? || _lt_function_replace_fail=:
20674 else
20675   # Save a `func_append' function call even when '+=' is not available
20676   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20677     && mv -f "$cfgfile.tmp" "$cfgfile" \
20678       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20679   test 0 -eq $? || _lt_function_replace_fail=:
20680 fi
20681
20682 if test x"$_lt_function_replace_fail" = x":"; then
20683   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20684 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20685 fi
20686
20687
20688    mv -f "$cfgfile" "$ofile" ||
20689     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20690   chmod +x "$ofile"
20691
20692  ;;
20693     "po-directories":C)
20694     for ac_file in $CONFIG_FILES; do
20695       # Support "outfile[:infile[:infile...]]"
20696       case "$ac_file" in
20697         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20698       esac
20699       # PO directories have a Makefile.in generated from Makefile.in.in.
20700       case "$ac_file" in */Makefile.in)
20701         # Adjust a relative srcdir.
20702         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20703         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20704         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20705         # In autoconf-2.13 it is called $ac_given_srcdir.
20706         # In autoconf-2.50 it is called $srcdir.
20707         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20708         case "$ac_given_srcdir" in
20709           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20710           /*) top_srcdir="$ac_given_srcdir" ;;
20711           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
20712         esac
20713         # Treat a directory as a PO directory if and only if it has a
20714         # POTFILES.in file. This allows packages to have multiple PO
20715         # directories under different names or in different locations.
20716         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20717           rm -f "$ac_dir/POTFILES"
20718           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20719           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20720           POMAKEFILEDEPS="POTFILES.in"
20721           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20722           # on $ac_dir but don't depend on user-specified configuration
20723           # parameters.
20724           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20725             # The LINGUAS file contains the set of available languages.
20726             if test -n "$OBSOLETE_ALL_LINGUAS"; then
20727               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20728             fi
20729             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20730             # Hide the ALL_LINGUAS assigment from automake < 1.5.
20731             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20732             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20733           else
20734             # The set of available languages was given in configure.in.
20735             # Hide the ALL_LINGUAS assigment from automake < 1.5.
20736             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20737           fi
20738           # Compute POFILES
20739           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20740           # Compute UPDATEPOFILES
20741           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20742           # Compute DUMMYPOFILES
20743           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20744           # Compute GMOFILES
20745           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20746           case "$ac_given_srcdir" in
20747             .) srcdirpre= ;;
20748             *) srcdirpre='$(srcdir)/' ;;
20749           esac
20750           POFILES=
20751           UPDATEPOFILES=
20752           DUMMYPOFILES=
20753           GMOFILES=
20754           for lang in $ALL_LINGUAS; do
20755             POFILES="$POFILES $srcdirpre$lang.po"
20756             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20757             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20758             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20759           done
20760           # CATALOGS depends on both $ac_dir and the user's LINGUAS
20761           # environment variable.
20762           INST_LINGUAS=
20763           if test -n "$ALL_LINGUAS"; then
20764             for presentlang in $ALL_LINGUAS; do
20765               useit=no
20766               if test "%UNSET%" != "$LINGUAS"; then
20767                 desiredlanguages="$LINGUAS"
20768               else
20769                 desiredlanguages="$ALL_LINGUAS"
20770               fi
20771               for desiredlang in $desiredlanguages; do
20772                 # Use the presentlang catalog if desiredlang is
20773                 #   a. equal to presentlang, or
20774                 #   b. a variant of presentlang (because in this case,
20775                 #      presentlang can be used as a fallback for messages
20776                 #      which are not translated in the desiredlang catalog).
20777                 case "$desiredlang" in
20778                   "$presentlang"*) useit=yes;;
20779                 esac
20780               done
20781               if test $useit = yes; then
20782                 INST_LINGUAS="$INST_LINGUAS $presentlang"
20783               fi
20784             done
20785           fi
20786           CATALOGS=
20787           if test -n "$INST_LINGUAS"; then
20788             for lang in $INST_LINGUAS; do
20789               CATALOGS="$CATALOGS $lang.gmo"
20790             done
20791           fi
20792           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20793           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"
20794           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20795             if test -f "$f"; then
20796               case "$f" in
20797                 *.orig | *.bak | *~) ;;
20798                 *) cat "$f" >> "$ac_dir/Makefile" ;;
20799               esac
20800             fi
20801           done
20802         fi
20803         ;;
20804       esac
20805     done ;;
20806
20807   esac
20808 done # for ac_tag
20809
20810
20811 as_fn_exit 0
20812 _ACEOF
20813 ac_clean_files=$ac_clean_files_save
20814
20815 test $ac_write_fail = 0 ||
20816   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20817
20818
20819 # configure is writing to config.log, and then calls config.status.
20820 # config.status does its own redirection, appending to config.log.
20821 # Unfortunately, on DOS this fails, as config.log is still kept open
20822 # by configure, so config.status won't be able to write to it; its
20823 # output is simply discarded.  So we exec the FD to /dev/null,
20824 # effectively closing config.log, so it can be properly (re)opened and
20825 # appended to by config.status.  When coming back to configure, we
20826 # need to make the FD available again.
20827 if test "$no_create" != yes; then
20828   ac_cs_success=:
20829   ac_config_status_args=
20830   test "$silent" = yes &&
20831     ac_config_status_args="$ac_config_status_args --quiet"
20832   exec 5>/dev/null
20833   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20834   exec 5>>config.log
20835   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20836   # would make configure fail if this is the last instruction.
20837   $ac_cs_success || as_fn_exit 1
20838 fi
20839 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20840   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20841 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20842 fi
20843