Bump to ecryptfs-utils 111
[platform/upstream/ecryptfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ecryptfs-utils 111.
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='ecryptfs-utils'
589 PACKAGE_TARNAME='ecryptfs-utils'
590 PACKAGE_VERSION='111'
591 PACKAGE_STRING='ecryptfs-utils 111'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/libecryptfs"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 ENABLE_TESTS_FALSE
637 ENABLE_TESTS_TRUE
638 BUILD_DOCS_GEN_FALSE
639 BUILD_DOCS_GEN_TRUE
640 BUILD_DOCS_FALSE
641 BUILD_DOCS_TRUE
642 BUILD_GUI_FALSE
643 BUILD_GUI_TRUE
644 BUILD_NSS_FALSE
645 BUILD_NSS_TRUE
646 BUILD_PYWRAP_FALSE
647 BUILD_PYWRAP_TRUE
648 BUILD_PAM_FALSE
649 BUILD_PAM_TRUE
650 BUILD_GPG_FALSE
651 BUILD_GPG_TRUE
652 BUILD_TSPI_FALSE
653 BUILD_TSPI_TRUE
654 BUILD_PKCS11_HELPER_FALSE
655 BUILD_PKCS11_HELPER_TRUE
656 BUILD_OPENSSL_FALSE
657 BUILD_OPENSSL_TRUE
658 CRYPTO_LIBS
659 CRYPTO_CFLAGS
660 GPGME_LIBS
661 GPGME_CFLAGS
662 ecryptfskeymoddir
663 rootsbindir
664 pkgconfigdir
665 pamlibdir
666 pamdir
667 LOCALEDIR
668 ALL_LINGUAS
669 INTLTOOL_PERL
670 MSGMERGE
671 INTLTOOL_POLICY_RULE
672 INTLTOOL_SERVICE_RULE
673 INTLTOOL_THEME_RULE
674 INTLTOOL_SCHEMAS_RULE
675 INTLTOOL_CAVES_RULE
676 INTLTOOL_XML_NOMERGE_RULE
677 INTLTOOL_XML_RULE
678 INTLTOOL_KBD_RULE
679 INTLTOOL_XAM_RULE
680 INTLTOOL_UI_RULE
681 INTLTOOL_SOUNDLIST_RULE
682 INTLTOOL_SHEET_RULE
683 INTLTOOL_SERVER_RULE
684 INTLTOOL_PONG_RULE
685 INTLTOOL_OAF_RULE
686 INTLTOOL_PROP_RULE
687 INTLTOOL_KEYS_RULE
688 INTLTOOL_DIRECTORY_RULE
689 INTLTOOL_DESKTOP_RULE
690 intltool__v_merge_options_0
691 intltool__v_merge_options_
692 INTLTOOL_V_MERGE_OPTIONS
693 INTLTOOL__v_MERGE_0
694 INTLTOOL__v_MERGE_
695 INTLTOOL_V_MERGE
696 INTLTOOL_EXTRACT
697 INTLTOOL_MERGE
698 INTLTOOL_UPDATE
699 MKINSTALLDIRS
700 POSUB
701 POFILES
702 PO_IN_DATADIR_FALSE
703 PO_IN_DATADIR_TRUE
704 INTLLIBS
705 INSTOBJEXT
706 GMOFILES
707 DATADIRNAME
708 CATOBJEXT
709 CATALOGS
710 XGETTEXT
711 GMSGFMT
712 MSGFMT_OPTS
713 MSGFMT
714 USE_NLS
715 GETTEXT_PACKAGE
716 GTK_LIBS
717 GTK_CFLAGS
718 PAM_LIBS
719 PAM_CFLAGS
720 TSPI_LIBS
721 TSPI_CFLAGS
722 PKCS11_HELPER_LIBS
723 PKCS11_HELPER_CFLAGS
724 SWIG_PYTHON_CPPFLAGS
725 SWIG_PYTHON_OPT
726 PYTHON_EXTRA_LDFLAGS
727 PYTHON_EXTRA_LIBS
728 PYTHON_SITE_PKG
729 PYTHON_LDFLAGS
730 PYTHON_CPPFLAGS
731 SWIG_LIB
732 SWIG
733 pkgpyexecdir
734 pyexecdir
735 pkgpythondir
736 pythondir
737 PYTHON_PLATFORM
738 PYTHON_EXEC_PREFIX
739 PYTHON_PREFIX
740 PYTHON_VERSION
741 PYTHON
742 NSS_LIBS
743 NSS_CFLAGS
744 OPENSSL_LIBS
745 OPENSSL_CFLAGS
746 KEYUTILS_LIBS
747 KEYUTILS_CFLAGS
748 LATEX
749 LATEX2HTML
750 DVIPS
751 PS2PDF
752 TAR
753 POD2MAN
754 LT_SYS_LIBRARY_PATH
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 MANIFEST_TOOL
761 RANLIB
762 ac_ct_AR
763 AR
764 DLLTOOL
765 OBJDUMP
766 NM
767 ac_ct_DUMPBIN
768 DUMPBIN
769 LD
770 FGREP
771 SED
772 LIBTOOL
773 PKG_CONFIG_LIBDIR
774 PKG_CONFIG_PATH
775 PKG_CONFIG
776 LN_S
777 EGREP
778 GREP
779 CPP
780 am__fastdepCC_FALSE
781 am__fastdepCC_TRUE
782 CCDEPMODE
783 am__nodep
784 AMDEPBACKSLASH
785 AMDEP_FALSE
786 AMDEP_TRUE
787 am__quote
788 am__include
789 DEPDIR
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
796 CC
797 LIBECRYPTFS_LT_AGE
798 LIBECRYPTFS_LT_REVISION
799 LIBECRYPTFS_LT_CURRENT
800 AM_CPPFLAGS
801 AM_BACKSLASH
802 AM_DEFAULT_VERBOSITY
803 AM_DEFAULT_V
804 AM_V
805 am__untar
806 am__tar
807 AMTAR
808 am__leading_dot
809 SET_MAKE
810 AWK
811 mkdir_p
812 MKDIR_P
813 INSTALL_STRIP_PROGRAM
814 STRIP
815 install_sh
816 MAKEINFO
817 AUTOHEADER
818 AUTOMAKE
819 AUTOCONF
820 ACLOCAL
821 VERSION
822 PACKAGE
823 CYGPATH_W
824 am__isrc
825 INSTALL_DATA
826 INSTALL_SCRIPT
827 INSTALL_PROGRAM
828 target_os
829 target_vendor
830 target_cpu
831 target
832 host_os
833 host_vendor
834 host_cpu
835 host
836 build_os
837 build_vendor
838 build_cpu
839 build
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 runstatedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files=''
880 ac_user_opts='
881 enable_option_checking
882 enable_silent_rules
883 enable_static
884 enable_nss
885 enable_pywrap
886 enable_openssl
887 enable_pkcs11_helper
888 enable_tspi
889 enable_gpg
890 enable_pam
891 enable_gui
892 enable_docs
893 enable_docs_gen
894 enable_tests
895 enable_mudflap
896 with_gpgme_prefix
897 with_pamdir
898 with_ecryptfskeymoddir
899 enable_dependency_tracking
900 enable_shared
901 with_pic
902 enable_fast_install
903 with_aix_soname
904 with_gnu_ld
905 with_sysroot
906 enable_libtool_lock
907 enable_largefile
908 enable_nls
909 '
910       ac_precious_vars='build_alias
911 host_alias
912 target_alias
913 CC
914 CFLAGS
915 LDFLAGS
916 LIBS
917 CPPFLAGS
918 CPP
919 PKG_CONFIG
920 PKG_CONFIG_PATH
921 PKG_CONFIG_LIBDIR
922 LT_SYS_LIBRARY_PATH
923 KEYUTILS_CFLAGS
924 KEYUTILS_LIBS
925 OPENSSL_CFLAGS
926 OPENSSL_LIBS
927 NSS_CFLAGS
928 NSS_LIBS
929 PYTHON
930 PYTHON_VERSION
931 PKCS11_HELPER_CFLAGS
932 PKCS11_HELPER_LIBS
933 TSPI_CFLAGS
934 TSPI_LIBS
935 PAM_CFLAGS
936 PAM_LIBS
937 GTK_CFLAGS
938 GTK_LIBS'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 runstatedir='${localstatedir}/run'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *=)   ac_optarg= ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049       as_fn_error $? "invalid feature name: $ac_useropt"
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       as_fn_error $? "invalid feature name: $ac_useropt"
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -runstatedir | --runstatedir | --runstatedi | --runstated \
1231   | --runstate | --runstat | --runsta | --runst | --runs \
1232   | --run | --ru | --r)
1233     ac_prev=runstatedir ;;
1234   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1235   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1236   | --run=* | --ru=* | --r=*)
1237     runstatedir=$ac_optarg ;;
1238
1239   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240     ac_prev=sbindir ;;
1241   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242   | --sbi=* | --sb=*)
1243     sbindir=$ac_optarg ;;
1244
1245   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247   | --sharedst | --shareds | --shared | --share | --shar \
1248   | --sha | --sh)
1249     ac_prev=sharedstatedir ;;
1250   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253   | --sha=* | --sh=*)
1254     sharedstatedir=$ac_optarg ;;
1255
1256   -site | --site | --sit)
1257     ac_prev=site ;;
1258   -site=* | --site=* | --sit=*)
1259     site=$ac_optarg ;;
1260
1261   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262     ac_prev=srcdir ;;
1263   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264     srcdir=$ac_optarg ;;
1265
1266   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267   | --syscon | --sysco | --sysc | --sys | --sy)
1268     ac_prev=sysconfdir ;;
1269   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271     sysconfdir=$ac_optarg ;;
1272
1273   -target | --target | --targe | --targ | --tar | --ta | --t)
1274     ac_prev=target_alias ;;
1275   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276     target_alias=$ac_optarg ;;
1277
1278   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279     verbose=yes ;;
1280
1281   -version | --version | --versio | --versi | --vers | -V)
1282     ac_init_version=: ;;
1283
1284   -with-* | --with-*)
1285     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286     # Reject names that are not valid shell variable names.
1287     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288       as_fn_error $? "invalid package name: $ac_useropt"
1289     ac_useropt_orig=$ac_useropt
1290     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291     case $ac_user_opts in
1292       *"
1293 "with_$ac_useropt"
1294 "*) ;;
1295       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296          ac_unrecognized_sep=', ';;
1297     esac
1298     eval with_$ac_useropt=\$ac_optarg ;;
1299
1300   -without-* | --without-*)
1301     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304       as_fn_error $? "invalid package name: $ac_useropt"
1305     ac_useropt_orig=$ac_useropt
1306     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307     case $ac_user_opts in
1308       *"
1309 "with_$ac_useropt"
1310 "*) ;;
1311       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312          ac_unrecognized_sep=', ';;
1313     esac
1314     eval with_$ac_useropt=no ;;
1315
1316   --x)
1317     # Obsolete; use --with-x.
1318     with_x=yes ;;
1319
1320   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321   | --x-incl | --x-inc | --x-in | --x-i)
1322     ac_prev=x_includes ;;
1323   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325     x_includes=$ac_optarg ;;
1326
1327   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329     ac_prev=x_libraries ;;
1330   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332     x_libraries=$ac_optarg ;;
1333
1334   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information"
1336     ;;
1337
1338   *=*)
1339     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340     # Reject names that are not valid shell variable names.
1341     case $ac_envvar in #(
1342       '' | [0-9]* | *[!_$as_cr_alnum]* )
1343       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1344     esac
1345     eval $ac_envvar=\$ac_optarg
1346     export $ac_envvar ;;
1347
1348   *)
1349     # FIXME: should be removed in autoconf 3.0.
1350     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1354     ;;
1355
1356   esac
1357 done
1358
1359 if test -n "$ac_prev"; then
1360   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361   as_fn_error $? "missing argument to $ac_option"
1362 fi
1363
1364 if test -n "$ac_unrecognized_opts"; then
1365   case $enable_option_checking in
1366     no) ;;
1367     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1368     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369   esac
1370 fi
1371
1372 # Check all directory arguments for consistency.
1373 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374                 datadir sysconfdir sharedstatedir localstatedir includedir \
1375                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376                 libdir localedir mandir runstatedir
1377 do
1378   eval ac_val=\$$ac_var
1379   # Remove trailing slashes.
1380   case $ac_val in
1381     */ )
1382       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383       eval $ac_var=\$ac_val;;
1384   esac
1385   # Be sure to have absolute directory names.
1386   case $ac_val in
1387     [\\/$]* | ?:[\\/]* )  continue;;
1388     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389   esac
1390   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1391 done
1392
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1396 build=$build_alias
1397 host=$host_alias
1398 target=$target_alias
1399
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402   if test "x$build_alias" = x; then
1403     cross_compiling=maybe
1404   elif test "x$build_alias" != "x$host_alias"; then
1405     cross_compiling=yes
1406   fi
1407 fi
1408
1409 ac_tool_prefix=
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412 test "$silent" = yes && exec 6>/dev/null
1413
1414
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418   as_fn_error $? "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420   as_fn_error $? "pwd does not report name of working directory"
1421
1422
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425   ac_srcdir_defaulted=yes
1426   # Try the directory containing this script, then the parent directory.
1427   ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429          X"$as_myself" : 'X\(//\)[^/]' \| \
1430          X"$as_myself" : 'X\(//\)$' \| \
1431          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)[^/].*/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\/\)$/{
1442             s//\1/
1443             q
1444           }
1445           /^X\(\/\).*/{
1446             s//\1/
1447             q
1448           }
1449           s/.*/./; q'`
1450   srcdir=$ac_confdir
1451   if test ! -r "$srcdir/$ac_unique_file"; then
1452     srcdir=..
1453   fi
1454 else
1455   ac_srcdir_defaulted=no
1456 fi
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 fi
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464         pwd)`
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467   srcdir=.
1468 fi
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1472 case $srcdir in
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 esac
1475 for ac_var in $ac_precious_vars; do
1476   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477   eval ac_env_${ac_var}_value=\$${ac_var}
1478   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 done
1481
1482 #
1483 # Report the --help message.
1484 #
1485 if test "$ac_init_help" = "long"; then
1486   # Omit some internal or obsolete options to make the list less imposing.
1487   # This message is too long to be a string in the A/UX 3.1 sh.
1488   cat <<_ACEOF
1489 \`configure' configures ecryptfs-utils 111 to adapt to many kinds of systems.
1490
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1492
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE.  See below for descriptions of some of the useful variables.
1495
1496 Defaults for the options are specified in brackets.
1497
1498 Configuration:
1499   -h, --help              display this help and exit
1500       --help=short        display options specific to this package
1501       --help=recursive    display the short help of all the included packages
1502   -V, --version           display version information and exit
1503   -q, --quiet, --silent   do not print \`checking ...' messages
1504       --cache-file=FILE   cache test results in FILE [disabled]
1505   -C, --config-cache      alias for \`--cache-file=config.cache'
1506   -n, --no-create         do not create output files
1507       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1508
1509 Installation directories:
1510   --prefix=PREFIX         install architecture-independent files in PREFIX
1511                           [$ac_default_prefix]
1512   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1513                           [PREFIX]
1514
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1519
1520 For better control, use the options below.
1521
1522 Fine tuning of the installation directories:
1523   --bindir=DIR            user executables [EPREFIX/bin]
1524   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1525   --libexecdir=DIR        program executables [EPREFIX/libexec]
1526   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1527   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1528   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1529   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1530   --libdir=DIR            object code libraries [EPREFIX/lib]
1531   --includedir=DIR        C header files [PREFIX/include]
1532   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1533   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1534   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1535   --infodir=DIR           info documentation [DATAROOTDIR/info]
1536   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1537   --mandir=DIR            man documentation [DATAROOTDIR/man]
1538   --docdir=DIR            documentation root [DATAROOTDIR/doc/ecryptfs-utils]
1539   --htmldir=DIR           html documentation [DOCDIR]
1540   --dvidir=DIR            dvi documentation [DOCDIR]
1541   --pdfdir=DIR            pdf documentation [DOCDIR]
1542   --psdir=DIR             ps documentation [DOCDIR]
1543 _ACEOF
1544
1545   cat <<\_ACEOF
1546
1547 Program names:
1548   --program-prefix=PREFIX            prepend PREFIX to installed program names
1549   --program-suffix=SUFFIX            append SUFFIX to installed program names
1550   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1551
1552 System types:
1553   --build=BUILD     configure for building on BUILD [guessed]
1554   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1555   --target=TARGET   configure for building compilers for TARGET [HOST]
1556 _ACEOF
1557 fi
1558
1559 if test -n "$ac_init_help"; then
1560   case $ac_init_help in
1561      short | recursive ) echo "Configuration of ecryptfs-utils 111:";;
1562    esac
1563   cat <<\_ACEOF
1564
1565 Optional Features:
1566   --disable-option-checking  ignore unrecognized --enable/--with options
1567   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1568   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1569   --enable-silent-rules   less verbose build output (undo: "make V=1")
1570   --disable-silent-rules  verbose build output (undo: "make V=0")
1571   --enable-static[=PKGS]  build static libraries [default=no]
1572   --disable-nss           Build against gcrypt rather than NSS
1573   --disable-pywrap        Disable build of libecryptfs Python wrappers
1574   --disable-openssl       Disable build of OpenSSL key module
1575   --enable-pkcs11-helper  Build pkcs11-helper key module
1576   --enable-tspi           Build TrouSerS key module
1577   --enable-gpg            Build GnuPG key module
1578   --disable-pam           Disable build of PAM module
1579   --enable-gui            Enable building of GUI components
1580   --enable-docs           Enable installing document
1581   --enable-docs-gen       Enable generating documents
1582   --enable-tests          Enable system specific tests
1583   --enable-mudflap        Build with -fmudflap gcc option
1584   --enable-dependency-tracking
1585                           do not reject slow dependency extractors
1586   --disable-dependency-tracking
1587                           speeds up one-time build
1588   --enable-shared[=PKGS]  build shared libraries [default=yes]
1589   --enable-fast-install[=PKGS]
1590                           optimize for fast installation [default=yes]
1591   --disable-libtool-lock  avoid locking (might break parallel builds)
1592   --disable-largefile     omit support for large files
1593   --disable-nls           do not use Native Language Support
1594
1595 Optional Packages:
1596   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1597   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1598   --with-gpgme-prefix=PATH
1599                           Specify the directory where gpgme install, default
1600                           /usr
1601   --with-pamdir=PATH      Specify the directory where PAM modules are stored
1602   --with-ecryptfskeymoddir=PATH
1603                           Specify the directory where key modules are stored
1604   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1605                           both]
1606   --with-aix-soname=aix|svr4|both
1607                           shared library versioning (aka "SONAME") variant to
1608                           provide on AIX, [default=aix].
1609   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1611                           compiler's sysroot if not specified).
1612
1613 Some influential environment variables:
1614   CC          C compiler command
1615   CFLAGS      C compiler flags
1616   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1617               nonstandard directory <lib dir>
1618   LIBS        libraries to pass to the linker, e.g. -l<library>
1619   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620               you have headers in a nonstandard directory <include dir>
1621   CPP         C preprocessor
1622   PKG_CONFIG  path to pkg-config utility
1623   PKG_CONFIG_PATH
1624               directories to add to pkg-config's search path
1625   PKG_CONFIG_LIBDIR
1626               path overriding pkg-config's built-in search path
1627   LT_SYS_LIBRARY_PATH
1628               User-defined run-time library search path.
1629   KEYUTILS_CFLAGS
1630               C compiler flags for keyutils
1631   KEYUTILS_LIBS
1632               linker flags for keyutils
1633   OPENSSL_CFLAGS
1634               C compiler flags for OPENSSL, overriding pkg-config
1635   OPENSSL_LIBS
1636               linker flags for OPENSSL, overriding pkg-config
1637   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1638   NSS_LIBS    linker flags for NSS, overriding pkg-config
1639   PYTHON      the Python interpreter
1640   PYTHON_VERSION
1641               The installed Python version to use, for example '2.3'. This
1642               string will be appended to the Python interpreter canonical
1643               name.
1644   PKCS11_HELPER_CFLAGS
1645               C compiler flags for PKCS11_HELPER, overriding pkg-config
1646   PKCS11_HELPER_LIBS
1647               linker flags for PKCS11_HELPER, overriding pkg-config
1648   TSPI_CFLAGS C compiler flags for tspi
1649   TSPI_LIBS   linker flags for tspi
1650   PAM_CFLAGS  C compiler flags for pam
1651   PAM_LIBS    linker flags for pam
1652
1653 Use these variables to override the choices made by `configure' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1655
1656 Report bugs to the package provider.
1657 _ACEOF
1658 ac_status=$?
1659 fi
1660
1661 if test "$ac_init_help" = "recursive"; then
1662   # If there are subdirs, report their specific --help.
1663   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664     test -d "$ac_dir" ||
1665       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666       continue
1667     ac_builddir=.
1668
1669 case "$ac_dir" in
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 *)
1672   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1673   # A ".." for each directory in $ac_dir_suffix.
1674   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675   case $ac_top_builddir_sub in
1676   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678   esac ;;
1679 esac
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1684
1685 case $srcdir in
1686   .)  # We are building in place.
1687     ac_srcdir=.
1688     ac_top_srcdir=$ac_top_builddir_sub
1689     ac_abs_top_srcdir=$ac_pwd ;;
1690   [\\/]* | ?:[\\/]* )  # Absolute name.
1691     ac_srcdir=$srcdir$ac_dir_suffix;
1692     ac_top_srcdir=$srcdir
1693     ac_abs_top_srcdir=$srcdir ;;
1694   *) # Relative name.
1695     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696     ac_top_srcdir=$ac_top_build_prefix$srcdir
1697     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 esac
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700
1701     cd "$ac_dir" || { ac_status=$?; continue; }
1702     # Check for guested configure.
1703     if test -f "$ac_srcdir/configure.gnu"; then
1704       echo &&
1705       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706     elif test -f "$ac_srcdir/configure"; then
1707       echo &&
1708       $SHELL "$ac_srcdir/configure" --help=recursive
1709     else
1710       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711     fi || ac_status=$?
1712     cd "$ac_pwd" || { ac_status=$?; break; }
1713   done
1714 fi
1715
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1718   cat <<\_ACEOF
1719 ecryptfs-utils configure 111
1720 generated by GNU Autoconf 2.69
1721
1722 Copyright (C) 2012 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1725 _ACEOF
1726   exit
1727 fi
1728
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1732
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   rm -f conftest.$ac_objext
1740   if { { ac_try="$ac_compile"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_compile") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } && {
1756          test -z "$ac_c_werror_flag" ||
1757          test ! -s conftest.err
1758        } && test -s conftest.$ac_objext; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764         ac_retval=1
1765 fi
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_compile
1770
1771 # ac_fn_c_try_cpp LINENO
1772 # ----------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_cpp ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   if { { ac_try="$ac_cpp conftest.$ac_ext"
1778 case "(($ac_try" in
1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780   *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1785   ac_status=$?
1786   if test -s conftest.err; then
1787     grep -v '^ *+' conftest.err >conftest.er1
1788     cat conftest.er1 >&5
1789     mv -f conftest.er1 conftest.err
1790   fi
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; } > conftest.i && {
1793          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1794          test ! -s conftest.err
1795        }; then :
1796   ac_retval=0
1797 else
1798   $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801     ac_retval=1
1802 fi
1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804   as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_cpp
1807
1808 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1811 # the include files in INCLUDES and setting the cache variable VAR
1812 # accordingly.
1813 ac_fn_c_check_header_mongrel ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   if eval \${$3+:} false; then :
1817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820   $as_echo_n "(cached) " >&6
1821 fi
1822 eval ac_res=\$$3
1823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 else
1826   # Is the header compilable?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1828 $as_echo_n "checking $2 usability... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h.  */
1831 $4
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835   ac_header_compiler=yes
1836 else
1837   ac_header_compiler=no
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1841 $as_echo "$ac_header_compiler" >&6; }
1842
1843 # Is the header present?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1845 $as_echo_n "checking $2 presence... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h.  */
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_cpp "$LINENO"; then :
1851   ac_header_preproc=yes
1852 else
1853   ac_header_preproc=no
1854 fi
1855 rm -f conftest.err conftest.i conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1857 $as_echo "$ac_header_preproc" >&6; }
1858
1859 # So?  What about this header?
1860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1861   yes:no: )
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1863 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866     ;;
1867   no:yes:* )
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1869 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1871 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1873 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1875 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878     ;;
1879 esac
1880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883   $as_echo_n "(cached) " >&6
1884 else
1885   eval "$3=\$ac_header_compiler"
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 fi
1891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_header_mongrel
1894
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1899 ac_fn_c_try_run ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905   *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909   (eval "$ac_link") 2>&5
1910   ac_status=$?
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913   { { case "(($ac_try" in
1914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915   *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919   (eval "$ac_try") 2>&5
1920   ac_status=$?
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; }; }; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: program exited with status $ac_status" >&5
1926        $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929        ac_retval=$ac_status
1930 fi
1931   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933   as_fn_set_status $ac_retval
1934
1935 } # ac_fn_c_try_run
1936
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947   $as_echo_n "(cached) " >&6
1948 else
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955   eval "$3=yes"
1956 else
1957   eval "$3=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 eval ac_res=\$$3
1962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_check_header_compile
1967
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_c_try_link ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   rm -f conftest.$ac_objext conftest$ac_exeext
1975   if { { ac_try="$ac_link"
1976 case "(($ac_try" in
1977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978   *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982   (eval "$ac_link") 2>conftest.err
1983   ac_status=$?
1984   if test -s conftest.err; then
1985     grep -v '^ *+' conftest.err >conftest.er1
1986     cat conftest.er1 >&5
1987     mv -f conftest.er1 conftest.err
1988   fi
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } && {
1991          test -z "$ac_c_werror_flag" ||
1992          test ! -s conftest.err
1993        } && test -s conftest$ac_exeext && {
1994          test "$cross_compiling" = yes ||
1995          test -x conftest$ac_exeext
1996        }; then :
1997   ac_retval=0
1998 else
1999   $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002         ac_retval=1
2003 fi
2004   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006   # interfere with the next link command; also delete a directory that is
2007   # left behind by Apple's compiler.  We do this before executing the actions.
2008   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010   as_fn_set_status $ac_retval
2011
2012 } # ac_fn_c_try_link
2013
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2018 {
2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023   $as_echo_n "(cached) " >&6
2024 else
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2029 #define $2 innocuous_$2
2030
2031 /* System header to define __stub macros and hopefully few prototypes,
2032     which can conflict with char $2 (); below.
2033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034     <limits.h> exists even on freestanding compilers.  */
2035
2036 #ifdef __STDC__
2037 # include <limits.h>
2038 #else
2039 # include <assert.h>
2040 #endif
2041
2042 #undef $2
2043
2044 /* Override any GCC internal prototype to avoid an error.
2045    Use char because int might match the return type of a GCC
2046    builtin and then its argument prototype would still apply.  */
2047 #ifdef __cplusplus
2048 extern "C"
2049 #endif
2050 char $2 ();
2051 /* The GNU C library defines this for functions which it implements
2052     to always fail with ENOSYS.  Some functions are actually named
2053     something starting with __ and the normal name is an alias.  */
2054 #if defined __stub_$2 || defined __stub___$2
2055 choke me
2056 #endif
2057
2058 int
2059 main ()
2060 {
2061 return $2 ();
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_link "$LINENO"; then :
2067   eval "$3=yes"
2068 else
2069   eval "$3=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext \
2072     conftest$ac_exeext conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$3
2075                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_c_check_func
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2083
2084 It was created by ecryptfs-utils $as_me 111, which was
2085 generated by GNU Autoconf 2.69.  Invocation command line was
2086
2087   $ $0 $@
2088
2089 _ACEOF
2090 exec 5>>config.log
2091 {
2092 cat <<_ASUNAME
2093 ## --------- ##
2094 ## Platform. ##
2095 ## --------- ##
2096
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2105
2106 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2107 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2110 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2111 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2112 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2113
2114 _ASUNAME
2115
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121     $as_echo "PATH: $as_dir"
2122   done
2123 IFS=$as_save_IFS
2124
2125 } >&5
2126
2127 cat >&5 <<_ACEOF
2128
2129
2130 ## ----------- ##
2131 ## Core tests. ##
2132 ## ----------- ##
2133
2134 _ACEOF
2135
2136
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2142 ac_configure_args=
2143 ac_configure_args0=
2144 ac_configure_args1=
2145 ac_must_keep_next=false
2146 for ac_pass in 1 2
2147 do
2148   for ac_arg
2149   do
2150     case $ac_arg in
2151     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153     | -silent | --silent | --silen | --sile | --sil)
2154       continue ;;
2155     *\'*)
2156       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157     esac
2158     case $ac_pass in
2159     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160     2)
2161       as_fn_append ac_configure_args1 " '$ac_arg'"
2162       if test $ac_must_keep_next = true; then
2163         ac_must_keep_next=false # Got value, back to normal.
2164       else
2165         case $ac_arg in
2166           *=* | --config-cache | -C | -disable-* | --disable-* \
2167           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169           | -with-* | --with-* | -without-* | --without-* | --x)
2170             case "$ac_configure_args0 " in
2171               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172             esac
2173             ;;
2174           -* ) ac_must_keep_next=true ;;
2175         esac
2176       fi
2177       as_fn_append ac_configure_args " '$ac_arg'"
2178       ;;
2179     esac
2180   done
2181 done
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2184
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log.  We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191   # Save into config.log some information that might help in debugging.
2192   {
2193     echo
2194
2195     $as_echo "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2198     echo
2199     # The following way of writing the cache mishandles newlines in values,
2200 (
2201   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202     eval ac_val=\$$ac_var
2203     case $ac_val in #(
2204     *${as_nl}*)
2205       case $ac_var in #(
2206       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2208       esac
2209       case $ac_var in #(
2210       _ | IFS | as_nl) ;; #(
2211       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212       *) { eval $ac_var=; unset $ac_var;} ;;
2213       esac ;;
2214     esac
2215   done
2216   (set) 2>&1 |
2217     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218     *${as_nl}ac_space=\ *)
2219       sed -n \
2220         "s/'\''/'\''\\\\'\'''\''/g;
2221           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222       ;; #(
2223     *)
2224       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225       ;;
2226     esac |
2227     sort
2228 )
2229     echo
2230
2231     $as_echo "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2234     echo
2235     for ac_var in $ac_subst_vars
2236     do
2237       eval ac_val=\$$ac_var
2238       case $ac_val in
2239       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240       esac
2241       $as_echo "$ac_var='\''$ac_val'\''"
2242     done | sort
2243     echo
2244
2245     if test -n "$ac_subst_files"; then
2246       $as_echo "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2249       echo
2250       for ac_var in $ac_subst_files
2251       do
2252         eval ac_val=\$$ac_var
2253         case $ac_val in
2254         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255         esac
2256         $as_echo "$ac_var='\''$ac_val'\''"
2257       done | sort
2258       echo
2259     fi
2260
2261     if test -s confdefs.h; then
2262       $as_echo "## ----------- ##
2263 ## confdefs.h. ##
2264 ## ----------- ##"
2265       echo
2266       cat confdefs.h
2267       echo
2268     fi
2269     test "$ac_signal" != 0 &&
2270       $as_echo "$as_me: caught signal $ac_signal"
2271     $as_echo "$as_me: exit $exit_status"
2272   } >&5
2273   rm -f core *.core core.conftest.* &&
2274     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2275     exit $exit_status
2276 ' 0
2277 for ac_signal in 1 2 13 15; do
2278   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2279 done
2280 ac_signal=0
2281
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2284
2285 $as_echo "/* confdefs.h */" > confdefs.h
2286
2287 # Predefined preprocessor variables.
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_NAME "$PACKAGE_NAME"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2299 _ACEOF
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_STRING "$PACKAGE_STRING"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_URL "$PACKAGE_URL"
2311 _ACEOF
2312
2313
2314 # Let the site file select an alternate cache file if it wants to.
2315 # Prefer an explicitly selected file to automatically selected ones.
2316 ac_site_file1=NONE
2317 ac_site_file2=NONE
2318 if test -n "$CONFIG_SITE"; then
2319   # We do not want a PATH search for config.site.
2320   case $CONFIG_SITE in #((
2321     -*)  ac_site_file1=./$CONFIG_SITE;;
2322     */*) ac_site_file1=$CONFIG_SITE;;
2323     *)   ac_site_file1=./$CONFIG_SITE;;
2324   esac
2325 elif test "x$prefix" != xNONE; then
2326   ac_site_file1=$prefix/share/config.site
2327   ac_site_file2=$prefix/etc/config.site
2328 else
2329   ac_site_file1=$ac_default_prefix/share/config.site
2330   ac_site_file2=$ac_default_prefix/etc/config.site
2331 fi
2332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2333 do
2334   test "x$ac_site_file" = xNONE && continue
2335   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338     sed 's/^/| /' "$ac_site_file" >&5
2339     . "$ac_site_file" \
2340       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 as_fn_error $? "failed to load site script $ac_site_file
2343 See \`config.log' for more details" "$LINENO" 5; }
2344   fi
2345 done
2346
2347 if test -r "$cache_file"; then
2348   # Some versions of bash will fail to source /dev/null (special files
2349   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2350   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2352 $as_echo "$as_me: loading cache $cache_file" >&6;}
2353     case $cache_file in
2354       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355       *)                      . "./$cache_file";;
2356     esac
2357   fi
2358 else
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2360 $as_echo "$as_me: creating cache $cache_file" >&6;}
2361   >$cache_file
2362 fi
2363
2364 # Check that the precious variables saved in the cache have kept the same
2365 # value.
2366 ac_cache_corrupted=false
2367 for ac_var in $ac_precious_vars; do
2368   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369   eval ac_new_set=\$ac_env_${ac_var}_set
2370   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371   eval ac_new_val=\$ac_env_${ac_var}_value
2372   case $ac_old_set,$ac_new_set in
2373     set,)
2374       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2376       ac_cache_corrupted=: ;;
2377     ,set)
2378       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2380       ac_cache_corrupted=: ;;
2381     ,);;
2382     *)
2383       if test "x$ac_old_val" != "x$ac_new_val"; then
2384         # differences in whitespace do not lead to failure.
2385         ac_old_val_w=`echo x $ac_old_val`
2386         ac_new_val_w=`echo x $ac_new_val`
2387         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2388           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390           ac_cache_corrupted=:
2391         else
2392           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394           eval $ac_var=\$ac_old_val
2395         fi
2396         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2397 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2398         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2399 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2400       fi;;
2401   esac
2402   # Pass precious variables to config.status.
2403   if test "$ac_new_set" = set; then
2404     case $ac_new_val in
2405     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406     *) ac_arg=$ac_var=$ac_new_val ;;
2407     esac
2408     case " $ac_configure_args " in
2409       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2410       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2411     esac
2412   fi
2413 done
2414 if $ac_cache_corrupted; then
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2419   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2420 fi
2421 ## -------------------- ##
2422 ## Main body of script. ##
2423 ## -------------------- ##
2424
2425 ac_ext=c
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430
2431
2432 ac_aux_dir=
2433 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2434   if test -f "$ac_dir/install-sh"; then
2435     ac_aux_dir=$ac_dir
2436     ac_install_sh="$ac_aux_dir/install-sh -c"
2437     break
2438   elif test -f "$ac_dir/install.sh"; then
2439     ac_aux_dir=$ac_dir
2440     ac_install_sh="$ac_aux_dir/install.sh -c"
2441     break
2442   elif test -f "$ac_dir/shtool"; then
2443     ac_aux_dir=$ac_dir
2444     ac_install_sh="$ac_aux_dir/shtool install -c"
2445     break
2446   fi
2447 done
2448 if test -z "$ac_aux_dir"; then
2449   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2450 fi
2451
2452 # These three variables are undocumented and unsupported,
2453 # and are intended to be withdrawn in a future Autoconf release.
2454 # They can cause serious problems if a builder's source tree is in a directory
2455 # whose full name contains unusual characters.
2456 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2457 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2458 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2459
2460
2461 # Make sure we can run config.sub.
2462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2463   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2464
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2466 $as_echo_n "checking build system type... " >&6; }
2467 if ${ac_cv_build+:} false; then :
2468   $as_echo_n "(cached) " >&6
2469 else
2470   ac_build_alias=$build_alias
2471 test "x$ac_build_alias" = x &&
2472   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2473 test "x$ac_build_alias" = x &&
2474   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2476   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2477
2478 fi
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2480 $as_echo "$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2482 *-*-*) ;;
2483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2484 esac
2485 build=$ac_cv_build
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_build
2488 shift
2489 build_cpu=$1
2490 build_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 build_os=$*
2495 IFS=$ac_save_IFS
2496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2497
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2500 $as_echo_n "checking host system type... " >&6; }
2501 if ${ac_cv_host+:} false; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   if test "x$host_alias" = x; then
2505   ac_cv_host=$ac_cv_build
2506 else
2507   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2508     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2509 fi
2510
2511 fi
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2513 $as_echo "$ac_cv_host" >&6; }
2514 case $ac_cv_host in
2515 *-*-*) ;;
2516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2517 esac
2518 host=$ac_cv_host
2519 ac_save_IFS=$IFS; IFS='-'
2520 set x $ac_cv_host
2521 shift
2522 host_cpu=$1
2523 host_vendor=$2
2524 shift; shift
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2527 host_os=$*
2528 IFS=$ac_save_IFS
2529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2530
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2533 $as_echo_n "checking target system type... " >&6; }
2534 if ${ac_cv_target+:} false; then :
2535   $as_echo_n "(cached) " >&6
2536 else
2537   if test "x$target_alias" = x; then
2538   ac_cv_target=$ac_cv_host
2539 else
2540   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2541     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2542 fi
2543
2544 fi
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2546 $as_echo "$ac_cv_target" >&6; }
2547 case $ac_cv_target in
2548 *-*-*) ;;
2549 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2550 esac
2551 target=$ac_cv_target
2552 ac_save_IFS=$IFS; IFS='-'
2553 set x $ac_cv_target
2554 shift
2555 target_cpu=$1
2556 target_vendor=$2
2557 shift; shift
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2560 target_os=$*
2561 IFS=$ac_save_IFS
2562 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2563
2564
2565 # The aliases save the names the user supplied, while $host etc.
2566 # will get canonicalized.
2567 test -n "$target_alias" &&
2568   test "$program_prefix$program_suffix$program_transform_name" = \
2569     NONENONEs,x,x, &&
2570   program_prefix=${target_alias}-
2571 am__api_version='1.15'
2572
2573 # Find a good install program.  We prefer a C program (faster),
2574 # so one script is as good as another.  But avoid the broken or
2575 # incompatible versions:
2576 # SysV /etc/install, /usr/sbin/install
2577 # SunOS /usr/etc/install
2578 # IRIX /sbin/install
2579 # AIX /bin/install
2580 # AmigaOS /C/install, which installs bootblocks on floppy discs
2581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2584 # OS/2's system install, which has a completely different semantic
2585 # ./install, which can be erroneously created by make from ./install.sh.
2586 # Reject install programs that cannot install multiple files.
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2588 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2589 if test -z "$INSTALL"; then
2590 if ${ac_cv_path_install+:} false; then :
2591   $as_echo_n "(cached) " >&6
2592 else
2593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598     # Account for people who put trailing slashes in PATH elements.
2599 case $as_dir/ in #((
2600   ./ | .// | /[cC]/* | \
2601   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2602   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2603   /usr/ucb/* ) ;;
2604   *)
2605     # OSF1 and SCO ODT 3.0 have their own names for install.
2606     # Don't use installbsd from OSF since it installs stuff as root
2607     # by default.
2608     for ac_prog in ginstall scoinst install; do
2609       for ac_exec_ext in '' $ac_executable_extensions; do
2610         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2611           if test $ac_prog = install &&
2612             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613             # AIX install.  It has an incompatible calling convention.
2614             :
2615           elif test $ac_prog = install &&
2616             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617             # program-specific install script used by HP pwplus--don't use.
2618             :
2619           else
2620             rm -rf conftest.one conftest.two conftest.dir
2621             echo one > conftest.one
2622             echo two > conftest.two
2623             mkdir conftest.dir
2624             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2625               test -s conftest.one && test -s conftest.two &&
2626               test -s conftest.dir/conftest.one &&
2627               test -s conftest.dir/conftest.two
2628             then
2629               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2630               break 3
2631             fi
2632           fi
2633         fi
2634       done
2635     done
2636     ;;
2637 esac
2638
2639   done
2640 IFS=$as_save_IFS
2641
2642 rm -rf conftest.one conftest.two conftest.dir
2643
2644 fi
2645   if test "${ac_cv_path_install+set}" = set; then
2646     INSTALL=$ac_cv_path_install
2647   else
2648     # As a last resort, use the slow shell script.  Don't cache a
2649     # value for INSTALL within a source directory, because that will
2650     # break other packages using the cache if that directory is
2651     # removed, or if the value is a relative name.
2652     INSTALL=$ac_install_sh
2653   fi
2654 fi
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2656 $as_echo "$INSTALL" >&6; }
2657
2658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2659 # It thinks the first close brace ends the variable substitution.
2660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2661
2662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2663
2664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2667 $as_echo_n "checking whether build environment is sane... " >&6; }
2668 # Reject unsafe characters in $srcdir or the absolute working directory
2669 # name.  Accept space and tab only in the latter.
2670 am_lf='
2671 '
2672 case `pwd` in
2673   *[\\\"\#\$\&\'\`$am_lf]*)
2674     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2675 esac
2676 case $srcdir in
2677   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2678     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2679 esac
2680
2681 # Do 'set' in a subshell so we don't clobber the current shell's
2682 # arguments.  Must try -L first in case configure is actually a
2683 # symlink; some systems play weird games with the mod time of symlinks
2684 # (eg FreeBSD returns the mod time of the symlink's containing
2685 # directory).
2686 if (
2687    am_has_slept=no
2688    for am_try in 1 2; do
2689      echo "timestamp, slept: $am_has_slept" > conftest.file
2690      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2691      if test "$*" = "X"; then
2692         # -L didn't work.
2693         set X `ls -t "$srcdir/configure" conftest.file`
2694      fi
2695      if test "$*" != "X $srcdir/configure conftest.file" \
2696         && test "$*" != "X conftest.file $srcdir/configure"; then
2697
2698         # If neither matched, then we have a broken ls.  This can happen
2699         # if, for instance, CONFIG_SHELL is bash and it inherits a
2700         # broken ls alias from the environment.  This has actually
2701         # happened.  Such a system could not be considered "sane".
2702         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2703   alias in your environment" "$LINENO" 5
2704      fi
2705      if test "$2" = conftest.file || test $am_try -eq 2; then
2706        break
2707      fi
2708      # Just in case.
2709      sleep 1
2710      am_has_slept=yes
2711    done
2712    test "$2" = conftest.file
2713    )
2714 then
2715    # Ok.
2716    :
2717 else
2718    as_fn_error $? "newly created file is older than distributed files!
2719 Check your system clock" "$LINENO" 5
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 # If we didn't sleep, we still need to ensure time stamps of config.status and
2724 # generated files are strictly newer.
2725 am_sleep_pid=
2726 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2727   ( sleep 1 ) &
2728   am_sleep_pid=$!
2729 fi
2730
2731 rm -f conftest.file
2732
2733 test "$program_prefix" != NONE &&
2734   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2735 # Use a double $ so make ignores it.
2736 test "$program_suffix" != NONE &&
2737   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2738 # Double any \ or $.
2739 # By default was `s,x,x', remove it if useless.
2740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2742
2743 # Expand $ac_aux_dir to an absolute path.
2744 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2745
2746 if test x"${MISSING+set}" != xset; then
2747   case $am_aux_dir in
2748   *\ * | *\     *)
2749     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2750   *)
2751     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2752   esac
2753 fi
2754 # Use eval to expand $SHELL
2755 if eval "$MISSING --is-lightweight"; then
2756   am_missing_run="$MISSING "
2757 else
2758   am_missing_run=
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2760 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2761 fi
2762
2763 if test x"${install_sh+set}" != xset; then
2764   case $am_aux_dir in
2765   *\ * | *\     *)
2766     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2767   *)
2768     install_sh="\${SHELL} $am_aux_dir/install-sh"
2769   esac
2770 fi
2771
2772 # Installed binaries are usually stripped using 'strip' when the user
2773 # run "make install-strip".  However 'strip' might not be the right
2774 # tool to use in cross-compilation environments, therefore Automake
2775 # will honor the 'STRIP' environment variable to overrule this program.
2776 if test "$cross_compiling" != no; then
2777   if test -n "$ac_tool_prefix"; then
2778   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_STRIP+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   if test -n "$STRIP"; then
2786   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 STRIP=$ac_cv_prog_STRIP
2806 if test -n "$STRIP"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808 $as_echo "$STRIP" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 if test -z "$ac_cv_prog_STRIP"; then
2817   ac_ct_STRIP=$STRIP
2818   # Extract the first word of "strip", so it can be a program name with args.
2819 set dummy strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$ac_ct_STRIP"; then
2826   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835     ac_cv_prog_ac_ct_STRIP="strip"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2846 if test -n "$ac_ct_STRIP"; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2848 $as_echo "$ac_ct_STRIP" >&6; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854   if test "x$ac_ct_STRIP" = x; then
2855     STRIP=":"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863     STRIP=$ac_ct_STRIP
2864   fi
2865 else
2866   STRIP="$ac_cv_prog_STRIP"
2867 fi
2868
2869 fi
2870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875   if ${ac_cv_path_mkdir+:} false; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_prog in mkdir gmkdir; do
2884          for ac_exec_ext in '' $ac_executable_extensions; do
2885            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2886            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887              'mkdir (GNU coreutils) '* | \
2888              'mkdir (coreutils) '* | \
2889              'mkdir (fileutils) '4.1*)
2890                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2891                break 3;;
2892            esac
2893          done
2894        done
2895   done
2896 IFS=$as_save_IFS
2897
2898 fi
2899
2900   test -d ./--version && rmdir ./--version
2901   if test "${ac_cv_path_mkdir+set}" = set; then
2902     MKDIR_P="$ac_cv_path_mkdir -p"
2903   else
2904     # As a last resort, use the slow shell script.  Don't cache a
2905     # value for MKDIR_P within a source directory, because that will
2906     # break other packages using the cache if that directory is
2907     # removed, or if the value is a relative name.
2908     MKDIR_P="$ac_install_sh -d"
2909   fi
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 $as_echo "$MKDIR_P" >&6; }
2913
2914 for ac_prog in gawk mawk nawk awk
2915 do
2916   # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_AWK+:} false; then :
2921   $as_echo_n "(cached) " >&6
2922 else
2923   if test -n "$AWK"; then
2924   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931     for ac_exec_ext in '' $ac_executable_extensions; do
2932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933     ac_cv_prog_AWK="$ac_prog"
2934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935     break 2
2936   fi
2937 done
2938   done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 AWK=$ac_cv_prog_AWK
2944 if test -n "$AWK"; then
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2946 $as_echo "$AWK" >&6; }
2947 else
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953   test -n "$AWK" && break
2954 done
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2957 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2958 set x ${MAKE-make}
2959 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2960 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   cat >conftest.make <<\_ACEOF
2964 SHELL = /bin/sh
2965 all:
2966         @echo '@@@%%%=$(MAKE)=@@@%%%'
2967 _ACEOF
2968 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2969 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2970   *@@@%%%=?*=@@@%%%*)
2971     eval ac_cv_prog_make_${ac_make}_set=yes;;
2972   *)
2973     eval ac_cv_prog_make_${ac_make}_set=no;;
2974 esac
2975 rm -f conftest.make
2976 fi
2977 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979 $as_echo "yes" >&6; }
2980   SET_MAKE=
2981 else
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2984   SET_MAKE="MAKE=${MAKE-make}"
2985 fi
2986
2987 rm -rf .tst 2>/dev/null
2988 mkdir .tst 2>/dev/null
2989 if test -d .tst; then
2990   am__leading_dot=.
2991 else
2992   am__leading_dot=_
2993 fi
2994 rmdir .tst 2>/dev/null
2995
2996 # Check whether --enable-silent-rules was given.
2997 if test "${enable_silent_rules+set}" = set; then :
2998   enableval=$enable_silent_rules;
2999 fi
3000
3001 case $enable_silent_rules in # (((
3002   yes) AM_DEFAULT_VERBOSITY=0;;
3003    no) AM_DEFAULT_VERBOSITY=1;;
3004     *) AM_DEFAULT_VERBOSITY=1;;
3005 esac
3006 am_make=${MAKE-make}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3008 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3009 if ${am_cv_make_support_nested_variables+:} false; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if $as_echo 'TRUE=$(BAR$(V))
3013 BAR0=false
3014 BAR1=true
3015 V=1
3016 am__doit:
3017         @$(TRUE)
3018 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3019   am_cv_make_support_nested_variables=yes
3020 else
3021   am_cv_make_support_nested_variables=no
3022 fi
3023 fi
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3025 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3026 if test $am_cv_make_support_nested_variables = yes; then
3027     AM_V='$(V)'
3028   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3029 else
3030   AM_V=$AM_DEFAULT_VERBOSITY
3031   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3032 fi
3033 AM_BACKSLASH='\'
3034
3035 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3036   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3037   # is not polluted with repeated "-I."
3038   am__isrc=' -I$(srcdir)'
3039   # test to see if srcdir already configured
3040   if test -f $srcdir/config.status; then
3041     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3042   fi
3043 fi
3044
3045 # test whether we have cygpath
3046 if test -z "$CYGPATH_W"; then
3047   if (cygpath --version) >/dev/null 2>/dev/null; then
3048     CYGPATH_W='cygpath -w'
3049   else
3050     CYGPATH_W=echo
3051   fi
3052 fi
3053
3054
3055 # Define the identity of the package.
3056
3057  PACKAGE=${PACKAGE_NAME}
3058  VERSION=${PACKAGE_VERSION}
3059
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE "$PACKAGE"
3063 _ACEOF
3064
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define VERSION "$VERSION"
3068 _ACEOF
3069
3070 # Some tools Automake needs.
3071
3072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3073
3074
3075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3076
3077
3078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3079
3080
3081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3082
3083
3084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3085
3086 # For better backward compatibility.  To be removed once Automake 1.9.x
3087 # dies out for good.  For more background, see:
3088 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3089 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3090 mkdir_p='$(MKDIR_P)'
3091
3092 # We need awk for the "check" target (and possibly the TAP driver).  The
3093 # system "awk" is bad on some platforms.
3094 # Always define AMTAR for backward compatibility.  Yes, it's still used
3095 # in the wild :-(  We should find a proper way to deprecate it ...
3096 AMTAR='$${TAR-tar}'
3097
3098
3099 # We'll loop over all known methods to create a tar archive until one works.
3100 _am_tools='gnutar  pax cpio none'
3101
3102 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3103
3104
3105
3106
3107
3108
3109 # POSIX will say in a future version that running "rm -f" with no argument
3110 # is OK; and we want to be able to make that assumption in our Makefile
3111 # recipes.  So use an aggressive probe to check that the usage we want is
3112 # actually supported "in the wild" to an acceptable degree.
3113 # See automake bug#10828.
3114 # To make any issue more visible, cause the running configure to be aborted
3115 # by default if the 'rm' program in use doesn't match our expectations; the
3116 # user can still override this though.
3117 if rm -f && rm -fr && rm -rf; then : OK; else
3118   cat >&2 <<'END'
3119 Oops!
3120
3121 Your 'rm' program seems unable to run without file operands specified
3122 on the command line, even when the '-f' option is present.  This is contrary
3123 to the behaviour of most rm programs out there, and not conforming with
3124 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3125
3126 Please tell bug-automake@gnu.org about your system, including the value
3127 of your $PATH and any error possibly output before this message.  This
3128 can help us improve future automake versions.
3129
3130 END
3131   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3132     echo 'Configuration will proceed anyway, since you have set the' >&2
3133     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3134     echo >&2
3135   else
3136     cat >&2 <<'END'
3137 Aborting the configuration process, to ensure you take notice of the issue.
3138
3139 You can download and install GNU coreutils to get an 'rm' implementation
3140 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3141
3142 If you want to complete the configuration process using your problematic
3143 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3144 to "yes", and re-run configure.
3145
3146 END
3147     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3148   fi
3149 fi
3150
3151
3152 ac_config_headers="$ac_config_headers config.h"
3153
3154 AM_CPPFLAGS='-include $(top_builddir)/config.h'
3155
3156
3157
3158 # Check whether --enable-static was given.
3159 if test "${enable_static+set}" = set; then :
3160   enableval=$enable_static; p=${PACKAGE-default}
3161     case $enableval in
3162     yes) enable_static=yes ;;
3163     no) enable_static=no ;;
3164     *)
3165      enable_static=no
3166       # Look at the argument we got.  We use all the common list separators.
3167       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3168       for pkg in $enableval; do
3169         IFS=$lt_save_ifs
3170         if test "X$pkg" = "X$p"; then
3171           enable_static=yes
3172         fi
3173       done
3174       IFS=$lt_save_ifs
3175       ;;
3176     esac
3177 else
3178   enable_static=no
3179 fi
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190 # libecryptfs versioning instructions
3191 #
3192 # Update the version information only once per public release of
3193 # ecryptfs-utils. More frequent updates are unnecessary, and only guarantee
3194 # that the current interface number gets larger faster.
3195 #
3196 # 1. If the library source code has changed at all since the last update, then
3197 #    increment LIBECRYPTFS_LT_REVISION.
3198 # 2. If any interfaces have been added, removed, or changed since the last
3199 #    update, increment LIBECRYPTFS_LT_CURRENT, and set LIBECRYPTFS_LT_REVISION to 0.
3200 # 3. If any interfaces have been added since the last public release, then
3201 #    increment LIBECRYPTFS_LT_AGE.
3202 # 4. If any interfaces have been removed or changed since the last public
3203 #    release, then set LIBECRYPTFS_LT_AGE to 0.
3204 #
3205 # For more details:
3206 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
3207 LIBECRYPTFS_LT_CURRENT="1"
3208 LIBECRYPTFS_LT_REVISION="0"
3209 LIBECRYPTFS_LT_AGE="0"
3210
3211
3212
3213
3214 # Check whether --enable-nss was given.
3215 if test "${enable_nss+set}" = set; then :
3216   enableval=$enable_nss;
3217 else
3218   enable_nss="detect"
3219
3220 fi
3221
3222
3223 # Check whether --enable-pywrap was given.
3224 if test "${enable_pywrap+set}" = set; then :
3225   enableval=$enable_pywrap;
3226 else
3227   enable_pywrap="detect"
3228
3229 fi
3230
3231
3232 # Check whether --enable-openssl was given.
3233 if test "${enable_openssl+set}" = set; then :
3234   enableval=$enable_openssl;
3235 else
3236   enable_openssl="detect"
3237
3238 fi
3239
3240
3241 # Check whether --enable-pkcs11-helper was given.
3242 if test "${enable_pkcs11_helper+set}" = set; then :
3243   enableval=$enable_pkcs11_helper;
3244 else
3245   enable_pkcs11_helper="no"
3246
3247 fi
3248
3249
3250 # Check whether --enable-tspi was given.
3251 if test "${enable_tspi+set}" = set; then :
3252   enableval=$enable_tspi;
3253 else
3254   enable_tspi="no"
3255
3256 fi
3257
3258
3259 # Check whether --enable-gpg was given.
3260 if test "${enable_gpg+set}" = set; then :
3261   enableval=$enable_gpg;
3262 else
3263   enable_gpg="no"
3264
3265 fi
3266
3267
3268 # Check whether --enable-pam was given.
3269 if test "${enable_pam+set}" = set; then :
3270   enableval=$enable_pam;
3271 else
3272   enable_pam="yes"
3273
3274 fi
3275
3276
3277 # Check whether --enable-gui was given.
3278 if test "${enable_gui+set}" = set; then :
3279   enableval=$enable_gui;
3280 else
3281   enable_gui="no"
3282
3283 fi
3284
3285
3286 # Check whether --enable-docs was given.
3287 if test "${enable_docs+set}" = set; then :
3288   enableval=$enable_docs;
3289 else
3290   enable_docs="no"
3291
3292 fi
3293
3294
3295 # Check whether --enable-docs-gen was given.
3296 if test "${enable_docs_gen+set}" = set; then :
3297   enableval=$enable_docs_gen;
3298 else
3299   enable_docs_gen="no"
3300
3301 fi
3302
3303 test "${enable_docs_gen}" = "yes" && enable_docs="yes"
3304
3305 # Check whether --enable-tests was given.
3306 if test "${enable_tests+set}" = set; then :
3307   enableval=$enable_tests;
3308 else
3309   enable_tests="no"
3310
3311 fi
3312
3313
3314 # Check whether --enable-mudflap was given.
3315 if test "${enable_mudflap+set}" = set; then :
3316   enableval=$enable_mudflap;
3317                 if "${enableval}" = "yes"; then
3318                         CFLAGS="$CFLAGS -fmudflap"
3319                         LDFLAGS="$LDFLAGS -lmudflap"
3320                 fi
3321
3322
3323 fi
3324
3325
3326
3327 # Check whether --with-gpgme-prefix was given.
3328 if test "${with_gpgme_prefix+set}" = set; then :
3329   withval=$with_gpgme_prefix;
3330 else
3331   with_gpgme_prefix="/usr"
3332
3333 fi
3334
3335
3336
3337 # Check whether --with-pamdir was given.
3338 if test "${with_pamdir+set}" = set; then :
3339   withval=$with_pamdir; pamdir="${withval}"
3340 else
3341
3342                 if test "${prefix}" = "/usr"; then
3343                         pamdir="/lib${libdir##*/lib}/security"
3344                 else
3345                         pamdir="\$(libdir)/security"
3346                 fi
3347
3348
3349 fi
3350
3351
3352
3353 # Check whether --with-ecryptfskeymoddir was given.
3354 if test "${with_ecryptfskeymoddir+set}" = set; then :
3355   withval=$with_ecryptfskeymoddir;
3356                 ecryptfskeymoddir="${withval}"
3357                 full_ecryptfskeymoddir="${ecryptfskeymoddir}"
3358
3359 else
3360
3361                 full_ecryptfskeymoddir=`eval eval eval eval eval echo "${libdir}/ecryptfs" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
3362                 ecryptfskeymoddir="\$(libdir)/ecryptfs"
3363
3364
3365 fi
3366
3367
3368 cat >>confdefs.h <<_ACEOF
3369 #define ECRYPTFS_DEFAULT_KEY_MOD_DIR "$full_ecryptfskeymoddir"
3370 _ACEOF
3371
3372
3373 DEPDIR="${am__leading_dot}deps"
3374
3375 ac_config_commands="$ac_config_commands depfiles"
3376
3377
3378 am_make=${MAKE-make}
3379 cat > confinc << 'END'
3380 am__doit:
3381         @echo this is the am__doit target
3382 .PHONY: am__doit
3383 END
3384 # If we don't find an include directive, just comment out the code.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3386 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3387 am__include="#"
3388 am__quote=
3389 _am_result=none
3390 # First try GNU make style include.
3391 echo "include confinc" > confmf
3392 # Ignore all kinds of additional output from 'make'.
3393 case `$am_make -s -f confmf 2> /dev/null` in #(
3394 *the\ am__doit\ target*)
3395   am__include=include
3396   am__quote=
3397   _am_result=GNU
3398   ;;
3399 esac
3400 # Now try BSD make style include.
3401 if test "$am__include" = "#"; then
3402    echo '.include "confinc"' > confmf
3403    case `$am_make -s -f confmf 2> /dev/null` in #(
3404    *the\ am__doit\ target*)
3405      am__include=.include
3406      am__quote="\""
3407      _am_result=BSD
3408      ;;
3409    esac
3410 fi
3411
3412
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3414 $as_echo "$_am_result" >&6; }
3415 rm -f confinc confmf
3416
3417 # Check whether --enable-dependency-tracking was given.
3418 if test "${enable_dependency_tracking+set}" = set; then :
3419   enableval=$enable_dependency_tracking;
3420 fi
3421
3422 if test "x$enable_dependency_tracking" != xno; then
3423   am_depcomp="$ac_aux_dir/depcomp"
3424   AMDEPBACKSLASH='\'
3425   am__nodep='_no'
3426 fi
3427  if test "x$enable_dependency_tracking" != xno; then
3428   AMDEP_TRUE=
3429   AMDEP_FALSE='#'
3430 else
3431   AMDEP_TRUE='#'
3432   AMDEP_FALSE=
3433 fi
3434
3435
3436 ac_ext=c
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 if test -n "$ac_tool_prefix"; then
3442   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   if test -n "$CC"; then
3450   ac_cv_prog_CC="$CC" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457     for ac_exec_ext in '' $ac_executable_extensions; do
3458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464   done
3465 IFS=$as_save_IFS
3466
3467 fi
3468 fi
3469 CC=$ac_cv_prog_CC
3470 if test -n "$CC"; then
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 $as_echo "$CC" >&6; }
3473 else
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 fi
3477
3478
3479 fi
3480 if test -z "$ac_cv_prog_CC"; then
3481   ac_ct_CC=$CC
3482   # Extract the first word of "gcc", so it can be a program name with args.
3483 set dummy gcc; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3487   $as_echo_n "(cached) " >&6
3488 else
3489   if test -n "$ac_ct_CC"; then
3490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495   IFS=$as_save_IFS
3496   test -z "$as_dir" && as_dir=.
3497     for ac_exec_ext in '' $ac_executable_extensions; do
3498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499     ac_cv_prog_ac_ct_CC="gcc"
3500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501     break 2
3502   fi
3503 done
3504   done
3505 IFS=$as_save_IFS
3506
3507 fi
3508 fi
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3512 $as_echo "$ac_ct_CC" >&6; }
3513 else
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 fi
3517
3518   if test "x$ac_ct_CC" = x; then
3519     CC=""
3520   else
3521     case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527     CC=$ac_ct_CC
3528   fi
3529 else
3530   CC="$ac_cv_prog_CC"
3531 fi
3532
3533 if test -z "$CC"; then
3534           if test -n "$ac_tool_prefix"; then
3535     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}cc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$CC"; then
3543   ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_prog_CC="${ac_tool_prefix}cc"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572   fi
3573 fi
3574 if test -z "$CC"; then
3575   # Extract the first word of "cc", so it can be a program name with args.
3576 set dummy cc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   if test -n "$CC"; then
3583   ac_cv_prog_CC="$CC" # Let the user override the test.
3584 else
3585   ac_prog_rejected=no
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591     for ac_exec_ext in '' $ac_executable_extensions; do
3592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3594        ac_prog_rejected=yes
3595        continue
3596      fi
3597     ac_cv_prog_CC="cc"
3598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602   done
3603 IFS=$as_save_IFS
3604
3605 if test $ac_prog_rejected = yes; then
3606   # We found a bogon in the path, so make sure we never use it.
3607   set dummy $ac_cv_prog_CC
3608   shift
3609   if test $# != 0; then
3610     # We chose a different compiler from the bogus one.
3611     # However, it has the same basename, so the bogon will be chosen
3612     # first if we set CC to just the basename; use the full file name.
3613     shift
3614     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3615   fi
3616 fi
3617 fi
3618 fi
3619 CC=$ac_cv_prog_CC
3620 if test -n "$CC"; then
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3623 else
3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628
3629 fi
3630 if test -z "$CC"; then
3631   if test -n "$ac_tool_prefix"; then
3632   for ac_prog in cl.exe
3633   do
3634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if ${ac_cv_prog_CC+:} false; then :
3639   $as_echo_n "(cached) " >&6
3640 else
3641   if test -n "$CC"; then
3642   ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647   IFS=$as_save_IFS
3648   test -z "$as_dir" && as_dir=.
3649     for ac_exec_ext in '' $ac_executable_extensions; do
3650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653     break 2
3654   fi
3655 done
3656   done
3657 IFS=$as_save_IFS
3658
3659 fi
3660 fi
3661 CC=$ac_cv_prog_CC
3662 if test -n "$CC"; then
3663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664 $as_echo "$CC" >&6; }
3665 else
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 fi
3669
3670
3671     test -n "$CC" && break
3672   done
3673 fi
3674 if test -z "$CC"; then
3675   ac_ct_CC=$CC
3676   for ac_prog in cl.exe
3677 do
3678   # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   if test -n "$ac_ct_CC"; then
3686   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693     for ac_exec_ext in '' $ac_executable_extensions; do
3694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695     ac_cv_prog_ac_ct_CC="$ac_prog"
3696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697     break 2
3698   fi
3699 done
3700   done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3706 if test -n "$ac_ct_CC"; then
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3708 $as_echo "$ac_ct_CC" >&6; }
3709 else
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714
3715   test -n "$ac_ct_CC" && break
3716 done
3717
3718   if test "x$ac_ct_CC" = x; then
3719     CC=""
3720   else
3721     case $cross_compiling:$ac_tool_warned in
3722 yes:)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned=yes ;;
3726 esac
3727     CC=$ac_ct_CC
3728   fi
3729 fi
3730
3731 fi
3732
3733
3734 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "no acceptable C compiler found in \$PATH
3737 See \`config.log' for more details" "$LINENO" 5; }
3738
3739 # Provide some information about the compiler.
3740 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3741 set X $ac_compile
3742 ac_compiler=$2
3743 for ac_option in --version -v -V -qversion; do
3744   { { ac_try="$ac_compiler $ac_option >&5"
3745 case "(($ac_try" in
3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747   *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3752   ac_status=$?
3753   if test -s conftest.err; then
3754     sed '10a\
3755 ... rest of stderr output deleted ...
3756          10q' conftest.err >conftest.er1
3757     cat conftest.er1 >&5
3758   fi
3759   rm -f conftest.er1 conftest.err
3760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761   test $ac_status = 0; }
3762 done
3763
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h.  */
3766
3767 int
3768 main ()
3769 {
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 ac_clean_files_save=$ac_clean_files
3776 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3777 # Try to create an executable without -o first, disregard a.out.
3778 # It will help us diagnose broken compilers, and finding out an intuition
3779 # of exeext.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3781 $as_echo_n "checking whether the C compiler works... " >&6; }
3782 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3783
3784 # The possible output files:
3785 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3786
3787 ac_rmfiles=
3788 for ac_file in $ac_files
3789 do
3790   case $ac_file in
3791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3793   esac
3794 done
3795 rm -f $ac_rmfiles
3796
3797 if { { ac_try="$ac_link_default"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_link_default") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; then :
3808   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3810 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3811 # so that the user can short-circuit this test for compilers unknown to
3812 # Autoconf.
3813 for ac_file in $ac_files ''
3814 do
3815   test -f "$ac_file" || continue
3816   case $ac_file in
3817     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3818         ;;
3819     [ab].out )
3820         # We found the default executable, but exeext='' is most
3821         # certainly right.
3822         break;;
3823     *.* )
3824         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3825         then :; else
3826            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3827         fi
3828         # We set ac_cv_exeext here because the later test for it is not
3829         # safe: cross compilers may not add the suffix if given an `-o'
3830         # argument, so we may need to know it at that point already.
3831         # Even if this section looks crufty: it has the advantage of
3832         # actually working.
3833         break;;
3834     * )
3835         break;;
3836   esac
3837 done
3838 test "$ac_cv_exeext" = no && ac_cv_exeext=
3839
3840 else
3841   ac_file=''
3842 fi
3843 if test -z "$ac_file"; then :
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error 77 "C compiler cannot create executables
3852 See \`config.log' for more details" "$LINENO" 5; }
3853 else
3854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3855 $as_echo "yes" >&6; }
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3858 $as_echo_n "checking for C compiler default output file name... " >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 ac_exeext=$ac_cv_exeext
3862
3863 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3864 ac_clean_files=$ac_clean_files_save
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3866 $as_echo_n "checking for suffix of executables... " >&6; }
3867 if { { ac_try="$ac_link"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874   (eval "$ac_link") 2>&5
3875   ac_status=$?
3876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877   test $ac_status = 0; }; then :
3878   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3879 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3880 # work properly (i.e., refer to `conftest.exe'), while it won't with
3881 # `rm'.
3882 for ac_file in conftest.exe conftest conftest.*; do
3883   test -f "$ac_file" || continue
3884   case $ac_file in
3885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887           break;;
3888     * ) break;;
3889   esac
3890 done
3891 else
3892   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3895 See \`config.log' for more details" "$LINENO" 5; }
3896 fi
3897 rm -f conftest conftest$ac_cv_exeext
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3899 $as_echo "$ac_cv_exeext" >&6; }
3900
3901 rm -f conftest.$ac_ext
3902 EXEEXT=$ac_cv_exeext
3903 ac_exeext=$EXEEXT
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906 #include <stdio.h>
3907 int
3908 main ()
3909 {
3910 FILE *f = fopen ("conftest.out", "w");
3911  return ferror (f) || fclose (f) != 0;
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 ac_clean_files="$ac_clean_files conftest.out"
3918 # Check that the compiler produces executables we can run.  If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3921 $as_echo_n "checking whether we are cross compiling... " >&6; }
3922 if test "$cross_compiling" != yes; then
3923   { { ac_try="$ac_link"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930   (eval "$ac_link") 2>&5
3931   ac_status=$?
3932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933   test $ac_status = 0; }
3934   if { ac_try='./conftest$ac_cv_exeext'
3935   { { case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941   (eval "$ac_try") 2>&5
3942   ac_status=$?
3943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944   test $ac_status = 0; }; }; then
3945     cross_compiling=no
3946   else
3947     if test "$cross_compiling" = maybe; then
3948         cross_compiling=yes
3949     else
3950         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error $? "cannot run C compiled programs.
3953 If you meant to cross compile, use \`--host'.
3954 See \`config.log' for more details" "$LINENO" 5; }
3955     fi
3956   fi
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3959 $as_echo "$cross_compiling" >&6; }
3960
3961 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3962 ac_clean_files=$ac_clean_files_save
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3964 $as_echo_n "checking for suffix of object files... " >&6; }
3965 if ${ac_cv_objext+:} false; then :
3966   $as_echo_n "(cached) " >&6
3967 else
3968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h.  */
3970
3971 int
3972 main ()
3973 {
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.o conftest.obj
3980 if { { ac_try="$ac_compile"
3981 case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987   (eval "$ac_compile") 2>&5
3988   ac_status=$?
3989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990   test $ac_status = 0; }; then :
3991   for ac_file in conftest.o conftest.obj conftest.*; do
3992   test -f "$ac_file" || continue;
3993   case $ac_file in
3994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3995     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3996        break;;
3997   esac
3998 done
3999 else
4000   $as_echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error $? "cannot compute suffix of object files: cannot compile
4006 See \`config.log' for more details" "$LINENO" 5; }
4007 fi
4008 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4011 $as_echo "$ac_cv_objext" >&6; }
4012 OBJEXT=$ac_cv_objext
4013 ac_objext=$OBJEXT
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4015 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4016 if ${ac_cv_c_compiler_gnu+:} false; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025 #ifndef __GNUC__
4026        choke me
4027 #endif
4028
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034   ac_compiler_gnu=yes
4035 else
4036   ac_compiler_gnu=no
4037 fi
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4040
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4043 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4044 if test $ac_compiler_gnu = yes; then
4045   GCC=yes
4046 else
4047   GCC=
4048 fi
4049 ac_test_CFLAGS=${CFLAGS+set}
4050 ac_save_CFLAGS=$CFLAGS
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4052 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4053 if ${ac_cv_prog_cc_g+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   ac_save_c_werror_flag=$ac_c_werror_flag
4057    ac_c_werror_flag=yes
4058    ac_cv_prog_cc_g=no
4059    CFLAGS="-g"
4060    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062
4063 int
4064 main ()
4065 {
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072   ac_cv_prog_cc_g=yes
4073 else
4074   CFLAGS=""
4075       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h.  */
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087
4088 else
4089   ac_c_werror_flag=$ac_save_c_werror_flag
4090          CFLAGS="-g"
4091          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103   ac_cv_prog_cc_g=yes
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110    ac_c_werror_flag=$ac_save_c_werror_flag
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4113 $as_echo "$ac_cv_prog_cc_g" >&6; }
4114 if test "$ac_test_CFLAGS" = set; then
4115   CFLAGS=$ac_save_CFLAGS
4116 elif test $ac_cv_prog_cc_g = yes; then
4117   if test "$GCC" = yes; then
4118     CFLAGS="-g -O2"
4119   else
4120     CFLAGS="-g"
4121   fi
4122 else
4123   if test "$GCC" = yes; then
4124     CFLAGS="-O2"
4125   else
4126     CFLAGS=
4127   fi
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4130 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4131 if ${ac_cv_prog_cc_c89+:} false; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   ac_cv_prog_cc_c89=no
4135 ac_save_CC=$CC
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h.  */
4138 #include <stdarg.h>
4139 #include <stdio.h>
4140 struct stat;
4141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4142 struct buf { int x; };
4143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4144 static char *e (p, i)
4145      char **p;
4146      int i;
4147 {
4148   return p[i];
4149 }
4150 static char *f (char * (*g) (char **, int), char **p, ...)
4151 {
4152   char *s;
4153   va_list v;
4154   va_start (v,p);
4155   s = g (p, va_arg (v,int));
4156   va_end (v);
4157   return s;
4158 }
4159
4160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4161    function prototypes and stuff, but not '\xHH' hex character constants.
4162    These don't provoke an error unfortunately, instead are silently treated
4163    as 'x'.  The following induces an error, until -std is added to get
4164    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4165    array size at least.  It's necessary to write '\x00'==0 to get something
4166    that's true only with -std.  */
4167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4168
4169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4170    inside strings and character constants.  */
4171 #define FOO(x) 'x'
4172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4173
4174 int test (int i, double x);
4175 struct s1 {int (*f) (int a);};
4176 struct s2 {int (*f) (double a);};
4177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4178 int argc;
4179 char **argv;
4180 int
4181 main ()
4182 {
4183 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4189         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190 do
4191   CC="$ac_save_CC $ac_arg"
4192   if ac_fn_c_try_compile "$LINENO"; then :
4193   ac_cv_prog_cc_c89=$ac_arg
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext
4196   test "x$ac_cv_prog_cc_c89" != "xno" && break
4197 done
4198 rm -f conftest.$ac_ext
4199 CC=$ac_save_CC
4200
4201 fi
4202 # AC_CACHE_VAL
4203 case "x$ac_cv_prog_cc_c89" in
4204   x)
4205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4206 $as_echo "none needed" >&6; } ;;
4207   xno)
4208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 $as_echo "unsupported" >&6; } ;;
4210   *)
4211     CC="$CC $ac_cv_prog_cc_c89"
4212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4214 esac
4215 if test "x$ac_cv_prog_cc_c89" != xno; then :
4216
4217 fi
4218
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4231 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4232 if ${am_cv_prog_cc_c_o+:} false; then :
4233   $as_echo_n "(cached) " >&6
4234 else
4235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246   # Make sure it works both with $CC and with simple cc.
4247   # Following AC_PROG_CC_C_O, we do the test twice because some
4248   # compilers refuse to overwrite an existing .o file with -o,
4249   # though they will create one.
4250   am_cv_prog_cc_c_o=yes
4251   for am_i in 1 2; do
4252     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4253    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4254    ac_status=$?
4255    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256    (exit $ac_status); } \
4257          && test -f conftest2.$ac_objext; then
4258       : OK
4259     else
4260       am_cv_prog_cc_c_o=no
4261       break
4262     fi
4263   done
4264   rm -f core conftest*
4265   unset am_i
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4268 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4269 if test "$am_cv_prog_cc_c_o" != yes; then
4270    # Losing compiler, so override with the script.
4271    # FIXME: It is wrong to rewrite CC.
4272    # But if we don't then we get into trouble of one sort or another.
4273    # A longer-term fix would be to have automake use am__CC in this case,
4274    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4275    CC="$am_aux_dir/compile $CC"
4276 fi
4277 ac_ext=c
4278 ac_cpp='$CPP $CPPFLAGS'
4279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
4283
4284 depcc="$CC"   am_compiler_list=
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4287 $as_echo_n "checking dependency style of $depcc... " >&6; }
4288 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4292   # We make a subdir and do the tests there.  Otherwise we can end up
4293   # making bogus files that we don't know about and never remove.  For
4294   # instance it was reported that on HP-UX the gcc test will end up
4295   # making a dummy file named 'D' -- because '-MD' means "put the output
4296   # in D".
4297   rm -rf conftest.dir
4298   mkdir conftest.dir
4299   # Copy depcomp to subdir because otherwise we won't find it if we're
4300   # using a relative directory.
4301   cp "$am_depcomp" conftest.dir
4302   cd conftest.dir
4303   # We will build objects and dependencies in a subdirectory because
4304   # it helps to detect inapplicable dependency modes.  For instance
4305   # both Tru64's cc and ICC support -MD to output dependencies as a
4306   # side effect of compilation, but ICC will put the dependencies in
4307   # the current directory while Tru64 will put them in the object
4308   # directory.
4309   mkdir sub
4310
4311   am_cv_CC_dependencies_compiler_type=none
4312   if test "$am_compiler_list" = ""; then
4313      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4314   fi
4315   am__universal=false
4316   case " $depcc " in #(
4317      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4318      esac
4319
4320   for depmode in $am_compiler_list; do
4321     # Setup a source with many dependencies, because some compilers
4322     # like to wrap large dependency lists on column 80 (with \), and
4323     # we should not choose a depcomp mode which is confused by this.
4324     #
4325     # We need to recreate these files for each test, as the compiler may
4326     # overwrite some of them when testing with obscure command lines.
4327     # This happens at least with the AIX C compiler.
4328     : > sub/conftest.c
4329     for i in 1 2 3 4 5 6; do
4330       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4331       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4332       # Solaris 10 /bin/sh.
4333       echo '/* dummy */' > sub/conftst$i.h
4334     done
4335     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4336
4337     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4338     # mode.  It turns out that the SunPro C++ compiler does not properly
4339     # handle '-M -o', and we need to detect this.  Also, some Intel
4340     # versions had trouble with output in subdirs.
4341     am__obj=sub/conftest.${OBJEXT-o}
4342     am__minus_obj="-o $am__obj"
4343     case $depmode in
4344     gcc)
4345       # This depmode causes a compiler race in universal mode.
4346       test "$am__universal" = false || continue
4347       ;;
4348     nosideeffect)
4349       # After this tag, mechanisms are not by side-effect, so they'll
4350       # only be used when explicitly requested.
4351       if test "x$enable_dependency_tracking" = xyes; then
4352         continue
4353       else
4354         break
4355       fi
4356       ;;
4357     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4358       # This compiler won't grok '-c -o', but also, the minuso test has
4359       # not run yet.  These depmodes are late enough in the game, and
4360       # so weak that their functioning should not be impacted.
4361       am__obj=conftest.${OBJEXT-o}
4362       am__minus_obj=
4363       ;;
4364     none) break ;;
4365     esac
4366     if depmode=$depmode \
4367        source=sub/conftest.c object=$am__obj \
4368        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4369        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4370          >/dev/null 2>conftest.err &&
4371        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4372        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4373        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4374        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4375       # icc doesn't choke on unknown options, it will just issue warnings
4376       # or remarks (even with -Werror).  So we grep stderr for any message
4377       # that says an option was ignored or not supported.
4378       # When given -MP, icc 7.0 and 7.1 complain thusly:
4379       #   icc: Command line warning: ignoring option '-M'; no argument required
4380       # The diagnosis changed in icc 8.0:
4381       #   icc: Command line remark: option '-MP' not supported
4382       if (grep 'ignoring option' conftest.err ||
4383           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4384         am_cv_CC_dependencies_compiler_type=$depmode
4385         break
4386       fi
4387     fi
4388   done
4389
4390   cd ..
4391   rm -rf conftest.dir
4392 else
4393   am_cv_CC_dependencies_compiler_type=none
4394 fi
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4398 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4399 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4400
4401  if
4402   test "x$enable_dependency_tracking" != xno \
4403   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4404   am__fastdepCC_TRUE=
4405   am__fastdepCC_FALSE='#'
4406 else
4407   am__fastdepCC_TRUE='#'
4408   am__fastdepCC_FALSE=
4409 fi
4410
4411
4412
4413 ac_ext=c
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4420 # On Suns, sometimes $CPP names a directory.
4421 if test -n "$CPP" && test -d "$CPP"; then
4422   CPP=
4423 fi
4424 if test -z "$CPP"; then
4425   if ${ac_cv_prog_CPP+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428       # Double quotes because CPP needs to be expanded
4429     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4430     do
4431       ac_preproc_ok=false
4432 for ac_c_preproc_warn_flag in '' yes
4433 do
4434   # Use a header file that comes with gcc, so configuring glibc
4435   # with a fresh cross-compiler works.
4436   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4437   # <limits.h> exists even on freestanding compilers.
4438   # On the NeXT, cc -E runs the code through the compiler's parser,
4439   # not just through cpp. "Syntax error" is here to catch this case.
4440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h.  */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4447                      Syntax error
4448 _ACEOF
4449 if ac_fn_c_try_cpp "$LINENO"; then :
4450
4451 else
4452   # Broken: fails on valid input.
4453 continue
4454 fi
4455 rm -f conftest.err conftest.i conftest.$ac_ext
4456
4457   # OK, works on sane cases.  Now check whether nonexistent headers
4458   # can be detected and how.
4459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h.  */
4461 #include <ac_nonexistent.h>
4462 _ACEOF
4463 if ac_fn_c_try_cpp "$LINENO"; then :
4464   # Broken: success on invalid input.
4465 continue
4466 else
4467   # Passes both tests.
4468 ac_preproc_ok=:
4469 break
4470 fi
4471 rm -f conftest.err conftest.i conftest.$ac_ext
4472
4473 done
4474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4475 rm -f conftest.i conftest.err conftest.$ac_ext
4476 if $ac_preproc_ok; then :
4477   break
4478 fi
4479
4480     done
4481     ac_cv_prog_CPP=$CPP
4482
4483 fi
4484   CPP=$ac_cv_prog_CPP
4485 else
4486   ac_cv_prog_CPP=$CPP
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4489 $as_echo "$CPP" >&6; }
4490 ac_preproc_ok=false
4491 for ac_c_preproc_warn_flag in '' yes
4492 do
4493   # Use a header file that comes with gcc, so configuring glibc
4494   # with a fresh cross-compiler works.
4495   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4496   # <limits.h> exists even on freestanding compilers.
4497   # On the NeXT, cc -E runs the code through the compiler's parser,
4498   # not just through cpp. "Syntax error" is here to catch this case.
4499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501 #ifdef __STDC__
4502 # include <limits.h>
4503 #else
4504 # include <assert.h>
4505 #endif
4506                      Syntax error
4507 _ACEOF
4508 if ac_fn_c_try_cpp "$LINENO"; then :
4509
4510 else
4511   # Broken: fails on valid input.
4512 continue
4513 fi
4514 rm -f conftest.err conftest.i conftest.$ac_ext
4515
4516   # OK, works on sane cases.  Now check whether nonexistent headers
4517   # can be detected and how.
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520 #include <ac_nonexistent.h>
4521 _ACEOF
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4523   # Broken: success on invalid input.
4524 continue
4525 else
4526   # Passes both tests.
4527 ac_preproc_ok=:
4528 break
4529 fi
4530 rm -f conftest.err conftest.i conftest.$ac_ext
4531
4532 done
4533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4534 rm -f conftest.i conftest.err conftest.$ac_ext
4535 if $ac_preproc_ok; then :
4536
4537 else
4538   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4540 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4541 See \`config.log' for more details" "$LINENO" 5; }
4542 fi
4543
4544 ac_ext=c
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4553 if ${ac_cv_path_GREP+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -z "$GREP"; then
4557   ac_path_GREP_found=false
4558   # Loop through the user's path and test for each of PROGNAME-LIST
4559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_prog in grep ggrep; do
4565     for ac_exec_ext in '' $ac_executable_extensions; do
4566       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4567       as_fn_executable_p "$ac_path_GREP" || continue
4568 # Check for GNU ac_path_GREP and select it if it is found.
4569   # Check for GNU $ac_path_GREP
4570 case `"$ac_path_GREP" --version 2>&1` in
4571 *GNU*)
4572   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4573 *)
4574   ac_count=0
4575   $as_echo_n 0123456789 >"conftest.in"
4576   while :
4577   do
4578     cat "conftest.in" "conftest.in" >"conftest.tmp"
4579     mv "conftest.tmp" "conftest.in"
4580     cp "conftest.in" "conftest.nl"
4581     $as_echo 'GREP' >> "conftest.nl"
4582     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584     as_fn_arith $ac_count + 1 && ac_count=$as_val
4585     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4586       # Best one so far, save it but keep looking for a better one
4587       ac_cv_path_GREP="$ac_path_GREP"
4588       ac_path_GREP_max=$ac_count
4589     fi
4590     # 10*(2^10) chars as input seems more than enough
4591     test $ac_count -gt 10 && break
4592   done
4593   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4594 esac
4595
4596       $ac_path_GREP_found && break 3
4597     done
4598   done
4599   done
4600 IFS=$as_save_IFS
4601   if test -z "$ac_cv_path_GREP"; then
4602     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603   fi
4604 else
4605   ac_cv_path_GREP=$GREP
4606 fi
4607
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4610 $as_echo "$ac_cv_path_GREP" >&6; }
4611  GREP="$ac_cv_path_GREP"
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4615 $as_echo_n "checking for egrep... " >&6; }
4616 if ${ac_cv_path_EGREP+:} false; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4620    then ac_cv_path_EGREP="$GREP -E"
4621    else
4622      if test -z "$EGREP"; then
4623   ac_path_EGREP_found=false
4624   # Loop through the user's path and test for each of PROGNAME-LIST
4625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630     for ac_prog in egrep; do
4631     for ac_exec_ext in '' $ac_executable_extensions; do
4632       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4633       as_fn_executable_p "$ac_path_EGREP" || continue
4634 # Check for GNU ac_path_EGREP and select it if it is found.
4635   # Check for GNU $ac_path_EGREP
4636 case `"$ac_path_EGREP" --version 2>&1` in
4637 *GNU*)
4638   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4639 *)
4640   ac_count=0
4641   $as_echo_n 0123456789 >"conftest.in"
4642   while :
4643   do
4644     cat "conftest.in" "conftest.in" >"conftest.tmp"
4645     mv "conftest.tmp" "conftest.in"
4646     cp "conftest.in" "conftest.nl"
4647     $as_echo 'EGREP' >> "conftest.nl"
4648     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650     as_fn_arith $ac_count + 1 && ac_count=$as_val
4651     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4652       # Best one so far, save it but keep looking for a better one
4653       ac_cv_path_EGREP="$ac_path_EGREP"
4654       ac_path_EGREP_max=$ac_count
4655     fi
4656     # 10*(2^10) chars as input seems more than enough
4657     test $ac_count -gt 10 && break
4658   done
4659   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4661
4662       $ac_path_EGREP_found && break 3
4663     done
4664   done
4665   done
4666 IFS=$as_save_IFS
4667   if test -z "$ac_cv_path_EGREP"; then
4668     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669   fi
4670 else
4671   ac_cv_path_EGREP=$EGREP
4672 fi
4673
4674    fi
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4677 $as_echo "$ac_cv_path_EGREP" >&6; }
4678  EGREP="$ac_cv_path_EGREP"
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4682 $as_echo_n "checking for ANSI C header files... " >&6; }
4683 if ${ac_cv_header_stdc+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h.  */
4688 #include <stdlib.h>
4689 #include <stdarg.h>
4690 #include <string.h>
4691 #include <float.h>
4692
4693 int
4694 main ()
4695 {
4696
4697   ;
4698   return 0;
4699 }
4700 _ACEOF
4701 if ac_fn_c_try_compile "$LINENO"; then :
4702   ac_cv_header_stdc=yes
4703 else
4704   ac_cv_header_stdc=no
4705 fi
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707
4708 if test $ac_cv_header_stdc = yes; then
4709   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h.  */
4712 #include <string.h>
4713
4714 _ACEOF
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716   $EGREP "memchr" >/dev/null 2>&1; then :
4717
4718 else
4719   ac_cv_header_stdc=no
4720 fi
4721 rm -f conftest*
4722
4723 fi
4724
4725 if test $ac_cv_header_stdc = yes; then
4726   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #include <stdlib.h>
4730
4731 _ACEOF
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733   $EGREP "free" >/dev/null 2>&1; then :
4734
4735 else
4736   ac_cv_header_stdc=no
4737 fi
4738 rm -f conftest*
4739
4740 fi
4741
4742 if test $ac_cv_header_stdc = yes; then
4743   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4744   if test "$cross_compiling" = yes; then :
4745   :
4746 else
4747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h.  */
4749 #include <ctype.h>
4750 #include <stdlib.h>
4751 #if ((' ' & 0x0FF) == 0x020)
4752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4754 #else
4755 # define ISLOWER(c) \
4756                    (('a' <= (c) && (c) <= 'i') \
4757                      || ('j' <= (c) && (c) <= 'r') \
4758                      || ('s' <= (c) && (c) <= 'z'))
4759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4760 #endif
4761
4762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4763 int
4764 main ()
4765 {
4766   int i;
4767   for (i = 0; i < 256; i++)
4768     if (XOR (islower (i), ISLOWER (i))
4769         || toupper (i) != TOUPPER (i))
4770       return 2;
4771   return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_run "$LINENO"; then :
4775
4776 else
4777   ac_cv_header_stdc=no
4778 fi
4779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4780   conftest.$ac_objext conftest.beam conftest.$ac_ext
4781 fi
4782
4783 fi
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4786 $as_echo "$ac_cv_header_stdc" >&6; }
4787 if test $ac_cv_header_stdc = yes; then
4788
4789 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4790
4791 fi
4792
4793 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4795                   inttypes.h stdint.h unistd.h
4796 do :
4797   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4798 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4799 "
4800 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4801   cat >>confdefs.h <<_ACEOF
4802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4803 _ACEOF
4804
4805 fi
4806
4807 done
4808
4809
4810
4811   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4812 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4813   MINIX=yes
4814 else
4815   MINIX=
4816 fi
4817
4818
4819   if test "$MINIX" = yes; then
4820
4821 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4822
4823
4824 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4825
4826
4827 $as_echo "#define _MINIX 1" >>confdefs.h
4828
4829   fi
4830
4831
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h.  */
4839
4840 #         define __EXTENSIONS__ 1
4841           $ac_includes_default
4842 int
4843 main ()
4844 {
4845
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851   ac_cv_safe_to_define___extensions__=yes
4852 else
4853   ac_cv_safe_to_define___extensions__=no
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4859   test $ac_cv_safe_to_define___extensions__ = yes &&
4860     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4861
4862   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4863
4864   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4865
4866   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4867
4868   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4869
4870
4871
4872
4873 ac_ext=c
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 if test -n "$ac_tool_prefix"; then
4879   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_CC+:} false; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   if test -n "$CC"; then
4887   ac_cv_prog_CC="$CC" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892   IFS=$as_save_IFS
4893   test -z "$as_dir" && as_dir=.
4894     for ac_exec_ext in '' $ac_executable_extensions; do
4895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898     break 2
4899   fi
4900 done
4901   done
4902 IFS=$as_save_IFS
4903
4904 fi
4905 fi
4906 CC=$ac_cv_prog_CC
4907 if test -n "$CC"; then
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4909 $as_echo "$CC" >&6; }
4910 else
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915
4916 fi
4917 if test -z "$ac_cv_prog_CC"; then
4918   ac_ct_CC=$CC
4919   # Extract the first word of "gcc", so it can be a program name with args.
4920 set dummy gcc; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   if test -n "$ac_ct_CC"; then
4927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_prog_ac_ct_CC="gcc"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4947 if test -n "$ac_ct_CC"; then
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4949 $as_echo "$ac_ct_CC" >&6; }
4950 else
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955   if test "x$ac_ct_CC" = x; then
4956     CC=""
4957   else
4958     case $cross_compiling:$ac_tool_warned in
4959 yes:)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4963 esac
4964     CC=$ac_ct_CC
4965   fi
4966 else
4967   CC="$ac_cv_prog_CC"
4968 fi
4969
4970 if test -z "$CC"; then
4971           if test -n "$ac_tool_prefix"; then
4972     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4973 set dummy ${ac_tool_prefix}cc; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_prog_CC+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   if test -n "$CC"; then
4980   ac_cv_prog_CC="$CC" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987     for ac_exec_ext in '' $ac_executable_extensions; do
4988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989     ac_cv_prog_CC="${ac_tool_prefix}cc"
4990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994   done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 CC=$ac_cv_prog_CC
5000 if test -n "$CC"; then
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5002 $as_echo "$CC" >&6; }
5003 else
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009   fi
5010 fi
5011 if test -z "$CC"; then
5012   # Extract the first word of "cc", so it can be a program name with args.
5013 set dummy cc; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_CC+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if test -n "$CC"; then
5020   ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022   ac_prog_rejected=no
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5031        ac_prog_rejected=yes
5032        continue
5033      fi
5034     ac_cv_prog_CC="cc"
5035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039   done
5040 IFS=$as_save_IFS
5041
5042 if test $ac_prog_rejected = yes; then
5043   # We found a bogon in the path, so make sure we never use it.
5044   set dummy $ac_cv_prog_CC
5045   shift
5046   if test $# != 0; then
5047     # We chose a different compiler from the bogus one.
5048     # However, it has the same basename, so the bogon will be chosen
5049     # first if we set CC to just the basename; use the full file name.
5050     shift
5051     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5052   fi
5053 fi
5054 fi
5055 fi
5056 CC=$ac_cv_prog_CC
5057 if test -n "$CC"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5059 $as_echo "$CC" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066 fi
5067 if test -z "$CC"; then
5068   if test -n "$ac_tool_prefix"; then
5069   for ac_prog in cl.exe
5070   do
5071     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_CC+:} false; then :
5076   $as_echo_n "(cached) " >&6
5077 else
5078   if test -n "$CC"; then
5079   ac_cv_prog_CC="$CC" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086     for ac_exec_ext in '' $ac_executable_extensions; do
5087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093   done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 CC=$ac_cv_prog_CC
5099 if test -n "$CC"; then
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101 $as_echo "$CC" >&6; }
5102 else
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108     test -n "$CC" && break
5109   done
5110 fi
5111 if test -z "$CC"; then
5112   ac_ct_CC=$CC
5113   for ac_prog in cl.exe
5114 do
5115   # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$ac_ct_CC"; then
5123   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_prog_ac_ct_CC="$ac_prog"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5143 if test -n "$ac_ct_CC"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5145 $as_echo "$ac_ct_CC" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152   test -n "$ac_ct_CC" && break
5153 done
5154
5155   if test "x$ac_ct_CC" = x; then
5156     CC=""
5157   else
5158     case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164     CC=$ac_ct_CC
5165   fi
5166 fi
5167
5168 fi
5169
5170
5171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error $? "no acceptable C compiler found in \$PATH
5174 See \`config.log' for more details" "$LINENO" 5; }
5175
5176 # Provide some information about the compiler.
5177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5178 set X $ac_compile
5179 ac_compiler=$2
5180 for ac_option in --version -v -V -qversion; do
5181   { { ac_try="$ac_compiler $ac_option >&5"
5182 case "(($ac_try" in
5183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184   *) ac_try_echo=$ac_try;;
5185 esac
5186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5187 $as_echo "$ac_try_echo"; } >&5
5188   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5189   ac_status=$?
5190   if test -s conftest.err; then
5191     sed '10a\
5192 ... rest of stderr output deleted ...
5193          10q' conftest.err >conftest.er1
5194     cat conftest.er1 >&5
5195   fi
5196   rm -f conftest.er1 conftest.err
5197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198   test $ac_status = 0; }
5199 done
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5203 if ${ac_cv_c_compiler_gnu+:} false; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h.  */
5208
5209 int
5210 main ()
5211 {
5212 #ifndef __GNUC__
5213        choke me
5214 #endif
5215
5216   ;
5217   return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221   ac_compiler_gnu=yes
5222 else
5223   ac_compiler_gnu=no
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5227
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5231 if test $ac_compiler_gnu = yes; then
5232   GCC=yes
5233 else
5234   GCC=
5235 fi
5236 ac_test_CFLAGS=${CFLAGS+set}
5237 ac_save_CFLAGS=$CFLAGS
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5240 if ${ac_cv_prog_cc_g+:} false; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   ac_save_c_werror_flag=$ac_c_werror_flag
5244    ac_c_werror_flag=yes
5245    ac_cv_prog_cc_g=no
5246    CFLAGS="-g"
5247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h.  */
5249
5250 int
5251 main ()
5252 {
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259   ac_cv_prog_cc_g=yes
5260 else
5261   CFLAGS=""
5262       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264
5265 int
5266 main ()
5267 {
5268
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274
5275 else
5276   ac_c_werror_flag=$ac_save_c_werror_flag
5277          CFLAGS="-g"
5278          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h.  */
5280
5281 int
5282 main ()
5283 {
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"; then :
5290   ac_cv_prog_cc_g=yes
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297    ac_c_werror_flag=$ac_save_c_werror_flag
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5300 $as_echo "$ac_cv_prog_cc_g" >&6; }
5301 if test "$ac_test_CFLAGS" = set; then
5302   CFLAGS=$ac_save_CFLAGS
5303 elif test $ac_cv_prog_cc_g = yes; then
5304   if test "$GCC" = yes; then
5305     CFLAGS="-g -O2"
5306   else
5307     CFLAGS="-g"
5308   fi
5309 else
5310   if test "$GCC" = yes; then
5311     CFLAGS="-O2"
5312   else
5313     CFLAGS=
5314   fi
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5318 if ${ac_cv_prog_cc_c89+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   ac_cv_prog_cc_c89=no
5322 ac_save_CC=$CC
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325 #include <stdarg.h>
5326 #include <stdio.h>
5327 struct stat;
5328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5329 struct buf { int x; };
5330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5331 static char *e (p, i)
5332      char **p;
5333      int i;
5334 {
5335   return p[i];
5336 }
5337 static char *f (char * (*g) (char **, int), char **p, ...)
5338 {
5339   char *s;
5340   va_list v;
5341   va_start (v,p);
5342   s = g (p, va_arg (v,int));
5343   va_end (v);
5344   return s;
5345 }
5346
5347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5348    function prototypes and stuff, but not '\xHH' hex character constants.
5349    These don't provoke an error unfortunately, instead are silently treated
5350    as 'x'.  The following induces an error, until -std is added to get
5351    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5352    array size at least.  It's necessary to write '\x00'==0 to get something
5353    that's true only with -std.  */
5354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5355
5356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5357    inside strings and character constants.  */
5358 #define FOO(x) 'x'
5359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5360
5361 int test (int i, double x);
5362 struct s1 {int (*f) (int a);};
5363 struct s2 {int (*f) (double a);};
5364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5365 int argc;
5366 char **argv;
5367 int
5368 main ()
5369 {
5370 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5376         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5377 do
5378   CC="$ac_save_CC $ac_arg"
5379   if ac_fn_c_try_compile "$LINENO"; then :
5380   ac_cv_prog_cc_c89=$ac_arg
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext
5383   test "x$ac_cv_prog_cc_c89" != "xno" && break
5384 done
5385 rm -f conftest.$ac_ext
5386 CC=$ac_save_CC
5387
5388 fi
5389 # AC_CACHE_VAL
5390 case "x$ac_cv_prog_cc_c89" in
5391   x)
5392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5393 $as_echo "none needed" >&6; } ;;
5394   xno)
5395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5396 $as_echo "unsupported" >&6; } ;;
5397   *)
5398     CC="$CC $ac_cv_prog_cc_c89"
5399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5401 esac
5402 if test "x$ac_cv_prog_cc_c89" != xno; then :
5403
5404 fi
5405
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412 ac_ext=c
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5418 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5419 if ${am_cv_prog_cc_c_o+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h.  */
5424
5425 int
5426 main ()
5427 {
5428
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433   # Make sure it works both with $CC and with simple cc.
5434   # Following AC_PROG_CC_C_O, we do the test twice because some
5435   # compilers refuse to overwrite an existing .o file with -o,
5436   # though they will create one.
5437   am_cv_prog_cc_c_o=yes
5438   for am_i in 1 2; do
5439     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5440    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5441    ac_status=$?
5442    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443    (exit $ac_status); } \
5444          && test -f conftest2.$ac_objext; then
5445       : OK
5446     else
5447       am_cv_prog_cc_c_o=no
5448       break
5449     fi
5450   done
5451   rm -f core conftest*
5452   unset am_i
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5455 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5456 if test "$am_cv_prog_cc_c_o" != yes; then
5457    # Losing compiler, so override with the script.
5458    # FIXME: It is wrong to rewrite CC.
5459    # But if we don't then we get into trouble of one sort or another.
5460    # A longer-term fix would be to have automake use am__CC in this case,
5461    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5462    CC="$am_aux_dir/compile $CC"
5463 fi
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470
5471 depcc="$CC"   am_compiler_list=
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5474 $as_echo_n "checking dependency style of $depcc... " >&6; }
5475 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5479   # We make a subdir and do the tests there.  Otherwise we can end up
5480   # making bogus files that we don't know about and never remove.  For
5481   # instance it was reported that on HP-UX the gcc test will end up
5482   # making a dummy file named 'D' -- because '-MD' means "put the output
5483   # in D".
5484   rm -rf conftest.dir
5485   mkdir conftest.dir
5486   # Copy depcomp to subdir because otherwise we won't find it if we're
5487   # using a relative directory.
5488   cp "$am_depcomp" conftest.dir
5489   cd conftest.dir
5490   # We will build objects and dependencies in a subdirectory because
5491   # it helps to detect inapplicable dependency modes.  For instance
5492   # both Tru64's cc and ICC support -MD to output dependencies as a
5493   # side effect of compilation, but ICC will put the dependencies in
5494   # the current directory while Tru64 will put them in the object
5495   # directory.
5496   mkdir sub
5497
5498   am_cv_CC_dependencies_compiler_type=none
5499   if test "$am_compiler_list" = ""; then
5500      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5501   fi
5502   am__universal=false
5503   case " $depcc " in #(
5504      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5505      esac
5506
5507   for depmode in $am_compiler_list; do
5508     # Setup a source with many dependencies, because some compilers
5509     # like to wrap large dependency lists on column 80 (with \), and
5510     # we should not choose a depcomp mode which is confused by this.
5511     #
5512     # We need to recreate these files for each test, as the compiler may
5513     # overwrite some of them when testing with obscure command lines.
5514     # This happens at least with the AIX C compiler.
5515     : > sub/conftest.c
5516     for i in 1 2 3 4 5 6; do
5517       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5518       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5519       # Solaris 10 /bin/sh.
5520       echo '/* dummy */' > sub/conftst$i.h
5521     done
5522     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5523
5524     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5525     # mode.  It turns out that the SunPro C++ compiler does not properly
5526     # handle '-M -o', and we need to detect this.  Also, some Intel
5527     # versions had trouble with output in subdirs.
5528     am__obj=sub/conftest.${OBJEXT-o}
5529     am__minus_obj="-o $am__obj"
5530     case $depmode in
5531     gcc)
5532       # This depmode causes a compiler race in universal mode.
5533       test "$am__universal" = false || continue
5534       ;;
5535     nosideeffect)
5536       # After this tag, mechanisms are not by side-effect, so they'll
5537       # only be used when explicitly requested.
5538       if test "x$enable_dependency_tracking" = xyes; then
5539         continue
5540       else
5541         break
5542       fi
5543       ;;
5544     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5545       # This compiler won't grok '-c -o', but also, the minuso test has
5546       # not run yet.  These depmodes are late enough in the game, and
5547       # so weak that their functioning should not be impacted.
5548       am__obj=conftest.${OBJEXT-o}
5549       am__minus_obj=
5550       ;;
5551     none) break ;;
5552     esac
5553     if depmode=$depmode \
5554        source=sub/conftest.c object=$am__obj \
5555        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5556        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5557          >/dev/null 2>conftest.err &&
5558        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5559        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5560        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5561        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5562       # icc doesn't choke on unknown options, it will just issue warnings
5563       # or remarks (even with -Werror).  So we grep stderr for any message
5564       # that says an option was ignored or not supported.
5565       # When given -MP, icc 7.0 and 7.1 complain thusly:
5566       #   icc: Command line warning: ignoring option '-M'; no argument required
5567       # The diagnosis changed in icc 8.0:
5568       #   icc: Command line remark: option '-MP' not supported
5569       if (grep 'ignoring option' conftest.err ||
5570           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5571         am_cv_CC_dependencies_compiler_type=$depmode
5572         break
5573       fi
5574     fi
5575   done
5576
5577   cd ..
5578   rm -rf conftest.dir
5579 else
5580   am_cv_CC_dependencies_compiler_type=none
5581 fi
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5587
5588  if
5589   test "x$enable_dependency_tracking" != xno \
5590   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5591   am__fastdepCC_TRUE=
5592   am__fastdepCC_FALSE='#'
5593 else
5594   am__fastdepCC_TRUE='#'
5595   am__fastdepCC_FALSE=
5596 fi
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5602 $as_echo_n "checking whether ln -s works... " >&6; }
5603 LN_S=$as_ln_s
5604 if test "$LN_S" = "ln -s"; then
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606 $as_echo "yes" >&6; }
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5609 $as_echo "no, using $LN_S" >&6; }
5610 fi
5611
5612
5613
5614
5615
5616
5617
5618
5619 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5620         if test -n "$ac_tool_prefix"; then
5621   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5622 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   case $PKG_CONFIG in
5629   [\\/]* | ?:[\\/]*)
5630   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5631   ;;
5632   *)
5633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638     for ac_exec_ext in '' $ac_executable_extensions; do
5639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645   done
5646 IFS=$as_save_IFS
5647
5648   ;;
5649 esac
5650 fi
5651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5652 if test -n "$PKG_CONFIG"; then
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5654 $as_echo "$PKG_CONFIG" >&6; }
5655 else
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5658 fi
5659
5660
5661 fi
5662 if test -z "$ac_cv_path_PKG_CONFIG"; then
5663   ac_pt_PKG_CONFIG=$PKG_CONFIG
5664   # Extract the first word of "pkg-config", so it can be a program name with args.
5665 set dummy pkg-config; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   case $ac_pt_PKG_CONFIG in
5672   [\\/]* | ?:[\\/]*)
5673   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5674   ;;
5675   *)
5676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681     for ac_exec_ext in '' $ac_executable_extensions; do
5682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688   done
5689 IFS=$as_save_IFS
5690
5691   ;;
5692 esac
5693 fi
5694 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5695 if test -n "$ac_pt_PKG_CONFIG"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5697 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703   if test "x$ac_pt_PKG_CONFIG" = x; then
5704     PKG_CONFIG=""
5705   else
5706     case $cross_compiling:$ac_tool_warned in
5707 yes:)
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710 ac_tool_warned=yes ;;
5711 esac
5712     PKG_CONFIG=$ac_pt_PKG_CONFIG
5713   fi
5714 else
5715   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5716 fi
5717
5718 fi
5719 if test -n "$PKG_CONFIG"; then
5720         _pkg_min_version=0.9.0
5721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5722 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5723         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5724                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5726         else
5727                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729                 PKG_CONFIG=""
5730         fi
5731 fi
5732
5733 case `pwd` in
5734   *\ * | *\     *)
5735     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5736 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5737 esac
5738
5739
5740
5741 macro_version='2.4.6'
5742 macro_revision='2.4.6'
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 ltmain=$ac_aux_dir/ltmain.sh
5757
5758 # Backslashify metacharacters that are still active within
5759 # double-quoted strings.
5760 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5761
5762 # Same as above, but do not quote variable references.
5763 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5764
5765 # Sed substitution to delay expansion of an escaped shell variable in a
5766 # double_quote_subst'ed string.
5767 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5768
5769 # Sed substitution to delay expansion of an escaped single quote.
5770 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5771
5772 # Sed substitution to avoid accidental globbing in evaled expressions
5773 no_glob_subst='s/\*/\\\*/g'
5774
5775 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5776 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5777 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5780 $as_echo_n "checking how to print strings... " >&6; }
5781 # Test print first, because it will be a builtin if present.
5782 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5783    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5784   ECHO='print -r --'
5785 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5786   ECHO='printf %s\n'
5787 else
5788   # Use this function as a fallback that always works.
5789   func_fallback_echo ()
5790   {
5791     eval 'cat <<_LTECHO_EOF
5792 $1
5793 _LTECHO_EOF'
5794   }
5795   ECHO='func_fallback_echo'
5796 fi
5797
5798 # func_echo_all arg...
5799 # Invoke $ECHO with all args, space-separated.
5800 func_echo_all ()
5801 {
5802     $ECHO ""
5803 }
5804
5805 case $ECHO in
5806   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5807 $as_echo "printf" >&6; } ;;
5808   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5809 $as_echo "print -r" >&6; } ;;
5810   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5811 $as_echo "cat" >&6; } ;;
5812 esac
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5828 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5829 if ${ac_cv_path_SED+:} false; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5833      for ac_i in 1 2 3 4 5 6 7; do
5834        ac_script="$ac_script$as_nl$ac_script"
5835      done
5836      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5837      { ac_script=; unset ac_script;}
5838      if test -z "$SED"; then
5839   ac_path_SED_found=false
5840   # Loop through the user's path and test for each of PROGNAME-LIST
5841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846     for ac_prog in sed gsed; do
5847     for ac_exec_ext in '' $ac_executable_extensions; do
5848       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5849       as_fn_executable_p "$ac_path_SED" || continue
5850 # Check for GNU ac_path_SED and select it if it is found.
5851   # Check for GNU $ac_path_SED
5852 case `"$ac_path_SED" --version 2>&1` in
5853 *GNU*)
5854   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5855 *)
5856   ac_count=0
5857   $as_echo_n 0123456789 >"conftest.in"
5858   while :
5859   do
5860     cat "conftest.in" "conftest.in" >"conftest.tmp"
5861     mv "conftest.tmp" "conftest.in"
5862     cp "conftest.in" "conftest.nl"
5863     $as_echo '' >> "conftest.nl"
5864     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5865     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5866     as_fn_arith $ac_count + 1 && ac_count=$as_val
5867     if test $ac_count -gt ${ac_path_SED_max-0}; then
5868       # Best one so far, save it but keep looking for a better one
5869       ac_cv_path_SED="$ac_path_SED"
5870       ac_path_SED_max=$ac_count
5871     fi
5872     # 10*(2^10) chars as input seems more than enough
5873     test $ac_count -gt 10 && break
5874   done
5875   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5876 esac
5877
5878       $ac_path_SED_found && break 3
5879     done
5880   done
5881   done
5882 IFS=$as_save_IFS
5883   if test -z "$ac_cv_path_SED"; then
5884     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5885   fi
5886 else
5887   ac_cv_path_SED=$SED
5888 fi
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5892 $as_echo "$ac_cv_path_SED" >&6; }
5893  SED="$ac_cv_path_SED"
5894   rm -f conftest.sed
5895
5896 test -z "$SED" && SED=sed
5897 Xsed="$SED -e 1s/^X//"
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5910 $as_echo_n "checking for fgrep... " >&6; }
5911 if ${ac_cv_path_FGREP+:} false; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5915    then ac_cv_path_FGREP="$GREP -F"
5916    else
5917      if test -z "$FGREP"; then
5918   ac_path_FGREP_found=false
5919   # Loop through the user's path and test for each of PROGNAME-LIST
5920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_prog in fgrep; do
5926     for ac_exec_ext in '' $ac_executable_extensions; do
5927       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5928       as_fn_executable_p "$ac_path_FGREP" || continue
5929 # Check for GNU ac_path_FGREP and select it if it is found.
5930   # Check for GNU $ac_path_FGREP
5931 case `"$ac_path_FGREP" --version 2>&1` in
5932 *GNU*)
5933   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5934 *)
5935   ac_count=0
5936   $as_echo_n 0123456789 >"conftest.in"
5937   while :
5938   do
5939     cat "conftest.in" "conftest.in" >"conftest.tmp"
5940     mv "conftest.tmp" "conftest.in"
5941     cp "conftest.in" "conftest.nl"
5942     $as_echo 'FGREP' >> "conftest.nl"
5943     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5944     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5945     as_fn_arith $ac_count + 1 && ac_count=$as_val
5946     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5947       # Best one so far, save it but keep looking for a better one
5948       ac_cv_path_FGREP="$ac_path_FGREP"
5949       ac_path_FGREP_max=$ac_count
5950     fi
5951     # 10*(2^10) chars as input seems more than enough
5952     test $ac_count -gt 10 && break
5953   done
5954   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5955 esac
5956
5957       $ac_path_FGREP_found && break 3
5958     done
5959   done
5960   done
5961 IFS=$as_save_IFS
5962   if test -z "$ac_cv_path_FGREP"; then
5963     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964   fi
5965 else
5966   ac_cv_path_FGREP=$FGREP
5967 fi
5968
5969    fi
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5972 $as_echo "$ac_cv_path_FGREP" >&6; }
5973  FGREP="$ac_cv_path_FGREP"
5974
5975
5976 test -z "$GREP" && GREP=grep
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 # Check whether --with-gnu-ld was given.
5997 if test "${with_gnu_ld+set}" = set; then :
5998   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5999 else
6000   with_gnu_ld=no
6001 fi
6002
6003 ac_prog=ld
6004 if test yes = "$GCC"; then
6005   # Check if gcc -print-prog-name=ld gives a path.
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6007 $as_echo_n "checking for ld used by $CC... " >&6; }
6008   case $host in
6009   *-*-mingw*)
6010     # gcc leaves a trailing carriage return, which upsets mingw
6011     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6012   *)
6013     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6014   esac
6015   case $ac_prog in
6016     # Accept absolute paths.
6017     [\\/]* | ?:[\\/]*)
6018       re_direlt='/[^/][^/]*/\.\./'
6019       # Canonicalize the pathname of ld
6020       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6021       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6022         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6023       done
6024       test -z "$LD" && LD=$ac_prog
6025       ;;
6026   "")
6027     # If it fails, then pretend we aren't using GCC.
6028     ac_prog=ld
6029     ;;
6030   *)
6031     # If it is relative, then search for the first ld in PATH.
6032     with_gnu_ld=unknown
6033     ;;
6034   esac
6035 elif test yes = "$with_gnu_ld"; then
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6037 $as_echo_n "checking for GNU ld... " >&6; }
6038 else
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6040 $as_echo_n "checking for non-GNU ld... " >&6; }
6041 fi
6042 if ${lt_cv_path_LD+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -z "$LD"; then
6046   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6047   for ac_dir in $PATH; do
6048     IFS=$lt_save_ifs
6049     test -z "$ac_dir" && ac_dir=.
6050     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6051       lt_cv_path_LD=$ac_dir/$ac_prog
6052       # Check to see if the program is GNU ld.  I'd rather use --version,
6053       # but apparently some variants of GNU ld only accept -v.
6054       # Break only if it was the GNU/non-GNU ld that we prefer.
6055       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6056       *GNU* | *'with BFD'*)
6057         test no != "$with_gnu_ld" && break
6058         ;;
6059       *)
6060         test yes != "$with_gnu_ld" && break
6061         ;;
6062       esac
6063     fi
6064   done
6065   IFS=$lt_save_ifs
6066 else
6067   lt_cv_path_LD=$LD # Let the user override the test with a path.
6068 fi
6069 fi
6070
6071 LD=$lt_cv_path_LD
6072 if test -n "$LD"; then
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6074 $as_echo "$LD" >&6; }
6075 else
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6082 if ${lt_cv_prog_gnu_ld+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6086 case `$LD -v 2>&1 </dev/null` in
6087 *GNU* | *'with BFD'*)
6088   lt_cv_prog_gnu_ld=yes
6089   ;;
6090 *)
6091   lt_cv_prog_gnu_ld=no
6092   ;;
6093 esac
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6096 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6097 with_gnu_ld=$lt_cv_prog_gnu_ld
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6108 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6109 if ${lt_cv_path_NM+:} false; then :
6110   $as_echo_n "(cached) " >&6
6111 else
6112   if test -n "$NM"; then
6113   # Let the user override the test.
6114   lt_cv_path_NM=$NM
6115 else
6116   lt_nm_to_check=${ac_tool_prefix}nm
6117   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6118     lt_nm_to_check="$lt_nm_to_check nm"
6119   fi
6120   for lt_tmp_nm in $lt_nm_to_check; do
6121     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6122     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6123       IFS=$lt_save_ifs
6124       test -z "$ac_dir" && ac_dir=.
6125       tmp_nm=$ac_dir/$lt_tmp_nm
6126       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6127         # Check to see if the nm accepts a BSD-compat flag.
6128         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6129         #   nm: unknown option "B" ignored
6130         # Tru64's nm complains that /dev/null is an invalid object file
6131         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6132         case $build_os in
6133         mingw*) lt_bad_file=conftest.nm/nofile ;;
6134         *) lt_bad_file=/dev/null ;;
6135         esac
6136         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6137         *$lt_bad_file* | *'Invalid file or object type'*)
6138           lt_cv_path_NM="$tmp_nm -B"
6139           break 2
6140           ;;
6141         *)
6142           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6143           */dev/null*)
6144             lt_cv_path_NM="$tmp_nm -p"
6145             break 2
6146             ;;
6147           *)
6148             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6149             continue # so that we can try to find one that supports BSD flags
6150             ;;
6151           esac
6152           ;;
6153         esac
6154       fi
6155     done
6156     IFS=$lt_save_ifs
6157   done
6158   : ${lt_cv_path_NM=no}
6159 fi
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6162 $as_echo "$lt_cv_path_NM" >&6; }
6163 if test no != "$lt_cv_path_NM"; then
6164   NM=$lt_cv_path_NM
6165 else
6166   # Didn't find any BSD compatible name lister, look for dumpbin.
6167   if test -n "$DUMPBIN"; then :
6168     # Let the user override the test.
6169   else
6170     if test -n "$ac_tool_prefix"; then
6171   for ac_prog in dumpbin "link -dump"
6172   do
6173     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_DUMPBIN+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   if test -n "$DUMPBIN"; then
6181   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 DUMPBIN=$ac_cv_prog_DUMPBIN
6201 if test -n "$DUMPBIN"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6203 $as_echo "$DUMPBIN" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209
6210     test -n "$DUMPBIN" && break
6211   done
6212 fi
6213 if test -z "$DUMPBIN"; then
6214   ac_ct_DUMPBIN=$DUMPBIN
6215   for ac_prog in dumpbin "link -dump"
6216 do
6217   # Extract the first word of "$ac_prog", so it can be a program name with args.
6218 set dummy $ac_prog; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   if test -n "$ac_ct_DUMPBIN"; then
6225   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232     for ac_exec_ext in '' $ac_executable_extensions; do
6233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239   done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6245 if test -n "$ac_ct_DUMPBIN"; then
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6247 $as_echo "$ac_ct_DUMPBIN" >&6; }
6248 else
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6251 fi
6252
6253
6254   test -n "$ac_ct_DUMPBIN" && break
6255 done
6256
6257   if test "x$ac_ct_DUMPBIN" = x; then
6258     DUMPBIN=":"
6259   else
6260     case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266     DUMPBIN=$ac_ct_DUMPBIN
6267   fi
6268 fi
6269
6270     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6271     *COFF*)
6272       DUMPBIN="$DUMPBIN -symbols -headers"
6273       ;;
6274     *)
6275       DUMPBIN=:
6276       ;;
6277     esac
6278   fi
6279
6280   if test : != "$DUMPBIN"; then
6281     NM=$DUMPBIN
6282   fi
6283 fi
6284 test -z "$NM" && NM=nm
6285
6286
6287
6288
6289
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6292 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6293 if ${lt_cv_nm_interface+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   lt_cv_nm_interface="BSD nm"
6297   echo "int some_variable = 0;" > conftest.$ac_ext
6298   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6299   (eval "$ac_compile" 2>conftest.err)
6300   cat conftest.err >&5
6301   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6302   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6303   cat conftest.err >&5
6304   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6305   cat conftest.out >&5
6306   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6307     lt_cv_nm_interface="MS dumpbin"
6308   fi
6309   rm -f conftest*
6310 fi
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6312 $as_echo "$lt_cv_nm_interface" >&6; }
6313
6314 # find the maximum length of command line arguments
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6316 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6317 if ${lt_cv_sys_max_cmd_len+:} false; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320     i=0
6321   teststring=ABCD
6322
6323   case $build_os in
6324   msdosdjgpp*)
6325     # On DJGPP, this test can blow up pretty badly due to problems in libc
6326     # (any single argument exceeding 2000 bytes causes a buffer overrun
6327     # during glob expansion).  Even if it were fixed, the result of this
6328     # check would be larger than it should be.
6329     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6330     ;;
6331
6332   gnu*)
6333     # Under GNU Hurd, this test is not required because there is
6334     # no limit to the length of command line arguments.
6335     # Libtool will interpret -1 as no limit whatsoever
6336     lt_cv_sys_max_cmd_len=-1;
6337     ;;
6338
6339   cygwin* | mingw* | cegcc*)
6340     # On Win9x/ME, this test blows up -- it succeeds, but takes
6341     # about 5 minutes as the teststring grows exponentially.
6342     # Worse, since 9x/ME are not pre-emptively multitasking,
6343     # you end up with a "frozen" computer, even though with patience
6344     # the test eventually succeeds (with a max line length of 256k).
6345     # Instead, let's just punt: use the minimum linelength reported by
6346     # all of the supported platforms: 8192 (on NT/2K/XP).
6347     lt_cv_sys_max_cmd_len=8192;
6348     ;;
6349
6350   mint*)
6351     # On MiNT this can take a long time and run out of memory.
6352     lt_cv_sys_max_cmd_len=8192;
6353     ;;
6354
6355   amigaos*)
6356     # On AmigaOS with pdksh, this test takes hours, literally.
6357     # So we just punt and use a minimum line length of 8192.
6358     lt_cv_sys_max_cmd_len=8192;
6359     ;;
6360
6361   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6362     # This has been around since 386BSD, at least.  Likely further.
6363     if test -x /sbin/sysctl; then
6364       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6365     elif test -x /usr/sbin/sysctl; then
6366       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6367     else
6368       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6369     fi
6370     # And add a safety zone
6371     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6372     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6373     ;;
6374
6375   interix*)
6376     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6377     lt_cv_sys_max_cmd_len=196608
6378     ;;
6379
6380   os2*)
6381     # The test takes a long time on OS/2.
6382     lt_cv_sys_max_cmd_len=8192
6383     ;;
6384
6385   osf*)
6386     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6387     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6388     # nice to cause kernel panics so lets avoid the loop below.
6389     # First set a reasonable default.
6390     lt_cv_sys_max_cmd_len=16384
6391     #
6392     if test -x /sbin/sysconfig; then
6393       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6394         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6395       esac
6396     fi
6397     ;;
6398   sco3.2v5*)
6399     lt_cv_sys_max_cmd_len=102400
6400     ;;
6401   sysv5* | sco5v6* | sysv4.2uw2*)
6402     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6403     if test -n "$kargmax"; then
6404       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6405     else
6406       lt_cv_sys_max_cmd_len=32768
6407     fi
6408     ;;
6409   *)
6410     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6411     if test -n "$lt_cv_sys_max_cmd_len" && \
6412        test undefined != "$lt_cv_sys_max_cmd_len"; then
6413       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6414       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6415     else
6416       # Make teststring a little bigger before we do anything with it.
6417       # a 1K string should be a reasonable start.
6418       for i in 1 2 3 4 5 6 7 8; do
6419         teststring=$teststring$teststring
6420       done
6421       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6422       # If test is not a shell built-in, we'll probably end up computing a
6423       # maximum length that is only half of the actual maximum length, but
6424       # we can't tell.
6425       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6426                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6427               test 17 != "$i" # 1/2 MB should be enough
6428       do
6429         i=`expr $i + 1`
6430         teststring=$teststring$teststring
6431       done
6432       # Only check the string length outside the loop.
6433       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6434       teststring=
6435       # Add a significant safety factor because C++ compilers can tack on
6436       # massive amounts of additional arguments before passing them to the
6437       # linker.  It appears as though 1/2 is a usable value.
6438       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6439     fi
6440     ;;
6441   esac
6442
6443 fi
6444
6445 if test -n "$lt_cv_sys_max_cmd_len"; then
6446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6447 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6448 else
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6450 $as_echo "none" >&6; }
6451 fi
6452 max_cmd_len=$lt_cv_sys_max_cmd_len
6453
6454
6455
6456
6457
6458
6459 : ${CP="cp -f"}
6460 : ${MV="mv -f"}
6461 : ${RM="rm -f"}
6462
6463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6464   lt_unset=unset
6465 else
6466   lt_unset=false
6467 fi
6468
6469
6470
6471
6472
6473 # test EBCDIC or ASCII
6474 case `echo X|tr X '\101'` in
6475  A) # ASCII based system
6476     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6477   lt_SP2NL='tr \040 \012'
6478   lt_NL2SP='tr \015\012 \040\040'
6479   ;;
6480  *) # EBCDIC based system
6481   lt_SP2NL='tr \100 \n'
6482   lt_NL2SP='tr \r\n \100\100'
6483   ;;
6484 esac
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6495 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6496 if ${lt_cv_to_host_file_cmd+:} false; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   case $host in
6500   *-*-mingw* )
6501     case $build in
6502       *-*-mingw* ) # actually msys
6503         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6504         ;;
6505       *-*-cygwin* )
6506         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6507         ;;
6508       * ) # otherwise, assume *nix
6509         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6510         ;;
6511     esac
6512     ;;
6513   *-*-cygwin* )
6514     case $build in
6515       *-*-mingw* ) # actually msys
6516         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6517         ;;
6518       *-*-cygwin* )
6519         lt_cv_to_host_file_cmd=func_convert_file_noop
6520         ;;
6521       * ) # otherwise, assume *nix
6522         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6523         ;;
6524     esac
6525     ;;
6526   * ) # unhandled hosts (and "normal" native builds)
6527     lt_cv_to_host_file_cmd=func_convert_file_noop
6528     ;;
6529 esac
6530
6531 fi
6532
6533 to_host_file_cmd=$lt_cv_to_host_file_cmd
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6535 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6536
6537
6538
6539
6540
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6542 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6543 if ${lt_cv_to_tool_file_cmd+:} false; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   #assume ordinary cross tools, or native build.
6547 lt_cv_to_tool_file_cmd=func_convert_file_noop
6548 case $host in
6549   *-*-mingw* )
6550     case $build in
6551       *-*-mingw* ) # actually msys
6552         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6553         ;;
6554     esac
6555     ;;
6556 esac
6557
6558 fi
6559
6560 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6562 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6563
6564
6565
6566
6567
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6569 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6570 if ${lt_cv_ld_reload_flag+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   lt_cv_ld_reload_flag='-r'
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6576 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6577 reload_flag=$lt_cv_ld_reload_flag
6578 case $reload_flag in
6579 "" | " "*) ;;
6580 *) reload_flag=" $reload_flag" ;;
6581 esac
6582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6583 case $host_os in
6584   cygwin* | mingw* | pw32* | cegcc*)
6585     if test yes != "$GCC"; then
6586       reload_cmds=false
6587     fi
6588     ;;
6589   darwin*)
6590     if test yes = "$GCC"; then
6591       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6592     else
6593       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6594     fi
6595     ;;
6596 esac
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606 if test -n "$ac_tool_prefix"; then
6607   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_OBJDUMP+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   if test -n "$OBJDUMP"; then
6615   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622     for ac_exec_ext in '' $ac_executable_extensions; do
6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629   done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 OBJDUMP=$ac_cv_prog_OBJDUMP
6635 if test -n "$OBJDUMP"; then
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6637 $as_echo "$OBJDUMP" >&6; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_OBJDUMP"; then
6646   ac_ct_OBJDUMP=$OBJDUMP
6647   # Extract the first word of "objdump", so it can be a program name with args.
6648 set dummy objdump; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   if test -n "$ac_ct_OBJDUMP"; then
6655   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662     for ac_exec_ext in '' $ac_executable_extensions; do
6663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669   done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6675 if test -n "$ac_ct_OBJDUMP"; then
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6677 $as_echo "$ac_ct_OBJDUMP" >&6; }
6678 else
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683   if test "x$ac_ct_OBJDUMP" = x; then
6684     OBJDUMP="false"
6685   else
6686     case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692     OBJDUMP=$ac_ct_OBJDUMP
6693   fi
6694 else
6695   OBJDUMP="$ac_cv_prog_OBJDUMP"
6696 fi
6697
6698 test -z "$OBJDUMP" && OBJDUMP=objdump
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6709 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6710 if ${lt_cv_deplibs_check_method+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   lt_cv_file_magic_cmd='$MAGIC_CMD'
6714 lt_cv_file_magic_test_file=
6715 lt_cv_deplibs_check_method='unknown'
6716 # Need to set the preceding variable on all platforms that support
6717 # interlibrary dependencies.
6718 # 'none' -- dependencies not supported.
6719 # 'unknown' -- same as none, but documents that we really don't know.
6720 # 'pass_all' -- all dependencies passed with no checks.
6721 # 'test_compile' -- check by making test program.
6722 # 'file_magic [[regex]]' -- check by looking for files in library path
6723 # that responds to the $file_magic_cmd with a given extended regex.
6724 # If you have 'file' or equivalent on your system and you're not sure
6725 # whether 'pass_all' will *always* work, you probably want this one.
6726
6727 case $host_os in
6728 aix[4-9]*)
6729   lt_cv_deplibs_check_method=pass_all
6730   ;;
6731
6732 beos*)
6733   lt_cv_deplibs_check_method=pass_all
6734   ;;
6735
6736 bsdi[45]*)
6737   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6738   lt_cv_file_magic_cmd='/usr/bin/file -L'
6739   lt_cv_file_magic_test_file=/shlib/libc.so
6740   ;;
6741
6742 cygwin*)
6743   # func_win32_libid is a shell function defined in ltmain.sh
6744   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6745   lt_cv_file_magic_cmd='func_win32_libid'
6746   ;;
6747
6748 mingw* | pw32*)
6749   # Base MSYS/MinGW do not provide the 'file' command needed by
6750   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6751   # unless we find 'file', for example because we are cross-compiling.
6752   if ( file / ) >/dev/null 2>&1; then
6753     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6754     lt_cv_file_magic_cmd='func_win32_libid'
6755   else
6756     # Keep this pattern in sync with the one in func_win32_libid.
6757     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6758     lt_cv_file_magic_cmd='$OBJDUMP -f'
6759   fi
6760   ;;
6761
6762 cegcc*)
6763   # use the weaker test based on 'objdump'. See mingw*.
6764   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6765   lt_cv_file_magic_cmd='$OBJDUMP -f'
6766   ;;
6767
6768 darwin* | rhapsody*)
6769   lt_cv_deplibs_check_method=pass_all
6770   ;;
6771
6772 freebsd* | dragonfly*)
6773   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6774     case $host_cpu in
6775     i*86 )
6776       # Not sure whether the presence of OpenBSD here was a mistake.
6777       # Let's accept both of them until this is cleared up.
6778       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6779       lt_cv_file_magic_cmd=/usr/bin/file
6780       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6781       ;;
6782     esac
6783   else
6784     lt_cv_deplibs_check_method=pass_all
6785   fi
6786   ;;
6787
6788 haiku*)
6789   lt_cv_deplibs_check_method=pass_all
6790   ;;
6791
6792 hpux10.20* | hpux11*)
6793   lt_cv_file_magic_cmd=/usr/bin/file
6794   case $host_cpu in
6795   ia64*)
6796     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6797     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6798     ;;
6799   hppa*64*)
6800     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]'
6801     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6802     ;;
6803   *)
6804     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6805     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6806     ;;
6807   esac
6808   ;;
6809
6810 interix[3-9]*)
6811   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6812   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6813   ;;
6814
6815 irix5* | irix6* | nonstopux*)
6816   case $LD in
6817   *-32|*"-32 ") libmagic=32-bit;;
6818   *-n32|*"-n32 ") libmagic=N32;;
6819   *-64|*"-64 ") libmagic=64-bit;;
6820   *) libmagic=never-match;;
6821   esac
6822   lt_cv_deplibs_check_method=pass_all
6823   ;;
6824
6825 # This must be glibc/ELF.
6826 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6827   lt_cv_deplibs_check_method=pass_all
6828   ;;
6829
6830 netbsd* | netbsdelf*-gnu)
6831   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6832     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6833   else
6834     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6835   fi
6836   ;;
6837
6838 newos6*)
6839   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6840   lt_cv_file_magic_cmd=/usr/bin/file
6841   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6842   ;;
6843
6844 *nto* | *qnx*)
6845   lt_cv_deplibs_check_method=pass_all
6846   ;;
6847
6848 openbsd* | bitrig*)
6849   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6850     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6851   else
6852     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6853   fi
6854   ;;
6855
6856 osf3* | osf4* | osf5*)
6857   lt_cv_deplibs_check_method=pass_all
6858   ;;
6859
6860 rdos*)
6861   lt_cv_deplibs_check_method=pass_all
6862   ;;
6863
6864 solaris*)
6865   lt_cv_deplibs_check_method=pass_all
6866   ;;
6867
6868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6869   lt_cv_deplibs_check_method=pass_all
6870   ;;
6871
6872 sysv4 | sysv4.3*)
6873   case $host_vendor in
6874   motorola)
6875     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]'
6876     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6877     ;;
6878   ncr)
6879     lt_cv_deplibs_check_method=pass_all
6880     ;;
6881   sequent)
6882     lt_cv_file_magic_cmd='/bin/file'
6883     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6884     ;;
6885   sni)
6886     lt_cv_file_magic_cmd='/bin/file'
6887     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6888     lt_cv_file_magic_test_file=/lib/libc.so
6889     ;;
6890   siemens)
6891     lt_cv_deplibs_check_method=pass_all
6892     ;;
6893   pc)
6894     lt_cv_deplibs_check_method=pass_all
6895     ;;
6896   esac
6897   ;;
6898
6899 tpf*)
6900   lt_cv_deplibs_check_method=pass_all
6901   ;;
6902 os2*)
6903   lt_cv_deplibs_check_method=pass_all
6904   ;;
6905 esac
6906
6907 fi
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6909 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6910
6911 file_magic_glob=
6912 want_nocaseglob=no
6913 if test "$build" = "$host"; then
6914   case $host_os in
6915   mingw* | pw32*)
6916     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6917       want_nocaseglob=yes
6918     else
6919       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6920     fi
6921     ;;
6922   esac
6923 fi
6924
6925 file_magic_cmd=$lt_cv_file_magic_cmd
6926 deplibs_check_method=$lt_cv_deplibs_check_method
6927 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950 if test -n "$ac_tool_prefix"; then
6951   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if ${ac_cv_prog_DLLTOOL+:} false; then :
6956   $as_echo_n "(cached) " >&6
6957 else
6958   if test -n "$DLLTOOL"; then
6959   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966     for ac_exec_ext in '' $ac_executable_extensions; do
6967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973   done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 DLLTOOL=$ac_cv_prog_DLLTOOL
6979 if test -n "$DLLTOOL"; then
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6981 $as_echo "$DLLTOOL" >&6; }
6982 else
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986
6987
6988 fi
6989 if test -z "$ac_cv_prog_DLLTOOL"; then
6990   ac_ct_DLLTOOL=$DLLTOOL
6991   # Extract the first word of "dlltool", so it can be a program name with args.
6992 set dummy dlltool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   if test -n "$ac_ct_DLLTOOL"; then
6999   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006     for ac_exec_ext in '' $ac_executable_extensions; do
7007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013   done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7019 if test -n "$ac_ct_DLLTOOL"; then
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7021 $as_echo "$ac_ct_DLLTOOL" >&6; }
7022 else
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027   if test "x$ac_ct_DLLTOOL" = x; then
7028     DLLTOOL="false"
7029   else
7030     case $cross_compiling:$ac_tool_warned in
7031 yes:)
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7034 ac_tool_warned=yes ;;
7035 esac
7036     DLLTOOL=$ac_ct_DLLTOOL
7037   fi
7038 else
7039   DLLTOOL="$ac_cv_prog_DLLTOOL"
7040 fi
7041
7042 test -z "$DLLTOOL" && DLLTOOL=dlltool
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7054 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7055 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   lt_cv_sharedlib_from_linklib_cmd='unknown'
7059
7060 case $host_os in
7061 cygwin* | mingw* | pw32* | cegcc*)
7062   # two different shell functions defined in ltmain.sh;
7063   # decide which one to use based on capabilities of $DLLTOOL
7064   case `$DLLTOOL --help 2>&1` in
7065   *--identify-strict*)
7066     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7067     ;;
7068   *)
7069     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7070     ;;
7071   esac
7072   ;;
7073 *)
7074   # fallback: assume linklib IS sharedlib
7075   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7076   ;;
7077 esac
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7081 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7082 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7083 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7084
7085
7086
7087
7088
7089
7090
7091 if test -n "$ac_tool_prefix"; then
7092   for ac_prog in ar
7093   do
7094     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_AR+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   if test -n "$AR"; then
7102   ac_cv_prog_AR="$AR" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 AR=$ac_cv_prog_AR
7122 if test -n "$AR"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7124 $as_echo "$AR" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131     test -n "$AR" && break
7132   done
7133 fi
7134 if test -z "$AR"; then
7135   ac_ct_AR=$AR
7136   for ac_prog in ar
7137 do
7138   # Extract the first word of "$ac_prog", so it can be a program name with args.
7139 set dummy $ac_prog; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test -n "$ac_ct_AR"; then
7146   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155     ac_cv_prog_ac_ct_AR="$ac_prog"
7156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160   done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7166 if test -n "$ac_ct_AR"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7168 $as_echo "$ac_ct_AR" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175   test -n "$ac_ct_AR" && break
7176 done
7177
7178   if test "x$ac_ct_AR" = x; then
7179     AR="false"
7180   else
7181     case $cross_compiling:$ac_tool_warned in
7182 yes:)
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187     AR=$ac_ct_AR
7188   fi
7189 fi
7190
7191 : ${AR=ar}
7192 : ${AR_FLAGS=cru}
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7205 $as_echo_n "checking for archiver @FILE support... " >&6; }
7206 if ${lt_cv_ar_at_file+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   lt_cv_ar_at_file=no
7210    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212
7213 int
7214 main ()
7215 {
7216
7217   ;
7218   return 0;
7219 }
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222   echo conftest.$ac_objext > conftest.lst
7223       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7224       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7225   (eval $lt_ar_try) 2>&5
7226   ac_status=$?
7227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228   test $ac_status = 0; }
7229       if test 0 -eq "$ac_status"; then
7230         # Ensure the archiver fails upon bogus file names.
7231         rm -f conftest.$ac_objext libconftest.a
7232         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7233   (eval $lt_ar_try) 2>&5
7234   ac_status=$?
7235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236   test $ac_status = 0; }
7237         if test 0 -ne "$ac_status"; then
7238           lt_cv_ar_at_file=@
7239         fi
7240       fi
7241       rm -f conftest.* libconftest.a
7242
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7248 $as_echo "$lt_cv_ar_at_file" >&6; }
7249
7250 if test no = "$lt_cv_ar_at_file"; then
7251   archiver_list_spec=
7252 else
7253   archiver_list_spec=$lt_cv_ar_at_file
7254 fi
7255
7256
7257
7258
7259
7260
7261
7262 if test -n "$ac_tool_prefix"; then
7263   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}strip; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_STRIP+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   if test -n "$STRIP"; then
7271   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278     for ac_exec_ext in '' $ac_executable_extensions; do
7279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285   done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 STRIP=$ac_cv_prog_STRIP
7291 if test -n "$STRIP"; then
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7293 $as_echo "$STRIP" >&6; }
7294 else
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299
7300 fi
7301 if test -z "$ac_cv_prog_STRIP"; then
7302   ac_ct_STRIP=$STRIP
7303   # Extract the first word of "strip", so it can be a program name with args.
7304 set dummy strip; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   if test -n "$ac_ct_STRIP"; then
7311   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318     for ac_exec_ext in '' $ac_executable_extensions; do
7319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320     ac_cv_prog_ac_ct_STRIP="strip"
7321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325   done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7331 if test -n "$ac_ct_STRIP"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7333 $as_echo "$ac_ct_STRIP" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339   if test "x$ac_ct_STRIP" = x; then
7340     STRIP=":"
7341   else
7342     case $cross_compiling:$ac_tool_warned in
7343 yes:)
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7347 esac
7348     STRIP=$ac_ct_STRIP
7349   fi
7350 else
7351   STRIP="$ac_cv_prog_STRIP"
7352 fi
7353
7354 test -z "$STRIP" && STRIP=:
7355
7356
7357
7358
7359
7360
7361 if test -n "$ac_tool_prefix"; then
7362   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7363 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if ${ac_cv_prog_RANLIB+:} false; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   if test -n "$RANLIB"; then
7370   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377     for ac_exec_ext in '' $ac_executable_extensions; do
7378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384   done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 RANLIB=$ac_cv_prog_RANLIB
7390 if test -n "$RANLIB"; then
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7392 $as_echo "$RANLIB" >&6; }
7393 else
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398
7399 fi
7400 if test -z "$ac_cv_prog_RANLIB"; then
7401   ac_ct_RANLIB=$RANLIB
7402   # Extract the first word of "ranlib", so it can be a program name with args.
7403 set dummy ranlib; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   if test -n "$ac_ct_RANLIB"; then
7410   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417     for ac_exec_ext in '' $ac_executable_extensions; do
7418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419     ac_cv_prog_ac_ct_RANLIB="ranlib"
7420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424   done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7430 if test -n "$ac_ct_RANLIB"; then
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7432 $as_echo "$ac_ct_RANLIB" >&6; }
7433 else
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438   if test "x$ac_ct_RANLIB" = x; then
7439     RANLIB=":"
7440   else
7441     case $cross_compiling:$ac_tool_warned in
7442 yes:)
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7445 ac_tool_warned=yes ;;
7446 esac
7447     RANLIB=$ac_ct_RANLIB
7448   fi
7449 else
7450   RANLIB="$ac_cv_prog_RANLIB"
7451 fi
7452
7453 test -z "$RANLIB" && RANLIB=:
7454
7455
7456
7457
7458
7459
7460 # Determine commands to create old-style static archives.
7461 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7462 old_postinstall_cmds='chmod 644 $oldlib'
7463 old_postuninstall_cmds=
7464
7465 if test -n "$RANLIB"; then
7466   case $host_os in
7467   bitrig* | openbsd*)
7468     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7469     ;;
7470   *)
7471     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7472     ;;
7473   esac
7474   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7475 fi
7476
7477 case $host_os in
7478   darwin*)
7479     lock_old_archive_extraction=yes ;;
7480   *)
7481     lock_old_archive_extraction=no ;;
7482 esac
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522 # If no C compiler was specified, use CC.
7523 LTCC=${LTCC-"$CC"}
7524
7525 # If no C compiler flags were specified, use CFLAGS.
7526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7527
7528 # Allow CC to be a program name with arguments.
7529 compiler=$CC
7530
7531
7532 # Check for command to grab the raw symbol name followed by C symbol from nm.
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7534 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7535 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538
7539 # These are sane defaults that work on at least a few old systems.
7540 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7541
7542 # Character class describing NM global symbol codes.
7543 symcode='[BCDEGRST]'
7544
7545 # Regexp to match symbols that can be accessed directly from C.
7546 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7547
7548 # Define system-specific variables.
7549 case $host_os in
7550 aix*)
7551   symcode='[BCDT]'
7552   ;;
7553 cygwin* | mingw* | pw32* | cegcc*)
7554   symcode='[ABCDGISTW]'
7555   ;;
7556 hpux*)
7557   if test ia64 = "$host_cpu"; then
7558     symcode='[ABCDEGRST]'
7559   fi
7560   ;;
7561 irix* | nonstopux*)
7562   symcode='[BCDEGRST]'
7563   ;;
7564 osf*)
7565   symcode='[BCDEGQRST]'
7566   ;;
7567 solaris*)
7568   symcode='[BDRT]'
7569   ;;
7570 sco3.2v5*)
7571   symcode='[DT]'
7572   ;;
7573 sysv4.2uw2*)
7574   symcode='[DT]'
7575   ;;
7576 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7577   symcode='[ABDT]'
7578   ;;
7579 sysv4)
7580   symcode='[DFNSTU]'
7581   ;;
7582 esac
7583
7584 # If we're using GNU nm, then use its standard symbol codes.
7585 case `$NM -V 2>&1` in
7586 *GNU* | *'with BFD'*)
7587   symcode='[ABCDGIRSTW]' ;;
7588 esac
7589
7590 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7591   # Gets list of data symbols to import.
7592   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7593   # Adjust the below global symbol transforms to fixup imported variables.
7594   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7595   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7596   lt_c_name_lib_hook="\
7597   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7598   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7599 else
7600   # Disable hooks by default.
7601   lt_cv_sys_global_symbol_to_import=
7602   lt_cdecl_hook=
7603   lt_c_name_hook=
7604   lt_c_name_lib_hook=
7605 fi
7606
7607 # Transform an extracted symbol line into a proper C declaration.
7608 # Some systems (esp. on ia64) link data and code symbols differently,
7609 # so use this general approach.
7610 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7611 $lt_cdecl_hook\
7612 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7613 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7614
7615 # Transform an extracted symbol line into symbol name and symbol address
7616 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7617 $lt_c_name_hook\
7618 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7619 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7620
7621 # Transform an extracted symbol line into symbol name with lib prefix and
7622 # symbol address.
7623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7624 $lt_c_name_lib_hook\
7625 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7626 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7627 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7628
7629 # Handle CRLF in mingw tool chain
7630 opt_cr=
7631 case $build_os in
7632 mingw*)
7633   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7634   ;;
7635 esac
7636
7637 # Try without a prefix underscore, then with it.
7638 for ac_symprfx in "" "_"; do
7639
7640   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7641   symxfrm="\\1 $ac_symprfx\\2 \\2"
7642
7643   # Write the raw and C identifiers.
7644   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7645     # Fake it for dumpbin and say T for any non-static function,
7646     # D for any global variable and I for any imported variable.
7647     # Also find C++ and __fastcall symbols from MSVC++,
7648     # which start with @ or ?.
7649     lt_cv_sys_global_symbol_pipe="$AWK '"\
7650 "     {last_section=section; section=\$ 3};"\
7651 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7652 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7653 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7654 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7655 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7656 "     \$ 0!~/External *\|/{next};"\
7657 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7658 "     {if(hide[section]) next};"\
7659 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7660 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7661 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7662 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7663 "     ' prfx=^$ac_symprfx"
7664   else
7665     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7666   fi
7667   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7668
7669   # Check to see that the pipe works correctly.
7670   pipe_works=no
7671
7672   rm -f conftest*
7673   cat > conftest.$ac_ext <<_LT_EOF
7674 #ifdef __cplusplus
7675 extern "C" {
7676 #endif
7677 char nm_test_var;
7678 void nm_test_func(void);
7679 void nm_test_func(void){}
7680 #ifdef __cplusplus
7681 }
7682 #endif
7683 int main(){nm_test_var='a';nm_test_func();return(0);}
7684 _LT_EOF
7685
7686   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7687   (eval $ac_compile) 2>&5
7688   ac_status=$?
7689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690   test $ac_status = 0; }; then
7691     # Now try to grab the symbols.
7692     nlist=conftest.nm
7693     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7694   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7695   ac_status=$?
7696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697   test $ac_status = 0; } && test -s "$nlist"; then
7698       # Try sorting and uniquifying the output.
7699       if sort "$nlist" | uniq > "$nlist"T; then
7700         mv -f "$nlist"T "$nlist"
7701       else
7702         rm -f "$nlist"T
7703       fi
7704
7705       # Make sure that we snagged all the symbols we need.
7706       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7707         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7708           cat <<_LT_EOF > conftest.$ac_ext
7709 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7710 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7711 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7712    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7713 # define LT_DLSYM_CONST
7714 #elif defined __osf__
7715 /* This system does not cope well with relocations in const data.  */
7716 # define LT_DLSYM_CONST
7717 #else
7718 # define LT_DLSYM_CONST const
7719 #endif
7720
7721 #ifdef __cplusplus
7722 extern "C" {
7723 #endif
7724
7725 _LT_EOF
7726           # Now generate the symbol file.
7727           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7728
7729           cat <<_LT_EOF >> conftest.$ac_ext
7730
7731 /* The mapping between symbol names and symbols.  */
7732 LT_DLSYM_CONST struct {
7733   const char *name;
7734   void       *address;
7735 }
7736 lt__PROGRAM__LTX_preloaded_symbols[] =
7737 {
7738   { "@PROGRAM@", (void *) 0 },
7739 _LT_EOF
7740           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7741           cat <<\_LT_EOF >> conftest.$ac_ext
7742   {0, (void *) 0}
7743 };
7744
7745 /* This works around a problem in FreeBSD linker */
7746 #ifdef FREEBSD_WORKAROUND
7747 static const void *lt_preloaded_setup() {
7748   return lt__PROGRAM__LTX_preloaded_symbols;
7749 }
7750 #endif
7751
7752 #ifdef __cplusplus
7753 }
7754 #endif
7755 _LT_EOF
7756           # Now try linking the two files.
7757           mv conftest.$ac_objext conftstm.$ac_objext
7758           lt_globsym_save_LIBS=$LIBS
7759           lt_globsym_save_CFLAGS=$CFLAGS
7760           LIBS=conftstm.$ac_objext
7761           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7762           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7763   (eval $ac_link) 2>&5
7764   ac_status=$?
7765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7767             pipe_works=yes
7768           fi
7769           LIBS=$lt_globsym_save_LIBS
7770           CFLAGS=$lt_globsym_save_CFLAGS
7771         else
7772           echo "cannot find nm_test_func in $nlist" >&5
7773         fi
7774       else
7775         echo "cannot find nm_test_var in $nlist" >&5
7776       fi
7777     else
7778       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7779     fi
7780   else
7781     echo "$progname: failed program was:" >&5
7782     cat conftest.$ac_ext >&5
7783   fi
7784   rm -rf conftest* conftst*
7785
7786   # Do not use the global_symbol_pipe unless it works.
7787   if test yes = "$pipe_works"; then
7788     break
7789   else
7790     lt_cv_sys_global_symbol_pipe=
7791   fi
7792 done
7793
7794 fi
7795
7796 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7797   lt_cv_sys_global_symbol_to_cdecl=
7798 fi
7799 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7801 $as_echo "failed" >&6; }
7802 else
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7804 $as_echo "ok" >&6; }
7805 fi
7806
7807 # Response file support.
7808 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7809   nm_file_list_spec='@'
7810 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7811   nm_file_list_spec='@'
7812 fi
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7851 $as_echo_n "checking for sysroot... " >&6; }
7852
7853 # Check whether --with-sysroot was given.
7854 if test "${with_sysroot+set}" = set; then :
7855   withval=$with_sysroot;
7856 else
7857   with_sysroot=no
7858 fi
7859
7860
7861 lt_sysroot=
7862 case $with_sysroot in #(
7863  yes)
7864    if test yes = "$GCC"; then
7865      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7866    fi
7867    ;; #(
7868  /*)
7869    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7870    ;; #(
7871  no|'')
7872    ;; #(
7873  *)
7874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7875 $as_echo "$with_sysroot" >&6; }
7876    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7877    ;;
7878 esac
7879
7880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7881 $as_echo "${lt_sysroot:-no}" >&6; }
7882
7883
7884
7885
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7888 $as_echo_n "checking for a working dd... " >&6; }
7889 if ${ac_cv_path_lt_DD+:} false; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   printf 0123456789abcdef0123456789abcdef >conftest.i
7893 cat conftest.i conftest.i >conftest2.i
7894 : ${lt_DD:=$DD}
7895 if test -z "$lt_DD"; then
7896   ac_path_lt_DD_found=false
7897   # Loop through the user's path and test for each of PROGNAME-LIST
7898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903     for ac_prog in dd; do
7904     for ac_exec_ext in '' $ac_executable_extensions; do
7905       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7906       as_fn_executable_p "$ac_path_lt_DD" || continue
7907 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7908   cmp -s conftest.i conftest.out \
7909   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7910 fi
7911       $ac_path_lt_DD_found && break 3
7912     done
7913   done
7914   done
7915 IFS=$as_save_IFS
7916   if test -z "$ac_cv_path_lt_DD"; then
7917     :
7918   fi
7919 else
7920   ac_cv_path_lt_DD=$lt_DD
7921 fi
7922
7923 rm -f conftest.i conftest2.i conftest.out
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7926 $as_echo "$ac_cv_path_lt_DD" >&6; }
7927
7928
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7930 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7931 if ${lt_cv_truncate_bin+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   printf 0123456789abcdef0123456789abcdef >conftest.i
7935 cat conftest.i conftest.i >conftest2.i
7936 lt_cv_truncate_bin=
7937 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7938   cmp -s conftest.i conftest.out \
7939   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7940 fi
7941 rm -f conftest.i conftest2.i conftest.out
7942 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7945 $as_echo "$lt_cv_truncate_bin" >&6; }
7946
7947
7948
7949
7950
7951
7952
7953 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7954 func_cc_basename ()
7955 {
7956     for cc_temp in $*""; do
7957       case $cc_temp in
7958         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7960         \-*) ;;
7961         *) break;;
7962       esac
7963     done
7964     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7965 }
7966
7967 # Check whether --enable-libtool-lock was given.
7968 if test "${enable_libtool_lock+set}" = set; then :
7969   enableval=$enable_libtool_lock;
7970 fi
7971
7972 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7973
7974 # Some flags need to be propagated to the compiler or linker for good
7975 # libtool support.
7976 case $host in
7977 ia64-*-hpux*)
7978   # Find out what ABI is being produced by ac_compile, and set mode
7979   # options accordingly.
7980   echo 'int i;' > conftest.$ac_ext
7981   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7982   (eval $ac_compile) 2>&5
7983   ac_status=$?
7984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985   test $ac_status = 0; }; then
7986     case `/usr/bin/file conftest.$ac_objext` in
7987       *ELF-32*)
7988         HPUX_IA64_MODE=32
7989         ;;
7990       *ELF-64*)
7991         HPUX_IA64_MODE=64
7992         ;;
7993     esac
7994   fi
7995   rm -rf conftest*
7996   ;;
7997 *-*-irix6*)
7998   # Find out what ABI is being produced by ac_compile, and set linker
7999   # options accordingly.
8000   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8001   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8002   (eval $ac_compile) 2>&5
8003   ac_status=$?
8004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005   test $ac_status = 0; }; then
8006     if test yes = "$lt_cv_prog_gnu_ld"; then
8007       case `/usr/bin/file conftest.$ac_objext` in
8008         *32-bit*)
8009           LD="${LD-ld} -melf32bsmip"
8010           ;;
8011         *N32*)
8012           LD="${LD-ld} -melf32bmipn32"
8013           ;;
8014         *64-bit*)
8015           LD="${LD-ld} -melf64bmip"
8016         ;;
8017       esac
8018     else
8019       case `/usr/bin/file conftest.$ac_objext` in
8020         *32-bit*)
8021           LD="${LD-ld} -32"
8022           ;;
8023         *N32*)
8024           LD="${LD-ld} -n32"
8025           ;;
8026         *64-bit*)
8027           LD="${LD-ld} -64"
8028           ;;
8029       esac
8030     fi
8031   fi
8032   rm -rf conftest*
8033   ;;
8034
8035 mips64*-*linux*)
8036   # Find out what ABI is being produced by ac_compile, and set linker
8037   # options accordingly.
8038   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8039   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8040   (eval $ac_compile) 2>&5
8041   ac_status=$?
8042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043   test $ac_status = 0; }; then
8044     emul=elf
8045     case `/usr/bin/file conftest.$ac_objext` in
8046       *32-bit*)
8047         emul="${emul}32"
8048         ;;
8049       *64-bit*)
8050         emul="${emul}64"
8051         ;;
8052     esac
8053     case `/usr/bin/file conftest.$ac_objext` in
8054       *MSB*)
8055         emul="${emul}btsmip"
8056         ;;
8057       *LSB*)
8058         emul="${emul}ltsmip"
8059         ;;
8060     esac
8061     case `/usr/bin/file conftest.$ac_objext` in
8062       *N32*)
8063         emul="${emul}n32"
8064         ;;
8065     esac
8066     LD="${LD-ld} -m $emul"
8067   fi
8068   rm -rf conftest*
8069   ;;
8070
8071 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8072 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8073   # Find out what ABI is being produced by ac_compile, and set linker
8074   # options accordingly.  Note that the listed cases only cover the
8075   # situations where additional linker options are needed (such as when
8076   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8077   # vice versa); the common cases where no linker options are needed do
8078   # not appear in the list.
8079   echo 'int i;' > conftest.$ac_ext
8080   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8081   (eval $ac_compile) 2>&5
8082   ac_status=$?
8083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084   test $ac_status = 0; }; then
8085     case `/usr/bin/file conftest.o` in
8086       *32-bit*)
8087         case $host in
8088           x86_64-*kfreebsd*-gnu)
8089             LD="${LD-ld} -m elf_i386_fbsd"
8090             ;;
8091           x86_64-*linux*)
8092             case `/usr/bin/file conftest.o` in
8093               *x86-64*)
8094                 LD="${LD-ld} -m elf32_x86_64"
8095                 ;;
8096               *)
8097                 LD="${LD-ld} -m elf_i386"
8098                 ;;
8099             esac
8100             ;;
8101           powerpc64le-*linux*)
8102             LD="${LD-ld} -m elf32lppclinux"
8103             ;;
8104           powerpc64-*linux*)
8105             LD="${LD-ld} -m elf32ppclinux"
8106             ;;
8107           s390x-*linux*)
8108             LD="${LD-ld} -m elf_s390"
8109             ;;
8110           sparc64-*linux*)
8111             LD="${LD-ld} -m elf32_sparc"
8112             ;;
8113         esac
8114         ;;
8115       *64-bit*)
8116         case $host in
8117           x86_64-*kfreebsd*-gnu)
8118             LD="${LD-ld} -m elf_x86_64_fbsd"
8119             ;;
8120           x86_64-*linux*)
8121             LD="${LD-ld} -m elf_x86_64"
8122             ;;
8123           powerpcle-*linux*)
8124             LD="${LD-ld} -m elf64lppc"
8125             ;;
8126           powerpc-*linux*)
8127             LD="${LD-ld} -m elf64ppc"
8128             ;;
8129           s390*-*linux*|s390*-*tpf*)
8130             LD="${LD-ld} -m elf64_s390"
8131             ;;
8132           sparc*-*linux*)
8133             LD="${LD-ld} -m elf64_sparc"
8134             ;;
8135         esac
8136         ;;
8137     esac
8138   fi
8139   rm -rf conftest*
8140   ;;
8141
8142 *-*-sco3.2v5*)
8143   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8144   SAVE_CFLAGS=$CFLAGS
8145   CFLAGS="$CFLAGS -belf"
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8147 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8148 if ${lt_cv_cc_needs_belf+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151   ac_ext=c
8152 ac_cpp='$CPP $CPPFLAGS'
8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h.  */
8159
8160 int
8161 main ()
8162 {
8163
8164   ;
8165   return 0;
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_link "$LINENO"; then :
8169   lt_cv_cc_needs_belf=yes
8170 else
8171   lt_cv_cc_needs_belf=no
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext \
8174     conftest$ac_exeext conftest.$ac_ext
8175      ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8183 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8184   if test yes != "$lt_cv_cc_needs_belf"; then
8185     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8186     CFLAGS=$SAVE_CFLAGS
8187   fi
8188   ;;
8189 *-*solaris*)
8190   # Find out what ABI is being produced by ac_compile, and set linker
8191   # options accordingly.
8192   echo 'int i;' > conftest.$ac_ext
8193   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8194   (eval $ac_compile) 2>&5
8195   ac_status=$?
8196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8197   test $ac_status = 0; }; then
8198     case `/usr/bin/file conftest.o` in
8199     *64-bit*)
8200       case $lt_cv_prog_gnu_ld in
8201       yes*)
8202         case $host in
8203         i?86-*-solaris*|x86_64-*-solaris*)
8204           LD="${LD-ld} -m elf_x86_64"
8205           ;;
8206         sparc*-*-solaris*)
8207           LD="${LD-ld} -m elf64_sparc"
8208           ;;
8209         esac
8210         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8211         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8212           LD=${LD-ld}_sol2
8213         fi
8214         ;;
8215       *)
8216         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8217           LD="${LD-ld} -64"
8218         fi
8219         ;;
8220       esac
8221       ;;
8222     esac
8223   fi
8224   rm -rf conftest*
8225   ;;
8226 esac
8227
8228 need_locks=$enable_libtool_lock
8229
8230 if test -n "$ac_tool_prefix"; then
8231   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}mt; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   if test -n "$MANIFEST_TOOL"; then
8239   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244   IFS=$as_save_IFS
8245   test -z "$as_dir" && as_dir=.
8246     for ac_exec_ext in '' $ac_executable_extensions; do
8247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250     break 2
8251   fi
8252 done
8253   done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8259 if test -n "$MANIFEST_TOOL"; then
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8261 $as_echo "$MANIFEST_TOOL" >&6; }
8262 else
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267
8268 fi
8269 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8270   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8271   # Extract the first word of "mt", so it can be a program name with args.
8272 set dummy mt; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8276   $as_echo_n "(cached) " >&6
8277 else
8278   if test -n "$ac_ct_MANIFEST_TOOL"; then
8279   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8299 if test -n "$ac_ct_MANIFEST_TOOL"; then
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8301 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8302 else
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8308     MANIFEST_TOOL=":"
8309   else
8310     case $cross_compiling:$ac_tool_warned in
8311 yes:)
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8317   fi
8318 else
8319   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8320 fi
8321
8322 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8324 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8325 if ${lt_cv_path_mainfest_tool+:} false; then :
8326   $as_echo_n "(cached) " >&6
8327 else
8328   lt_cv_path_mainfest_tool=no
8329   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8330   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8331   cat conftest.err >&5
8332   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8333     lt_cv_path_mainfest_tool=yes
8334   fi
8335   rm -f conftest*
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8338 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8339 if test yes != "$lt_cv_path_mainfest_tool"; then
8340   MANIFEST_TOOL=:
8341 fi
8342
8343
8344
8345
8346
8347
8348   case $host_os in
8349     rhapsody* | darwin*)
8350     if test -n "$ac_tool_prefix"; then
8351   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8352 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8356   $as_echo_n "(cached) " >&6
8357 else
8358   if test -n "$DSYMUTIL"; then
8359   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364   IFS=$as_save_IFS
8365   test -z "$as_dir" && as_dir=.
8366     for ac_exec_ext in '' $ac_executable_extensions; do
8367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370     break 2
8371   fi
8372 done
8373   done
8374 IFS=$as_save_IFS
8375
8376 fi
8377 fi
8378 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8379 if test -n "$DSYMUTIL"; then
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8381 $as_echo "$DSYMUTIL" >&6; }
8382 else
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386
8387
8388 fi
8389 if test -z "$ac_cv_prog_DSYMUTIL"; then
8390   ac_ct_DSYMUTIL=$DSYMUTIL
8391   # Extract the first word of "dsymutil", so it can be a program name with args.
8392 set dummy dsymutil; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   if test -n "$ac_ct_DSYMUTIL"; then
8399   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404   IFS=$as_save_IFS
8405   test -z "$as_dir" && as_dir=.
8406     for ac_exec_ext in '' $ac_executable_extensions; do
8407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410     break 2
8411   fi
8412 done
8413   done
8414 IFS=$as_save_IFS
8415
8416 fi
8417 fi
8418 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8419 if test -n "$ac_ct_DSYMUTIL"; then
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8421 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8422 else
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427   if test "x$ac_ct_DSYMUTIL" = x; then
8428     DSYMUTIL=":"
8429   else
8430     case $cross_compiling:$ac_tool_warned in
8431 yes:)
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434 ac_tool_warned=yes ;;
8435 esac
8436     DSYMUTIL=$ac_ct_DSYMUTIL
8437   fi
8438 else
8439   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8440 fi
8441
8442     if test -n "$ac_tool_prefix"; then
8443   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8444 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if ${ac_cv_prog_NMEDIT+:} false; then :
8448   $as_echo_n "(cached) " >&6
8449 else
8450   if test -n "$NMEDIT"; then
8451   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456   IFS=$as_save_IFS
8457   test -z "$as_dir" && as_dir=.
8458     for ac_exec_ext in '' $ac_executable_extensions; do
8459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462     break 2
8463   fi
8464 done
8465   done
8466 IFS=$as_save_IFS
8467
8468 fi
8469 fi
8470 NMEDIT=$ac_cv_prog_NMEDIT
8471 if test -n "$NMEDIT"; then
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8473 $as_echo "$NMEDIT" >&6; }
8474 else
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8477 fi
8478
8479
8480 fi
8481 if test -z "$ac_cv_prog_NMEDIT"; then
8482   ac_ct_NMEDIT=$NMEDIT
8483   # Extract the first word of "nmedit", so it can be a program name with args.
8484 set dummy nmedit; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   if test -n "$ac_ct_NMEDIT"; then
8491   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8511 if test -n "$ac_ct_NMEDIT"; then
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8513 $as_echo "$ac_ct_NMEDIT" >&6; }
8514 else
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519   if test "x$ac_ct_NMEDIT" = x; then
8520     NMEDIT=":"
8521   else
8522     case $cross_compiling:$ac_tool_warned in
8523 yes:)
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526 ac_tool_warned=yes ;;
8527 esac
8528     NMEDIT=$ac_ct_NMEDIT
8529   fi
8530 else
8531   NMEDIT="$ac_cv_prog_NMEDIT"
8532 fi
8533
8534     if test -n "$ac_tool_prefix"; then
8535   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8536 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_prog_LIPO+:} false; then :
8540   $as_echo_n "(cached) " >&6
8541 else
8542   if test -n "$LIPO"; then
8543   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8547 do
8548   IFS=$as_save_IFS
8549   test -z "$as_dir" && as_dir=.
8550     for ac_exec_ext in '' $ac_executable_extensions; do
8551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554     break 2
8555   fi
8556 done
8557   done
8558 IFS=$as_save_IFS
8559
8560 fi
8561 fi
8562 LIPO=$ac_cv_prog_LIPO
8563 if test -n "$LIPO"; then
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8565 $as_echo "$LIPO" >&6; }
8566 else
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8569 fi
8570
8571
8572 fi
8573 if test -z "$ac_cv_prog_LIPO"; then
8574   ac_ct_LIPO=$LIPO
8575   # Extract the first word of "lipo", so it can be a program name with args.
8576 set dummy lipo; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8580   $as_echo_n "(cached) " >&6
8581 else
8582   if test -n "$ac_ct_LIPO"; then
8583   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588   IFS=$as_save_IFS
8589   test -z "$as_dir" && as_dir=.
8590     for ac_exec_ext in '' $ac_executable_extensions; do
8591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592     ac_cv_prog_ac_ct_LIPO="lipo"
8593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594     break 2
8595   fi
8596 done
8597   done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8603 if test -n "$ac_ct_LIPO"; then
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8605 $as_echo "$ac_ct_LIPO" >&6; }
8606 else
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610
8611   if test "x$ac_ct_LIPO" = x; then
8612     LIPO=":"
8613   else
8614     case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620     LIPO=$ac_ct_LIPO
8621   fi
8622 else
8623   LIPO="$ac_cv_prog_LIPO"
8624 fi
8625
8626     if test -n "$ac_tool_prefix"; then
8627   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8628 set dummy ${ac_tool_prefix}otool; ac_word=$2
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 $as_echo_n "checking for $ac_word... " >&6; }
8631 if ${ac_cv_prog_OTOOL+:} false; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634   if test -n "$OTOOL"; then
8635   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8636 else
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8639 do
8640   IFS=$as_save_IFS
8641   test -z "$as_dir" && as_dir=.
8642     for ac_exec_ext in '' $ac_executable_extensions; do
8643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8644     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646     break 2
8647   fi
8648 done
8649   done
8650 IFS=$as_save_IFS
8651
8652 fi
8653 fi
8654 OTOOL=$ac_cv_prog_OTOOL
8655 if test -n "$OTOOL"; then
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8657 $as_echo "$OTOOL" >&6; }
8658 else
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8661 fi
8662
8663
8664 fi
8665 if test -z "$ac_cv_prog_OTOOL"; then
8666   ac_ct_OTOOL=$OTOOL
8667   # Extract the first word of "otool", so it can be a program name with args.
8668 set dummy otool; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   if test -n "$ac_ct_OTOOL"; then
8675   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8676 else
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8679 do
8680   IFS=$as_save_IFS
8681   test -z "$as_dir" && as_dir=.
8682     for ac_exec_ext in '' $ac_executable_extensions; do
8683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684     ac_cv_prog_ac_ct_OTOOL="otool"
8685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686     break 2
8687   fi
8688 done
8689   done
8690 IFS=$as_save_IFS
8691
8692 fi
8693 fi
8694 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8695 if test -n "$ac_ct_OTOOL"; then
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8697 $as_echo "$ac_ct_OTOOL" >&6; }
8698 else
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8701 fi
8702
8703   if test "x$ac_ct_OTOOL" = x; then
8704     OTOOL=":"
8705   else
8706     case $cross_compiling:$ac_tool_warned in
8707 yes:)
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710 ac_tool_warned=yes ;;
8711 esac
8712     OTOOL=$ac_ct_OTOOL
8713   fi
8714 else
8715   OTOOL="$ac_cv_prog_OTOOL"
8716 fi
8717
8718     if test -n "$ac_tool_prefix"; then
8719   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8720 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_prog_OTOOL64+:} false; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   if test -n "$OTOOL64"; then
8727   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8731 do
8732   IFS=$as_save_IFS
8733   test -z "$as_dir" && as_dir=.
8734     for ac_exec_ext in '' $ac_executable_extensions; do
8735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738     break 2
8739   fi
8740 done
8741   done
8742 IFS=$as_save_IFS
8743
8744 fi
8745 fi
8746 OTOOL64=$ac_cv_prog_OTOOL64
8747 if test -n "$OTOOL64"; then
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8749 $as_echo "$OTOOL64" >&6; }
8750 else
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8753 fi
8754
8755
8756 fi
8757 if test -z "$ac_cv_prog_OTOOL64"; then
8758   ac_ct_OTOOL64=$OTOOL64
8759   # Extract the first word of "otool64", so it can be a program name with args.
8760 set dummy otool64; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   if test -n "$ac_ct_OTOOL64"; then
8767   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8768 else
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in $PATH
8771 do
8772   IFS=$as_save_IFS
8773   test -z "$as_dir" && as_dir=.
8774     for ac_exec_ext in '' $ac_executable_extensions; do
8775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776     ac_cv_prog_ac_ct_OTOOL64="otool64"
8777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778     break 2
8779   fi
8780 done
8781   done
8782 IFS=$as_save_IFS
8783
8784 fi
8785 fi
8786 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8787 if test -n "$ac_ct_OTOOL64"; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8789 $as_echo "$ac_ct_OTOOL64" >&6; }
8790 else
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8793 fi
8794
8795   if test "x$ac_ct_OTOOL64" = x; then
8796     OTOOL64=":"
8797   else
8798     case $cross_compiling:$ac_tool_warned in
8799 yes:)
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8802 ac_tool_warned=yes ;;
8803 esac
8804     OTOOL64=$ac_ct_OTOOL64
8805   fi
8806 else
8807   OTOOL64="$ac_cv_prog_OTOOL64"
8808 fi
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8837 $as_echo_n "checking for -single_module linker flag... " >&6; }
8838 if ${lt_cv_apple_cc_single_mod+:} false; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   lt_cv_apple_cc_single_mod=no
8842       if test -z "$LT_MULTI_MODULE"; then
8843         # By default we will add the -single_module flag. You can override
8844         # by either setting the environment variable LT_MULTI_MODULE
8845         # non-empty at configure time, or by adding -multi_module to the
8846         # link flags.
8847         rm -rf libconftest.dylib*
8848         echo "int foo(void){return 1;}" > conftest.c
8849         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8850 -dynamiclib -Wl,-single_module conftest.c" >&5
8851         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8852           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8853         _lt_result=$?
8854         # If there is a non-empty error log, and "single_module"
8855         # appears in it, assume the flag caused a linker warning
8856         if test -s conftest.err && $GREP single_module conftest.err; then
8857           cat conftest.err >&5
8858         # Otherwise, if the output was created with a 0 exit code from
8859         # the compiler, it worked.
8860         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8861           lt_cv_apple_cc_single_mod=yes
8862         else
8863           cat conftest.err >&5
8864         fi
8865         rm -rf libconftest.dylib*
8866         rm -f conftest.*
8867       fi
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8870 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8871
8872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8873 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8874 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   lt_cv_ld_exported_symbols_list=no
8878       save_LDFLAGS=$LDFLAGS
8879       echo "_main" > conftest.sym
8880       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8881       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h.  */
8883
8884 int
8885 main ()
8886 {
8887
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 if ac_fn_c_try_link "$LINENO"; then :
8893   lt_cv_ld_exported_symbols_list=yes
8894 else
8895   lt_cv_ld_exported_symbols_list=no
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext \
8898     conftest$ac_exeext conftest.$ac_ext
8899         LDFLAGS=$save_LDFLAGS
8900
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8903 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8904
8905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8906 $as_echo_n "checking for -force_load linker flag... " >&6; }
8907 if ${lt_cv_ld_force_load+:} false; then :
8908   $as_echo_n "(cached) " >&6
8909 else
8910   lt_cv_ld_force_load=no
8911       cat > conftest.c << _LT_EOF
8912 int forced_loaded() { return 2;}
8913 _LT_EOF
8914       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8915       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8916       echo "$AR cru libconftest.a conftest.o" >&5
8917       $AR cru libconftest.a conftest.o 2>&5
8918       echo "$RANLIB libconftest.a" >&5
8919       $RANLIB libconftest.a 2>&5
8920       cat > conftest.c << _LT_EOF
8921 int main() { return 0;}
8922 _LT_EOF
8923       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8924       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8925       _lt_result=$?
8926       if test -s conftest.err && $GREP force_load conftest.err; then
8927         cat conftest.err >&5
8928       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8929         lt_cv_ld_force_load=yes
8930       else
8931         cat conftest.err >&5
8932       fi
8933         rm -f conftest.err libconftest.a conftest conftest.c
8934         rm -rf conftest.dSYM
8935
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8938 $as_echo "$lt_cv_ld_force_load" >&6; }
8939     case $host_os in
8940     rhapsody* | darwin1.[012])
8941       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8942     darwin1.*)
8943       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8944     darwin*) # darwin 5.x on
8945       # if running on 10.5 or later, the deployment target defaults
8946       # to the OS version, if on x86, and 10.4, the deployment
8947       # target defaults to 10.4. Don't you love it?
8948       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8949         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8950           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8951         10.[012][,.]*)
8952           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8953         10.*)
8954           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8955       esac
8956     ;;
8957   esac
8958     if test yes = "$lt_cv_apple_cc_single_mod"; then
8959       _lt_dar_single_mod='$single_module'
8960     fi
8961     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8962       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8963     else
8964       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8965     fi
8966     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8967       _lt_dsymutil='~$DSYMUTIL $lib || :'
8968     else
8969       _lt_dsymutil=
8970     fi
8971     ;;
8972   esac
8973
8974 # func_munge_path_list VARIABLE PATH
8975 # -----------------------------------
8976 # VARIABLE is name of variable containing _space_ separated list of
8977 # directories to be munged by the contents of PATH, which is string
8978 # having a format:
8979 # "DIR[:DIR]:"
8980 #       string "DIR[ DIR]" will be prepended to VARIABLE
8981 # ":DIR[:DIR]"
8982 #       string "DIR[ DIR]" will be appended to VARIABLE
8983 # "DIRP[:DIRP]::[DIRA:]DIRA"
8984 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8985 #       "DIRA[ DIRA]" will be appended to VARIABLE
8986 # "DIR[:DIR]"
8987 #       VARIABLE will be replaced by "DIR[ DIR]"
8988 func_munge_path_list ()
8989 {
8990     case x$2 in
8991     x)
8992         ;;
8993     *:)
8994         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8995         ;;
8996     x:*)
8997         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8998         ;;
8999     *::*)
9000         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9001         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9002         ;;
9003     *)
9004         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9005         ;;
9006     esac
9007 }
9008
9009 for ac_header in dlfcn.h
9010 do :
9011   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9012 "
9013 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9014   cat >>confdefs.h <<_ACEOF
9015 #define HAVE_DLFCN_H 1
9016 _ACEOF
9017
9018 fi
9019
9020 done
9021
9022
9023
9024
9025
9026 # Set options
9027
9028
9029
9030         enable_dlopen=no
9031
9032
9033   enable_win32_dll=no
9034
9035
9036             # Check whether --enable-shared was given.
9037 if test "${enable_shared+set}" = set; then :
9038   enableval=$enable_shared; p=${PACKAGE-default}
9039     case $enableval in
9040     yes) enable_shared=yes ;;
9041     no) enable_shared=no ;;
9042     *)
9043       enable_shared=no
9044       # Look at the argument we got.  We use all the common list separators.
9045       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9046       for pkg in $enableval; do
9047         IFS=$lt_save_ifs
9048         if test "X$pkg" = "X$p"; then
9049           enable_shared=yes
9050         fi
9051       done
9052       IFS=$lt_save_ifs
9053       ;;
9054     esac
9055 else
9056   enable_shared=yes
9057 fi
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069 # Check whether --with-pic was given.
9070 if test "${with_pic+set}" = set; then :
9071   withval=$with_pic; lt_p=${PACKAGE-default}
9072     case $withval in
9073     yes|no) pic_mode=$withval ;;
9074     *)
9075       pic_mode=default
9076       # Look at the argument we got.  We use all the common list separators.
9077       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9078       for lt_pkg in $withval; do
9079         IFS=$lt_save_ifs
9080         if test "X$lt_pkg" = "X$lt_p"; then
9081           pic_mode=yes
9082         fi
9083       done
9084       IFS=$lt_save_ifs
9085       ;;
9086     esac
9087 else
9088   pic_mode=default
9089 fi
9090
9091
9092
9093
9094
9095
9096
9097
9098   # Check whether --enable-fast-install was given.
9099 if test "${enable_fast_install+set}" = set; then :
9100   enableval=$enable_fast_install; p=${PACKAGE-default}
9101     case $enableval in
9102     yes) enable_fast_install=yes ;;
9103     no) enable_fast_install=no ;;
9104     *)
9105       enable_fast_install=no
9106       # Look at the argument we got.  We use all the common list separators.
9107       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9108       for pkg in $enableval; do
9109         IFS=$lt_save_ifs
9110         if test "X$pkg" = "X$p"; then
9111           enable_fast_install=yes
9112         fi
9113       done
9114       IFS=$lt_save_ifs
9115       ;;
9116     esac
9117 else
9118   enable_fast_install=yes
9119 fi
9120
9121
9122
9123
9124
9125
9126
9127
9128   shared_archive_member_spec=
9129 case $host,$enable_shared in
9130 power*-*-aix[5-9]*,yes)
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9132 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9133
9134 # Check whether --with-aix-soname was given.
9135 if test "${with_aix_soname+set}" = set; then :
9136   withval=$with_aix_soname; case $withval in
9137     aix|svr4|both)
9138       ;;
9139     *)
9140       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9141       ;;
9142     esac
9143     lt_cv_with_aix_soname=$with_aix_soname
9144 else
9145   if ${lt_cv_with_aix_soname+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   lt_cv_with_aix_soname=aix
9149 fi
9150
9151     with_aix_soname=$lt_cv_with_aix_soname
9152 fi
9153
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9155 $as_echo "$with_aix_soname" >&6; }
9156   if test aix != "$with_aix_soname"; then
9157     # For the AIX way of multilib, we name the shared archive member
9158     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9159     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9160     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9161     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9162     if test 64 = "${OBJECT_MODE-32}"; then
9163       shared_archive_member_spec=shr_64
9164     else
9165       shared_archive_member_spec=shr
9166     fi
9167   fi
9168   ;;
9169 *)
9170   with_aix_soname=aix
9171   ;;
9172 esac
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 # This can be used to rebuild libtool when needed
9184 LIBTOOL_DEPS=$ltmain
9185
9186 # Always use our own libtool.
9187 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218 test -z "$LN_S" && LN_S="ln -s"
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233 if test -n "${ZSH_VERSION+set}"; then
9234    setopt NO_GLOB_SUBST
9235 fi
9236
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9238 $as_echo_n "checking for objdir... " >&6; }
9239 if ${lt_cv_objdir+:} false; then :
9240   $as_echo_n "(cached) " >&6
9241 else
9242   rm -f .libs 2>/dev/null
9243 mkdir .libs 2>/dev/null
9244 if test -d .libs; then
9245   lt_cv_objdir=.libs
9246 else
9247   # MS-DOS does not allow filenames that begin with a dot.
9248   lt_cv_objdir=_libs
9249 fi
9250 rmdir .libs 2>/dev/null
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9253 $as_echo "$lt_cv_objdir" >&6; }
9254 objdir=$lt_cv_objdir
9255
9256
9257
9258
9259
9260 cat >>confdefs.h <<_ACEOF
9261 #define LT_OBJDIR "$lt_cv_objdir/"
9262 _ACEOF
9263
9264
9265
9266
9267 case $host_os in
9268 aix3*)
9269   # AIX sometimes has problems with the GCC collect2 program.  For some
9270   # reason, if we set the COLLECT_NAMES environment variable, the problems
9271   # vanish in a puff of smoke.
9272   if test set != "${COLLECT_NAMES+set}"; then
9273     COLLECT_NAMES=
9274     export COLLECT_NAMES
9275   fi
9276   ;;
9277 esac
9278
9279 # Global variables:
9280 ofile=libtool
9281 can_build_shared=yes
9282
9283 # All known linkers require a '.a' archive for static linking (except MSVC,
9284 # which needs '.lib').
9285 libext=a
9286
9287 with_gnu_ld=$lt_cv_prog_gnu_ld
9288
9289 old_CC=$CC
9290 old_CFLAGS=$CFLAGS
9291
9292 # Set sane defaults for various variables
9293 test -z "$CC" && CC=cc
9294 test -z "$LTCC" && LTCC=$CC
9295 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9296 test -z "$LD" && LD=ld
9297 test -z "$ac_objext" && ac_objext=o
9298
9299 func_cc_basename $compiler
9300 cc_basename=$func_cc_basename_result
9301
9302
9303 # Only perform the check for file, if the check method requires it
9304 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9305 case $deplibs_check_method in
9306 file_magic*)
9307   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9309 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9310 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9311   $as_echo_n "(cached) " >&6
9312 else
9313   case $MAGIC_CMD in
9314 [\\/*] |  ?:[\\/]*)
9315   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9316   ;;
9317 *)
9318   lt_save_MAGIC_CMD=$MAGIC_CMD
9319   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9320   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9321   for ac_dir in $ac_dummy; do
9322     IFS=$lt_save_ifs
9323     test -z "$ac_dir" && ac_dir=.
9324     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9325       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9326       if test -n "$file_magic_test_file"; then
9327         case $deplibs_check_method in
9328         "file_magic "*)
9329           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9330           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9331           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9332             $EGREP "$file_magic_regex" > /dev/null; then
9333             :
9334           else
9335             cat <<_LT_EOF 1>&2
9336
9337 *** Warning: the command libtool uses to detect shared libraries,
9338 *** $file_magic_cmd, produces output that libtool cannot recognize.
9339 *** The result is that libtool may fail to recognize shared libraries
9340 *** as such.  This will affect the creation of libtool libraries that
9341 *** depend on shared libraries, but programs linked with such libtool
9342 *** libraries will work regardless of this problem.  Nevertheless, you
9343 *** may want to report the problem to your system manager and/or to
9344 *** bug-libtool@gnu.org
9345
9346 _LT_EOF
9347           fi ;;
9348         esac
9349       fi
9350       break
9351     fi
9352   done
9353   IFS=$lt_save_ifs
9354   MAGIC_CMD=$lt_save_MAGIC_CMD
9355   ;;
9356 esac
9357 fi
9358
9359 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9360 if test -n "$MAGIC_CMD"; then
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9362 $as_echo "$MAGIC_CMD" >&6; }
9363 else
9364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9366 fi
9367
9368
9369
9370
9371
9372 if test -z "$lt_cv_path_MAGIC_CMD"; then
9373   if test -n "$ac_tool_prefix"; then
9374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9375 $as_echo_n "checking for file... " >&6; }
9376 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9377   $as_echo_n "(cached) " >&6
9378 else
9379   case $MAGIC_CMD in
9380 [\\/*] |  ?:[\\/]*)
9381   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9382   ;;
9383 *)
9384   lt_save_MAGIC_CMD=$MAGIC_CMD
9385   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9386   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9387   for ac_dir in $ac_dummy; do
9388     IFS=$lt_save_ifs
9389     test -z "$ac_dir" && ac_dir=.
9390     if test -f "$ac_dir/file"; then
9391       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9392       if test -n "$file_magic_test_file"; then
9393         case $deplibs_check_method in
9394         "file_magic "*)
9395           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9396           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9397           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9398             $EGREP "$file_magic_regex" > /dev/null; then
9399             :
9400           else
9401             cat <<_LT_EOF 1>&2
9402
9403 *** Warning: the command libtool uses to detect shared libraries,
9404 *** $file_magic_cmd, produces output that libtool cannot recognize.
9405 *** The result is that libtool may fail to recognize shared libraries
9406 *** as such.  This will affect the creation of libtool libraries that
9407 *** depend on shared libraries, but programs linked with such libtool
9408 *** libraries will work regardless of this problem.  Nevertheless, you
9409 *** may want to report the problem to your system manager and/or to
9410 *** bug-libtool@gnu.org
9411
9412 _LT_EOF
9413           fi ;;
9414         esac
9415       fi
9416       break
9417     fi
9418   done
9419   IFS=$lt_save_ifs
9420   MAGIC_CMD=$lt_save_MAGIC_CMD
9421   ;;
9422 esac
9423 fi
9424
9425 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9426 if test -n "$MAGIC_CMD"; then
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9428 $as_echo "$MAGIC_CMD" >&6; }
9429 else
9430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9432 fi
9433
9434
9435   else
9436     MAGIC_CMD=:
9437   fi
9438 fi
9439
9440   fi
9441   ;;
9442 esac
9443
9444 # Use C for the default configuration in the libtool script
9445
9446 lt_save_CC=$CC
9447 ac_ext=c
9448 ac_cpp='$CPP $CPPFLAGS'
9449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9452
9453
9454 # Source file extension for C test sources.
9455 ac_ext=c
9456
9457 # Object file extension for compiled C test sources.
9458 objext=o
9459 objext=$objext
9460
9461 # Code to be used in simple compile tests
9462 lt_simple_compile_test_code="int some_variable = 0;"
9463
9464 # Code to be used in simple link tests
9465 lt_simple_link_test_code='int main(){return(0);}'
9466
9467
9468
9469
9470
9471
9472
9473 # If no C compiler was specified, use CC.
9474 LTCC=${LTCC-"$CC"}
9475
9476 # If no C compiler flags were specified, use CFLAGS.
9477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9478
9479 # Allow CC to be a program name with arguments.
9480 compiler=$CC
9481
9482 # Save the default compiler, since it gets overwritten when the other
9483 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9484 compiler_DEFAULT=$CC
9485
9486 # save warnings/boilerplate of simple test code
9487 ac_outfile=conftest.$ac_objext
9488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9490 _lt_compiler_boilerplate=`cat conftest.err`
9491 $RM conftest*
9492
9493 ac_outfile=conftest.$ac_objext
9494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9496 _lt_linker_boilerplate=`cat conftest.err`
9497 $RM -r conftest*
9498
9499
9500 ## CAVEAT EMPTOR:
9501 ## There is no encapsulation within the following macros, do not change
9502 ## the running order or otherwise move them around unless you know exactly
9503 ## what you are doing...
9504 if test -n "$compiler"; then
9505
9506 lt_prog_compiler_no_builtin_flag=
9507
9508 if test yes = "$GCC"; then
9509   case $cc_basename in
9510   nvcc*)
9511     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9512   *)
9513     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9514   esac
9515
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9517 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9518 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9519   $as_echo_n "(cached) " >&6
9520 else
9521   lt_cv_prog_compiler_rtti_exceptions=no
9522    ac_outfile=conftest.$ac_objext
9523    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9525    # Insert the option either (1) after the last *FLAGS variable, or
9526    # (2) before a word containing "conftest.", or (3) at the end.
9527    # Note that $ac_compile itself does not contain backslashes and begins
9528    # with a dollar sign (not a hyphen), so the echo should work correctly.
9529    # The option is referenced via a variable to avoid confusing sed.
9530    lt_compile=`echo "$ac_compile" | $SED \
9531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9533    -e 's:$: $lt_compiler_flag:'`
9534    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9535    (eval "$lt_compile" 2>conftest.err)
9536    ac_status=$?
9537    cat conftest.err >&5
9538    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539    if (exit $ac_status) && test -s "$ac_outfile"; then
9540      # The compiler can only warn and ignore the option if not recognized
9541      # So say no if there are warnings other than the usual output.
9542      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9543      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9544      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9545        lt_cv_prog_compiler_rtti_exceptions=yes
9546      fi
9547    fi
9548    $RM conftest*
9549
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9552 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9553
9554 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9555     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9556 else
9557     :
9558 fi
9559
9560 fi
9561
9562
9563
9564
9565
9566
9567   lt_prog_compiler_wl=
9568 lt_prog_compiler_pic=
9569 lt_prog_compiler_static=
9570
9571
9572   if test yes = "$GCC"; then
9573     lt_prog_compiler_wl='-Wl,'
9574     lt_prog_compiler_static='-static'
9575
9576     case $host_os in
9577       aix*)
9578       # All AIX code is PIC.
9579       if test ia64 = "$host_cpu"; then
9580         # AIX 5 now supports IA64 processor
9581         lt_prog_compiler_static='-Bstatic'
9582       fi
9583       lt_prog_compiler_pic='-fPIC'
9584       ;;
9585
9586     amigaos*)
9587       case $host_cpu in
9588       powerpc)
9589             # see comment about AmigaOS4 .so support
9590             lt_prog_compiler_pic='-fPIC'
9591         ;;
9592       m68k)
9593             # FIXME: we need at least 68020 code to build shared libraries, but
9594             # adding the '-m68020' flag to GCC prevents building anything better,
9595             # like '-m68040'.
9596             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9597         ;;
9598       esac
9599       ;;
9600
9601     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9602       # PIC is the default for these OSes.
9603       ;;
9604
9605     mingw* | cygwin* | pw32* | os2* | cegcc*)
9606       # This hack is so that the source file can tell whether it is being
9607       # built for inclusion in a dll (and should export symbols for example).
9608       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9609       # (--disable-auto-import) libraries
9610       lt_prog_compiler_pic='-DDLL_EXPORT'
9611       case $host_os in
9612       os2*)
9613         lt_prog_compiler_static='$wl-static'
9614         ;;
9615       esac
9616       ;;
9617
9618     darwin* | rhapsody*)
9619       # PIC is the default on this platform
9620       # Common symbols not allowed in MH_DYLIB files
9621       lt_prog_compiler_pic='-fno-common'
9622       ;;
9623
9624     haiku*)
9625       # PIC is the default for Haiku.
9626       # The "-static" flag exists, but is broken.
9627       lt_prog_compiler_static=
9628       ;;
9629
9630     hpux*)
9631       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9632       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9633       # sets the default TLS model and affects inlining.
9634       case $host_cpu in
9635       hppa*64*)
9636         # +Z the default
9637         ;;
9638       *)
9639         lt_prog_compiler_pic='-fPIC'
9640         ;;
9641       esac
9642       ;;
9643
9644     interix[3-9]*)
9645       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9646       # Instead, we relocate shared libraries at runtime.
9647       ;;
9648
9649     msdosdjgpp*)
9650       # Just because we use GCC doesn't mean we suddenly get shared libraries
9651       # on systems that don't support them.
9652       lt_prog_compiler_can_build_shared=no
9653       enable_shared=no
9654       ;;
9655
9656     *nto* | *qnx*)
9657       # QNX uses GNU C++, but need to define -shared option too, otherwise
9658       # it will coredump.
9659       lt_prog_compiler_pic='-fPIC -shared'
9660       ;;
9661
9662     sysv4*MP*)
9663       if test -d /usr/nec; then
9664         lt_prog_compiler_pic=-Kconform_pic
9665       fi
9666       ;;
9667
9668     *)
9669       lt_prog_compiler_pic='-fPIC'
9670       ;;
9671     esac
9672
9673     case $cc_basename in
9674     nvcc*) # Cuda Compiler Driver 2.2
9675       lt_prog_compiler_wl='-Xlinker '
9676       if test -n "$lt_prog_compiler_pic"; then
9677         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9678       fi
9679       ;;
9680     esac
9681   else
9682     # PORTME Check for flag to pass linker flags through the system compiler.
9683     case $host_os in
9684     aix*)
9685       lt_prog_compiler_wl='-Wl,'
9686       if test ia64 = "$host_cpu"; then
9687         # AIX 5 now supports IA64 processor
9688         lt_prog_compiler_static='-Bstatic'
9689       else
9690         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9691       fi
9692       ;;
9693
9694     darwin* | rhapsody*)
9695       # PIC is the default on this platform
9696       # Common symbols not allowed in MH_DYLIB files
9697       lt_prog_compiler_pic='-fno-common'
9698       case $cc_basename in
9699       nagfor*)
9700         # NAG Fortran compiler
9701         lt_prog_compiler_wl='-Wl,-Wl,,'
9702         lt_prog_compiler_pic='-PIC'
9703         lt_prog_compiler_static='-Bstatic'
9704         ;;
9705       esac
9706       ;;
9707
9708     mingw* | cygwin* | pw32* | os2* | cegcc*)
9709       # This hack is so that the source file can tell whether it is being
9710       # built for inclusion in a dll (and should export symbols for example).
9711       lt_prog_compiler_pic='-DDLL_EXPORT'
9712       case $host_os in
9713       os2*)
9714         lt_prog_compiler_static='$wl-static'
9715         ;;
9716       esac
9717       ;;
9718
9719     hpux9* | hpux10* | hpux11*)
9720       lt_prog_compiler_wl='-Wl,'
9721       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9722       # not for PA HP-UX.
9723       case $host_cpu in
9724       hppa*64*|ia64*)
9725         # +Z the default
9726         ;;
9727       *)
9728         lt_prog_compiler_pic='+Z'
9729         ;;
9730       esac
9731       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9732       lt_prog_compiler_static='$wl-a ${wl}archive'
9733       ;;
9734
9735     irix5* | irix6* | nonstopux*)
9736       lt_prog_compiler_wl='-Wl,'
9737       # PIC (with -KPIC) is the default.
9738       lt_prog_compiler_static='-non_shared'
9739       ;;
9740
9741     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9742       case $cc_basename in
9743       # old Intel for x86_64, which still supported -KPIC.
9744       ecc*)
9745         lt_prog_compiler_wl='-Wl,'
9746         lt_prog_compiler_pic='-KPIC'
9747         lt_prog_compiler_static='-static'
9748         ;;
9749       # icc used to be incompatible with GCC.
9750       # ICC 10 doesn't accept -KPIC any more.
9751       icc* | ifort*)
9752         lt_prog_compiler_wl='-Wl,'
9753         lt_prog_compiler_pic='-fPIC'
9754         lt_prog_compiler_static='-static'
9755         ;;
9756       # Lahey Fortran 8.1.
9757       lf95*)
9758         lt_prog_compiler_wl='-Wl,'
9759         lt_prog_compiler_pic='--shared'
9760         lt_prog_compiler_static='--static'
9761         ;;
9762       nagfor*)
9763         # NAG Fortran compiler
9764         lt_prog_compiler_wl='-Wl,-Wl,,'
9765         lt_prog_compiler_pic='-PIC'
9766         lt_prog_compiler_static='-Bstatic'
9767         ;;
9768       tcc*)
9769         # Fabrice Bellard et al's Tiny C Compiler
9770         lt_prog_compiler_wl='-Wl,'
9771         lt_prog_compiler_pic='-fPIC'
9772         lt_prog_compiler_static='-static'
9773         ;;
9774       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9775         # Portland Group compilers (*not* the Pentium gcc compiler,
9776         # which looks to be a dead project)
9777         lt_prog_compiler_wl='-Wl,'
9778         lt_prog_compiler_pic='-fpic'
9779         lt_prog_compiler_static='-Bstatic'
9780         ;;
9781       ccc*)
9782         lt_prog_compiler_wl='-Wl,'
9783         # All Alpha code is PIC.
9784         lt_prog_compiler_static='-non_shared'
9785         ;;
9786       xl* | bgxl* | bgf* | mpixl*)
9787         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9788         lt_prog_compiler_wl='-Wl,'
9789         lt_prog_compiler_pic='-qpic'
9790         lt_prog_compiler_static='-qstaticlink'
9791         ;;
9792       *)
9793         case `$CC -V 2>&1 | sed 5q` in
9794         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9795           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9796           lt_prog_compiler_pic='-KPIC'
9797           lt_prog_compiler_static='-Bstatic'
9798           lt_prog_compiler_wl=''
9799           ;;
9800         *Sun\ F* | *Sun*Fortran*)
9801           lt_prog_compiler_pic='-KPIC'
9802           lt_prog_compiler_static='-Bstatic'
9803           lt_prog_compiler_wl='-Qoption ld '
9804           ;;
9805         *Sun\ C*)
9806           # Sun C 5.9
9807           lt_prog_compiler_pic='-KPIC'
9808           lt_prog_compiler_static='-Bstatic'
9809           lt_prog_compiler_wl='-Wl,'
9810           ;;
9811         *Intel*\ [CF]*Compiler*)
9812           lt_prog_compiler_wl='-Wl,'
9813           lt_prog_compiler_pic='-fPIC'
9814           lt_prog_compiler_static='-static'
9815           ;;
9816         *Portland\ Group*)
9817           lt_prog_compiler_wl='-Wl,'
9818           lt_prog_compiler_pic='-fpic'
9819           lt_prog_compiler_static='-Bstatic'
9820           ;;
9821         esac
9822         ;;
9823       esac
9824       ;;
9825
9826     newsos6)
9827       lt_prog_compiler_pic='-KPIC'
9828       lt_prog_compiler_static='-Bstatic'
9829       ;;
9830
9831     *nto* | *qnx*)
9832       # QNX uses GNU C++, but need to define -shared option too, otherwise
9833       # it will coredump.
9834       lt_prog_compiler_pic='-fPIC -shared'
9835       ;;
9836
9837     osf3* | osf4* | osf5*)
9838       lt_prog_compiler_wl='-Wl,'
9839       # All OSF/1 code is PIC.
9840       lt_prog_compiler_static='-non_shared'
9841       ;;
9842
9843     rdos*)
9844       lt_prog_compiler_static='-non_shared'
9845       ;;
9846
9847     solaris*)
9848       lt_prog_compiler_pic='-KPIC'
9849       lt_prog_compiler_static='-Bstatic'
9850       case $cc_basename in
9851       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9852         lt_prog_compiler_wl='-Qoption ld ';;
9853       *)
9854         lt_prog_compiler_wl='-Wl,';;
9855       esac
9856       ;;
9857
9858     sunos4*)
9859       lt_prog_compiler_wl='-Qoption ld '
9860       lt_prog_compiler_pic='-PIC'
9861       lt_prog_compiler_static='-Bstatic'
9862       ;;
9863
9864     sysv4 | sysv4.2uw2* | sysv4.3*)
9865       lt_prog_compiler_wl='-Wl,'
9866       lt_prog_compiler_pic='-KPIC'
9867       lt_prog_compiler_static='-Bstatic'
9868       ;;
9869
9870     sysv4*MP*)
9871       if test -d /usr/nec; then
9872         lt_prog_compiler_pic='-Kconform_pic'
9873         lt_prog_compiler_static='-Bstatic'
9874       fi
9875       ;;
9876
9877     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9878       lt_prog_compiler_wl='-Wl,'
9879       lt_prog_compiler_pic='-KPIC'
9880       lt_prog_compiler_static='-Bstatic'
9881       ;;
9882
9883     unicos*)
9884       lt_prog_compiler_wl='-Wl,'
9885       lt_prog_compiler_can_build_shared=no
9886       ;;
9887
9888     uts4*)
9889       lt_prog_compiler_pic='-pic'
9890       lt_prog_compiler_static='-Bstatic'
9891       ;;
9892
9893     *)
9894       lt_prog_compiler_can_build_shared=no
9895       ;;
9896     esac
9897   fi
9898
9899 case $host_os in
9900   # For platforms that do not support PIC, -DPIC is meaningless:
9901   *djgpp*)
9902     lt_prog_compiler_pic=
9903     ;;
9904   *)
9905     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9906     ;;
9907 esac
9908
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9910 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9911 if ${lt_cv_prog_compiler_pic+:} false; then :
9912   $as_echo_n "(cached) " >&6
9913 else
9914   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9915 fi
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9917 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9918 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9919
9920 #
9921 # Check to make sure the PIC flag actually works.
9922 #
9923 if test -n "$lt_prog_compiler_pic"; then
9924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9925 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9926 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   lt_cv_prog_compiler_pic_works=no
9930    ac_outfile=conftest.$ac_objext
9931    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9932    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9933    # Insert the option either (1) after the last *FLAGS variable, or
9934    # (2) before a word containing "conftest.", or (3) at the end.
9935    # Note that $ac_compile itself does not contain backslashes and begins
9936    # with a dollar sign (not a hyphen), so the echo should work correctly.
9937    # The option is referenced via a variable to avoid confusing sed.
9938    lt_compile=`echo "$ac_compile" | $SED \
9939    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9940    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9941    -e 's:$: $lt_compiler_flag:'`
9942    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9943    (eval "$lt_compile" 2>conftest.err)
9944    ac_status=$?
9945    cat conftest.err >&5
9946    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947    if (exit $ac_status) && test -s "$ac_outfile"; then
9948      # The compiler can only warn and ignore the option if not recognized
9949      # So say no if there are warnings other than the usual output.
9950      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9951      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9953        lt_cv_prog_compiler_pic_works=yes
9954      fi
9955    fi
9956    $RM conftest*
9957
9958 fi
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9960 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9961
9962 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9963     case $lt_prog_compiler_pic in
9964      "" | " "*) ;;
9965      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9966      esac
9967 else
9968     lt_prog_compiler_pic=
9969      lt_prog_compiler_can_build_shared=no
9970 fi
9971
9972 fi
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984 #
9985 # Check to make sure the static flag actually works.
9986 #
9987 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9990 if ${lt_cv_prog_compiler_static_works+:} false; then :
9991   $as_echo_n "(cached) " >&6
9992 else
9993   lt_cv_prog_compiler_static_works=no
9994    save_LDFLAGS=$LDFLAGS
9995    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9996    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9997    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9998      # The linker can only warn and ignore the option if not recognized
9999      # So say no if there are warnings
10000      if test -s conftest.err; then
10001        # Append any errors to the config.log.
10002        cat conftest.err 1>&5
10003        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10004        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10005        if diff conftest.exp conftest.er2 >/dev/null; then
10006          lt_cv_prog_compiler_static_works=yes
10007        fi
10008      else
10009        lt_cv_prog_compiler_static_works=yes
10010      fi
10011    fi
10012    $RM -r conftest*
10013    LDFLAGS=$save_LDFLAGS
10014
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10017 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10018
10019 if test yes = "$lt_cv_prog_compiler_static_works"; then
10020     :
10021 else
10022     lt_prog_compiler_static=
10023 fi
10024
10025
10026
10027
10028
10029
10030
10031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10033 if ${lt_cv_prog_compiler_c_o+:} false; then :
10034   $as_echo_n "(cached) " >&6
10035 else
10036   lt_cv_prog_compiler_c_o=no
10037    $RM -r conftest 2>/dev/null
10038    mkdir conftest
10039    cd conftest
10040    mkdir out
10041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10042
10043    lt_compiler_flag="-o out/conftest2.$ac_objext"
10044    # Insert the option either (1) after the last *FLAGS variable, or
10045    # (2) before a word containing "conftest.", or (3) at the end.
10046    # Note that $ac_compile itself does not contain backslashes and begins
10047    # with a dollar sign (not a hyphen), so the echo should work correctly.
10048    lt_compile=`echo "$ac_compile" | $SED \
10049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10051    -e 's:$: $lt_compiler_flag:'`
10052    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10053    (eval "$lt_compile" 2>out/conftest.err)
10054    ac_status=$?
10055    cat out/conftest.err >&5
10056    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10058    then
10059      # The compiler can only warn and ignore the option if not recognized
10060      # So say no if there are warnings
10061      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10062      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10063      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10064        lt_cv_prog_compiler_c_o=yes
10065      fi
10066    fi
10067    chmod u+w . 2>&5
10068    $RM conftest*
10069    # SGI C++ compiler will create directory out/ii_files/ for
10070    # template instantiation
10071    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10072    $RM out/* && rmdir out
10073    cd ..
10074    $RM -r conftest
10075    $RM conftest*
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10079 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10080
10081
10082
10083
10084
10085
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10088 if ${lt_cv_prog_compiler_c_o+:} false; then :
10089   $as_echo_n "(cached) " >&6
10090 else
10091   lt_cv_prog_compiler_c_o=no
10092    $RM -r conftest 2>/dev/null
10093    mkdir conftest
10094    cd conftest
10095    mkdir out
10096    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10097
10098    lt_compiler_flag="-o out/conftest2.$ac_objext"
10099    # Insert the option either (1) after the last *FLAGS variable, or
10100    # (2) before a word containing "conftest.", or (3) at the end.
10101    # Note that $ac_compile itself does not contain backslashes and begins
10102    # with a dollar sign (not a hyphen), so the echo should work correctly.
10103    lt_compile=`echo "$ac_compile" | $SED \
10104    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10106    -e 's:$: $lt_compiler_flag:'`
10107    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10108    (eval "$lt_compile" 2>out/conftest.err)
10109    ac_status=$?
10110    cat out/conftest.err >&5
10111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10113    then
10114      # The compiler can only warn and ignore the option if not recognized
10115      # So say no if there are warnings
10116      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10117      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10118      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10119        lt_cv_prog_compiler_c_o=yes
10120      fi
10121    fi
10122    chmod u+w . 2>&5
10123    $RM conftest*
10124    # SGI C++ compiler will create directory out/ii_files/ for
10125    # template instantiation
10126    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10127    $RM out/* && rmdir out
10128    cd ..
10129    $RM -r conftest
10130    $RM conftest*
10131
10132 fi
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10135
10136
10137
10138
10139 hard_links=nottested
10140 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10141   # do not overwrite the value of need_locks provided by the user
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10143 $as_echo_n "checking if we can lock with hard links... " >&6; }
10144   hard_links=yes
10145   $RM conftest*
10146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10147   touch conftest.a
10148   ln conftest.a conftest.b 2>&5 || hard_links=no
10149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10151 $as_echo "$hard_links" >&6; }
10152   if test no = "$hard_links"; then
10153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10154 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10155     need_locks=warn
10156   fi
10157 else
10158   need_locks=no
10159 fi
10160
10161
10162
10163
10164
10165
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10167 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10168
10169   runpath_var=
10170   allow_undefined_flag=
10171   always_export_symbols=no
10172   archive_cmds=
10173   archive_expsym_cmds=
10174   compiler_needs_object=no
10175   enable_shared_with_static_runtimes=no
10176   export_dynamic_flag_spec=
10177   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10178   hardcode_automatic=no
10179   hardcode_direct=no
10180   hardcode_direct_absolute=no
10181   hardcode_libdir_flag_spec=
10182   hardcode_libdir_separator=
10183   hardcode_minus_L=no
10184   hardcode_shlibpath_var=unsupported
10185   inherit_rpath=no
10186   link_all_deplibs=unknown
10187   module_cmds=
10188   module_expsym_cmds=
10189   old_archive_from_new_cmds=
10190   old_archive_from_expsyms_cmds=
10191   thread_safe_flag_spec=
10192   whole_archive_flag_spec=
10193   # include_expsyms should be a list of space-separated symbols to be *always*
10194   # included in the symbol list
10195   include_expsyms=
10196   # exclude_expsyms can be an extended regexp of symbols to exclude
10197   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10198   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10199   # as well as any symbol that contains 'd'.
10200   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10201   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10202   # platforms (ab)use it in PIC code, but their linkers get confused if
10203   # the symbol is explicitly referenced.  Since portable code cannot
10204   # rely on this symbol name, it's probably fine to never include it in
10205   # preloaded symbol tables.
10206   # Exclude shared library initialization/finalization symbols.
10207   extract_expsyms_cmds=
10208
10209   case $host_os in
10210   cygwin* | mingw* | pw32* | cegcc*)
10211     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10212     # When not using gcc, we currently assume that we are using
10213     # Microsoft Visual C++.
10214     if test yes != "$GCC"; then
10215       with_gnu_ld=no
10216     fi
10217     ;;
10218   interix*)
10219     # we just hope/assume this is gcc and not c89 (= MSVC++)
10220     with_gnu_ld=yes
10221     ;;
10222   openbsd* | bitrig*)
10223     with_gnu_ld=no
10224     ;;
10225   linux* | k*bsd*-gnu | gnu*)
10226     link_all_deplibs=no
10227     ;;
10228   esac
10229
10230   ld_shlibs=yes
10231
10232   # On some targets, GNU ld is compatible enough with the native linker
10233   # that we're better off using the native interface for both.
10234   lt_use_gnu_ld_interface=no
10235   if test yes = "$with_gnu_ld"; then
10236     case $host_os in
10237       aix*)
10238         # The AIX port of GNU ld has always aspired to compatibility
10239         # with the native linker.  However, as the warning in the GNU ld
10240         # block says, versions before 2.19.5* couldn't really create working
10241         # shared libraries, regardless of the interface used.
10242         case `$LD -v 2>&1` in
10243           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10244           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10245           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10246           *)
10247             lt_use_gnu_ld_interface=yes
10248             ;;
10249         esac
10250         ;;
10251       *)
10252         lt_use_gnu_ld_interface=yes
10253         ;;
10254     esac
10255   fi
10256
10257   if test yes = "$lt_use_gnu_ld_interface"; then
10258     # If archive_cmds runs LD, not CC, wlarc should be empty
10259     wlarc='$wl'
10260
10261     # Set some defaults for GNU ld with shared library support. These
10262     # are reset later if shared libraries are not supported. Putting them
10263     # here allows them to be overridden if necessary.
10264     runpath_var=LD_RUN_PATH
10265     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10266     export_dynamic_flag_spec='$wl--export-dynamic'
10267     # ancient GNU ld didn't support --whole-archive et. al.
10268     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10269       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10270     else
10271       whole_archive_flag_spec=
10272     fi
10273     supports_anon_versioning=no
10274     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10275       *GNU\ gold*) supports_anon_versioning=yes ;;
10276       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10277       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10278       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10279       *\ 2.11.*) ;; # other 2.11 versions
10280       *) supports_anon_versioning=yes ;;
10281     esac
10282
10283     # See if GNU ld supports shared libraries.
10284     case $host_os in
10285     aix[3-9]*)
10286       # On AIX/PPC, the GNU linker is very broken
10287       if test ia64 != "$host_cpu"; then
10288         ld_shlibs=no
10289         cat <<_LT_EOF 1>&2
10290
10291 *** Warning: the GNU linker, at least up to release 2.19, is reported
10292 *** to be unable to reliably create shared libraries on AIX.
10293 *** Therefore, libtool is disabling shared libraries support.  If you
10294 *** really care for shared libraries, you may want to install binutils
10295 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10296 *** You will then need to restart the configuration process.
10297
10298 _LT_EOF
10299       fi
10300       ;;
10301
10302     amigaos*)
10303       case $host_cpu in
10304       powerpc)
10305             # see comment about AmigaOS4 .so support
10306             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10307             archive_expsym_cmds=''
10308         ;;
10309       m68k)
10310             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)'
10311             hardcode_libdir_flag_spec='-L$libdir'
10312             hardcode_minus_L=yes
10313         ;;
10314       esac
10315       ;;
10316
10317     beos*)
10318       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319         allow_undefined_flag=unsupported
10320         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10321         # support --undefined.  This deserves some investigation.  FIXME
10322         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10323       else
10324         ld_shlibs=no
10325       fi
10326       ;;
10327
10328     cygwin* | mingw* | pw32* | cegcc*)
10329       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10330       # as there is no search path for DLLs.
10331       hardcode_libdir_flag_spec='-L$libdir'
10332       export_dynamic_flag_spec='$wl--export-all-symbols'
10333       allow_undefined_flag=unsupported
10334       always_export_symbols=no
10335       enable_shared_with_static_runtimes=yes
10336       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'
10337       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10338
10339       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10340         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10341         # If the export-symbols file already is a .def file, use it as
10342         # is; otherwise, prepend EXPORTS...
10343         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10344           cp $export_symbols $output_objdir/$soname.def;
10345         else
10346           echo EXPORTS > $output_objdir/$soname.def;
10347           cat $export_symbols >> $output_objdir/$soname.def;
10348         fi~
10349         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10350       else
10351         ld_shlibs=no
10352       fi
10353       ;;
10354
10355     haiku*)
10356       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10357       link_all_deplibs=yes
10358       ;;
10359
10360     os2*)
10361       hardcode_libdir_flag_spec='-L$libdir'
10362       hardcode_minus_L=yes
10363       allow_undefined_flag=unsupported
10364       shrext_cmds=.dll
10365       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10366         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10367         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10368         $ECHO EXPORTS >> $output_objdir/$libname.def~
10369         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10370         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10371         emximp -o $lib $output_objdir/$libname.def'
10372       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10373         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10374         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10375         $ECHO EXPORTS >> $output_objdir/$libname.def~
10376         prefix_cmds="$SED"~
10377         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10378           prefix_cmds="$prefix_cmds -e 1d";
10379         fi~
10380         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10381         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10382         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10383         emximp -o $lib $output_objdir/$libname.def'
10384       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10385       enable_shared_with_static_runtimes=yes
10386       ;;
10387
10388     interix[3-9]*)
10389       hardcode_direct=no
10390       hardcode_shlibpath_var=no
10391       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10392       export_dynamic_flag_spec='$wl-E'
10393       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10394       # Instead, shared libraries are loaded at an image base (0x10000000 by
10395       # default) and relocated if they conflict, which is a slow very memory
10396       # consuming and fragmenting process.  To avoid this, we pick a random,
10397       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10398       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10399       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10400       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'
10401       ;;
10402
10403     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10404       tmp_diet=no
10405       if test linux-dietlibc = "$host_os"; then
10406         case $cc_basename in
10407           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10408         esac
10409       fi
10410       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10411          && test no = "$tmp_diet"
10412       then
10413         tmp_addflag=' $pic_flag'
10414         tmp_sharedflag='-shared'
10415         case $cc_basename,$host_cpu in
10416         pgcc*)                          # Portland Group C compiler
10417           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'
10418           tmp_addflag=' $pic_flag'
10419           ;;
10420         pgf77* | pgf90* | pgf95* | pgfortran*)
10421                                         # Portland Group f77 and f90 compilers
10422           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'
10423           tmp_addflag=' $pic_flag -Mnomain' ;;
10424         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10425           tmp_addflag=' -i_dynamic' ;;
10426         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10427           tmp_addflag=' -i_dynamic -nofor_main' ;;
10428         ifc* | ifort*)                  # Intel Fortran compiler
10429           tmp_addflag=' -nofor_main' ;;
10430         lf95*)                          # Lahey Fortran 8.1
10431           whole_archive_flag_spec=
10432           tmp_sharedflag='--shared' ;;
10433         nagfor*)                        # NAGFOR 5.3
10434           tmp_sharedflag='-Wl,-shared' ;;
10435         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10436           tmp_sharedflag='-qmkshrobj'
10437           tmp_addflag= ;;
10438         nvcc*)  # Cuda Compiler Driver 2.2
10439           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'
10440           compiler_needs_object=yes
10441           ;;
10442         esac
10443         case `$CC -V 2>&1 | sed 5q` in
10444         *Sun\ C*)                       # Sun C 5.9
10445           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'
10446           compiler_needs_object=yes
10447           tmp_sharedflag='-G' ;;
10448         *Sun\ F*)                       # Sun Fortran 8.3
10449           tmp_sharedflag='-G' ;;
10450         esac
10451         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10452
10453         if test yes = "$supports_anon_versioning"; then
10454           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10455             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10456             echo "local: *; };" >> $output_objdir/$libname.ver~
10457             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10458         fi
10459
10460         case $cc_basename in
10461         tcc*)
10462           export_dynamic_flag_spec='-rdynamic'
10463           ;;
10464         xlf* | bgf* | bgxlf* | mpixlf*)
10465           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10466           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10467           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10468           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10469           if test yes = "$supports_anon_versioning"; then
10470             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10471               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10472               echo "local: *; };" >> $output_objdir/$libname.ver~
10473               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10474           fi
10475           ;;
10476         esac
10477       else
10478         ld_shlibs=no
10479       fi
10480       ;;
10481
10482     netbsd* | netbsdelf*-gnu)
10483       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10485         wlarc=
10486       else
10487         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10488         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10489       fi
10490       ;;
10491
10492     solaris*)
10493       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10494         ld_shlibs=no
10495         cat <<_LT_EOF 1>&2
10496
10497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10498 *** create shared libraries on Solaris systems.  Therefore, libtool
10499 *** is disabling shared libraries support.  We urge you to upgrade GNU
10500 *** binutils to release 2.9.1 or newer.  Another option is to modify
10501 *** your PATH or compiler configuration so that the native linker is
10502 *** used, and then restart.
10503
10504 _LT_EOF
10505       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10506         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10507         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10508       else
10509         ld_shlibs=no
10510       fi
10511       ;;
10512
10513     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10514       case `$LD -v 2>&1` in
10515         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10516         ld_shlibs=no
10517         cat <<_LT_EOF 1>&2
10518
10519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10520 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10521 *** is disabling shared libraries support.  We urge you to upgrade GNU
10522 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10523 *** your PATH or compiler configuration so that the native linker is
10524 *** used, and then restart.
10525
10526 _LT_EOF
10527         ;;
10528         *)
10529           # For security reasons, it is highly recommended that you always
10530           # use absolute paths for naming shared libraries, and exclude the
10531           # DT_RUNPATH tag from executables and libraries.  But doing so
10532           # requires that you compile everything twice, which is a pain.
10533           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10534             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10535             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10536             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10537           else
10538             ld_shlibs=no
10539           fi
10540         ;;
10541       esac
10542       ;;
10543
10544     sunos4*)
10545       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10546       wlarc=
10547       hardcode_direct=yes
10548       hardcode_shlibpath_var=no
10549       ;;
10550
10551     *)
10552       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10553         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10554         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10555       else
10556         ld_shlibs=no
10557       fi
10558       ;;
10559     esac
10560
10561     if test no = "$ld_shlibs"; then
10562       runpath_var=
10563       hardcode_libdir_flag_spec=
10564       export_dynamic_flag_spec=
10565       whole_archive_flag_spec=
10566     fi
10567   else
10568     # PORTME fill in a description of your system's linker (not GNU ld)
10569     case $host_os in
10570     aix3*)
10571       allow_undefined_flag=unsupported
10572       always_export_symbols=yes
10573       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'
10574       # Note: this linker hardcodes the directories in LIBPATH if there
10575       # are no directories specified by -L.
10576       hardcode_minus_L=yes
10577       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10578         # Neither direct hardcoding nor static linking is supported with a
10579         # broken collect2.
10580         hardcode_direct=unsupported
10581       fi
10582       ;;
10583
10584     aix[4-9]*)
10585       if test ia64 = "$host_cpu"; then
10586         # On IA64, the linker does run time linking by default, so we don't
10587         # have to do anything special.
10588         aix_use_runtimelinking=no
10589         exp_sym_flag='-Bexport'
10590         no_entry_flag=
10591       else
10592         # If we're using GNU nm, then we don't want the "-C" option.
10593         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10594         # Without the "-l" option, or with the "-B" option, AIX nm treats
10595         # weak defined symbols like other global defined symbols, whereas
10596         # GNU nm marks them as "W".
10597         # While the 'weak' keyword is ignored in the Export File, we need
10598         # it in the Import File for the 'aix-soname' feature, so we have
10599         # to replace the "-B" option with "-P" for AIX nm.
10600         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10601           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10602         else
10603           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10604         fi
10605         aix_use_runtimelinking=no
10606
10607         # Test if we are trying to use run time linking or normal
10608         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10609         # have runtime linking enabled, and use it for executables.
10610         # For shared libraries, we enable/disable runtime linking
10611         # depending on the kind of the shared library created -
10612         # when "with_aix_soname,aix_use_runtimelinking" is:
10613         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10614         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10615         #            lib.a           static archive
10616         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10617         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10618         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10619         #            lib.a(lib.so.V) shared, rtl:no
10620         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10621         #            lib.a           static archive
10622         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10623           for ld_flag in $LDFLAGS; do
10624           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10625             aix_use_runtimelinking=yes
10626             break
10627           fi
10628           done
10629           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10630             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10631             # so we don't have lib.a shared libs to link our executables.
10632             # We have to force runtime linking in this case.
10633             aix_use_runtimelinking=yes
10634             LDFLAGS="$LDFLAGS -Wl,-brtl"
10635           fi
10636           ;;
10637         esac
10638
10639         exp_sym_flag='-bexport'
10640         no_entry_flag='-bnoentry'
10641       fi
10642
10643       # When large executables or shared objects are built, AIX ld can
10644       # have problems creating the table of contents.  If linking a library
10645       # or program results in "error TOC overflow" add -mminimal-toc to
10646       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10647       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10648
10649       archive_cmds=''
10650       hardcode_direct=yes
10651       hardcode_direct_absolute=yes
10652       hardcode_libdir_separator=':'
10653       link_all_deplibs=yes
10654       file_list_spec='$wl-f,'
10655       case $with_aix_soname,$aix_use_runtimelinking in
10656       aix,*) ;; # traditional, no import file
10657       svr4,* | *,yes) # use import file
10658         # The Import File defines what to hardcode.
10659         hardcode_direct=no
10660         hardcode_direct_absolute=no
10661         ;;
10662       esac
10663
10664       if test yes = "$GCC"; then
10665         case $host_os in aix4.[012]|aix4.[012].*)
10666         # We only want to do this on AIX 4.2 and lower, the check
10667         # below for broken collect2 doesn't work under 4.3+
10668           collect2name=`$CC -print-prog-name=collect2`
10669           if test -f "$collect2name" &&
10670            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10671           then
10672           # We have reworked collect2
10673           :
10674           else
10675           # We have old collect2
10676           hardcode_direct=unsupported
10677           # It fails to find uninstalled libraries when the uninstalled
10678           # path is not listed in the libpath.  Setting hardcode_minus_L
10679           # to unsupported forces relinking
10680           hardcode_minus_L=yes
10681           hardcode_libdir_flag_spec='-L$libdir'
10682           hardcode_libdir_separator=
10683           fi
10684           ;;
10685         esac
10686         shared_flag='-shared'
10687         if test yes = "$aix_use_runtimelinking"; then
10688           shared_flag="$shared_flag "'$wl-G'
10689         fi
10690         # Need to ensure runtime linking is disabled for the traditional
10691         # shared library, or the linker may eventually find shared libraries
10692         # /with/ Import File - we do not want to mix them.
10693         shared_flag_aix='-shared'
10694         shared_flag_svr4='-shared $wl-G'
10695       else
10696         # not using gcc
10697         if test ia64 = "$host_cpu"; then
10698         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10699         # chokes on -Wl,-G. The following line is correct:
10700           shared_flag='-G'
10701         else
10702           if test yes = "$aix_use_runtimelinking"; then
10703             shared_flag='$wl-G'
10704           else
10705             shared_flag='$wl-bM:SRE'
10706           fi
10707           shared_flag_aix='$wl-bM:SRE'
10708           shared_flag_svr4='$wl-G'
10709         fi
10710       fi
10711
10712       export_dynamic_flag_spec='$wl-bexpall'
10713       # It seems that -bexpall does not export symbols beginning with
10714       # underscore (_), so it is better to generate a list of symbols to export.
10715       always_export_symbols=yes
10716       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10717         # Warning - without using the other runtime loading flags (-brtl),
10718         # -berok will link without error, but may produce a broken library.
10719         allow_undefined_flag='-berok'
10720         # Determine the default libpath from the value encoded in an
10721         # empty executable.
10722         if test set = "${lt_cv_aix_libpath+set}"; then
10723   aix_libpath=$lt_cv_aix_libpath
10724 else
10725   if ${lt_cv_aix_libpath_+:} false; then :
10726   $as_echo_n "(cached) " >&6
10727 else
10728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h.  */
10730
10731 int
10732 main ()
10733 {
10734
10735   ;
10736   return 0;
10737 }
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740
10741   lt_aix_libpath_sed='
10742       /Import File Strings/,/^$/ {
10743           /^0/ {
10744               s/^0  *\([^ ]*\) *$/\1/
10745               p
10746           }
10747       }'
10748   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749   # Check for a 64-bit object if we didn't find anything.
10750   if test -z "$lt_cv_aix_libpath_"; then
10751     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10752   fi
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755     conftest$ac_exeext conftest.$ac_ext
10756   if test -z "$lt_cv_aix_libpath_"; then
10757     lt_cv_aix_libpath_=/usr/lib:/lib
10758   fi
10759
10760 fi
10761
10762   aix_libpath=$lt_cv_aix_libpath_
10763 fi
10764
10765         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10766         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10767       else
10768         if test ia64 = "$host_cpu"; then
10769           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10770           allow_undefined_flag="-z nodefs"
10771           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"
10772         else
10773          # Determine the default libpath from the value encoded in an
10774          # empty executable.
10775          if test set = "${lt_cv_aix_libpath+set}"; then
10776   aix_libpath=$lt_cv_aix_libpath
10777 else
10778   if ${lt_cv_aix_libpath_+:} false; then :
10779   $as_echo_n "(cached) " >&6
10780 else
10781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783
10784 int
10785 main ()
10786 {
10787
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793
10794   lt_aix_libpath_sed='
10795       /Import File Strings/,/^$/ {
10796           /^0/ {
10797               s/^0  *\([^ ]*\) *$/\1/
10798               p
10799           }
10800       }'
10801   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10802   # Check for a 64-bit object if we didn't find anything.
10803   if test -z "$lt_cv_aix_libpath_"; then
10804     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10805   fi
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext \
10808     conftest$ac_exeext conftest.$ac_ext
10809   if test -z "$lt_cv_aix_libpath_"; then
10810     lt_cv_aix_libpath_=/usr/lib:/lib
10811   fi
10812
10813 fi
10814
10815   aix_libpath=$lt_cv_aix_libpath_
10816 fi
10817
10818          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10819           # Warning - without using the other run time loading flags,
10820           # -berok will link without error, but may produce a broken library.
10821           no_undefined_flag=' $wl-bernotok'
10822           allow_undefined_flag=' $wl-berok'
10823           if test yes = "$with_gnu_ld"; then
10824             # We only use this code for GNU lds that support --whole-archive.
10825             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10826           else
10827             # Exported symbols can be pulled into shared objects from archives
10828             whole_archive_flag_spec='$convenience'
10829           fi
10830           archive_cmds_need_lc=yes
10831           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10832           # -brtl affects multiple linker settings, -berok does not and is overridden later
10833           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10834           if test svr4 != "$with_aix_soname"; then
10835             # This is similar to how AIX traditionally builds its shared libraries.
10836             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10837           fi
10838           if test aix != "$with_aix_soname"; then
10839             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10840           else
10841             # used by -dlpreopen to get the symbols
10842             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10843           fi
10844           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10845         fi
10846       fi
10847       ;;
10848
10849     amigaos*)
10850       case $host_cpu in
10851       powerpc)
10852             # see comment about AmigaOS4 .so support
10853             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10854             archive_expsym_cmds=''
10855         ;;
10856       m68k)
10857             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)'
10858             hardcode_libdir_flag_spec='-L$libdir'
10859             hardcode_minus_L=yes
10860         ;;
10861       esac
10862       ;;
10863
10864     bsdi[45]*)
10865       export_dynamic_flag_spec=-rdynamic
10866       ;;
10867
10868     cygwin* | mingw* | pw32* | cegcc*)
10869       # When not using gcc, we currently assume that we are using
10870       # Microsoft Visual C++.
10871       # hardcode_libdir_flag_spec is actually meaningless, as there is
10872       # no search path for DLLs.
10873       case $cc_basename in
10874       cl*)
10875         # Native MSVC
10876         hardcode_libdir_flag_spec=' '
10877         allow_undefined_flag=unsupported
10878         always_export_symbols=yes
10879         file_list_spec='@'
10880         # Tell ltmain to make .lib files, not .a files.
10881         libext=lib
10882         # Tell ltmain to make .dll files, not .so files.
10883         shrext_cmds=.dll
10884         # FIXME: Setting linknames here is a bad hack.
10885         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10886         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10887             cp "$export_symbols" "$output_objdir/$soname.def";
10888             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10889           else
10890             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10891           fi~
10892           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10893           linknames='
10894         # The linker will not automatically build a static lib if we build a DLL.
10895         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10896         enable_shared_with_static_runtimes=yes
10897         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10898         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10899         # Don't use ranlib
10900         old_postinstall_cmds='chmod 644 $oldlib'
10901         postlink_cmds='lt_outputfile="@OUTPUT@"~
10902           lt_tool_outputfile="@TOOL_OUTPUT@"~
10903           case $lt_outputfile in
10904             *.exe|*.EXE) ;;
10905             *)
10906               lt_outputfile=$lt_outputfile.exe
10907               lt_tool_outputfile=$lt_tool_outputfile.exe
10908               ;;
10909           esac~
10910           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10911             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10912             $RM "$lt_outputfile.manifest";
10913           fi'
10914         ;;
10915       *)
10916         # Assume MSVC wrapper
10917         hardcode_libdir_flag_spec=' '
10918         allow_undefined_flag=unsupported
10919         # Tell ltmain to make .lib files, not .a files.
10920         libext=lib
10921         # Tell ltmain to make .dll files, not .so files.
10922         shrext_cmds=.dll
10923         # FIXME: Setting linknames here is a bad hack.
10924         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10925         # The linker will automatically build a .lib file if we build a DLL.
10926         old_archive_from_new_cmds='true'
10927         # FIXME: Should let the user specify the lib program.
10928         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10929         enable_shared_with_static_runtimes=yes
10930         ;;
10931       esac
10932       ;;
10933
10934     darwin* | rhapsody*)
10935
10936
10937   archive_cmds_need_lc=no
10938   hardcode_direct=no
10939   hardcode_automatic=yes
10940   hardcode_shlibpath_var=unsupported
10941   if test yes = "$lt_cv_ld_force_load"; then
10942     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\"`'
10943
10944   else
10945     whole_archive_flag_spec=''
10946   fi
10947   link_all_deplibs=yes
10948   allow_undefined_flag=$_lt_dar_allow_undefined
10949   case $cc_basename in
10950      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10951      *) _lt_dar_can_shared=$GCC ;;
10952   esac
10953   if test yes = "$_lt_dar_can_shared"; then
10954     output_verbose_link_cmd=func_echo_all
10955     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10956     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10957     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"
10958     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"
10959
10960   else
10961   ld_shlibs=no
10962   fi
10963
10964       ;;
10965
10966     dgux*)
10967       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968       hardcode_libdir_flag_spec='-L$libdir'
10969       hardcode_shlibpath_var=no
10970       ;;
10971
10972     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10973     # support.  Future versions do this automatically, but an explicit c++rt0.o
10974     # does not break anything, and helps significantly (at the cost of a little
10975     # extra space).
10976     freebsd2.2*)
10977       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10978       hardcode_libdir_flag_spec='-R$libdir'
10979       hardcode_direct=yes
10980       hardcode_shlibpath_var=no
10981       ;;
10982
10983     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10984     freebsd2.*)
10985       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10986       hardcode_direct=yes
10987       hardcode_minus_L=yes
10988       hardcode_shlibpath_var=no
10989       ;;
10990
10991     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10992     freebsd* | dragonfly*)
10993       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10994       hardcode_libdir_flag_spec='-R$libdir'
10995       hardcode_direct=yes
10996       hardcode_shlibpath_var=no
10997       ;;
10998
10999     hpux9*)
11000       if test yes = "$GCC"; then
11001         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11002       else
11003         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11004       fi
11005       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11006       hardcode_libdir_separator=:
11007       hardcode_direct=yes
11008
11009       # hardcode_minus_L: Not really in the search PATH,
11010       # but as the default location of the library.
11011       hardcode_minus_L=yes
11012       export_dynamic_flag_spec='$wl-E'
11013       ;;
11014
11015     hpux10*)
11016       if test yes,no = "$GCC,$with_gnu_ld"; then
11017         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11018       else
11019         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11020       fi
11021       if test no = "$with_gnu_ld"; then
11022         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11023         hardcode_libdir_separator=:
11024         hardcode_direct=yes
11025         hardcode_direct_absolute=yes
11026         export_dynamic_flag_spec='$wl-E'
11027         # hardcode_minus_L: Not really in the search PATH,
11028         # but as the default location of the library.
11029         hardcode_minus_L=yes
11030       fi
11031       ;;
11032
11033     hpux11*)
11034       if test yes,no = "$GCC,$with_gnu_ld"; then
11035         case $host_cpu in
11036         hppa*64*)
11037           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11038           ;;
11039         ia64*)
11040           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11041           ;;
11042         *)
11043           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11044           ;;
11045         esac
11046       else
11047         case $host_cpu in
11048         hppa*64*)
11049           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11050           ;;
11051         ia64*)
11052           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11053           ;;
11054         *)
11055
11056           # Older versions of the 11.00 compiler do not understand -b yet
11057           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11058           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11059 $as_echo_n "checking if $CC understands -b... " >&6; }
11060 if ${lt_cv_prog_compiler__b+:} false; then :
11061   $as_echo_n "(cached) " >&6
11062 else
11063   lt_cv_prog_compiler__b=no
11064    save_LDFLAGS=$LDFLAGS
11065    LDFLAGS="$LDFLAGS -b"
11066    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11068      # The linker can only warn and ignore the option if not recognized
11069      # So say no if there are warnings
11070      if test -s conftest.err; then
11071        # Append any errors to the config.log.
11072        cat conftest.err 1>&5
11073        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11074        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11075        if diff conftest.exp conftest.er2 >/dev/null; then
11076          lt_cv_prog_compiler__b=yes
11077        fi
11078      else
11079        lt_cv_prog_compiler__b=yes
11080      fi
11081    fi
11082    $RM -r conftest*
11083    LDFLAGS=$save_LDFLAGS
11084
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11087 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11088
11089 if test yes = "$lt_cv_prog_compiler__b"; then
11090     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11091 else
11092     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11093 fi
11094
11095           ;;
11096         esac
11097       fi
11098       if test no = "$with_gnu_ld"; then
11099         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11100         hardcode_libdir_separator=:
11101
11102         case $host_cpu in
11103         hppa*64*|ia64*)
11104           hardcode_direct=no
11105           hardcode_shlibpath_var=no
11106           ;;
11107         *)
11108           hardcode_direct=yes
11109           hardcode_direct_absolute=yes
11110           export_dynamic_flag_spec='$wl-E'
11111
11112           # hardcode_minus_L: Not really in the search PATH,
11113           # but as the default location of the library.
11114           hardcode_minus_L=yes
11115           ;;
11116         esac
11117       fi
11118       ;;
11119
11120     irix5* | irix6* | nonstopux*)
11121       if test yes = "$GCC"; then
11122         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'
11123         # Try to use the -exported_symbol ld option, if it does not
11124         # work, assume that -exports_file does not work either and
11125         # implicitly export all symbols.
11126         # This should be the same for all languages, so no per-tag cache variable.
11127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11128 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11129 if ${lt_cv_irix_exported_symbol+:} false; then :
11130   $as_echo_n "(cached) " >&6
11131 else
11132   save_LDFLAGS=$LDFLAGS
11133            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11134            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h.  */
11136 int foo (void) { return 0; }
11137 _ACEOF
11138 if ac_fn_c_try_link "$LINENO"; then :
11139   lt_cv_irix_exported_symbol=yes
11140 else
11141   lt_cv_irix_exported_symbol=no
11142 fi
11143 rm -f core conftest.err conftest.$ac_objext \
11144     conftest$ac_exeext conftest.$ac_ext
11145            LDFLAGS=$save_LDFLAGS
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11148 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11149         if test yes = "$lt_cv_irix_exported_symbol"; then
11150           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'
11151         fi
11152         link_all_deplibs=no
11153       else
11154         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'
11155         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'
11156       fi
11157       archive_cmds_need_lc='no'
11158       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11159       hardcode_libdir_separator=:
11160       inherit_rpath=yes
11161       link_all_deplibs=yes
11162       ;;
11163
11164     linux*)
11165       case $cc_basename in
11166       tcc*)
11167         # Fabrice Bellard et al's Tiny C Compiler
11168         ld_shlibs=yes
11169         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11170         ;;
11171       esac
11172       ;;
11173
11174     netbsd* | netbsdelf*-gnu)
11175       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11176         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11177       else
11178         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11179       fi
11180       hardcode_libdir_flag_spec='-R$libdir'
11181       hardcode_direct=yes
11182       hardcode_shlibpath_var=no
11183       ;;
11184
11185     newsos6)
11186       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11187       hardcode_direct=yes
11188       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11189       hardcode_libdir_separator=:
11190       hardcode_shlibpath_var=no
11191       ;;
11192
11193     *nto* | *qnx*)
11194       ;;
11195
11196     openbsd* | bitrig*)
11197       if test -f /usr/libexec/ld.so; then
11198         hardcode_direct=yes
11199         hardcode_shlibpath_var=no
11200         hardcode_direct_absolute=yes
11201         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11202           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11203           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11204           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11205           export_dynamic_flag_spec='$wl-E'
11206         else
11207           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11208           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11209         fi
11210       else
11211         ld_shlibs=no
11212       fi
11213       ;;
11214
11215     os2*)
11216       hardcode_libdir_flag_spec='-L$libdir'
11217       hardcode_minus_L=yes
11218       allow_undefined_flag=unsupported
11219       shrext_cmds=.dll
11220       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11221         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11222         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11223         $ECHO EXPORTS >> $output_objdir/$libname.def~
11224         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11225         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11226         emximp -o $lib $output_objdir/$libname.def'
11227       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11228         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11229         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11230         $ECHO EXPORTS >> $output_objdir/$libname.def~
11231         prefix_cmds="$SED"~
11232         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11233           prefix_cmds="$prefix_cmds -e 1d";
11234         fi~
11235         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11236         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11237         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11238         emximp -o $lib $output_objdir/$libname.def'
11239       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11240       enable_shared_with_static_runtimes=yes
11241       ;;
11242
11243     osf3*)
11244       if test yes = "$GCC"; then
11245         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11246         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'
11247       else
11248         allow_undefined_flag=' -expect_unresolved \*'
11249         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'
11250       fi
11251       archive_cmds_need_lc='no'
11252       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11253       hardcode_libdir_separator=:
11254       ;;
11255
11256     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11257       if test yes = "$GCC"; then
11258         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11259         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'
11260         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11261       else
11262         allow_undefined_flag=' -expect_unresolved \*'
11263         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'
11264         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~
11265           $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'
11266
11267         # Both c and cxx compiler support -rpath directly
11268         hardcode_libdir_flag_spec='-rpath $libdir'
11269       fi
11270       archive_cmds_need_lc='no'
11271       hardcode_libdir_separator=:
11272       ;;
11273
11274     solaris*)
11275       no_undefined_flag=' -z defs'
11276       if test yes = "$GCC"; then
11277         wlarc='$wl'
11278         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11279         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11280           $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'
11281       else
11282         case `$CC -V 2>&1` in
11283         *"Compilers 5.0"*)
11284           wlarc=''
11285           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11286           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11287             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11288           ;;
11289         *)
11290           wlarc='$wl'
11291           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11292           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11293             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11294           ;;
11295         esac
11296       fi
11297       hardcode_libdir_flag_spec='-R$libdir'
11298       hardcode_shlibpath_var=no
11299       case $host_os in
11300       solaris2.[0-5] | solaris2.[0-5].*) ;;
11301       *)
11302         # The compiler driver will combine and reorder linker options,
11303         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11304         # but is careful enough not to reorder.
11305         # Supported since Solaris 2.6 (maybe 2.5.1?)
11306         if test yes = "$GCC"; then
11307           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11308         else
11309           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11310         fi
11311         ;;
11312       esac
11313       link_all_deplibs=yes
11314       ;;
11315
11316     sunos4*)
11317       if test sequent = "$host_vendor"; then
11318         # Use $CC to link under sequent, because it throws in some extra .o
11319         # files that make .init and .fini sections work.
11320         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11321       else
11322         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11323       fi
11324       hardcode_libdir_flag_spec='-L$libdir'
11325       hardcode_direct=yes
11326       hardcode_minus_L=yes
11327       hardcode_shlibpath_var=no
11328       ;;
11329
11330     sysv4)
11331       case $host_vendor in
11332         sni)
11333           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11334           hardcode_direct=yes # is this really true???
11335         ;;
11336         siemens)
11337           ## LD is ld it makes a PLAMLIB
11338           ## CC just makes a GrossModule.
11339           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11340           reload_cmds='$CC -r -o $output$reload_objs'
11341           hardcode_direct=no
11342         ;;
11343         motorola)
11344           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11346         ;;
11347       esac
11348       runpath_var='LD_RUN_PATH'
11349       hardcode_shlibpath_var=no
11350       ;;
11351
11352     sysv4.3*)
11353       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354       hardcode_shlibpath_var=no
11355       export_dynamic_flag_spec='-Bexport'
11356       ;;
11357
11358     sysv4*MP*)
11359       if test -d /usr/nec; then
11360         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361         hardcode_shlibpath_var=no
11362         runpath_var=LD_RUN_PATH
11363         hardcode_runpath_var=yes
11364         ld_shlibs=yes
11365       fi
11366       ;;
11367
11368     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11369       no_undefined_flag='$wl-z,text'
11370       archive_cmds_need_lc=no
11371       hardcode_shlibpath_var=no
11372       runpath_var='LD_RUN_PATH'
11373
11374       if test yes = "$GCC"; then
11375         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377       else
11378         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380       fi
11381       ;;
11382
11383     sysv5* | sco3.2v5* | sco5v6*)
11384       # Note: We CANNOT use -z defs as we might desire, because we do not
11385       # link with -lc, and that would cause any symbols used from libc to
11386       # always be unresolved, which means just about no library would
11387       # ever link correctly.  If we're not using GNU ld we use -z text
11388       # though, which does catch some bad symbols but isn't as heavy-handed
11389       # as -z defs.
11390       no_undefined_flag='$wl-z,text'
11391       allow_undefined_flag='$wl-z,nodefs'
11392       archive_cmds_need_lc=no
11393       hardcode_shlibpath_var=no
11394       hardcode_libdir_flag_spec='$wl-R,$libdir'
11395       hardcode_libdir_separator=':'
11396       link_all_deplibs=yes
11397       export_dynamic_flag_spec='$wl-Bexport'
11398       runpath_var='LD_RUN_PATH'
11399
11400       if test yes = "$GCC"; then
11401         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403       else
11404         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406       fi
11407       ;;
11408
11409     uts4*)
11410       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411       hardcode_libdir_flag_spec='-L$libdir'
11412       hardcode_shlibpath_var=no
11413       ;;
11414
11415     *)
11416       ld_shlibs=no
11417       ;;
11418     esac
11419
11420     if test sni = "$host_vendor"; then
11421       case $host in
11422       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11423         export_dynamic_flag_spec='$wl-Blargedynsym'
11424         ;;
11425       esac
11426     fi
11427   fi
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11430 $as_echo "$ld_shlibs" >&6; }
11431 test no = "$ld_shlibs" && can_build_shared=no
11432
11433 with_gnu_ld=$with_gnu_ld
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 #
11450 # Do we need to explicitly link libc?
11451 #
11452 case "x$archive_cmds_need_lc" in
11453 x|xyes)
11454   # Assume -lc should be added
11455   archive_cmds_need_lc=yes
11456
11457   if test yes,yes = "$GCC,$enable_shared"; then
11458     case $archive_cmds in
11459     *'~'*)
11460       # FIXME: we may have to deal with multi-command sequences.
11461       ;;
11462     '$CC '*)
11463       # Test whether the compiler implicitly links with -lc since on some
11464       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11465       # to ld, don't add -lc before -lgcc.
11466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11467 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11468 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11469   $as_echo_n "(cached) " >&6
11470 else
11471   $RM conftest*
11472         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11473
11474         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11475   (eval $ac_compile) 2>&5
11476   ac_status=$?
11477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478   test $ac_status = 0; } 2>conftest.err; then
11479           soname=conftest
11480           lib=conftest
11481           libobjs=conftest.$ac_objext
11482           deplibs=
11483           wl=$lt_prog_compiler_wl
11484           pic_flag=$lt_prog_compiler_pic
11485           compiler_flags=-v
11486           linker_flags=-v
11487           verstring=
11488           output_objdir=.
11489           libname=conftest
11490           lt_save_allow_undefined_flag=$allow_undefined_flag
11491           allow_undefined_flag=
11492           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11493   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11494   ac_status=$?
11495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11496   test $ac_status = 0; }
11497           then
11498             lt_cv_archive_cmds_need_lc=no
11499           else
11500             lt_cv_archive_cmds_need_lc=yes
11501           fi
11502           allow_undefined_flag=$lt_save_allow_undefined_flag
11503         else
11504           cat conftest.err 1>&5
11505         fi
11506         $RM conftest*
11507
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11510 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11511       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11512       ;;
11513     esac
11514   fi
11515   ;;
11516 esac
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11670 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11671
11672 if test yes = "$GCC"; then
11673   case $host_os in
11674     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11675     *) lt_awk_arg='/^libraries:/' ;;
11676   esac
11677   case $host_os in
11678     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11679     *) lt_sed_strip_eq='s|=/|/|g' ;;
11680   esac
11681   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11682   case $lt_search_path_spec in
11683   *\;*)
11684     # if the path contains ";" then we assume it to be the separator
11685     # otherwise default to the standard path separator (i.e. ":") - it is
11686     # assumed that no part of a normal pathname contains ";" but that should
11687     # okay in the real world where ";" in dirpaths is itself problematic.
11688     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11689     ;;
11690   *)
11691     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11692     ;;
11693   esac
11694   # Ok, now we have the path, separated by spaces, we can step through it
11695   # and add multilib dir if necessary...
11696   lt_tmp_lt_search_path_spec=
11697   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11698   # ...but if some path component already ends with the multilib dir we assume
11699   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11700   case "$lt_multi_os_dir; $lt_search_path_spec " in
11701   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11702     lt_multi_os_dir=
11703     ;;
11704   esac
11705   for lt_sys_path in $lt_search_path_spec; do
11706     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11707       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11708     elif test -n "$lt_multi_os_dir"; then
11709       test -d "$lt_sys_path" && \
11710         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11711     fi
11712   done
11713   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11714 BEGIN {RS = " "; FS = "/|\n";} {
11715   lt_foo = "";
11716   lt_count = 0;
11717   for (lt_i = NF; lt_i > 0; lt_i--) {
11718     if ($lt_i != "" && $lt_i != ".") {
11719       if ($lt_i == "..") {
11720         lt_count++;
11721       } else {
11722         if (lt_count == 0) {
11723           lt_foo = "/" $lt_i lt_foo;
11724         } else {
11725           lt_count--;
11726         }
11727       }
11728     }
11729   }
11730   if (lt_foo != "") { lt_freq[lt_foo]++; }
11731   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11732 }'`
11733   # AWK program above erroneously prepends '/' to C:/dos/paths
11734   # for these hosts.
11735   case $host_os in
11736     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11737       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11738   esac
11739   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11740 else
11741   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11742 fi
11743 library_names_spec=
11744 libname_spec='lib$name'
11745 soname_spec=
11746 shrext_cmds=.so
11747 postinstall_cmds=
11748 postuninstall_cmds=
11749 finish_cmds=
11750 finish_eval=
11751 shlibpath_var=
11752 shlibpath_overrides_runpath=unknown
11753 version_type=none
11754 dynamic_linker="$host_os ld.so"
11755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11756 need_lib_prefix=unknown
11757 hardcode_into_libs=no
11758
11759 # when you set need_version to no, make sure it does not cause -set_version
11760 # flags to be left without arguments
11761 need_version=unknown
11762
11763
11764
11765 case $host_os in
11766 aix3*)
11767   version_type=linux # correct to gnu/linux during the next big refactor
11768   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11769   shlibpath_var=LIBPATH
11770
11771   # AIX 3 has no versioning support, so we append a major version to the name.
11772   soname_spec='$libname$release$shared_ext$major'
11773   ;;
11774
11775 aix[4-9]*)
11776   version_type=linux # correct to gnu/linux during the next big refactor
11777   need_lib_prefix=no
11778   need_version=no
11779   hardcode_into_libs=yes
11780   if test ia64 = "$host_cpu"; then
11781     # AIX 5 supports IA64
11782     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11783     shlibpath_var=LD_LIBRARY_PATH
11784   else
11785     # With GCC up to 2.95.x, collect2 would create an import file
11786     # for dependence libraries.  The import file would start with
11787     # the line '#! .'.  This would cause the generated library to
11788     # depend on '.', always an invalid library.  This was fixed in
11789     # development snapshots of GCC prior to 3.0.
11790     case $host_os in
11791       aix4 | aix4.[01] | aix4.[01].*)
11792       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11793            echo ' yes '
11794            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11795         :
11796       else
11797         can_build_shared=no
11798       fi
11799       ;;
11800     esac
11801     # Using Import Files as archive members, it is possible to support
11802     # filename-based versioning of shared library archives on AIX. While
11803     # this would work for both with and without runtime linking, it will
11804     # prevent static linking of such archives. So we do filename-based
11805     # shared library versioning with .so extension only, which is used
11806     # when both runtime linking and shared linking is enabled.
11807     # Unfortunately, runtime linking may impact performance, so we do
11808     # not want this to be the default eventually. Also, we use the
11809     # versioned .so libs for executables only if there is the -brtl
11810     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11811     # To allow for filename-based versioning support, we need to create
11812     # libNAME.so.V as an archive file, containing:
11813     # *) an Import File, referring to the versioned filename of the
11814     #    archive as well as the shared archive member, telling the
11815     #    bitwidth (32 or 64) of that shared object, and providing the
11816     #    list of exported symbols of that shared object, eventually
11817     #    decorated with the 'weak' keyword
11818     # *) the shared object with the F_LOADONLY flag set, to really avoid
11819     #    it being seen by the linker.
11820     # At run time we better use the real file rather than another symlink,
11821     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11822
11823     case $with_aix_soname,$aix_use_runtimelinking in
11824     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11825     # soname into executable. Probably we can add versioning support to
11826     # collect2, so additional links can be useful in future.
11827     aix,yes) # traditional libtool
11828       dynamic_linker='AIX unversionable lib.so'
11829       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11830       # instead of lib<name>.a to let people know that these are not
11831       # typical AIX shared libraries.
11832       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11833       ;;
11834     aix,no) # traditional AIX only
11835       dynamic_linker='AIX lib.a(lib.so.V)'
11836       # We preserve .a as extension for shared libraries through AIX4.2
11837       # and later when we are not doing run time linking.
11838       library_names_spec='$libname$release.a $libname.a'
11839       soname_spec='$libname$release$shared_ext$major'
11840       ;;
11841     svr4,*) # full svr4 only
11842       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11843       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11844       # We do not specify a path in Import Files, so LIBPATH fires.
11845       shlibpath_overrides_runpath=yes
11846       ;;
11847     *,yes) # both, prefer svr4
11848       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11849       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11850       # unpreferred sharedlib libNAME.a needs extra handling
11851       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11852       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11853       # We do not specify a path in Import Files, so LIBPATH fires.
11854       shlibpath_overrides_runpath=yes
11855       ;;
11856     *,no) # both, prefer aix
11857       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11858       library_names_spec='$libname$release.a $libname.a'
11859       soname_spec='$libname$release$shared_ext$major'
11860       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11861       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11862       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11863       ;;
11864     esac
11865     shlibpath_var=LIBPATH
11866   fi
11867   ;;
11868
11869 amigaos*)
11870   case $host_cpu in
11871   powerpc)
11872     # Since July 2007 AmigaOS4 officially supports .so libraries.
11873     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11874     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875     ;;
11876   m68k)
11877     library_names_spec='$libname.ixlibrary $libname.a'
11878     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11879     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11880     ;;
11881   esac
11882   ;;
11883
11884 beos*)
11885   library_names_spec='$libname$shared_ext'
11886   dynamic_linker="$host_os ld.so"
11887   shlibpath_var=LIBRARY_PATH
11888   ;;
11889
11890 bsdi[45]*)
11891   version_type=linux # correct to gnu/linux during the next big refactor
11892   need_version=no
11893   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894   soname_spec='$libname$release$shared_ext$major'
11895   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11898   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11899   # the default ld.so.conf also contains /usr/contrib/lib and
11900   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11901   # libtool to hard-code these into programs
11902   ;;
11903
11904 cygwin* | mingw* | pw32* | cegcc*)
11905   version_type=windows
11906   shrext_cmds=.dll
11907   need_version=no
11908   need_lib_prefix=no
11909
11910   case $GCC,$cc_basename in
11911   yes,*)
11912     # gcc
11913     library_names_spec='$libname.dll.a'
11914     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11915     postinstall_cmds='base_file=`basename \$file`~
11916       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11917       dldir=$destdir/`dirname \$dlpath`~
11918       test -d \$dldir || mkdir -p \$dldir~
11919       $install_prog $dir/$dlname \$dldir/$dlname~
11920       chmod a+x \$dldir/$dlname~
11921       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11922         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11923       fi'
11924     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11925       dlpath=$dir/\$dldll~
11926        $RM \$dlpath'
11927     shlibpath_overrides_runpath=yes
11928
11929     case $host_os in
11930     cygwin*)
11931       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11932       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11933
11934       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11935       ;;
11936     mingw* | cegcc*)
11937       # MinGW DLLs use traditional 'lib' prefix
11938       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11939       ;;
11940     pw32*)
11941       # pw32 DLLs use 'pw' prefix rather than 'lib'
11942       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11943       ;;
11944     esac
11945     dynamic_linker='Win32 ld.exe'
11946     ;;
11947
11948   *,cl*)
11949     # Native MSVC
11950     libname_spec='$name'
11951     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11952     library_names_spec='$libname.dll.lib'
11953
11954     case $build_os in
11955     mingw*)
11956       sys_lib_search_path_spec=
11957       lt_save_ifs=$IFS
11958       IFS=';'
11959       for lt_path in $LIB
11960       do
11961         IFS=$lt_save_ifs
11962         # Let DOS variable expansion print the short 8.3 style file name.
11963         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11964         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11965       done
11966       IFS=$lt_save_ifs
11967       # Convert to MSYS style.
11968       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11969       ;;
11970     cygwin*)
11971       # Convert to unix form, then to dos form, then back to unix form
11972       # but this time dos style (no spaces!) so that the unix form looks
11973       # like /cygdrive/c/PROGRA~1:/cygdr...
11974       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11975       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11976       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11977       ;;
11978     *)
11979       sys_lib_search_path_spec=$LIB
11980       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11981         # It is most probably a Windows format PATH.
11982         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11983       else
11984         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11985       fi
11986       # FIXME: find the short name or the path components, as spaces are
11987       # common. (e.g. "Program Files" -> "PROGRA~1")
11988       ;;
11989     esac
11990
11991     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11992     postinstall_cmds='base_file=`basename \$file`~
11993       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11994       dldir=$destdir/`dirname \$dlpath`~
11995       test -d \$dldir || mkdir -p \$dldir~
11996       $install_prog $dir/$dlname \$dldir/$dlname'
11997     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11998       dlpath=$dir/\$dldll~
11999        $RM \$dlpath'
12000     shlibpath_overrides_runpath=yes
12001     dynamic_linker='Win32 link.exe'
12002     ;;
12003
12004   *)
12005     # Assume MSVC wrapper
12006     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12007     dynamic_linker='Win32 ld.exe'
12008     ;;
12009   esac
12010   # FIXME: first we should search . and the directory the executable is in
12011   shlibpath_var=PATH
12012   ;;
12013
12014 darwin* | rhapsody*)
12015   dynamic_linker="$host_os dyld"
12016   version_type=darwin
12017   need_lib_prefix=no
12018   need_version=no
12019   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12020   soname_spec='$libname$release$major$shared_ext'
12021   shlibpath_overrides_runpath=yes
12022   shlibpath_var=DYLD_LIBRARY_PATH
12023   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12024
12025   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12026   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12027   ;;
12028
12029 dgux*)
12030   version_type=linux # correct to gnu/linux during the next big refactor
12031   need_lib_prefix=no
12032   need_version=no
12033   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12034   soname_spec='$libname$release$shared_ext$major'
12035   shlibpath_var=LD_LIBRARY_PATH
12036   ;;
12037
12038 freebsd* | dragonfly*)
12039   # DragonFly does not have aout.  When/if they implement a new
12040   # versioning mechanism, adjust this.
12041   if test -x /usr/bin/objformat; then
12042     objformat=`/usr/bin/objformat`
12043   else
12044     case $host_os in
12045     freebsd[23].*) objformat=aout ;;
12046     *) objformat=elf ;;
12047     esac
12048   fi
12049   version_type=freebsd-$objformat
12050   case $version_type in
12051     freebsd-elf*)
12052       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053       soname_spec='$libname$release$shared_ext$major'
12054       need_version=no
12055       need_lib_prefix=no
12056       ;;
12057     freebsd-*)
12058       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12059       need_version=yes
12060       ;;
12061   esac
12062   shlibpath_var=LD_LIBRARY_PATH
12063   case $host_os in
12064   freebsd2.*)
12065     shlibpath_overrides_runpath=yes
12066     ;;
12067   freebsd3.[01]* | freebsdelf3.[01]*)
12068     shlibpath_overrides_runpath=yes
12069     hardcode_into_libs=yes
12070     ;;
12071   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12072   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12073     shlibpath_overrides_runpath=no
12074     hardcode_into_libs=yes
12075     ;;
12076   *) # from 4.6 on, and DragonFly
12077     shlibpath_overrides_runpath=yes
12078     hardcode_into_libs=yes
12079     ;;
12080   esac
12081   ;;
12082
12083 haiku*)
12084   version_type=linux # correct to gnu/linux during the next big refactor
12085   need_lib_prefix=no
12086   need_version=no
12087   dynamic_linker="$host_os runtime_loader"
12088   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12089   soname_spec='$libname$release$shared_ext$major'
12090   shlibpath_var=LIBRARY_PATH
12091   shlibpath_overrides_runpath=no
12092   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12093   hardcode_into_libs=yes
12094   ;;
12095
12096 hpux9* | hpux10* | hpux11*)
12097   # Give a soname corresponding to the major version so that dld.sl refuses to
12098   # link against other versions.
12099   version_type=sunos
12100   need_lib_prefix=no
12101   need_version=no
12102   case $host_cpu in
12103   ia64*)
12104     shrext_cmds='.so'
12105     hardcode_into_libs=yes
12106     dynamic_linker="$host_os dld.so"
12107     shlibpath_var=LD_LIBRARY_PATH
12108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12109     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110     soname_spec='$libname$release$shared_ext$major'
12111     if test 32 = "$HPUX_IA64_MODE"; then
12112       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12113       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12114     else
12115       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12116       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12117     fi
12118     ;;
12119   hppa*64*)
12120     shrext_cmds='.sl'
12121     hardcode_into_libs=yes
12122     dynamic_linker="$host_os dld.sl"
12123     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12124     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12125     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126     soname_spec='$libname$release$shared_ext$major'
12127     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12128     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12129     ;;
12130   *)
12131     shrext_cmds='.sl'
12132     dynamic_linker="$host_os dld.sl"
12133     shlibpath_var=SHLIB_PATH
12134     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12135     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136     soname_spec='$libname$release$shared_ext$major'
12137     ;;
12138   esac
12139   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12140   postinstall_cmds='chmod 555 $lib'
12141   # or fails outright, so override atomically:
12142   install_override_mode=555
12143   ;;
12144
12145 interix[3-9]*)
12146   version_type=linux # correct to gnu/linux during the next big refactor
12147   need_lib_prefix=no
12148   need_version=no
12149   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150   soname_spec='$libname$release$shared_ext$major'
12151   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12152   shlibpath_var=LD_LIBRARY_PATH
12153   shlibpath_overrides_runpath=no
12154   hardcode_into_libs=yes
12155   ;;
12156
12157 irix5* | irix6* | nonstopux*)
12158   case $host_os in
12159     nonstopux*) version_type=nonstopux ;;
12160     *)
12161         if test yes = "$lt_cv_prog_gnu_ld"; then
12162                 version_type=linux # correct to gnu/linux during the next big refactor
12163         else
12164                 version_type=irix
12165         fi ;;
12166   esac
12167   need_lib_prefix=no
12168   need_version=no
12169   soname_spec='$libname$release$shared_ext$major'
12170   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12171   case $host_os in
12172   irix5* | nonstopux*)
12173     libsuff= shlibsuff=
12174     ;;
12175   *)
12176     case $LD in # libtool.m4 will add one of these switches to LD
12177     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12178       libsuff= shlibsuff= libmagic=32-bit;;
12179     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12180       libsuff=32 shlibsuff=N32 libmagic=N32;;
12181     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12182       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12183     *) libsuff= shlibsuff= libmagic=never-match;;
12184     esac
12185     ;;
12186   esac
12187   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12188   shlibpath_overrides_runpath=no
12189   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12190   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12191   hardcode_into_libs=yes
12192   ;;
12193
12194 # No shared lib support for Linux oldld, aout, or coff.
12195 linux*oldld* | linux*aout* | linux*coff*)
12196   dynamic_linker=no
12197   ;;
12198
12199 linux*android*)
12200   version_type=none # Android doesn't support versioned libraries.
12201   need_lib_prefix=no
12202   need_version=no
12203   library_names_spec='$libname$release$shared_ext'
12204   soname_spec='$libname$release$shared_ext'
12205   finish_cmds=
12206   shlibpath_var=LD_LIBRARY_PATH
12207   shlibpath_overrides_runpath=yes
12208
12209   # This implies no fast_install, which is unacceptable.
12210   # Some rework will be needed to allow for fast_install
12211   # before this can be enabled.
12212   hardcode_into_libs=yes
12213
12214   dynamic_linker='Android linker'
12215   # Don't embed -rpath directories since the linker doesn't support them.
12216   hardcode_libdir_flag_spec='-L$libdir'
12217   ;;
12218
12219 # This must be glibc/ELF.
12220 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12221   version_type=linux # correct to gnu/linux during the next big refactor
12222   need_lib_prefix=no
12223   need_version=no
12224   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12225   soname_spec='$libname$release$shared_ext$major'
12226   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12227   shlibpath_var=LD_LIBRARY_PATH
12228   shlibpath_overrides_runpath=no
12229
12230   # Some binutils ld are patched to set DT_RUNPATH
12231   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   lt_cv_shlibpath_overrides_runpath=no
12235     save_LDFLAGS=$LDFLAGS
12236     save_libdir=$libdir
12237     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12238          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12239     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241
12242 int
12243 main ()
12244 {
12245
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12252   lt_cv_shlibpath_overrides_runpath=yes
12253 fi
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext \
12256     conftest$ac_exeext conftest.$ac_ext
12257     LDFLAGS=$save_LDFLAGS
12258     libdir=$save_libdir
12259
12260 fi
12261
12262   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12263
12264   # This implies no fast_install, which is unacceptable.
12265   # Some rework will be needed to allow for fast_install
12266   # before this can be enabled.
12267   hardcode_into_libs=yes
12268
12269   # Ideally, we could use ldconfig to report *all* directores which are
12270   # searched for libraries, however this is still not possible.  Aside from not
12271   # being certain /sbin/ldconfig is available, command
12272   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12273   # even though it is searched at run-time.  Try to do the best guess by
12274   # appending ld.so.conf contents (and includes) to the search path.
12275   if test -f /etc/ld.so.conf; then
12276     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' ' '`
12277     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12278   fi
12279
12280   # We used to test for /lib/ld.so.1 and disable shared libraries on
12281   # powerpc, because MkLinux only supported shared libraries with the
12282   # GNU dynamic linker.  Since this was broken with cross compilers,
12283   # most powerpc-linux boxes support dynamic linking these days and
12284   # people can always --disable-shared, the test was removed, and we
12285   # assume the GNU/Linux dynamic linker is in use.
12286   dynamic_linker='GNU/Linux ld.so'
12287   ;;
12288
12289 netbsdelf*-gnu)
12290   version_type=linux
12291   need_lib_prefix=no
12292   need_version=no
12293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294   soname_spec='${libname}${release}${shared_ext}$major'
12295   shlibpath_var=LD_LIBRARY_PATH
12296   shlibpath_overrides_runpath=no
12297   hardcode_into_libs=yes
12298   dynamic_linker='NetBSD ld.elf_so'
12299   ;;
12300
12301 netbsd*)
12302   version_type=sunos
12303   need_lib_prefix=no
12304   need_version=no
12305   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12306     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12307     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12308     dynamic_linker='NetBSD (a.out) ld.so'
12309   else
12310     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12311     soname_spec='$libname$release$shared_ext$major'
12312     dynamic_linker='NetBSD ld.elf_so'
12313   fi
12314   shlibpath_var=LD_LIBRARY_PATH
12315   shlibpath_overrides_runpath=yes
12316   hardcode_into_libs=yes
12317   ;;
12318
12319 newsos6)
12320   version_type=linux # correct to gnu/linux during the next big refactor
12321   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12322   shlibpath_var=LD_LIBRARY_PATH
12323   shlibpath_overrides_runpath=yes
12324   ;;
12325
12326 *nto* | *qnx*)
12327   version_type=qnx
12328   need_lib_prefix=no
12329   need_version=no
12330   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331   soname_spec='$libname$release$shared_ext$major'
12332   shlibpath_var=LD_LIBRARY_PATH
12333   shlibpath_overrides_runpath=no
12334   hardcode_into_libs=yes
12335   dynamic_linker='ldqnx.so'
12336   ;;
12337
12338 openbsd* | bitrig*)
12339   version_type=sunos
12340   sys_lib_dlsearch_path_spec=/usr/lib
12341   need_lib_prefix=no
12342   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12343     need_version=no
12344   else
12345     need_version=yes
12346   fi
12347   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12348   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12349   shlibpath_var=LD_LIBRARY_PATH
12350   shlibpath_overrides_runpath=yes
12351   ;;
12352
12353 os2*)
12354   libname_spec='$name'
12355   version_type=windows
12356   shrext_cmds=.dll
12357   need_version=no
12358   need_lib_prefix=no
12359   # OS/2 can only load a DLL with a base name of 8 characters or less.
12360   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12361     v=$($ECHO $release$versuffix | tr -d .-);
12362     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12363     $ECHO $n$v`$shared_ext'
12364   library_names_spec='${libname}_dll.$libext'
12365   dynamic_linker='OS/2 ld.exe'
12366   shlibpath_var=BEGINLIBPATH
12367   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12368   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12369   postinstall_cmds='base_file=`basename \$file`~
12370     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12371     dldir=$destdir/`dirname \$dlpath`~
12372     test -d \$dldir || mkdir -p \$dldir~
12373     $install_prog $dir/$dlname \$dldir/$dlname~
12374     chmod a+x \$dldir/$dlname~
12375     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12376       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12377     fi'
12378   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12379     dlpath=$dir/\$dldll~
12380     $RM \$dlpath'
12381   ;;
12382
12383 osf3* | osf4* | osf5*)
12384   version_type=osf
12385   need_lib_prefix=no
12386   need_version=no
12387   soname_spec='$libname$release$shared_ext$major'
12388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389   shlibpath_var=LD_LIBRARY_PATH
12390   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12391   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12392   ;;
12393
12394 rdos*)
12395   dynamic_linker=no
12396   ;;
12397
12398 solaris*)
12399   version_type=linux # correct to gnu/linux during the next big refactor
12400   need_lib_prefix=no
12401   need_version=no
12402   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12403   soname_spec='$libname$release$shared_ext$major'
12404   shlibpath_var=LD_LIBRARY_PATH
12405   shlibpath_overrides_runpath=yes
12406   hardcode_into_libs=yes
12407   # ldd complains unless libraries are executable
12408   postinstall_cmds='chmod +x $lib'
12409   ;;
12410
12411 sunos4*)
12412   version_type=sunos
12413   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12414   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12415   shlibpath_var=LD_LIBRARY_PATH
12416   shlibpath_overrides_runpath=yes
12417   if test yes = "$with_gnu_ld"; then
12418     need_lib_prefix=no
12419   fi
12420   need_version=yes
12421   ;;
12422
12423 sysv4 | sysv4.3*)
12424   version_type=linux # correct to gnu/linux during the next big refactor
12425   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426   soname_spec='$libname$release$shared_ext$major'
12427   shlibpath_var=LD_LIBRARY_PATH
12428   case $host_vendor in
12429     sni)
12430       shlibpath_overrides_runpath=no
12431       need_lib_prefix=no
12432       runpath_var=LD_RUN_PATH
12433       ;;
12434     siemens)
12435       need_lib_prefix=no
12436       ;;
12437     motorola)
12438       need_lib_prefix=no
12439       need_version=no
12440       shlibpath_overrides_runpath=no
12441       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12442       ;;
12443   esac
12444   ;;
12445
12446 sysv4*MP*)
12447   if test -d /usr/nec; then
12448     version_type=linux # correct to gnu/linux during the next big refactor
12449     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12450     soname_spec='$libname$shared_ext.$major'
12451     shlibpath_var=LD_LIBRARY_PATH
12452   fi
12453   ;;
12454
12455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12456   version_type=sco
12457   need_lib_prefix=no
12458   need_version=no
12459   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12460   soname_spec='$libname$release$shared_ext$major'
12461   shlibpath_var=LD_LIBRARY_PATH
12462   shlibpath_overrides_runpath=yes
12463   hardcode_into_libs=yes
12464   if test yes = "$with_gnu_ld"; then
12465     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12466   else
12467     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12468     case $host_os in
12469       sco3.2v5*)
12470         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12471         ;;
12472     esac
12473   fi
12474   sys_lib_dlsearch_path_spec='/usr/lib'
12475   ;;
12476
12477 tpf*)
12478   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12479   version_type=linux # correct to gnu/linux during the next big refactor
12480   need_lib_prefix=no
12481   need_version=no
12482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483   shlibpath_var=LD_LIBRARY_PATH
12484   shlibpath_overrides_runpath=no
12485   hardcode_into_libs=yes
12486   ;;
12487
12488 uts4*)
12489   version_type=linux # correct to gnu/linux during the next big refactor
12490   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12491   soname_spec='$libname$release$shared_ext$major'
12492   shlibpath_var=LD_LIBRARY_PATH
12493   ;;
12494
12495 *)
12496   dynamic_linker=no
12497   ;;
12498 esac
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12500 $as_echo "$dynamic_linker" >&6; }
12501 test no = "$dynamic_linker" && can_build_shared=no
12502
12503 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12504 if test yes = "$GCC"; then
12505   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12506 fi
12507
12508 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12509   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12510 fi
12511
12512 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12513   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12514 fi
12515
12516 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12517 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12518
12519 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12520 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12521
12522 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12523 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12623 hardcode_action=
12624 if test -n "$hardcode_libdir_flag_spec" ||
12625    test -n "$runpath_var" ||
12626    test yes = "$hardcode_automatic"; then
12627
12628   # We can hardcode non-existent directories.
12629   if test no != "$hardcode_direct" &&
12630      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12631      # have to relink, otherwise we might link with an installed library
12632      # when we should be linking with a yet-to-be-installed one
12633      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12634      test no != "$hardcode_minus_L"; then
12635     # Linking always hardcodes the temporary library directory.
12636     hardcode_action=relink
12637   else
12638     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12639     hardcode_action=immediate
12640   fi
12641 else
12642   # We cannot hardcode anything, or else we can only hardcode existing
12643   # directories.
12644   hardcode_action=unsupported
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12647 $as_echo "$hardcode_action" >&6; }
12648
12649 if test relink = "$hardcode_action" ||
12650    test yes = "$inherit_rpath"; then
12651   # Fast installation is not supported
12652   enable_fast_install=no
12653 elif test yes = "$shlibpath_overrides_runpath" ||
12654      test no = "$enable_shared"; then
12655   # Fast installation is not necessary
12656   enable_fast_install=needless
12657 fi
12658
12659
12660
12661
12662
12663
12664   if test yes != "$enable_dlopen"; then
12665   enable_dlopen=unknown
12666   enable_dlopen_self=unknown
12667   enable_dlopen_self_static=unknown
12668 else
12669   lt_cv_dlopen=no
12670   lt_cv_dlopen_libs=
12671
12672   case $host_os in
12673   beos*)
12674     lt_cv_dlopen=load_add_on
12675     lt_cv_dlopen_libs=
12676     lt_cv_dlopen_self=yes
12677     ;;
12678
12679   mingw* | pw32* | cegcc*)
12680     lt_cv_dlopen=LoadLibrary
12681     lt_cv_dlopen_libs=
12682     ;;
12683
12684   cygwin*)
12685     lt_cv_dlopen=dlopen
12686     lt_cv_dlopen_libs=
12687     ;;
12688
12689   darwin*)
12690     # if libdl is installed we need to link against it
12691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12693 if ${ac_cv_lib_dl_dlopen+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-ldl  $LIBS"
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h.  */
12700
12701 /* Override any GCC internal prototype to avoid an error.
12702    Use char because int might match the return type of a GCC
12703    builtin and then its argument prototype would still apply.  */
12704 #ifdef __cplusplus
12705 extern "C"
12706 #endif
12707 char dlopen ();
12708 int
12709 main ()
12710 {
12711 return dlopen ();
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717   ac_cv_lib_dl_dlopen=yes
12718 else
12719   ac_cv_lib_dl_dlopen=no
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722     conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12728   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12729 else
12730
12731     lt_cv_dlopen=dyld
12732     lt_cv_dlopen_libs=
12733     lt_cv_dlopen_self=yes
12734
12735 fi
12736
12737     ;;
12738
12739   tpf*)
12740     # Don't try to run any link tests for TPF.  We know it's impossible
12741     # because TPF is a cross-compiler, and we know how we open DSOs.
12742     lt_cv_dlopen=dlopen
12743     lt_cv_dlopen_libs=
12744     lt_cv_dlopen_self=no
12745     ;;
12746
12747   *)
12748     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12749 if test "x$ac_cv_func_shl_load" = xyes; then :
12750   lt_cv_dlopen=shl_load
12751 else
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12753 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12754 if ${ac_cv_lib_dld_shl_load+:} false; then :
12755   $as_echo_n "(cached) " >&6
12756 else
12757   ac_check_lib_save_LIBS=$LIBS
12758 LIBS="-ldld  $LIBS"
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761
12762 /* Override any GCC internal prototype to avoid an error.
12763    Use char because int might match the return type of a GCC
12764    builtin and then its argument prototype would still apply.  */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 char shl_load ();
12769 int
12770 main ()
12771 {
12772 return shl_load ();
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_link "$LINENO"; then :
12778   ac_cv_lib_dld_shl_load=yes
12779 else
12780   ac_cv_lib_dld_shl_load=no
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext \
12783     conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12785 fi
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12787 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12788 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12789   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12790 else
12791   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12792 if test "x$ac_cv_func_dlopen" = xyes; then :
12793   lt_cv_dlopen=dlopen
12794 else
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12796 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12797 if ${ac_cv_lib_dl_dlopen+:} false; then :
12798   $as_echo_n "(cached) " >&6
12799 else
12800   ac_check_lib_save_LIBS=$LIBS
12801 LIBS="-ldl  $LIBS"
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h.  */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806    Use char because int might match the return type of a GCC
12807    builtin and then its argument prototype would still apply.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char dlopen ();
12812 int
12813 main ()
12814 {
12815 return dlopen ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_link "$LINENO"; then :
12821   ac_cv_lib_dl_dlopen=yes
12822 else
12823   ac_cv_lib_dl_dlopen=no
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext \
12826     conftest$ac_exeext conftest.$ac_ext
12827 LIBS=$ac_check_lib_save_LIBS
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12830 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12831 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12832   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12833 else
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12835 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12836 if ${ac_cv_lib_svld_dlopen+:} false; then :
12837   $as_echo_n "(cached) " >&6
12838 else
12839   ac_check_lib_save_LIBS=$LIBS
12840 LIBS="-lsvld  $LIBS"
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h.  */
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845    Use char because int might match the return type of a GCC
12846    builtin and then its argument prototype would still apply.  */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char dlopen ();
12851 int
12852 main ()
12853 {
12854 return dlopen ();
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 if ac_fn_c_try_link "$LINENO"; then :
12860   ac_cv_lib_svld_dlopen=yes
12861 else
12862   ac_cv_lib_svld_dlopen=no
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext \
12865     conftest$ac_exeext conftest.$ac_ext
12866 LIBS=$ac_check_lib_save_LIBS
12867 fi
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12869 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12870 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12871   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12872 else
12873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12874 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12875 if ${ac_cv_lib_dld_dld_link+:} false; then :
12876   $as_echo_n "(cached) " >&6
12877 else
12878   ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-ldld  $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h.  */
12882
12883 /* Override any GCC internal prototype to avoid an error.
12884    Use char because int might match the return type of a GCC
12885    builtin and then its argument prototype would still apply.  */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char dld_link ();
12890 int
12891 main ()
12892 {
12893 return dld_link ();
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899   ac_cv_lib_dld_dld_link=yes
12900 else
12901   ac_cv_lib_dld_dld_link=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904     conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12908 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12909 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12910   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12911 fi
12912
12913
12914 fi
12915
12916
12917 fi
12918
12919
12920 fi
12921
12922
12923 fi
12924
12925
12926 fi
12927
12928     ;;
12929   esac
12930
12931   if test no = "$lt_cv_dlopen"; then
12932     enable_dlopen=no
12933   else
12934     enable_dlopen=yes
12935   fi
12936
12937   case $lt_cv_dlopen in
12938   dlopen)
12939     save_CPPFLAGS=$CPPFLAGS
12940     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12941
12942     save_LDFLAGS=$LDFLAGS
12943     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12944
12945     save_LIBS=$LIBS
12946     LIBS="$lt_cv_dlopen_libs $LIBS"
12947
12948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12949 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12950 if ${lt_cv_dlopen_self+:} false; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953           if test yes = "$cross_compiling"; then :
12954   lt_cv_dlopen_self=cross
12955 else
12956   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12957   lt_status=$lt_dlunknown
12958   cat > conftest.$ac_ext <<_LT_EOF
12959 #line $LINENO "configure"
12960 #include "confdefs.h"
12961
12962 #if HAVE_DLFCN_H
12963 #include <dlfcn.h>
12964 #endif
12965
12966 #include <stdio.h>
12967
12968 #ifdef RTLD_GLOBAL
12969 #  define LT_DLGLOBAL           RTLD_GLOBAL
12970 #else
12971 #  ifdef DL_GLOBAL
12972 #    define LT_DLGLOBAL         DL_GLOBAL
12973 #  else
12974 #    define LT_DLGLOBAL         0
12975 #  endif
12976 #endif
12977
12978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12979    find out it does not work in some platform. */
12980 #ifndef LT_DLLAZY_OR_NOW
12981 #  ifdef RTLD_LAZY
12982 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12983 #  else
12984 #    ifdef DL_LAZY
12985 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12986 #    else
12987 #      ifdef RTLD_NOW
12988 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12989 #      else
12990 #        ifdef DL_NOW
12991 #          define LT_DLLAZY_OR_NOW      DL_NOW
12992 #        else
12993 #          define LT_DLLAZY_OR_NOW      0
12994 #        endif
12995 #      endif
12996 #    endif
12997 #  endif
12998 #endif
12999
13000 /* When -fvisibility=hidden is used, assume the code has been annotated
13001    correspondingly for the symbols needed.  */
13002 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13003 int fnord () __attribute__((visibility("default")));
13004 #endif
13005
13006 int fnord () { return 42; }
13007 int main ()
13008 {
13009   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13010   int status = $lt_dlunknown;
13011
13012   if (self)
13013     {
13014       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13015       else
13016         {
13017           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13018           else puts (dlerror ());
13019         }
13020       /* dlclose (self); */
13021     }
13022   else
13023     puts (dlerror ());
13024
13025   return status;
13026 }
13027 _LT_EOF
13028   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13029   (eval $ac_link) 2>&5
13030   ac_status=$?
13031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13032   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13033     (./conftest; exit; ) >&5 2>/dev/null
13034     lt_status=$?
13035     case x$lt_status in
13036       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13037       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13038       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13039     esac
13040   else :
13041     # compilation failed
13042     lt_cv_dlopen_self=no
13043   fi
13044 fi
13045 rm -fr conftest*
13046
13047
13048 fi
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13050 $as_echo "$lt_cv_dlopen_self" >&6; }
13051
13052     if test yes = "$lt_cv_dlopen_self"; then
13053       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13054       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13055 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13056 if ${lt_cv_dlopen_self_static+:} false; then :
13057   $as_echo_n "(cached) " >&6
13058 else
13059           if test yes = "$cross_compiling"; then :
13060   lt_cv_dlopen_self_static=cross
13061 else
13062   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13063   lt_status=$lt_dlunknown
13064   cat > conftest.$ac_ext <<_LT_EOF
13065 #line $LINENO "configure"
13066 #include "confdefs.h"
13067
13068 #if HAVE_DLFCN_H
13069 #include <dlfcn.h>
13070 #endif
13071
13072 #include <stdio.h>
13073
13074 #ifdef RTLD_GLOBAL
13075 #  define LT_DLGLOBAL           RTLD_GLOBAL
13076 #else
13077 #  ifdef DL_GLOBAL
13078 #    define LT_DLGLOBAL         DL_GLOBAL
13079 #  else
13080 #    define LT_DLGLOBAL         0
13081 #  endif
13082 #endif
13083
13084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13085    find out it does not work in some platform. */
13086 #ifndef LT_DLLAZY_OR_NOW
13087 #  ifdef RTLD_LAZY
13088 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13089 #  else
13090 #    ifdef DL_LAZY
13091 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13092 #    else
13093 #      ifdef RTLD_NOW
13094 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13095 #      else
13096 #        ifdef DL_NOW
13097 #          define LT_DLLAZY_OR_NOW      DL_NOW
13098 #        else
13099 #          define LT_DLLAZY_OR_NOW      0
13100 #        endif
13101 #      endif
13102 #    endif
13103 #  endif
13104 #endif
13105
13106 /* When -fvisibility=hidden is used, assume the code has been annotated
13107    correspondingly for the symbols needed.  */
13108 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13109 int fnord () __attribute__((visibility("default")));
13110 #endif
13111
13112 int fnord () { return 42; }
13113 int main ()
13114 {
13115   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13116   int status = $lt_dlunknown;
13117
13118   if (self)
13119     {
13120       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13121       else
13122         {
13123           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13124           else puts (dlerror ());
13125         }
13126       /* dlclose (self); */
13127     }
13128   else
13129     puts (dlerror ());
13130
13131   return status;
13132 }
13133 _LT_EOF
13134   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13135   (eval $ac_link) 2>&5
13136   ac_status=$?
13137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13139     (./conftest; exit; ) >&5 2>/dev/null
13140     lt_status=$?
13141     case x$lt_status in
13142       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13143       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13144       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13145     esac
13146   else :
13147     # compilation failed
13148     lt_cv_dlopen_self_static=no
13149   fi
13150 fi
13151 rm -fr conftest*
13152
13153
13154 fi
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13156 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13157     fi
13158
13159     CPPFLAGS=$save_CPPFLAGS
13160     LDFLAGS=$save_LDFLAGS
13161     LIBS=$save_LIBS
13162     ;;
13163   esac
13164
13165   case $lt_cv_dlopen_self in
13166   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13167   *) enable_dlopen_self=unknown ;;
13168   esac
13169
13170   case $lt_cv_dlopen_self_static in
13171   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13172   *) enable_dlopen_self_static=unknown ;;
13173   esac
13174 fi
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192 striplib=
13193 old_striplib=
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13195 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13196 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13197   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13198   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13200 $as_echo "yes" >&6; }
13201 else
13202 # FIXME - insert some real tests, host_os isn't really good enough
13203   case $host_os in
13204   darwin*)
13205     if test -n "$STRIP"; then
13206       striplib="$STRIP -x"
13207       old_striplib="$STRIP -S"
13208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13209 $as_echo "yes" >&6; }
13210     else
13211       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13213     fi
13214     ;;
13215   *)
13216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217 $as_echo "no" >&6; }
13218     ;;
13219   esac
13220 fi
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233   # Report what library types will actually be built
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13235 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13237 $as_echo "$can_build_shared" >&6; }
13238
13239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13240 $as_echo_n "checking whether to build shared libraries... " >&6; }
13241   test no = "$can_build_shared" && enable_shared=no
13242
13243   # On AIX, shared libraries and static libraries use the same namespace, and
13244   # are all built from PIC.
13245   case $host_os in
13246   aix3*)
13247     test yes = "$enable_shared" && enable_static=no
13248     if test -n "$RANLIB"; then
13249       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13250       postinstall_cmds='$RANLIB $lib'
13251     fi
13252     ;;
13253
13254   aix[4-9]*)
13255     if test ia64 != "$host_cpu"; then
13256       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13257       yes,aix,yes) ;;                   # shared object as lib.so file only
13258       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13259       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13260       esac
13261     fi
13262     ;;
13263   esac
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13265 $as_echo "$enable_shared" >&6; }
13266
13267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13268 $as_echo_n "checking whether to build static libraries... " >&6; }
13269   # Make sure either enable_shared or enable_static is yes.
13270   test yes = "$enable_shared" || enable_static=yes
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13272 $as_echo "$enable_static" >&6; }
13273
13274
13275
13276
13277 fi
13278 ac_ext=c
13279 ac_cpp='$CPP $CPPFLAGS'
13280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13283
13284 CC=$lt_save_CC
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300         ac_config_commands="$ac_config_commands libtool"
13301
13302
13303
13304
13305 # Only expand once:
13306
13307
13308
13309 # Check whether --enable-largefile was given.
13310 if test "${enable_largefile+set}" = set; then :
13311   enableval=$enable_largefile;
13312 fi
13313
13314 if test "$enable_largefile" != no; then
13315
13316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13317 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13318 if ${ac_cv_sys_largefile_CC+:} false; then :
13319   $as_echo_n "(cached) " >&6
13320 else
13321   ac_cv_sys_largefile_CC=no
13322      if test "$GCC" != yes; then
13323        ac_save_CC=$CC
13324        while :; do
13325          # IRIX 6.2 and later do not support large files by default,
13326          # so use the C compiler's -n32 option if that helps.
13327          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h.  */
13329 #include <sys/types.h>
13330  /* Check that off_t can represent 2**63 - 1 correctly.
13331     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13332     since some C++ compilers masquerading as C compilers
13333     incorrectly reject 9223372036854775807.  */
13334 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13335   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13336                        && LARGE_OFF_T % 2147483647 == 1)
13337                       ? 1 : -1];
13338 int
13339 main ()
13340 {
13341
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346          if ac_fn_c_try_compile "$LINENO"; then :
13347   break
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext
13350          CC="$CC -n32"
13351          if ac_fn_c_try_compile "$LINENO"; then :
13352   ac_cv_sys_largefile_CC=' -n32'; break
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext
13355          break
13356        done
13357        CC=$ac_save_CC
13358        rm -f conftest.$ac_ext
13359     fi
13360 fi
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13362 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13363   if test "$ac_cv_sys_largefile_CC" != no; then
13364     CC=$CC$ac_cv_sys_largefile_CC
13365   fi
13366
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13368 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13369 if ${ac_cv_sys_file_offset_bits+:} false; then :
13370   $as_echo_n "(cached) " >&6
13371 else
13372   while :; do
13373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h.  */
13375 #include <sys/types.h>
13376  /* Check that off_t can represent 2**63 - 1 correctly.
13377     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13378     since some C++ compilers masquerading as C compilers
13379     incorrectly reject 9223372036854775807.  */
13380 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13381   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13382                        && LARGE_OFF_T % 2147483647 == 1)
13383                       ? 1 : -1];
13384 int
13385 main ()
13386 {
13387
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_compile "$LINENO"; then :
13393   ac_cv_sys_file_offset_bits=no; break
13394 fi
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h.  */
13398 #define _FILE_OFFSET_BITS 64
13399 #include <sys/types.h>
13400  /* Check that off_t can represent 2**63 - 1 correctly.
13401     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13402     since some C++ compilers masquerading as C compilers
13403     incorrectly reject 9223372036854775807.  */
13404 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13405   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13406                        && LARGE_OFF_T % 2147483647 == 1)
13407                       ? 1 : -1];
13408 int
13409 main ()
13410 {
13411
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 if ac_fn_c_try_compile "$LINENO"; then :
13417   ac_cv_sys_file_offset_bits=64; break
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420   ac_cv_sys_file_offset_bits=unknown
13421   break
13422 done
13423 fi
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13425 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13426 case $ac_cv_sys_file_offset_bits in #(
13427   no | unknown) ;;
13428   *)
13429 cat >>confdefs.h <<_ACEOF
13430 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13431 _ACEOF
13432 ;;
13433 esac
13434 rm -rf conftest*
13435   if test $ac_cv_sys_file_offset_bits = unknown; then
13436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13437 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13438 if ${ac_cv_sys_large_files+:} false; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441   while :; do
13442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h.  */
13444 #include <sys/types.h>
13445  /* Check that off_t can represent 2**63 - 1 correctly.
13446     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13447     since some C++ compilers masquerading as C compilers
13448     incorrectly reject 9223372036854775807.  */
13449 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13450   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13451                        && LARGE_OFF_T % 2147483647 == 1)
13452                       ? 1 : -1];
13453 int
13454 main ()
13455 {
13456
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_compile "$LINENO"; then :
13462   ac_cv_sys_large_files=no; break
13463 fi
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h.  */
13467 #define _LARGE_FILES 1
13468 #include <sys/types.h>
13469  /* Check that off_t can represent 2**63 - 1 correctly.
13470     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13471     since some C++ compilers masquerading as C compilers
13472     incorrectly reject 9223372036854775807.  */
13473 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13474   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13475                        && LARGE_OFF_T % 2147483647 == 1)
13476                       ? 1 : -1];
13477 int
13478 main ()
13479 {
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 if ac_fn_c_try_compile "$LINENO"; then :
13486   ac_cv_sys_large_files=1; break
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13489   ac_cv_sys_large_files=unknown
13490   break
13491 done
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13494 $as_echo "$ac_cv_sys_large_files" >&6; }
13495 case $ac_cv_sys_large_files in #(
13496   no | unknown) ;;
13497   *)
13498 cat >>confdefs.h <<_ACEOF
13499 #define _LARGE_FILES $ac_cv_sys_large_files
13500 _ACEOF
13501 ;;
13502 esac
13503 rm -rf conftest*
13504   fi
13505
13506
13507 fi
13508
13509
13510 for ac_prog in pod2man
13511 do
13512   # Extract the first word of "$ac_prog", so it can be a program name with args.
13513 set dummy $ac_prog; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_path_POD2MAN+:} false; then :
13517   $as_echo_n "(cached) " >&6
13518 else
13519   case $POD2MAN in
13520   [\\/]* | ?:[\\/]*)
13521   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
13522   ;;
13523   *)
13524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525 for as_dir in $PATH
13526 do
13527   IFS=$as_save_IFS
13528   test -z "$as_dir" && as_dir=.
13529     for ac_exec_ext in '' $ac_executable_extensions; do
13530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13531     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
13532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533     break 2
13534   fi
13535 done
13536   done
13537 IFS=$as_save_IFS
13538
13539   ;;
13540 esac
13541 fi
13542 POD2MAN=$ac_cv_path_POD2MAN
13543 if test -n "$POD2MAN"; then
13544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
13545 $as_echo "$POD2MAN" >&6; }
13546 else
13547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551
13552   test -n "$POD2MAN" && break
13553 done
13554
13555 test -z "${POD2MAN}" && as_fn_error $? "I couldn't find pod2man; make sure it's installed and in your path" "$LINENO" 5
13556
13557 for ac_prog in tar
13558 do
13559   # Extract the first word of "$ac_prog", so it can be a program name with args.
13560 set dummy $ac_prog; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562 $as_echo_n "checking for $ac_word... " >&6; }
13563 if ${ac_cv_path_TAR+:} false; then :
13564   $as_echo_n "(cached) " >&6
13565 else
13566   case $TAR in
13567   [\\/]* | ?:[\\/]*)
13568   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
13569   ;;
13570   *)
13571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
13579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583   done
13584 IFS=$as_save_IFS
13585
13586   ;;
13587 esac
13588 fi
13589 TAR=$ac_cv_path_TAR
13590 if test -n "$TAR"; then
13591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
13592 $as_echo "$TAR" >&6; }
13593 else
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13596 fi
13597
13598
13599   test -n "$TAR" && break
13600 done
13601
13602 for ac_prog in ps2pdf
13603 do
13604   # Extract the first word of "$ac_prog", so it can be a program name with args.
13605 set dummy $ac_prog; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if ${ac_cv_path_PS2PDF+:} false; then :
13609   $as_echo_n "(cached) " >&6
13610 else
13611   case $PS2PDF in
13612   [\\/]* | ?:[\\/]*)
13613   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
13614   ;;
13615   *)
13616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13618 do
13619   IFS=$as_save_IFS
13620   test -z "$as_dir" && as_dir=.
13621     for ac_exec_ext in '' $ac_executable_extensions; do
13622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
13624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625     break 2
13626   fi
13627 done
13628   done
13629 IFS=$as_save_IFS
13630
13631   ;;
13632 esac
13633 fi
13634 PS2PDF=$ac_cv_path_PS2PDF
13635 if test -n "$PS2PDF"; then
13636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
13637 $as_echo "$PS2PDF" >&6; }
13638 else
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13641 fi
13642
13643
13644   test -n "$PS2PDF" && break
13645 done
13646
13647 for ac_prog in dvips
13648 do
13649   # Extract the first word of "$ac_prog", so it can be a program name with args.
13650 set dummy $ac_prog; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if ${ac_cv_path_DVIPS+:} false; then :
13654   $as_echo_n "(cached) " >&6
13655 else
13656   case $DVIPS in
13657   [\\/]* | ?:[\\/]*)
13658   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
13659   ;;
13660   *)
13661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13663 do
13664   IFS=$as_save_IFS
13665   test -z "$as_dir" && as_dir=.
13666     for ac_exec_ext in '' $ac_executable_extensions; do
13667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13668     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670     break 2
13671   fi
13672 done
13673   done
13674 IFS=$as_save_IFS
13675
13676   ;;
13677 esac
13678 fi
13679 DVIPS=$ac_cv_path_DVIPS
13680 if test -n "$DVIPS"; then
13681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
13682 $as_echo "$DVIPS" >&6; }
13683 else
13684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 $as_echo "no" >&6; }
13686 fi
13687
13688
13689   test -n "$DVIPS" && break
13690 done
13691
13692 for ac_prog in latex2html
13693 do
13694   # Extract the first word of "$ac_prog", so it can be a program name with args.
13695 set dummy $ac_prog; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if ${ac_cv_path_LATEX2HTML+:} false; then :
13699   $as_echo_n "(cached) " >&6
13700 else
13701   case $LATEX2HTML in
13702   [\\/]* | ?:[\\/]*)
13703   ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
13704   ;;
13705   *)
13706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707 for as_dir in $PATH
13708 do
13709   IFS=$as_save_IFS
13710   test -z "$as_dir" && as_dir=.
13711     for ac_exec_ext in '' $ac_executable_extensions; do
13712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13713     ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
13714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13715     break 2
13716   fi
13717 done
13718   done
13719 IFS=$as_save_IFS
13720
13721   ;;
13722 esac
13723 fi
13724 LATEX2HTML=$ac_cv_path_LATEX2HTML
13725 if test -n "$LATEX2HTML"; then
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
13727 $as_echo "$LATEX2HTML" >&6; }
13728 else
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731 fi
13732
13733
13734   test -n "$LATEX2HTML" && break
13735 done
13736
13737 for ac_prog in latex
13738 do
13739   # Extract the first word of "$ac_prog", so it can be a program name with args.
13740 set dummy $ac_prog; ac_word=$2
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if ${ac_cv_path_LATEX+:} false; then :
13744   $as_echo_n "(cached) " >&6
13745 else
13746   case $LATEX in
13747   [\\/]* | ?:[\\/]*)
13748   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
13749   ;;
13750   *)
13751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13753 do
13754   IFS=$as_save_IFS
13755   test -z "$as_dir" && as_dir=.
13756     for ac_exec_ext in '' $ac_executable_extensions; do
13757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
13759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760     break 2
13761   fi
13762 done
13763   done
13764 IFS=$as_save_IFS
13765
13766   ;;
13767 esac
13768 fi
13769 LATEX=$ac_cv_path_LATEX
13770 if test -n "$LATEX"; then
13771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
13772 $as_echo "$LATEX" >&6; }
13773 else
13774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13776 fi
13777
13778
13779   test -n "$LATEX" && break
13780 done
13781
13782 if test "${enable_docs_gen}" = "yes"; then
13783         test -z "${TAR}" && as_fn_error $? "Couldn't find tar" "$LINENO" 5
13784         test -z "${PS2PDF}" && as_fn_error $? "Couldn't find ps2pdf" "$LINENO" 5
13785         test -z "${DVIPS}" && as_fn_error $? "Couldn't find dvips" "$LINENO" 5
13786         test -z "${LATEX2HTML}" && as_fn_error $? "Couldn't find latex2html" "$LINENO" 5
13787         test -z "${LATEX}" && as_fn_error $? "Couldn't find latex" "$LINENO" 5
13788 fi
13789
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13791 $as_echo_n "checking for library containing strerror... " >&6; }
13792 if ${ac_cv_search_strerror+:} false; then :
13793   $as_echo_n "(cached) " >&6
13794 else
13795   ac_func_search_save_LIBS=$LIBS
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h.  */
13798
13799 /* Override any GCC internal prototype to avoid an error.
13800    Use char because int might match the return type of a GCC
13801    builtin and then its argument prototype would still apply.  */
13802 #ifdef __cplusplus
13803 extern "C"
13804 #endif
13805 char strerror ();
13806 int
13807 main ()
13808 {
13809 return strerror ();
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 for ac_lib in '' cposix; do
13815   if test -z "$ac_lib"; then
13816     ac_res="none required"
13817   else
13818     ac_res=-l$ac_lib
13819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13820   fi
13821   if ac_fn_c_try_link "$LINENO"; then :
13822   ac_cv_search_strerror=$ac_res
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext \
13825     conftest$ac_exeext
13826   if ${ac_cv_search_strerror+:} false; then :
13827   break
13828 fi
13829 done
13830 if ${ac_cv_search_strerror+:} false; then :
13831
13832 else
13833   ac_cv_search_strerror=no
13834 fi
13835 rm conftest.$ac_ext
13836 LIBS=$ac_func_search_save_LIBS
13837 fi
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13839 $as_echo "$ac_cv_search_strerror" >&6; }
13840 ac_res=$ac_cv_search_strerror
13841 if test "$ac_res" != no; then :
13842   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13843
13844 fi
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13847 $as_echo_n "checking for ANSI C header files... " >&6; }
13848 if ${ac_cv_header_stdc+:} false; then :
13849   $as_echo_n "(cached) " >&6
13850 else
13851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h.  */
13853 #include <stdlib.h>
13854 #include <stdarg.h>
13855 #include <string.h>
13856 #include <float.h>
13857
13858 int
13859 main ()
13860 {
13861
13862   ;
13863   return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867   ac_cv_header_stdc=yes
13868 else
13869   ac_cv_header_stdc=no
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872
13873 if test $ac_cv_header_stdc = yes; then
13874   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h.  */
13877 #include <string.h>
13878
13879 _ACEOF
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881   $EGREP "memchr" >/dev/null 2>&1; then :
13882
13883 else
13884   ac_cv_header_stdc=no
13885 fi
13886 rm -f conftest*
13887
13888 fi
13889
13890 if test $ac_cv_header_stdc = yes; then
13891   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h.  */
13894 #include <stdlib.h>
13895
13896 _ACEOF
13897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13898   $EGREP "free" >/dev/null 2>&1; then :
13899
13900 else
13901   ac_cv_header_stdc=no
13902 fi
13903 rm -f conftest*
13904
13905 fi
13906
13907 if test $ac_cv_header_stdc = yes; then
13908   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13909   if test "$cross_compiling" = yes; then :
13910   :
13911 else
13912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h.  */
13914 #include <ctype.h>
13915 #include <stdlib.h>
13916 #if ((' ' & 0x0FF) == 0x020)
13917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13919 #else
13920 # define ISLOWER(c) \
13921                    (('a' <= (c) && (c) <= 'i') \
13922                      || ('j' <= (c) && (c) <= 'r') \
13923                      || ('s' <= (c) && (c) <= 'z'))
13924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13925 #endif
13926
13927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13928 int
13929 main ()
13930 {
13931   int i;
13932   for (i = 0; i < 256; i++)
13933     if (XOR (islower (i), ISLOWER (i))
13934         || toupper (i) != TOUPPER (i))
13935       return 2;
13936   return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_run "$LINENO"; then :
13940
13941 else
13942   ac_cv_header_stdc=no
13943 fi
13944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13945   conftest.$ac_objext conftest.beam conftest.$ac_ext
13946 fi
13947
13948 fi
13949 fi
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13951 $as_echo "$ac_cv_header_stdc" >&6; }
13952 if test $ac_cv_header_stdc = yes; then
13953
13954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13955
13956 fi
13957
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13960 if ${ac_cv_lib_dl_dlopen+:} false; then :
13961   $as_echo_n "(cached) " >&6
13962 else
13963   ac_check_lib_save_LIBS=$LIBS
13964 LIBS="-ldl  $LIBS"
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967
13968 /* Override any GCC internal prototype to avoid an error.
13969    Use char because int might match the return type of a GCC
13970    builtin and then its argument prototype would still apply.  */
13971 #ifdef __cplusplus
13972 extern "C"
13973 #endif
13974 char dlopen ();
13975 int
13976 main ()
13977 {
13978 return dlopen ();
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 if ac_fn_c_try_link "$LINENO"; then :
13984   ac_cv_lib_dl_dlopen=yes
13985 else
13986   ac_cv_lib_dl_dlopen=no
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext \
13989     conftest$ac_exeext conftest.$ac_ext
13990 LIBS=$ac_check_lib_save_LIBS
13991 fi
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13993 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13994 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13995   cat >>confdefs.h <<_ACEOF
13996 #define HAVE_LIBDL 1
13997 _ACEOF
13998
13999   LIBS="-ldl $LIBS"
14000
14001 fi
14002
14003
14004 # Verify keyutils version 1.0 or higher
14005 if test -z "${KEYUTILS_LIBS}"; then
14006
14007
14008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_search in -lkeyutils" >&5
14009 $as_echo_n "checking for keyctl_search in -lkeyutils... " >&6; }
14010 if ${ac_cv_lib_keyutils_keyctl_search+:} false; then :
14011   $as_echo_n "(cached) " >&6
14012 else
14013   ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-lkeyutils  $LIBS"
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h.  */
14017
14018 /* Override any GCC internal prototype to avoid an error.
14019    Use char because int might match the return type of a GCC
14020    builtin and then its argument prototype would still apply.  */
14021 #ifdef __cplusplus
14022 extern "C"
14023 #endif
14024 char keyctl_search ();
14025 int
14026 main ()
14027 {
14028 return keyctl_search ();
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034   ac_cv_lib_keyutils_keyctl_search=yes
14035 else
14036   ac_cv_lib_keyutils_keyctl_search=no
14037 fi
14038 rm -f core conftest.err conftest.$ac_objext \
14039     conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_search" >&5
14043 $as_echo "$ac_cv_lib_keyutils_keyctl_search" >&6; }
14044 if test "x$ac_cv_lib_keyutils_keyctl_search" = xyes; then :
14045   KEYUTILS_LIBS="-lkeyutils"
14046 else
14047   as_fn_error $? "eCryptfs userspace tools require Keyutils version 1.0 or higher.
14048 You might find the package at:
14049 http://people.redhat.com/~dhowells/keyutils/
14050 " "$LINENO" 5
14051
14052
14053 fi
14054
14055 fi
14056
14057 if test -z "${OPENSSL_LIBS}"; then
14058
14059 pkg_failed=no
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14061 $as_echo_n "checking for OPENSSL... " >&6; }
14062
14063 if test -n "$OPENSSL_CFLAGS"; then
14064     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14065  elif test -n "$PKG_CONFIG"; then
14066     if test -n "$PKG_CONFIG" && \
14067     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
14068   ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
14069   ac_status=$?
14070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071   test $ac_status = 0; }; then
14072   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.7" 2>/dev/null`
14073                       test "x$?" != "x0" && pkg_failed=yes
14074 else
14075   pkg_failed=yes
14076 fi
14077  else
14078     pkg_failed=untried
14079 fi
14080 if test -n "$OPENSSL_LIBS"; then
14081     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14082  elif test -n "$PKG_CONFIG"; then
14083     if test -n "$PKG_CONFIG" && \
14084     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
14085   ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
14086   ac_status=$?
14087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088   test $ac_status = 0; }; then
14089   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.7" 2>/dev/null`
14090                       test "x$?" != "x0" && pkg_failed=yes
14091 else
14092   pkg_failed=yes
14093 fi
14094  else
14095     pkg_failed=untried
14096 fi
14097
14098
14099
14100 if test $pkg_failed = yes; then
14101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 $as_echo "no" >&6; }
14103
14104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14105         _pkg_short_errors_supported=yes
14106 else
14107         _pkg_short_errors_supported=no
14108 fi
14109         if test $_pkg_short_errors_supported = yes; then
14110                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
14111         else
14112                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
14113         fi
14114         # Put the nasty error message in config.log where it belongs
14115         echo "$OPENSSL_PKG_ERRORS" >&5
14116
14117
14118 pkg_failed=no
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14120 $as_echo_n "checking for OPENSSL... " >&6; }
14121
14122 if test -n "$OPENSSL_CFLAGS"; then
14123     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14124  elif test -n "$PKG_CONFIG"; then
14125     if test -n "$PKG_CONFIG" && \
14126     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14127   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14128   ac_status=$?
14129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14130   test $ac_status = 0; }; then
14131   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
14132                       test "x$?" != "x0" && pkg_failed=yes
14133 else
14134   pkg_failed=yes
14135 fi
14136  else
14137     pkg_failed=untried
14138 fi
14139 if test -n "$OPENSSL_LIBS"; then
14140     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14141  elif test -n "$PKG_CONFIG"; then
14142     if test -n "$PKG_CONFIG" && \
14143     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14144   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14145   ac_status=$?
14146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14147   test $ac_status = 0; }; then
14148   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
14149                       test "x$?" != "x0" && pkg_failed=yes
14150 else
14151   pkg_failed=yes
14152 fi
14153  else
14154     pkg_failed=untried
14155 fi
14156
14157
14158
14159 if test $pkg_failed = yes; then
14160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14162
14163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14164         _pkg_short_errors_supported=yes
14165 else
14166         _pkg_short_errors_supported=no
14167 fi
14168         if test $_pkg_short_errors_supported = yes; then
14169                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14170         else
14171                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14172         fi
14173         # Put the nasty error message in config.log where it belongs
14174         echo "$OPENSSL_PKG_ERRORS" >&5
14175
14176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14177 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14178 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14179   $as_echo_n "(cached) " >&6
14180 else
14181   ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lcrypto  $LIBS"
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h.  */
14185
14186 /* Override any GCC internal prototype to avoid an error.
14187    Use char because int might match the return type of a GCC
14188    builtin and then its argument prototype would still apply.  */
14189 #ifdef __cplusplus
14190 extern "C"
14191 #endif
14192 char RSA_version ();
14193 int
14194 main ()
14195 {
14196 return RSA_version ();
14197   ;
14198   return 0;
14199 }
14200 _ACEOF
14201 if ac_fn_c_try_link "$LINENO"; then :
14202   ac_cv_lib_crypto_RSA_version=yes
14203 else
14204   ac_cv_lib_crypto_RSA_version=no
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext \
14207     conftest$ac_exeext conftest.$ac_ext
14208 LIBS=$ac_check_lib_save_LIBS
14209 fi
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14211 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14212 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14213
14214                                         have_openssl="yes"
14215                                         OPENSSL_LIBS="-lcrypto"
14216
14217 else
14218   have_openssl="no"
14219
14220 fi
14221
14222
14223 elif test $pkg_failed = untried; then
14224         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14227 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14228 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14229   $as_echo_n "(cached) " >&6
14230 else
14231   ac_check_lib_save_LIBS=$LIBS
14232 LIBS="-lcrypto  $LIBS"
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h.  */
14235
14236 /* Override any GCC internal prototype to avoid an error.
14237    Use char because int might match the return type of a GCC
14238    builtin and then its argument prototype would still apply.  */
14239 #ifdef __cplusplus
14240 extern "C"
14241 #endif
14242 char RSA_version ();
14243 int
14244 main ()
14245 {
14246 return RSA_version ();
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_c_try_link "$LINENO"; then :
14252   ac_cv_lib_crypto_RSA_version=yes
14253 else
14254   ac_cv_lib_crypto_RSA_version=no
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext \
14257     conftest$ac_exeext conftest.$ac_ext
14258 LIBS=$ac_check_lib_save_LIBS
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14261 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14262 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14263
14264                                         have_openssl="yes"
14265                                         OPENSSL_LIBS="-lcrypto"
14266
14267 else
14268   have_openssl="no"
14269
14270 fi
14271
14272
14273 else
14274         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14275         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14277 $as_echo "yes" >&6; }
14278         have_openssl="yes"
14279 fi
14280
14281 elif test $pkg_failed = untried; then
14282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14284
14285 pkg_failed=no
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14287 $as_echo_n "checking for OPENSSL... " >&6; }
14288
14289 if test -n "$OPENSSL_CFLAGS"; then
14290     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14291  elif test -n "$PKG_CONFIG"; then
14292     if test -n "$PKG_CONFIG" && \
14293     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14294   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14295   ac_status=$?
14296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297   test $ac_status = 0; }; then
14298   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
14299                       test "x$?" != "x0" && pkg_failed=yes
14300 else
14301   pkg_failed=yes
14302 fi
14303  else
14304     pkg_failed=untried
14305 fi
14306 if test -n "$OPENSSL_LIBS"; then
14307     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14308  elif test -n "$PKG_CONFIG"; then
14309     if test -n "$PKG_CONFIG" && \
14310     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14311   ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14312   ac_status=$?
14313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14314   test $ac_status = 0; }; then
14315   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
14316                       test "x$?" != "x0" && pkg_failed=yes
14317 else
14318   pkg_failed=yes
14319 fi
14320  else
14321     pkg_failed=untried
14322 fi
14323
14324
14325
14326 if test $pkg_failed = yes; then
14327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328 $as_echo "no" >&6; }
14329
14330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14331         _pkg_short_errors_supported=yes
14332 else
14333         _pkg_short_errors_supported=no
14334 fi
14335         if test $_pkg_short_errors_supported = yes; then
14336                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14337         else
14338                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14339         fi
14340         # Put the nasty error message in config.log where it belongs
14341         echo "$OPENSSL_PKG_ERRORS" >&5
14342
14343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14344 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14345 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14346   $as_echo_n "(cached) " >&6
14347 else
14348   ac_check_lib_save_LIBS=$LIBS
14349 LIBS="-lcrypto  $LIBS"
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h.  */
14352
14353 /* Override any GCC internal prototype to avoid an error.
14354    Use char because int might match the return type of a GCC
14355    builtin and then its argument prototype would still apply.  */
14356 #ifdef __cplusplus
14357 extern "C"
14358 #endif
14359 char RSA_version ();
14360 int
14361 main ()
14362 {
14363 return RSA_version ();
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 if ac_fn_c_try_link "$LINENO"; then :
14369   ac_cv_lib_crypto_RSA_version=yes
14370 else
14371   ac_cv_lib_crypto_RSA_version=no
14372 fi
14373 rm -f core conftest.err conftest.$ac_objext \
14374     conftest$ac_exeext conftest.$ac_ext
14375 LIBS=$ac_check_lib_save_LIBS
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14378 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14379 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14380
14381                                         have_openssl="yes"
14382                                         OPENSSL_LIBS="-lcrypto"
14383
14384 else
14385   have_openssl="no"
14386
14387 fi
14388
14389
14390 elif test $pkg_failed = untried; then
14391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14393         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14394 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14395 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14396   $as_echo_n "(cached) " >&6
14397 else
14398   ac_check_lib_save_LIBS=$LIBS
14399 LIBS="-lcrypto  $LIBS"
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h.  */
14402
14403 /* Override any GCC internal prototype to avoid an error.
14404    Use char because int might match the return type of a GCC
14405    builtin and then its argument prototype would still apply.  */
14406 #ifdef __cplusplus
14407 extern "C"
14408 #endif
14409 char RSA_version ();
14410 int
14411 main ()
14412 {
14413 return RSA_version ();
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_link "$LINENO"; then :
14419   ac_cv_lib_crypto_RSA_version=yes
14420 else
14421   ac_cv_lib_crypto_RSA_version=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext \
14424     conftest$ac_exeext conftest.$ac_ext
14425 LIBS=$ac_check_lib_save_LIBS
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14428 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14429 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14430
14431                                         have_openssl="yes"
14432                                         OPENSSL_LIBS="-lcrypto"
14433
14434 else
14435   have_openssl="no"
14436
14437 fi
14438
14439
14440 else
14441         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14442         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14444 $as_echo "yes" >&6; }
14445         have_openssl="yes"
14446 fi
14447
14448 else
14449         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14450         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14452 $as_echo "yes" >&6; }
14453         have_openssl="yes"
14454 fi
14455 else
14456         have_openssl="yes"
14457 fi
14458
14459 #Verify nss
14460
14461 pkg_failed=no
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14463 $as_echo_n "checking for NSS... " >&6; }
14464
14465 if test -n "$NSS_CFLAGS"; then
14466     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14467  elif test -n "$PKG_CONFIG"; then
14468     if test -n "$PKG_CONFIG" && \
14469     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
14470   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
14471   ac_status=$?
14472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14473   test $ac_status = 0; }; then
14474   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
14475                       test "x$?" != "x0" && pkg_failed=yes
14476 else
14477   pkg_failed=yes
14478 fi
14479  else
14480     pkg_failed=untried
14481 fi
14482 if test -n "$NSS_LIBS"; then
14483     pkg_cv_NSS_LIBS="$NSS_LIBS"
14484  elif test -n "$PKG_CONFIG"; then
14485     if test -n "$PKG_CONFIG" && \
14486     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
14487   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
14488   ac_status=$?
14489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490   test $ac_status = 0; }; then
14491   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
14492                       test "x$?" != "x0" && pkg_failed=yes
14493 else
14494   pkg_failed=yes
14495 fi
14496  else
14497     pkg_failed=untried
14498 fi
14499
14500
14501
14502 if test $pkg_failed = yes; then
14503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14505
14506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14507         _pkg_short_errors_supported=yes
14508 else
14509         _pkg_short_errors_supported=no
14510 fi
14511         if test $_pkg_short_errors_supported = yes; then
14512                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
14513         else
14514                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
14515         fi
14516         # Put the nasty error message in config.log where it belongs
14517         echo "$NSS_PKG_ERRORS" >&5
14518
14519         have_nss="no"
14520 elif test $pkg_failed = untried; then
14521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14523         have_nss="no"
14524 else
14525         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14526         NSS_LIBS=$pkg_cv_NSS_LIBS
14527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528 $as_echo "yes" >&6; }
14529         have_nss="yes"
14530          NSS_CFLAGS="${NSS_CFLAGS} -DENABLE_NSS"
14531 fi
14532
14533 if test "${enable_nss}" = "detect" ; then
14534         if test "$have_nss" == "yes" ; then
14535                 enable_nss="yes"
14536         else
14537                 enable_nss="no"
14538         fi
14539 fi
14540
14541 OLD_CFLAGS="${CFLAGS}"
14542 CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
14543 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
14544 if test "x$ac_cv_header_openssl_rsa_h" = xyes; then :
14545
14546 else
14547   have_openssl="no"
14548 fi
14549
14550
14551 CFLAGS="${OLD_CFLAGS}"
14552
14553 if test "${enable_pywrap}" != "no" ; then
14554
14555
14556
14557
14558
14559
14560         if test -n "$PYTHON"; then
14561       # If the user set $PYTHON, use it and don't search something else.
14562       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
14563 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
14564       prog="import sys
14565 # split strings by '.' and convert to numeric.  Append some zeros
14566 # because we need at least 4 digits for the hex conversion.
14567 # map returns an iterator in Python 3.0 and a list in 2.x
14568 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14569 minverhex = 0
14570 # xrange is not present in Python 3.0 and range returns an iterator
14571 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14572 sys.exit(sys.hexversion < minverhex)"
14573   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14574    ($PYTHON -c "$prog") >&5 2>&5
14575    ac_status=$?
14576    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577    (exit $ac_status); }; then :
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14579 $as_echo "yes" >&6; }
14580 else
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14583                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14584 fi
14585       am_display_PYTHON=$PYTHON
14586     else
14587       # Otherwise, try each interpreter until we find one that satisfies
14588       # VERSION.
14589       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
14590 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
14591 if ${am_cv_pathless_PYTHON+:} false; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594
14595         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
14596           test "$am_cv_pathless_PYTHON" = none && break
14597           prog="import sys
14598 # split strings by '.' and convert to numeric.  Append some zeros
14599 # because we need at least 4 digits for the hex conversion.
14600 # map returns an iterator in Python 3.0 and a list in 2.x
14601 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14602 minverhex = 0
14603 # xrange is not present in Python 3.0 and range returns an iterator
14604 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14605 sys.exit(sys.hexversion < minverhex)"
14606   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14607    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14608    ac_status=$?
14609    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610    (exit $ac_status); }; then :
14611   break
14612 fi
14613         done
14614 fi
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14616 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14617       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14618       if test "$am_cv_pathless_PYTHON" = none; then
14619         PYTHON=:
14620       else
14621         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14622 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14624 $as_echo_n "checking for $ac_word... " >&6; }
14625 if ${ac_cv_path_PYTHON+:} false; then :
14626   $as_echo_n "(cached) " >&6
14627 else
14628   case $PYTHON in
14629   [\\/]* | ?:[\\/]*)
14630   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14631   ;;
14632   *)
14633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14635 do
14636   IFS=$as_save_IFS
14637   test -z "$as_dir" && as_dir=.
14638     for ac_exec_ext in '' $ac_executable_extensions; do
14639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14642     break 2
14643   fi
14644 done
14645   done
14646 IFS=$as_save_IFS
14647
14648   ;;
14649 esac
14650 fi
14651 PYTHON=$ac_cv_path_PYTHON
14652 if test -n "$PYTHON"; then
14653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14654 $as_echo "$PYTHON" >&6; }
14655 else
14656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14658 fi
14659
14660
14661       fi
14662       am_display_PYTHON=$am_cv_pathless_PYTHON
14663     fi
14664
14665
14666   if test "$PYTHON" = :; then
14667       have_python="no"
14668   else
14669
14670
14671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14672 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14673 if ${am_cv_python_version+:} false; then :
14674   $as_echo_n "(cached) " >&6
14675 else
14676   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14677 fi
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14679 $as_echo "$am_cv_python_version" >&6; }
14680   PYTHON_VERSION=$am_cv_python_version
14681
14682
14683
14684   PYTHON_PREFIX='${prefix}'
14685
14686   PYTHON_EXEC_PREFIX='${exec_prefix}'
14687
14688
14689
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14691 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14692 if ${am_cv_python_platform+:} false; then :
14693   $as_echo_n "(cached) " >&6
14694 else
14695   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14696 fi
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14698 $as_echo "$am_cv_python_platform" >&6; }
14699   PYTHON_PLATFORM=$am_cv_python_platform
14700
14701
14702   # Just factor out some code duplication.
14703   am_python_setup_sysconfig="\
14704 import sys
14705 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14706 # with python 3.x.  See automake bug#10227.
14707 try:
14708     import sysconfig
14709 except ImportError:
14710     can_use_sysconfig = 0
14711 else:
14712     can_use_sysconfig = 1
14713 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14714 # <https://github.com/pypa/virtualenv/issues/118>
14715 try:
14716     from platform import python_implementation
14717     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14718         can_use_sysconfig = 0
14719 except ImportError:
14720     pass"
14721
14722
14723             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14724 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14725 if ${am_cv_python_pythondir+:} false; then :
14726   $as_echo_n "(cached) " >&6
14727 else
14728   if test "x$prefix" = xNONE
14729      then
14730        am_py_prefix=$ac_default_prefix
14731      else
14732        am_py_prefix=$prefix
14733      fi
14734      am_cv_python_pythondir=`$PYTHON -c "
14735 $am_python_setup_sysconfig
14736 if can_use_sysconfig:
14737     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14738 else:
14739     from distutils import sysconfig
14740     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14741 sys.stdout.write(sitedir)"`
14742      case $am_cv_python_pythondir in
14743      $am_py_prefix*)
14744        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14745        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14746        ;;
14747      *)
14748        case $am_py_prefix in
14749          /usr|/System*) ;;
14750          *)
14751           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14752           ;;
14753        esac
14754        ;;
14755      esac
14756
14757 fi
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14759 $as_echo "$am_cv_python_pythondir" >&6; }
14760   pythondir=$am_cv_python_pythondir
14761
14762
14763
14764   pkgpythondir=\${pythondir}/$PACKAGE
14765
14766
14767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14768 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14769 if ${am_cv_python_pyexecdir+:} false; then :
14770   $as_echo_n "(cached) " >&6
14771 else
14772   if test "x$exec_prefix" = xNONE
14773      then
14774        am_py_exec_prefix=$am_py_prefix
14775      else
14776        am_py_exec_prefix=$exec_prefix
14777      fi
14778      am_cv_python_pyexecdir=`$PYTHON -c "
14779 $am_python_setup_sysconfig
14780 if can_use_sysconfig:
14781     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14782 else:
14783     from distutils import sysconfig
14784     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14785 sys.stdout.write(sitedir)"`
14786      case $am_cv_python_pyexecdir in
14787      $am_py_exec_prefix*)
14788        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14789        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14790        ;;
14791      *)
14792        case $am_py_exec_prefix in
14793          /usr|/System*) ;;
14794          *)
14795            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14796            ;;
14797        esac
14798        ;;
14799      esac
14800
14801 fi
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14803 $as_echo "$am_cv_python_pyexecdir" >&6; }
14804   pyexecdir=$am_cv_python_pyexecdir
14805
14806
14807
14808   pkgpyexecdir=\${pyexecdir}/$PACKAGE
14809
14810
14811     have_python="yes"
14812   fi
14813
14814
14815
14816         # Extract the first word of "swig", so it can be a program name with args.
14817 set dummy swig; ac_word=$2
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14819 $as_echo_n "checking for $ac_word... " >&6; }
14820 if ${ac_cv_path_SWIG+:} false; then :
14821   $as_echo_n "(cached) " >&6
14822 else
14823   case $SWIG in
14824   [\\/]* | ?:[\\/]*)
14825   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14826   ;;
14827   *)
14828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829 for as_dir in $PATH
14830 do
14831   IFS=$as_save_IFS
14832   test -z "$as_dir" && as_dir=.
14833     for ac_exec_ext in '' $ac_executable_extensions; do
14834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14835     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14837     break 2
14838   fi
14839 done
14840   done
14841 IFS=$as_save_IFS
14842
14843   ;;
14844 esac
14845 fi
14846 SWIG=$ac_cv_path_SWIG
14847 if test -n "$SWIG"; then
14848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14849 $as_echo "$SWIG" >&6; }
14850 else
14851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852 $as_echo "no" >&6; }
14853 fi
14854
14855
14856         if test -z "$SWIG" ; then
14857                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
14858 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
14859                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
14860         elif test -n "1.3.31" ; then
14861                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
14862 $as_echo_n "checking for SWIG version... " >&6; }
14863                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
14864                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14865 $as_echo "$swig_version" >&6; }
14866                 if test -n "$swig_version" ; then
14867                         # Calculate the required version number components
14868                         required=1.3.31
14869                         required_major=`echo $required | sed 's/[^0-9].*//'`
14870                         if test -z "$required_major" ; then
14871                                 required_major=0
14872                         fi
14873                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14874                         required_minor=`echo $required | sed 's/[^0-9].*//'`
14875                         if test -z "$required_minor" ; then
14876                                 required_minor=0
14877                         fi
14878                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14879                         required_patch=`echo $required | sed 's/[^0-9].*//'`
14880                         if test -z "$required_patch" ; then
14881                                 required_patch=0
14882                         fi
14883                         # Calculate the available version number components
14884                         available=$swig_version
14885                         available_major=`echo $available | sed 's/[^0-9].*//'`
14886                         if test -z "$available_major" ; then
14887                                 available_major=0
14888                         fi
14889                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14890                         available_minor=`echo $available | sed 's/[^0-9].*//'`
14891                         if test -z "$available_minor" ; then
14892                                 available_minor=0
14893                         fi
14894                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14895                         available_patch=`echo $available | sed 's/[^0-9].*//'`
14896                         if test -z "$available_patch" ; then
14897                                 available_patch=0
14898                         fi
14899                         if test $available_major -ne $required_major \
14900                                 -o $available_minor -ne $required_minor \
14901                                 -o $available_patch -lt $required_patch ; then
14902                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 1.3.31 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
14903 $as_echo "$as_me: WARNING: SWIG version >= 1.3.31 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
14904                                 SWIG='echo "Error: SWIG version >= 1.3.31 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
14905                         else
14906                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
14907 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
14908                                 SWIG_LIB=`$SWIG -swiglib`
14909                                 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
14910 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
14911                         fi
14912                 else
14913                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14914 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14915                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
14916                 fi
14917         fi
14918
14919
14920
14921         #
14922         # Allow the use of a (user set) custom python version
14923         #
14924
14925
14926         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
14927 set dummy python$PYTHON_VERSION; ac_word=$2
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14929 $as_echo_n "checking for $ac_word... " >&6; }
14930 if ${ac_cv_path_PYTHON+:} false; then :
14931   $as_echo_n "(cached) " >&6
14932 else
14933   case $PYTHON in
14934   [\\/]* | ?:[\\/]*)
14935   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14936   ;;
14937   *)
14938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14939 for as_dir in $PATH
14940 do
14941   IFS=$as_save_IFS
14942   test -z "$as_dir" && as_dir=.
14943     for ac_exec_ext in '' $ac_executable_extensions; do
14944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14945     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14947     break 2
14948   fi
14949 done
14950   done
14951 IFS=$as_save_IFS
14952
14953   ;;
14954 esac
14955 fi
14956 PYTHON=$ac_cv_path_PYTHON
14957 if test -n "$PYTHON"; then
14958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14959 $as_echo "$PYTHON" >&6; }
14960 else
14961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 $as_echo "no" >&6; }
14963 fi
14964
14965
14966         if test -z "$PYTHON"; then
14967            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
14968            PYTHON_VERSION=""
14969         fi
14970
14971         #
14972         # Check for a version of Python >= 2.1.0
14973         #
14974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
14975 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
14976         ac_supports_python_ver=`$PYTHON -c "import sys, string; \
14977                 ver = string.split(sys.version)[0]; \
14978                 print ver >= '2.1.0'"`
14979         if test "$ac_supports_python_ver" != "True"; then
14980                 if test -z "$PYTHON_NOVERSIONCHECK"; then
14981                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14983                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14985 as_fn_error $? "
14986 This version of the AC_PYTHON_DEVEL macro
14987 doesn't work properly with versions of Python before
14988 2.1.0. You may need to re-run configure, setting the
14989 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
14990 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
14991 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
14992 to something else than an empty string.
14993
14994 See \`config.log' for more details" "$LINENO" 5; }
14995                 else
14996                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
14997 $as_echo "skip at user request" >&6; }
14998                 fi
14999         else
15000                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15001 $as_echo "yes" >&6; }
15002         fi
15003
15004         #
15005         # if the macro parameter ``version'' is set, honour it
15006         #
15007         if test -n ""; then
15008                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15009 $as_echo_n "checking for a version of Python ... " >&6; }
15010                 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15011                         ver = string.split(sys.version)[0]; \
15012                         print ver "`
15013                 if test "$ac_supports_python_ver" = "True"; then
15014                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15015 $as_echo "yes" >&6; }
15016                 else
15017                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15018 $as_echo "no" >&6; }
15019                         as_fn_error $? "this package requires Python .
15020 If you have it installed, but it isn't the default Python
15021 interpreter in your system path, please pass the PYTHON_VERSION
15022 variable to configure. See \`\`configure --help'' for reference.
15023 " "$LINENO" 5
15024                         PYTHON_VERSION=""
15025                 fi
15026         fi
15027
15028         #
15029         # Check if you have distutils, else fail
15030         #
15031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15032 $as_echo_n "checking for the distutils Python package... " >&6; }
15033         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15034         if test -z "$ac_distutils_result"; then
15035                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15036 $as_echo "yes" >&6; }
15037         else
15038                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 $as_echo "no" >&6; }
15040                 as_fn_error $? "cannot import Python module \"distutils\".
15041 Please check your Python installation. The error was:
15042 $ac_distutils_result" "$LINENO" 5
15043                 PYTHON_VERSION=""
15044         fi
15045
15046         #
15047         # Check for Python include path
15048         #
15049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15050 $as_echo_n "checking for Python include path... " >&6; }
15051         if test -z "$PYTHON_CPPFLAGS"; then
15052                 python_path=`$PYTHON -c "import distutils.sysconfig; \
15053                         print distutils.sysconfig.get_python_inc();"`
15054                 if test -n "${python_path}"; then
15055                         python_path="-I$python_path"
15056                 fi
15057                 python_plat_path=`$PYTHON -c "import distutils.sysconfig; \
15058                         print distutils.sysconfig.get_python_inc(plat_specific=True);"`
15059                 if test -n "${python_plat_path}"; then
15060                         python_plat_path="-I$python_plat_path"
15061                 fi
15062                 PYTHON_CPPFLAGS="$python_path $python_plat_path"
15063         fi
15064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15065 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15066
15067
15068         #
15069         # Check for Python library path
15070         #
15071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15072 $as_echo_n "checking for Python library path... " >&6; }
15073         if test -z "$PYTHON_LDFLAGS"; then
15074                 # (makes two attempts to ensure we've got a version number
15075                 # from the interpreter)
15076                 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15077                         from string import join; \
15078                         print join(get_config_vars('VERSION'))"`
15079                 if test "$py_version" == "None"; then
15080                         if test -n "$PYTHON_VERSION"; then
15081                                 py_version=$PYTHON_VERSION
15082                         else
15083                                 py_version=`$PYTHON -c "import sys; \
15084                                         print sys.version[:3]"`
15085                         fi
15086                 fi
15087
15088                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15089                         from string import join; \
15090                         print '-L' + get_python_lib(0,1), \
15091                         '-lpython';"`$py_version
15092         fi
15093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15094 $as_echo "$PYTHON_LDFLAGS" >&6; }
15095
15096
15097         #
15098         # Check for site packages
15099         #
15100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15101 $as_echo_n "checking for Python site-packages path... " >&6; }
15102         if test -z "$PYTHON_SITE_PKG"; then
15103                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15104                         print distutils.sysconfig.get_python_lib(0,0);"`
15105         fi
15106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15107 $as_echo "$PYTHON_SITE_PKG" >&6; }
15108
15109
15110         #
15111         # libraries which must be linked in when embedding
15112         #
15113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15114 $as_echo_n "checking python extra libraries... " >&6; }
15115         if test -z "$PYTHON_EXTRA_LIBS"; then
15116            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15117                 conf = distutils.sysconfig.get_config_var; \
15118                 print conf('LOCALMODLIBS'), conf('LIBS')"`
15119         fi
15120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15121 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15122
15123
15124         #
15125         # linking flags needed when embedding
15126         #
15127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15128 $as_echo_n "checking python extra linking flags... " >&6; }
15129         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15130                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15131                         conf = distutils.sysconfig.get_config_var; \
15132                         print conf('LINKFORSHARED')"`
15133         fi
15134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15135 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15136
15137
15138         #
15139         # final check to see if everything compiles alright
15140         #
15141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15142 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15143         ac_ext=c
15144 ac_cpp='$CPP $CPPFLAGS'
15145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15148
15149         # save current global flags
15150         ac_save_LIBS="$LIBS"
15151         ac_save_CPPFLAGS="$CPPFLAGS"
15152         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
15153         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
15154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h.  */
15156
15157                 #include <Python.h>
15158
15159 int
15160 main ()
15161 {
15162
15163                 Py_Initialize();
15164
15165   ;
15166   return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_c_try_link "$LINENO"; then :
15170   pythonexists=yes
15171 else
15172   pythonexists=no
15173 fi
15174 rm -f core conftest.err conftest.$ac_objext \
15175     conftest$ac_exeext conftest.$ac_ext
15176
15177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15178 $as_echo "$pythonexists" >&6; }
15179
15180         if test ! "$pythonexists" = "yes"; then
15181           PYTHON_VERSION=""
15182         fi
15183         ac_ext=c
15184 ac_cpp='$CPP $CPPFLAGS'
15185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15188
15189         # turn back to default flags
15190         CPPFLAGS="$ac_save_CPPFLAGS"
15191         LIBS="$ac_save_LIBS"
15192
15193         #
15194         # all done!
15195         #
15196
15197
15198
15199
15200         test "x" != "xno" || swig_shadow=" -noproxy"
15201         SWIG_PYTHON_OPT=-python$swig_shadow
15202
15203         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
15204
15205
15206 fi
15207
15208 if test "x${SWIG}" != "x" ; then
15209    have_swig="yes"
15210 else
15211    have_swig="no"
15212 fi
15213
15214 if test "${enable_pywrap}" = "detect" ; then
15215         if test "${have_python}" = "yes" ; then
15216                 if test "${have_swig}" = "yes" ; then
15217                         enable_pywrap="yes"
15218                 fi
15219         fi
15220 fi
15221
15222 if test "${enable_pywrap}" = "yes" ; then
15223         test "${have_python}" != "yes" && as_fn_error $? "Python not found" "$LINENO" 5
15224         test "${have_swig}" != "yes" && as_fn_error $? "SWIG not found" "$LINENO" 5
15225 fi
15226
15227 test "${enable_openssl}" = "detect" && enable_openssl="${have_openssl}"
15228
15229 if test "${enable_openssl}" = "yes" ; then
15230         test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
15231 fi
15232
15233 if test "${enable_pkcs11_helper}" = "yes" ; then
15234         test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
15235
15236 pkg_failed=no
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15238 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15239
15240 if test -n "$PKCS11_HELPER_CFLAGS"; then
15241     pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
15242  elif test -n "$PKG_CONFIG"; then
15243     if test -n "$PKG_CONFIG" && \
15244     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
15245   ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
15246   ac_status=$?
15247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248   test $ac_status = 0; }; then
15249   pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
15250                       test "x$?" != "x0" && pkg_failed=yes
15251 else
15252   pkg_failed=yes
15253 fi
15254  else
15255     pkg_failed=untried
15256 fi
15257 if test -n "$PKCS11_HELPER_LIBS"; then
15258     pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
15259  elif test -n "$PKG_CONFIG"; then
15260     if test -n "$PKG_CONFIG" && \
15261     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
15262   ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
15263   ac_status=$?
15264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15265   test $ac_status = 0; }; then
15266   pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
15267                       test "x$?" != "x0" && pkg_failed=yes
15268 else
15269   pkg_failed=yes
15270 fi
15271  else
15272     pkg_failed=untried
15273 fi
15274
15275
15276
15277 if test $pkg_failed = yes; then
15278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15280
15281 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15282         _pkg_short_errors_supported=yes
15283 else
15284         _pkg_short_errors_supported=no
15285 fi
15286         if test $_pkg_short_errors_supported = yes; then
15287                 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
15288         else
15289                 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
15290         fi
15291         # Put the nasty error message in config.log where it belongs
15292         echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15293
15294         as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
15295 elif test $pkg_failed = untried; then
15296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 $as_echo "no" >&6; }
15298         as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
15299 else
15300         PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
15301         PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
15302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15303 $as_echo "yes" >&6; }
15304
15305 fi
15306 fi
15307
15308 if test "${enable_tspi}" = "yes" ; then
15309         if test -z "${TSPI_LIBS}"; then
15310
15311
15312                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tspi_Context_Create in -ltspi" >&5
15313 $as_echo_n "checking for Tspi_Context_Create in -ltspi... " >&6; }
15314 if ${ac_cv_lib_tspi_Tspi_Context_Create+:} false; then :
15315   $as_echo_n "(cached) " >&6
15316 else
15317   ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-ltspi  $LIBS"
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h.  */
15321
15322 /* Override any GCC internal prototype to avoid an error.
15323    Use char because int might match the return type of a GCC
15324    builtin and then its argument prototype would still apply.  */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char Tspi_Context_Create ();
15329 int
15330 main ()
15331 {
15332 return Tspi_Context_Create ();
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338   ac_cv_lib_tspi_Tspi_Context_Create=yes
15339 else
15340   ac_cv_lib_tspi_Tspi_Context_Create=no
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext \
15343     conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15345 fi
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tspi_Tspi_Context_Create" >&5
15347 $as_echo "$ac_cv_lib_tspi_Tspi_Context_Create" >&6; }
15348 if test "x$ac_cv_lib_tspi_Tspi_Context_Create" = xyes; then :
15349   TSPI_LIBS="-ltspi"
15350 else
15351   as_fn_error $? "Cannot find tspi" "$LINENO" 5
15352
15353 fi
15354
15355         fi
15356 fi
15357
15358 if test "${enable_gpg}" = "yes" ; then
15359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpgme" >&5
15360 $as_echo_n "checking for gpgme... " >&6; }
15361         if ! test -x "${with_gpgme_prefix}/bin/gpgme-config"; then
15362                 as_fn_error $? "Cannot locate gpgme" "$LINENO" 5
15363         else
15364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15365 $as_echo "found" >&6; }
15366                 GPGME_CFLAGS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --cflags`"
15367                 GPGME_LIBS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --libs`"
15368         fi
15369 fi
15370
15371 if test "${enable_pam}" = "yes" ; then
15372         if test -z "${PAM_LIBS}"; then
15373
15374
15375                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
15376 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
15377 if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
15378   $as_echo_n "(cached) " >&6
15379 else
15380   ac_check_lib_save_LIBS=$LIBS
15381 LIBS="-lpam  $LIBS"
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h.  */
15384
15385 /* Override any GCC internal prototype to avoid an error.
15386    Use char because int might match the return type of a GCC
15387    builtin and then its argument prototype would still apply.  */
15388 #ifdef __cplusplus
15389 extern "C"
15390 #endif
15391 char pam_authenticate ();
15392 int
15393 main ()
15394 {
15395 return pam_authenticate ();
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 if ac_fn_c_try_link "$LINENO"; then :
15401   ac_cv_lib_pam_pam_authenticate=yes
15402 else
15403   ac_cv_lib_pam_pam_authenticate=no
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext \
15406     conftest$ac_exeext conftest.$ac_ext
15407 LIBS=$ac_check_lib_save_LIBS
15408 fi
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
15410 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
15411 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
15412   PAM_LIBS="-lpam"
15413 else
15414   as_fn_error $? "Cannot find pam" "$LINENO" 5
15415
15416 fi
15417
15418                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_misc_setenv in -lpam_misc" >&5
15419 $as_echo_n "checking for pam_misc_setenv in -lpam_misc... " >&6; }
15420 if ${ac_cv_lib_pam_misc_pam_misc_setenv+:} false; then :
15421   $as_echo_n "(cached) " >&6
15422 else
15423   ac_check_lib_save_LIBS=$LIBS
15424 LIBS="-lpam_misc  $LIBS"
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h.  */
15427
15428 /* Override any GCC internal prototype to avoid an error.
15429    Use char because int might match the return type of a GCC
15430    builtin and then its argument prototype would still apply.  */
15431 #ifdef __cplusplus
15432 extern "C"
15433 #endif
15434 char pam_misc_setenv ();
15435 int
15436 main ()
15437 {
15438 return pam_misc_setenv ();
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 if ac_fn_c_try_link "$LINENO"; then :
15444   ac_cv_lib_pam_misc_pam_misc_setenv=yes
15445 else
15446   ac_cv_lib_pam_misc_pam_misc_setenv=no
15447 fi
15448 rm -f core conftest.err conftest.$ac_objext \
15449     conftest$ac_exeext conftest.$ac_ext
15450 LIBS=$ac_check_lib_save_LIBS
15451 fi
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_pam_misc_setenv" >&5
15453 $as_echo "$ac_cv_lib_pam_misc_pam_misc_setenv" >&6; }
15454 if test "x$ac_cv_lib_pam_misc_pam_misc_setenv" = xyes; then :
15455   PAM_LIBS="${PAM_LIBS} ${TSPI_LIBS} -lpam_misc"
15456 else
15457   as_fn_error $? "Cannot find pam_misc" "$LINENO" 5
15458
15459 fi
15460
15461         fi
15462 fi
15463
15464 if test "${enable_gui}" = "yes"; then
15465
15466 pkg_failed=no
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15468 $as_echo_n "checking for GTK... " >&6; }
15469
15470 if test -n "$GTK_CFLAGS"; then
15471     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15472  elif test -n "$PKG_CONFIG"; then
15473     if test -n "$PKG_CONFIG" && \
15474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
15475   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
15476   ac_status=$?
15477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15478   test $ac_status = 0; }; then
15479   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0" 2>/dev/null`
15480                       test "x$?" != "x0" && pkg_failed=yes
15481 else
15482   pkg_failed=yes
15483 fi
15484  else
15485     pkg_failed=untried
15486 fi
15487 if test -n "$GTK_LIBS"; then
15488     pkg_cv_GTK_LIBS="$GTK_LIBS"
15489  elif test -n "$PKG_CONFIG"; then
15490     if test -n "$PKG_CONFIG" && \
15491     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
15492   ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
15493   ac_status=$?
15494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15495   test $ac_status = 0; }; then
15496   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0" 2>/dev/null`
15497                       test "x$?" != "x0" && pkg_failed=yes
15498 else
15499   pkg_failed=yes
15500 fi
15501  else
15502     pkg_failed=untried
15503 fi
15504
15505
15506
15507 if test $pkg_failed = yes; then
15508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510
15511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15512         _pkg_short_errors_supported=yes
15513 else
15514         _pkg_short_errors_supported=no
15515 fi
15516         if test $_pkg_short_errors_supported = yes; then
15517                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
15518         else
15519                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
15520         fi
15521         # Put the nasty error message in config.log where it belongs
15522         echo "$GTK_PKG_ERRORS" >&5
15523
15524           GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
15525   GTK_LIBS    linker flags for GTK, overriding pkg-config
15526
15527 pkg_failed=no
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15529 $as_echo_n "checking for GTK... " >&6; }
15530
15531 if test -n "$GTK_CFLAGS"; then
15532     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15533  elif test -n "$PKG_CONFIG"; then
15534     if test -n "$PKG_CONFIG" && \
15535     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15536   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15537   ac_status=$?
15538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15539   test $ac_status = 0; }; then
15540   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
15541                       test "x$?" != "x0" && pkg_failed=yes
15542 else
15543   pkg_failed=yes
15544 fi
15545  else
15546     pkg_failed=untried
15547 fi
15548 if test -n "$GTK_LIBS"; then
15549     pkg_cv_GTK_LIBS="$GTK_LIBS"
15550  elif test -n "$PKG_CONFIG"; then
15551     if test -n "$PKG_CONFIG" && \
15552     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15553   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15554   ac_status=$?
15555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556   test $ac_status = 0; }; then
15557   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15558                       test "x$?" != "x0" && pkg_failed=yes
15559 else
15560   pkg_failed=yes
15561 fi
15562  else
15563     pkg_failed=untried
15564 fi
15565
15566
15567
15568 if test $pkg_failed = yes; then
15569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15570 $as_echo "no" >&6; }
15571
15572 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15573         _pkg_short_errors_supported=yes
15574 else
15575         _pkg_short_errors_supported=no
15576 fi
15577         if test $_pkg_short_errors_supported = yes; then
15578                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15579         else
15580                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15581         fi
15582         # Put the nasty error message in config.log where it belongs
15583         echo "$GTK_PKG_ERRORS" >&5
15584
15585         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15586
15587 elif test $pkg_failed = untried; then
15588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15590         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15591
15592 else
15593         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15594         GTK_LIBS=$pkg_cv_GTK_LIBS
15595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15596 $as_echo "yes" >&6; }
15597
15598 fi
15599
15600 elif test $pkg_failed = untried; then
15601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15603           GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
15604   GTK_LIBS    linker flags for GTK, overriding pkg-config
15605
15606 pkg_failed=no
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15608 $as_echo_n "checking for GTK... " >&6; }
15609
15610 if test -n "$GTK_CFLAGS"; then
15611     pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15612  elif test -n "$PKG_CONFIG"; then
15613     if test -n "$PKG_CONFIG" && \
15614     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15615   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15616   ac_status=$?
15617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618   test $ac_status = 0; }; then
15619   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
15620                       test "x$?" != "x0" && pkg_failed=yes
15621 else
15622   pkg_failed=yes
15623 fi
15624  else
15625     pkg_failed=untried
15626 fi
15627 if test -n "$GTK_LIBS"; then
15628     pkg_cv_GTK_LIBS="$GTK_LIBS"
15629  elif test -n "$PKG_CONFIG"; then
15630     if test -n "$PKG_CONFIG" && \
15631     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15632   ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15633   ac_status=$?
15634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15635   test $ac_status = 0; }; then
15636   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15637                       test "x$?" != "x0" && pkg_failed=yes
15638 else
15639   pkg_failed=yes
15640 fi
15641  else
15642     pkg_failed=untried
15643 fi
15644
15645
15646
15647 if test $pkg_failed = yes; then
15648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649 $as_echo "no" >&6; }
15650
15651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15652         _pkg_short_errors_supported=yes
15653 else
15654         _pkg_short_errors_supported=no
15655 fi
15656         if test $_pkg_short_errors_supported = yes; then
15657                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15658         else
15659                 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15660         fi
15661         # Put the nasty error message in config.log where it belongs
15662         echo "$GTK_PKG_ERRORS" >&5
15663
15664         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15665
15666 elif test $pkg_failed = untried; then
15667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668 $as_echo "no" >&6; }
15669         as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15670
15671 else
15672         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15673         GTK_LIBS=$pkg_cv_GTK_LIBS
15674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15675 $as_echo "yes" >&6; }
15676
15677 fi
15678
15679 else
15680         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15681         GTK_LIBS=$pkg_cv_GTK_LIBS
15682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15683 $as_echo "yes" >&6; }
15684
15685 fi
15686 fi
15687
15688 pkgconfigdir="\$(libdir)/pkgconfig"
15689 if test "${prefix}" = "/usr"; then
15690         rootsbindir="/sbin"
15691 else
15692         rootsbindir="\$(sbindir)"
15693 fi
15694
15695 GETTEXT_PACKAGE=ecryptfs-utils
15696
15697
15698 cat >>confdefs.h <<_ACEOF
15699 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15700 _ACEOF
15701
15702
15703
15704    for ac_header in locale.h
15705 do :
15706   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15707 if test "x$ac_cv_header_locale_h" = xyes; then :
15708   cat >>confdefs.h <<_ACEOF
15709 #define HAVE_LOCALE_H 1
15710 _ACEOF
15711
15712 fi
15713
15714 done
15715
15716     if test $ac_cv_header_locale_h = yes; then
15717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15718 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15719 if ${am_cv_val_LC_MESSAGES+:} false; then :
15720   $as_echo_n "(cached) " >&6
15721 else
15722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h.  */
15724 #include <locale.h>
15725 int
15726 main ()
15727 {
15728 return LC_MESSAGES
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 if ac_fn_c_try_link "$LINENO"; then :
15734   am_cv_val_LC_MESSAGES=yes
15735 else
15736   am_cv_val_LC_MESSAGES=no
15737 fi
15738 rm -f core conftest.err conftest.$ac_objext \
15739     conftest$ac_exeext conftest.$ac_ext
15740 fi
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15742 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15743     if test $am_cv_val_LC_MESSAGES = yes; then
15744
15745 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15746
15747     fi
15748   fi
15749      USE_NLS=yes
15750
15751
15752     gt_cv_have_gettext=no
15753
15754     CATOBJEXT=NONE
15755     XGETTEXT=:
15756     INTLLIBS=
15757
15758     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15759 if test "x$ac_cv_header_libintl_h" = xyes; then :
15760   gt_cv_func_dgettext_libintl="no"
15761       libintl_extra_libs=""
15762
15763       #
15764       # First check in libc
15765       #
15766       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
15767 $as_echo_n "checking for ngettext in libc... " >&6; }
15768 if ${gt_cv_func_ngettext_libc+:} false; then :
15769   $as_echo_n "(cached) " >&6
15770 else
15771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h.  */
15773
15774 #include <libintl.h>
15775
15776 int
15777 main ()
15778 {
15779 return !ngettext ("","", 1)
15780   ;
15781   return 0;
15782 }
15783 _ACEOF
15784 if ac_fn_c_try_link "$LINENO"; then :
15785   gt_cv_func_ngettext_libc=yes
15786 else
15787   gt_cv_func_ngettext_libc=no
15788 fi
15789 rm -f core conftest.err conftest.$ac_objext \
15790     conftest$ac_exeext conftest.$ac_ext
15791
15792 fi
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
15794 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
15795
15796       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15797               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
15798 $as_echo_n "checking for dgettext in libc... " >&6; }
15799 if ${gt_cv_func_dgettext_libc+:} false; then :
15800   $as_echo_n "(cached) " >&6
15801 else
15802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h.  */
15804
15805 #include <libintl.h>
15806
15807 int
15808 main ()
15809 {
15810 return !dgettext ("","")
15811   ;
15812   return 0;
15813 }
15814 _ACEOF
15815 if ac_fn_c_try_link "$LINENO"; then :
15816   gt_cv_func_dgettext_libc=yes
15817 else
15818   gt_cv_func_dgettext_libc=no
15819 fi
15820 rm -f core conftest.err conftest.$ac_objext \
15821     conftest$ac_exeext conftest.$ac_ext
15822
15823 fi
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
15825 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
15826       fi
15827
15828       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15829         for ac_func in bind_textdomain_codeset
15830 do :
15831   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15832 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15833   cat >>confdefs.h <<_ACEOF
15834 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15835 _ACEOF
15836
15837 fi
15838 done
15839
15840       fi
15841
15842       #
15843       # If we don't have everything we want, check in libintl
15844       #
15845       if test "$gt_cv_func_dgettext_libc" != "yes" \
15846          || test "$gt_cv_func_ngettext_libc" != "yes" \
15847          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15848
15849         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
15850 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
15851 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
15852   $as_echo_n "(cached) " >&6
15853 else
15854   ac_check_lib_save_LIBS=$LIBS
15855 LIBS="-lintl  $LIBS"
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h.  */
15858
15859 /* Override any GCC internal prototype to avoid an error.
15860    Use char because int might match the return type of a GCC
15861    builtin and then its argument prototype would still apply.  */
15862 #ifdef __cplusplus
15863 extern "C"
15864 #endif
15865 char bindtextdomain ();
15866 int
15867 main ()
15868 {
15869 return bindtextdomain ();
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 if ac_fn_c_try_link "$LINENO"; then :
15875   ac_cv_lib_intl_bindtextdomain=yes
15876 else
15877   ac_cv_lib_intl_bindtextdomain=no
15878 fi
15879 rm -f core conftest.err conftest.$ac_objext \
15880     conftest$ac_exeext conftest.$ac_ext
15881 LIBS=$ac_check_lib_save_LIBS
15882 fi
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
15884 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
15885 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
15886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15887 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15888 if ${ac_cv_lib_intl_ngettext+:} false; then :
15889   $as_echo_n "(cached) " >&6
15890 else
15891   ac_check_lib_save_LIBS=$LIBS
15892 LIBS="-lintl  $LIBS"
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h.  */
15895
15896 /* Override any GCC internal prototype to avoid an error.
15897    Use char because int might match the return type of a GCC
15898    builtin and then its argument prototype would still apply.  */
15899 #ifdef __cplusplus
15900 extern "C"
15901 #endif
15902 char ngettext ();
15903 int
15904 main ()
15905 {
15906 return ngettext ();
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_c_try_link "$LINENO"; then :
15912   ac_cv_lib_intl_ngettext=yes
15913 else
15914   ac_cv_lib_intl_ngettext=no
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext \
15917     conftest$ac_exeext conftest.$ac_ext
15918 LIBS=$ac_check_lib_save_LIBS
15919 fi
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15921 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15922 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15924 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15925 if ${ac_cv_lib_intl_dgettext+:} false; then :
15926   $as_echo_n "(cached) " >&6
15927 else
15928   ac_check_lib_save_LIBS=$LIBS
15929 LIBS="-lintl  $LIBS"
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h.  */
15932
15933 /* Override any GCC internal prototype to avoid an error.
15934    Use char because int might match the return type of a GCC
15935    builtin and then its argument prototype would still apply.  */
15936 #ifdef __cplusplus
15937 extern "C"
15938 #endif
15939 char dgettext ();
15940 int
15941 main ()
15942 {
15943 return dgettext ();
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 if ac_fn_c_try_link "$LINENO"; then :
15949   ac_cv_lib_intl_dgettext=yes
15950 else
15951   ac_cv_lib_intl_dgettext=no
15952 fi
15953 rm -f core conftest.err conftest.$ac_objext \
15954     conftest$ac_exeext conftest.$ac_ext
15955 LIBS=$ac_check_lib_save_LIBS
15956 fi
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15958 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15959 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
15960   gt_cv_func_dgettext_libintl=yes
15961 fi
15962
15963 fi
15964
15965 fi
15966
15967
15968         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15969           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
15970 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
15971           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15972 $as_echo "" >&6; }
15973           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15974 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15975 if ${ac_cv_lib_intl_ngettext+:} false; then :
15976   $as_echo_n "(cached) " >&6
15977 else
15978   ac_check_lib_save_LIBS=$LIBS
15979 LIBS="-lintl -liconv $LIBS"
15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h.  */
15982
15983 /* Override any GCC internal prototype to avoid an error.
15984    Use char because int might match the return type of a GCC
15985    builtin and then its argument prototype would still apply.  */
15986 #ifdef __cplusplus
15987 extern "C"
15988 #endif
15989 char ngettext ();
15990 int
15991 main ()
15992 {
15993 return ngettext ();
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 if ac_fn_c_try_link "$LINENO"; then :
15999   ac_cv_lib_intl_ngettext=yes
16000 else
16001   ac_cv_lib_intl_ngettext=no
16002 fi
16003 rm -f core conftest.err conftest.$ac_objext \
16004     conftest$ac_exeext conftest.$ac_ext
16005 LIBS=$ac_check_lib_save_LIBS
16006 fi
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
16008 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16009 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
16010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
16011 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
16012 if ${ac_cv_lib_intl_dcgettext+:} false; then :
16013   $as_echo_n "(cached) " >&6
16014 else
16015   ac_check_lib_save_LIBS=$LIBS
16016 LIBS="-lintl -liconv $LIBS"
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h.  */
16019
16020 /* Override any GCC internal prototype to avoid an error.
16021    Use char because int might match the return type of a GCC
16022    builtin and then its argument prototype would still apply.  */
16023 #ifdef __cplusplus
16024 extern "C"
16025 #endif
16026 char dcgettext ();
16027 int
16028 main ()
16029 {
16030 return dcgettext ();
16031   ;
16032   return 0;
16033 }
16034 _ACEOF
16035 if ac_fn_c_try_link "$LINENO"; then :
16036   ac_cv_lib_intl_dcgettext=yes
16037 else
16038   ac_cv_lib_intl_dcgettext=no
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext \
16041     conftest$ac_exeext conftest.$ac_ext
16042 LIBS=$ac_check_lib_save_LIBS
16043 fi
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
16045 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
16046 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
16047   gt_cv_func_dgettext_libintl=yes
16048                         libintl_extra_libs=-liconv
16049 else
16050   :
16051 fi
16052
16053 else
16054   :
16055 fi
16056
16057         fi
16058
16059         #
16060         # If we found libintl, then check in it for bind_textdomain_codeset();
16061         # we'll prefer libc if neither have bind_textdomain_codeset(),
16062         # and both have dgettext and ngettext
16063         #
16064         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16065           glib_save_LIBS="$LIBS"
16066           LIBS="$LIBS -lintl $libintl_extra_libs"
16067           unset ac_cv_func_bind_textdomain_codeset
16068           for ac_func in bind_textdomain_codeset
16069 do :
16070   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16071 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
16072   cat >>confdefs.h <<_ACEOF
16073 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
16074 _ACEOF
16075
16076 fi
16077 done
16078
16079           LIBS="$glib_save_LIBS"
16080
16081           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16082             gt_cv_func_dgettext_libc=no
16083           else
16084             if test "$gt_cv_func_dgettext_libc" = "yes" \
16085                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
16086               gt_cv_func_dgettext_libintl=no
16087             fi
16088           fi
16089         fi
16090       fi
16091
16092       if test "$gt_cv_func_dgettext_libc" = "yes" \
16093         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
16094         gt_cv_have_gettext=yes
16095       fi
16096
16097       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16098         INTLLIBS="-lintl $libintl_extra_libs"
16099       fi
16100
16101       if test "$gt_cv_have_gettext" = "yes"; then
16102
16103 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16104
16105         # Extract the first word of "msgfmt", so it can be a program name with args.
16106 set dummy msgfmt; ac_word=$2
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16108 $as_echo_n "checking for $ac_word... " >&6; }
16109 if ${ac_cv_path_MSGFMT+:} false; then :
16110   $as_echo_n "(cached) " >&6
16111 else
16112   case "$MSGFMT" in
16113   /*)
16114   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16115   ;;
16116   *)
16117   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16118   for ac_dir in $PATH; do
16119     test -z "$ac_dir" && ac_dir=.
16120     if test -f $ac_dir/$ac_word; then
16121       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16122         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16123         break
16124       fi
16125     fi
16126   done
16127   IFS="$ac_save_ifs"
16128   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16129   ;;
16130 esac
16131 fi
16132 MSGFMT="$ac_cv_path_MSGFMT"
16133 if test "$MSGFMT" != "no"; then
16134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16135 $as_echo "$MSGFMT" >&6; }
16136 else
16137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138 $as_echo "no" >&6; }
16139 fi
16140         if test "$MSGFMT" != "no"; then
16141           glib_save_LIBS="$LIBS"
16142           LIBS="$LIBS $INTLLIBS"
16143           for ac_func in dcgettext
16144 do :
16145   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
16146 if test "x$ac_cv_func_dcgettext" = xyes; then :
16147   cat >>confdefs.h <<_ACEOF
16148 #define HAVE_DCGETTEXT 1
16149 _ACEOF
16150
16151 fi
16152 done
16153
16154           MSGFMT_OPTS=
16155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
16156 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
16157           cat >conftest.foo <<_ACEOF
16158
16159 msgid ""
16160 msgstr ""
16161 "Content-Type: text/plain; charset=UTF-8\n"
16162 "Project-Id-Version: test 1.0\n"
16163 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
16164 "Last-Translator: test <foo@bar.xx>\n"
16165 "Language-Team: C <LL@li.org>\n"
16166 "MIME-Version: 1.0\n"
16167 "Content-Transfer-Encoding: 8bit\n"
16168
16169 _ACEOF
16170 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
16171   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
16172   ac_status=$?
16173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16174   test $ac_status = 0; }; then
16175   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16176 $as_echo "yes" >&6; }
16177 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179 echo "$as_me: failed input was:" >&5
16180 sed 's/^/| /' conftest.foo >&5
16181 fi
16182
16183           # Extract the first word of "gmsgfmt", so it can be a program name with args.
16184 set dummy gmsgfmt; ac_word=$2
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186 $as_echo_n "checking for $ac_word... " >&6; }
16187 if ${ac_cv_path_GMSGFMT+:} false; then :
16188   $as_echo_n "(cached) " >&6
16189 else
16190   case $GMSGFMT in
16191   [\\/]* | ?:[\\/]*)
16192   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16193   ;;
16194   *)
16195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16196 for as_dir in $PATH
16197 do
16198   IFS=$as_save_IFS
16199   test -z "$as_dir" && as_dir=.
16200     for ac_exec_ext in '' $ac_executable_extensions; do
16201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16202     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16204     break 2
16205   fi
16206 done
16207   done
16208 IFS=$as_save_IFS
16209
16210   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16211   ;;
16212 esac
16213 fi
16214 GMSGFMT=$ac_cv_path_GMSGFMT
16215 if test -n "$GMSGFMT"; then
16216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16217 $as_echo "$GMSGFMT" >&6; }
16218 else
16219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16221 fi
16222
16223
16224           # Extract the first word of "xgettext", so it can be a program name with args.
16225 set dummy xgettext; ac_word=$2
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227 $as_echo_n "checking for $ac_word... " >&6; }
16228 if ${ac_cv_path_XGETTEXT+:} false; then :
16229   $as_echo_n "(cached) " >&6
16230 else
16231   case "$XGETTEXT" in
16232   /*)
16233   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16234   ;;
16235   *)
16236   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16237   for ac_dir in $PATH; do
16238     test -z "$ac_dir" && ac_dir=.
16239     if test -f $ac_dir/$ac_word; then
16240       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
16241         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16242         break
16243       fi
16244     fi
16245   done
16246   IFS="$ac_save_ifs"
16247   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16248   ;;
16249 esac
16250 fi
16251 XGETTEXT="$ac_cv_path_XGETTEXT"
16252 if test "$XGETTEXT" != ":"; then
16253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16254 $as_echo "$XGETTEXT" >&6; }
16255 else
16256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16258 fi
16259
16260           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h.  */
16262
16263 int
16264 main ()
16265 {
16266 extern int _nl_msg_cat_cntr;
16267                          return _nl_msg_cat_cntr
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 if ac_fn_c_try_link "$LINENO"; then :
16273   CATOBJEXT=.gmo
16274              DATADIRNAME=share
16275 else
16276   case $host in
16277             *-*-solaris*)
16278                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16279 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
16280   CATOBJEXT=.gmo
16281                DATADIRNAME=share
16282 else
16283   CATOBJEXT=.mo
16284                DATADIRNAME=lib
16285 fi
16286
16287             ;;
16288             *-*-openbsd*)
16289             CATOBJEXT=.mo
16290             DATADIRNAME=share
16291             ;;
16292             *)
16293             CATOBJEXT=.mo
16294             DATADIRNAME=lib
16295             ;;
16296             esac
16297 fi
16298 rm -f core conftest.err conftest.$ac_objext \
16299     conftest$ac_exeext conftest.$ac_ext
16300           LIBS="$glib_save_LIBS"
16301           INSTOBJEXT=.mo
16302         else
16303           gt_cv_have_gettext=no
16304         fi
16305       fi
16306
16307 fi
16308
16309
16310
16311     if test "$gt_cv_have_gettext" = "yes" ; then
16312
16313 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16314
16315     fi
16316
16317         if test "$XGETTEXT" != ":"; then
16318                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16319         : ;
16320       else
16321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16322 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16323         XGETTEXT=":"
16324       fi
16325     fi
16326
16327     # We need to process the po/ directory.
16328     POSUB=po
16329
16330     ac_config_commands="$ac_config_commands default-1"
16331
16332
16333                 for lang in $ALL_LINGUAS; do
16334       GMOFILES="$GMOFILES $lang.gmo"
16335       POFILES="$POFILES $lang.po"
16336     done
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350    if test "$gt_cv_have_gettext" = "yes"; then
16351      if test "x$ALL_LINGUAS" = "x"; then
16352        LINGUAS=
16353      else
16354        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16355 $as_echo_n "checking for catalogs to be installed... " >&6; }
16356        NEW_LINGUAS=
16357        for presentlang in $ALL_LINGUAS; do
16358          useit=no
16359          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16360            desiredlanguages="$LINGUAS"
16361          else
16362            desiredlanguages="$ALL_LINGUAS"
16363          fi
16364          for desiredlang in $desiredlanguages; do
16365            # Use the presentlang catalog if desiredlang is
16366            #   a. equal to presentlang, or
16367            #   b. a variant of presentlang (because in this case,
16368            #      presentlang can be used as a fallback for messages
16369            #      which are not translated in the desiredlang catalog).
16370            case "$desiredlang" in
16371              "$presentlang"*) useit=yes;;
16372            esac
16373          done
16374          if test $useit = yes; then
16375            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16376          fi
16377        done
16378        LINGUAS=$NEW_LINGUAS
16379        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16380 $as_echo "$LINGUAS" >&6; }
16381      fi
16382
16383           if test -n "$LINGUAS"; then
16384        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16385      fi
16386    fi
16387
16388             MKINSTALLDIRS=
16389    if test -n "$ac_aux_dir"; then
16390      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16391    fi
16392    if test -z "$MKINSTALLDIRS"; then
16393      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16394    fi
16395
16396
16397          test -d po || mkdir po
16398    if test "x$srcdir" != "x."; then
16399      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16400        posrcprefix="$srcdir/"
16401      else
16402        posrcprefix="../$srcdir/"
16403      fi
16404    else
16405      posrcprefix="../"
16406    fi
16407    rm -f po/POTFILES
16408    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16409         < $srcdir/po/POTFILES.in > po/POTFILES
16410
16411
16412
16413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16414 $as_echo_n "checking whether NLS is requested... " >&6; }
16415     # Check whether --enable-nls was given.
16416 if test "${enable_nls+set}" = set; then :
16417   enableval=$enable_nls; USE_NLS=$enableval
16418 else
16419   USE_NLS=yes
16420 fi
16421
16422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16423 $as_echo "$USE_NLS" >&6; }
16424
16425
16426
16427
16428 case "$am__api_version" in
16429     1.01234)
16430         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
16431     ;;
16432     *)
16433     ;;
16434 esac
16435
16436 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16437 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
16438 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16439 if test -n "0.41.0"; then
16440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&5
16441 $as_echo_n "checking for intltool >= 0.41.0... " >&6; }
16442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
16443 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
16444     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
16445         as_fn_error $? "Your intltool is too old.  You need intltool 0.41.0 or later." "$LINENO" 5
16446 fi
16447
16448 # Extract the first word of "intltool-update", so it can be a program name with args.
16449 set dummy intltool-update; ac_word=$2
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16451 $as_echo_n "checking for $ac_word... " >&6; }
16452 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
16453   $as_echo_n "(cached) " >&6
16454 else
16455   case $INTLTOOL_UPDATE in
16456   [\\/]* | ?:[\\/]*)
16457   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
16458   ;;
16459   *)
16460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16461 for as_dir in $PATH
16462 do
16463   IFS=$as_save_IFS
16464   test -z "$as_dir" && as_dir=.
16465     for ac_exec_ext in '' $ac_executable_extensions; do
16466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16467     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
16468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16469     break 2
16470   fi
16471 done
16472   done
16473 IFS=$as_save_IFS
16474
16475   ;;
16476 esac
16477 fi
16478 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
16479 if test -n "$INTLTOOL_UPDATE"; then
16480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
16481 $as_echo "$INTLTOOL_UPDATE" >&6; }
16482 else
16483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16485 fi
16486
16487
16488 # Extract the first word of "intltool-merge", so it can be a program name with args.
16489 set dummy intltool-merge; ac_word=$2
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16491 $as_echo_n "checking for $ac_word... " >&6; }
16492 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
16493   $as_echo_n "(cached) " >&6
16494 else
16495   case $INTLTOOL_MERGE in
16496   [\\/]* | ?:[\\/]*)
16497   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
16498   ;;
16499   *)
16500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16501 for as_dir in $PATH
16502 do
16503   IFS=$as_save_IFS
16504   test -z "$as_dir" && as_dir=.
16505     for ac_exec_ext in '' $ac_executable_extensions; do
16506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16507     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
16508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16509     break 2
16510   fi
16511 done
16512   done
16513 IFS=$as_save_IFS
16514
16515   ;;
16516 esac
16517 fi
16518 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
16519 if test -n "$INTLTOOL_MERGE"; then
16520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
16521 $as_echo "$INTLTOOL_MERGE" >&6; }
16522 else
16523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16525 fi
16526
16527
16528 # Extract the first word of "intltool-extract", so it can be a program name with args.
16529 set dummy intltool-extract; ac_word=$2
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16531 $as_echo_n "checking for $ac_word... " >&6; }
16532 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
16533   $as_echo_n "(cached) " >&6
16534 else
16535   case $INTLTOOL_EXTRACT in
16536   [\\/]* | ?:[\\/]*)
16537   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
16538   ;;
16539   *)
16540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16541 for as_dir in $PATH
16542 do
16543   IFS=$as_save_IFS
16544   test -z "$as_dir" && as_dir=.
16545     for ac_exec_ext in '' $ac_executable_extensions; do
16546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16547     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
16548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16549     break 2
16550   fi
16551 done
16552   done
16553 IFS=$as_save_IFS
16554
16555   ;;
16556 esac
16557 fi
16558 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
16559 if test -n "$INTLTOOL_EXTRACT"; then
16560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
16561 $as_echo "$INTLTOOL_EXTRACT" >&6; }
16562 else
16563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16565 fi
16566
16567
16568 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
16569     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
16570 fi
16571
16572 if test -z "$AM_DEFAULT_VERBOSITY"; then
16573   AM_DEFAULT_VERBOSITY=1
16574 fi
16575
16576
16577 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
16578 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
16579 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
16580
16581
16582
16583
16584 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
16585 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
16586 intltool__v_merge_options_0='-q'
16587
16588
16589
16590
16591   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16592 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16593      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16594      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16595       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
16596      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16597    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16598     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16599 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16600        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16601       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16602 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
16603       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
16604 else
16605       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
16606 fi
16607       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16608       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16609     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16610   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16611     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16612     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16613    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711 # Check the gettext tools to make sure they are GNU
16712 # Extract the first word of "xgettext", so it can be a program name with args.
16713 set dummy xgettext; ac_word=$2
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16715 $as_echo_n "checking for $ac_word... " >&6; }
16716 if ${ac_cv_path_XGETTEXT+:} false; then :
16717   $as_echo_n "(cached) " >&6
16718 else
16719   case $XGETTEXT in
16720   [\\/]* | ?:[\\/]*)
16721   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16722   ;;
16723   *)
16724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16725 for as_dir in $PATH
16726 do
16727   IFS=$as_save_IFS
16728   test -z "$as_dir" && as_dir=.
16729     for ac_exec_ext in '' $ac_executable_extensions; do
16730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16731     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
16732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16733     break 2
16734   fi
16735 done
16736   done
16737 IFS=$as_save_IFS
16738
16739   ;;
16740 esac
16741 fi
16742 XGETTEXT=$ac_cv_path_XGETTEXT
16743 if test -n "$XGETTEXT"; then
16744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16745 $as_echo "$XGETTEXT" >&6; }
16746 else
16747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748 $as_echo "no" >&6; }
16749 fi
16750
16751
16752 # Extract the first word of "msgmerge", so it can be a program name with args.
16753 set dummy msgmerge; ac_word=$2
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16755 $as_echo_n "checking for $ac_word... " >&6; }
16756 if ${ac_cv_path_MSGMERGE+:} false; then :
16757   $as_echo_n "(cached) " >&6
16758 else
16759   case $MSGMERGE in
16760   [\\/]* | ?:[\\/]*)
16761   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16762   ;;
16763   *)
16764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16765 for as_dir in $PATH
16766 do
16767   IFS=$as_save_IFS
16768   test -z "$as_dir" && as_dir=.
16769     for ac_exec_ext in '' $ac_executable_extensions; do
16770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16771     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
16772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16773     break 2
16774   fi
16775 done
16776   done
16777 IFS=$as_save_IFS
16778
16779   ;;
16780 esac
16781 fi
16782 MSGMERGE=$ac_cv_path_MSGMERGE
16783 if test -n "$MSGMERGE"; then
16784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16785 $as_echo "$MSGMERGE" >&6; }
16786 else
16787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16789 fi
16790
16791
16792 # Extract the first word of "msgfmt", so it can be a program name with args.
16793 set dummy msgfmt; ac_word=$2
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16795 $as_echo_n "checking for $ac_word... " >&6; }
16796 if ${ac_cv_path_MSGFMT+:} false; then :
16797   $as_echo_n "(cached) " >&6
16798 else
16799   case $MSGFMT in
16800   [\\/]* | ?:[\\/]*)
16801   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16802   ;;
16803   *)
16804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16805 for as_dir in $PATH
16806 do
16807   IFS=$as_save_IFS
16808   test -z "$as_dir" && as_dir=.
16809     for ac_exec_ext in '' $ac_executable_extensions; do
16810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16811     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16813     break 2
16814   fi
16815 done
16816   done
16817 IFS=$as_save_IFS
16818
16819   ;;
16820 esac
16821 fi
16822 MSGFMT=$ac_cv_path_MSGFMT
16823 if test -n "$MSGFMT"; then
16824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16825 $as_echo "$MSGFMT" >&6; }
16826 else
16827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16828 $as_echo "no" >&6; }
16829 fi
16830
16831
16832 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16833 set dummy gmsgfmt; ac_word=$2
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16835 $as_echo_n "checking for $ac_word... " >&6; }
16836 if ${ac_cv_path_GMSGFMT+:} false; then :
16837   $as_echo_n "(cached) " >&6
16838 else
16839   case $GMSGFMT in
16840   [\\/]* | ?:[\\/]*)
16841   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16842   ;;
16843   *)
16844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845 for as_dir in $PATH
16846 do
16847   IFS=$as_save_IFS
16848   test -z "$as_dir" && as_dir=.
16849     for ac_exec_ext in '' $ac_executable_extensions; do
16850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16851     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16853     break 2
16854   fi
16855 done
16856   done
16857 IFS=$as_save_IFS
16858
16859   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16860   ;;
16861 esac
16862 fi
16863 GMSGFMT=$ac_cv_path_GMSGFMT
16864 if test -n "$GMSGFMT"; then
16865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16866 $as_echo "$GMSGFMT" >&6; }
16867 else
16868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16869 $as_echo "no" >&6; }
16870 fi
16871
16872
16873 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
16874     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16875 fi
16876 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
16877 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
16878 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
16879 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
16880     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16881 fi
16882
16883 # Extract the first word of "perl", so it can be a program name with args.
16884 set dummy perl; ac_word=$2
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16886 $as_echo_n "checking for $ac_word... " >&6; }
16887 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
16888   $as_echo_n "(cached) " >&6
16889 else
16890   case $INTLTOOL_PERL in
16891   [\\/]* | ?:[\\/]*)
16892   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
16893   ;;
16894   *)
16895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16896 for as_dir in $PATH
16897 do
16898   IFS=$as_save_IFS
16899   test -z "$as_dir" && as_dir=.
16900     for ac_exec_ext in '' $ac_executable_extensions; do
16901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16902     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
16903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16904     break 2
16905   fi
16906 done
16907   done
16908 IFS=$as_save_IFS
16909
16910   ;;
16911 esac
16912 fi
16913 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
16914 if test -n "$INTLTOOL_PERL"; then
16915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
16916 $as_echo "$INTLTOOL_PERL" >&6; }
16917 else
16918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16919 $as_echo "no" >&6; }
16920 fi
16921
16922
16923 if test -z "$INTLTOOL_PERL"; then
16924    as_fn_error $? "perl not found" "$LINENO" 5
16925 fi
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
16927 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
16928 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
16929 if test $? -ne 0; then
16930    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
16931 else
16932    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
16933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
16934 $as_echo "$IT_PERL_VERSION" >&6; }
16935 fi
16936 if test "x" != "xno-xml"; then
16937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
16938 $as_echo_n "checking for XML::Parser... " >&6; }
16939    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
16940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16941 $as_echo "ok" >&6; }
16942    else
16943        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
16944    fi
16945 fi
16946
16947 # Substitute ALL_LINGUAS so we can use it in po/Makefile
16948
16949
16950
16951
16952
16953
16954 LOCALEDIR='${prefix}/${datadir}/locale'
16955
16956
16957
16958 CRYPTO_CFLAGS=${NSS_CFLAGS}
16959 CRYPTO_LIBS=${NSS_LIBS}
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970  if test "${enable_openssl}" = "yes"; then
16971   BUILD_OPENSSL_TRUE=
16972   BUILD_OPENSSL_FALSE='#'
16973 else
16974   BUILD_OPENSSL_TRUE='#'
16975   BUILD_OPENSSL_FALSE=
16976 fi
16977
16978  if test "${enable_pkcs11_helper}" = "yes"; then
16979   BUILD_PKCS11_HELPER_TRUE=
16980   BUILD_PKCS11_HELPER_FALSE='#'
16981 else
16982   BUILD_PKCS11_HELPER_TRUE='#'
16983   BUILD_PKCS11_HELPER_FALSE=
16984 fi
16985
16986  if test "${enable_tspi}" = "yes"; then
16987   BUILD_TSPI_TRUE=
16988   BUILD_TSPI_FALSE='#'
16989 else
16990   BUILD_TSPI_TRUE='#'
16991   BUILD_TSPI_FALSE=
16992 fi
16993
16994  if test "${enable_gpg}" = "yes"; then
16995   BUILD_GPG_TRUE=
16996   BUILD_GPG_FALSE='#'
16997 else
16998   BUILD_GPG_TRUE='#'
16999   BUILD_GPG_FALSE=
17000 fi
17001
17002  if test "${enable_pam}" = "yes"; then
17003   BUILD_PAM_TRUE=
17004   BUILD_PAM_FALSE='#'
17005 else
17006   BUILD_PAM_TRUE='#'
17007   BUILD_PAM_FALSE=
17008 fi
17009
17010  if test "${enable_pywrap}" = "yes"; then
17011   BUILD_PYWRAP_TRUE=
17012   BUILD_PYWRAP_FALSE='#'
17013 else
17014   BUILD_PYWRAP_TRUE='#'
17015   BUILD_PYWRAP_FALSE=
17016 fi
17017
17018  if test "${enable_nss}" = "yes"; then
17019   BUILD_NSS_TRUE=
17020   BUILD_NSS_FALSE='#'
17021 else
17022   BUILD_NSS_TRUE='#'
17023   BUILD_NSS_FALSE=
17024 fi
17025
17026  if test "${enable_gui}" = "yes"; then
17027   BUILD_GUI_TRUE=
17028   BUILD_GUI_FALSE='#'
17029 else
17030   BUILD_GUI_TRUE='#'
17031   BUILD_GUI_FALSE=
17032 fi
17033
17034  if test "${enable_docs}" = "yes"; then
17035   BUILD_DOCS_TRUE=
17036   BUILD_DOCS_FALSE='#'
17037 else
17038   BUILD_DOCS_TRUE='#'
17039   BUILD_DOCS_FALSE=
17040 fi
17041
17042  if test "${enable_docs_gen}" = "yes"; then
17043   BUILD_DOCS_GEN_TRUE=
17044   BUILD_DOCS_GEN_FALSE='#'
17045 else
17046   BUILD_DOCS_GEN_TRUE='#'
17047   BUILD_DOCS_GEN_FALSE=
17048 fi
17049
17050  if test "${enable_tests}" = "yes"; then
17051   ENABLE_TESTS_TRUE=
17052   ENABLE_TESTS_FALSE='#'
17053 else
17054   ENABLE_TESTS_TRUE='#'
17055   ENABLE_TESTS_FALSE=
17056 fi
17057
17058
17059 # workaround for <autoconf-2.60
17060 if test -z "${docdir}"; then
17061         docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
17062
17063 fi
17064 if test -z "${htmldir}"; then
17065         htmldir="\$(docdir)"
17066
17067 fi
17068 # end workaround
17069 # workaround for <automake-1.10
17070 if test -z "${MKDIR_P}"; then
17071         MKDIR_P="\$(mkdir_p)"
17072
17073 fi
17074 # end workaround
17075
17076 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libecryptfs/Makefile src/utils/Makefile src/key_mod/Makefile src/daemon/Makefile src/desktop/Makefile src/desktop/ecryptfs-mount-private.desktop src/desktop/ecryptfs-setup-private.desktop src/include/Makefile doc/manpage/Makefile src/pam_ecryptfs/Makefile src/libecryptfs/libecryptfs.pc src/libecryptfs-swig/Makefile tests/Makefile tests/lib/Makefile tests/kernel/Makefile tests/userspace/Makefile po/Makefile.in"
17077
17078 cat >confcache <<\_ACEOF
17079 # This file is a shell script that caches the results of configure
17080 # tests run on this system so they can be shared between configure
17081 # scripts and configure runs, see configure's option --config-cache.
17082 # It is not useful on other systems.  If it contains results you don't
17083 # want to keep, you may remove or edit it.
17084 #
17085 # config.status only pays attention to the cache file if you give it
17086 # the --recheck option to rerun configure.
17087 #
17088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17090 # following values.
17091
17092 _ACEOF
17093
17094 # The following way of writing the cache mishandles newlines in values,
17095 # but we know of no workaround that is simple, portable, and efficient.
17096 # So, we kill variables containing newlines.
17097 # Ultrix sh set writes to stderr and can't be redirected directly,
17098 # and sets the high bit in the cache file unless we assign to the vars.
17099 (
17100   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17101     eval ac_val=\$$ac_var
17102     case $ac_val in #(
17103     *${as_nl}*)
17104       case $ac_var in #(
17105       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17107       esac
17108       case $ac_var in #(
17109       _ | IFS | as_nl) ;; #(
17110       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17111       *) { eval $ac_var=; unset $ac_var;} ;;
17112       esac ;;
17113     esac
17114   done
17115
17116   (set) 2>&1 |
17117     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17118     *${as_nl}ac_space=\ *)
17119       # `set' does not quote correctly, so add quotes: double-quote
17120       # substitution turns \\\\ into \\, and sed turns \\ into \.
17121       sed -n \
17122         "s/'/'\\\\''/g;
17123           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17124       ;; #(
17125     *)
17126       # `set' quotes correctly as required by POSIX, so do not add quotes.
17127       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17128       ;;
17129     esac |
17130     sort
17131 ) |
17132   sed '
17133      /^ac_cv_env_/b end
17134      t clear
17135      :clear
17136      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17137      t end
17138      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17139      :end' >>confcache
17140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17141   if test -w "$cache_file"; then
17142     if test "x$cache_file" != "x/dev/null"; then
17143       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17144 $as_echo "$as_me: updating cache $cache_file" >&6;}
17145       if test ! -f "$cache_file" || test -h "$cache_file"; then
17146         cat confcache >"$cache_file"
17147       else
17148         case $cache_file in #(
17149         */* | ?:*)
17150           mv -f confcache "$cache_file"$$ &&
17151           mv -f "$cache_file"$$ "$cache_file" ;; #(
17152         *)
17153           mv -f confcache "$cache_file" ;;
17154         esac
17155       fi
17156     fi
17157   else
17158     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17159 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17160   fi
17161 fi
17162 rm -f confcache
17163
17164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17165 # Let make expand exec_prefix.
17166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17167
17168 DEFS=-DHAVE_CONFIG_H
17169
17170 ac_libobjs=
17171 ac_ltlibobjs=
17172 U=
17173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17174   # 1. Remove the extension, and $U if already installed.
17175   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17176   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17177   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17178   #    will be set to the directory where LIBOBJS objects are built.
17179   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17180   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17181 done
17182 LIBOBJS=$ac_libobjs
17183
17184 LTLIBOBJS=$ac_ltlibobjs
17185
17186
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17188 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17189    if test -n "$am_sleep_pid"; then
17190      # Hide warnings about reused PIDs.
17191      wait $am_sleep_pid 2>/dev/null
17192    fi
17193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17194 $as_echo "done" >&6; }
17195  if test -n "$EXEEXT"; then
17196   am__EXEEXT_TRUE=
17197   am__EXEEXT_FALSE='#'
17198 else
17199   am__EXEEXT_TRUE='#'
17200   am__EXEEXT_FALSE=
17201 fi
17202
17203 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17204   as_fn_error $? "conditional \"AMDEP\" was never defined.
17205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17206 fi
17207 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17208   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17210 fi
17211 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17212   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17214 fi
17215
17216   ac_config_commands="$ac_config_commands po/stamp-it"
17217
17218
17219 if test -z "${BUILD_OPENSSL_TRUE}" && test -z "${BUILD_OPENSSL_FALSE}"; then
17220   as_fn_error $? "conditional \"BUILD_OPENSSL\" was never defined.
17221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17222 fi
17223 if test -z "${BUILD_PKCS11_HELPER_TRUE}" && test -z "${BUILD_PKCS11_HELPER_FALSE}"; then
17224   as_fn_error $? "conditional \"BUILD_PKCS11_HELPER\" was never defined.
17225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17226 fi
17227 if test -z "${BUILD_TSPI_TRUE}" && test -z "${BUILD_TSPI_FALSE}"; then
17228   as_fn_error $? "conditional \"BUILD_TSPI\" was never defined.
17229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17230 fi
17231 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17232   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17234 fi
17235 if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
17236   as_fn_error $? "conditional \"BUILD_PAM\" was never defined.
17237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17238 fi
17239 if test -z "${BUILD_PYWRAP_TRUE}" && test -z "${BUILD_PYWRAP_FALSE}"; then
17240   as_fn_error $? "conditional \"BUILD_PYWRAP\" was never defined.
17241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17242 fi
17243 if test -z "${BUILD_NSS_TRUE}" && test -z "${BUILD_NSS_FALSE}"; then
17244   as_fn_error $? "conditional \"BUILD_NSS\" was never defined.
17245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17246 fi
17247 if test -z "${BUILD_GUI_TRUE}" && test -z "${BUILD_GUI_FALSE}"; then
17248   as_fn_error $? "conditional \"BUILD_GUI\" was never defined.
17249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17250 fi
17251 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17252   as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17254 fi
17255 if test -z "${BUILD_DOCS_GEN_TRUE}" && test -z "${BUILD_DOCS_GEN_FALSE}"; then
17256   as_fn_error $? "conditional \"BUILD_DOCS_GEN\" was never defined.
17257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17258 fi
17259 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
17260   as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
17261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17262 fi
17263
17264 : "${CONFIG_STATUS=./config.status}"
17265 ac_write_fail=0
17266 ac_clean_files_save=$ac_clean_files
17267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17269 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17270 as_write_fail=0
17271 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17272 #! $SHELL
17273 # Generated by $as_me.
17274 # Run this file to recreate the current configuration.
17275 # Compiler output produced by configure, useful for debugging
17276 # configure, is in config.log if it exists.
17277
17278 debug=false
17279 ac_cs_recheck=false
17280 ac_cs_silent=false
17281
17282 SHELL=\${CONFIG_SHELL-$SHELL}
17283 export SHELL
17284 _ASEOF
17285 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17286 ## -------------------- ##
17287 ## M4sh Initialization. ##
17288 ## -------------------- ##
17289
17290 # Be more Bourne compatible
17291 DUALCASE=1; export DUALCASE # for MKS sh
17292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17293   emulate sh
17294   NULLCMD=:
17295   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17296   # is contrary to our usage.  Disable this feature.
17297   alias -g '${1+"$@"}'='"$@"'
17298   setopt NO_GLOB_SUBST
17299 else
17300   case `(set -o) 2>/dev/null` in #(
17301   *posix*) :
17302     set -o posix ;; #(
17303   *) :
17304      ;;
17305 esac
17306 fi
17307
17308
17309 as_nl='
17310 '
17311 export as_nl
17312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17313 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17316 # Prefer a ksh shell builtin over an external printf program on Solaris,
17317 # but without wasting forks for bash or zsh.
17318 if test -z "$BASH_VERSION$ZSH_VERSION" \
17319     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17320   as_echo='print -r --'
17321   as_echo_n='print -rn --'
17322 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17323   as_echo='printf %s\n'
17324   as_echo_n='printf %s'
17325 else
17326   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17327     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17328     as_echo_n='/usr/ucb/echo -n'
17329   else
17330     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17331     as_echo_n_body='eval
17332       arg=$1;
17333       case $arg in #(
17334       *"$as_nl"*)
17335         expr "X$arg" : "X\\(.*\\)$as_nl";
17336         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17337       esac;
17338       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17339     '
17340     export as_echo_n_body
17341     as_echo_n='sh -c $as_echo_n_body as_echo'
17342   fi
17343   export as_echo_body
17344   as_echo='sh -c $as_echo_body as_echo'
17345 fi
17346
17347 # The user is always right.
17348 if test "${PATH_SEPARATOR+set}" != set; then
17349   PATH_SEPARATOR=:
17350   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17351     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17352       PATH_SEPARATOR=';'
17353   }
17354 fi
17355
17356
17357 # IFS
17358 # We need space, tab and new line, in precisely that order.  Quoting is
17359 # there to prevent editors from complaining about space-tab.
17360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17361 # splitting by setting IFS to empty value.)
17362 IFS=" ""        $as_nl"
17363
17364 # Find who we are.  Look in the path if we contain no directory separator.
17365 as_myself=
17366 case $0 in #((
17367   *[\\/]* ) as_myself=$0 ;;
17368   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17370 do
17371   IFS=$as_save_IFS
17372   test -z "$as_dir" && as_dir=.
17373     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17374   done
17375 IFS=$as_save_IFS
17376
17377      ;;
17378 esac
17379 # We did not find ourselves, most probably we were run as `sh COMMAND'
17380 # in which case we are not to be found in the path.
17381 if test "x$as_myself" = x; then
17382   as_myself=$0
17383 fi
17384 if test ! -f "$as_myself"; then
17385   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17386   exit 1
17387 fi
17388
17389 # Unset variables that we do not need and which cause bugs (e.g. in
17390 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17391 # suppresses any "Segmentation fault" message there.  '((' could
17392 # trigger a bug in pdksh 5.2.14.
17393 for as_var in BASH_ENV ENV MAIL MAILPATH
17394 do eval test x\${$as_var+set} = xset \
17395   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17396 done
17397 PS1='$ '
17398 PS2='> '
17399 PS4='+ '
17400
17401 # NLS nuisances.
17402 LC_ALL=C
17403 export LC_ALL
17404 LANGUAGE=C
17405 export LANGUAGE
17406
17407 # CDPATH.
17408 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17409
17410
17411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17412 # ----------------------------------------
17413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17415 # script with STATUS, using 1 if that was 0.
17416 as_fn_error ()
17417 {
17418   as_status=$1; test $as_status -eq 0 && as_status=1
17419   if test "$4"; then
17420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17422   fi
17423   $as_echo "$as_me: error: $2" >&2
17424   as_fn_exit $as_status
17425 } # as_fn_error
17426
17427
17428 # as_fn_set_status STATUS
17429 # -----------------------
17430 # Set $? to STATUS, without forking.
17431 as_fn_set_status ()
17432 {
17433   return $1
17434 } # as_fn_set_status
17435
17436 # as_fn_exit STATUS
17437 # -----------------
17438 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17439 as_fn_exit ()
17440 {
17441   set +e
17442   as_fn_set_status $1
17443   exit $1
17444 } # as_fn_exit
17445
17446 # as_fn_unset VAR
17447 # ---------------
17448 # Portably unset VAR.
17449 as_fn_unset ()
17450 {
17451   { eval $1=; unset $1;}
17452 }
17453 as_unset=as_fn_unset
17454 # as_fn_append VAR VALUE
17455 # ----------------------
17456 # Append the text in VALUE to the end of the definition contained in VAR. Take
17457 # advantage of any shell optimizations that allow amortized linear growth over
17458 # repeated appends, instead of the typical quadratic growth present in naive
17459 # implementations.
17460 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17461   eval 'as_fn_append ()
17462   {
17463     eval $1+=\$2
17464   }'
17465 else
17466   as_fn_append ()
17467   {
17468     eval $1=\$$1\$2
17469   }
17470 fi # as_fn_append
17471
17472 # as_fn_arith ARG...
17473 # ------------------
17474 # Perform arithmetic evaluation on the ARGs, and store the result in the
17475 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17476 # must be portable across $(()) and expr.
17477 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17478   eval 'as_fn_arith ()
17479   {
17480     as_val=$(( $* ))
17481   }'
17482 else
17483   as_fn_arith ()
17484   {
17485     as_val=`expr "$@" || test $? -eq 1`
17486   }
17487 fi # as_fn_arith
17488
17489
17490 if expr a : '\(a\)' >/dev/null 2>&1 &&
17491    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17492   as_expr=expr
17493 else
17494   as_expr=false
17495 fi
17496
17497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17498   as_basename=basename
17499 else
17500   as_basename=false
17501 fi
17502
17503 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17504   as_dirname=dirname
17505 else
17506   as_dirname=false
17507 fi
17508
17509 as_me=`$as_basename -- "$0" ||
17510 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17511          X"$0" : 'X\(//\)$' \| \
17512          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17513 $as_echo X/"$0" |
17514     sed '/^.*\/\([^/][^/]*\)\/*$/{
17515             s//\1/
17516             q
17517           }
17518           /^X\/\(\/\/\)$/{
17519             s//\1/
17520             q
17521           }
17522           /^X\/\(\/\).*/{
17523             s//\1/
17524             q
17525           }
17526           s/.*/./; q'`
17527
17528 # Avoid depending upon Character Ranges.
17529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17532 as_cr_digits='0123456789'
17533 as_cr_alnum=$as_cr_Letters$as_cr_digits
17534
17535 ECHO_C= ECHO_N= ECHO_T=
17536 case `echo -n x` in #(((((
17537 -n*)
17538   case `echo 'xy\c'` in
17539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17540   xy)  ECHO_C='\c';;
17541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17542        ECHO_T=' ';;
17543   esac;;
17544 *)
17545   ECHO_N='-n';;
17546 esac
17547
17548 rm -f conf$$ conf$$.exe conf$$.file
17549 if test -d conf$$.dir; then
17550   rm -f conf$$.dir/conf$$.file
17551 else
17552   rm -f conf$$.dir
17553   mkdir conf$$.dir 2>/dev/null
17554 fi
17555 if (echo >conf$$.file) 2>/dev/null; then
17556   if ln -s conf$$.file conf$$ 2>/dev/null; then
17557     as_ln_s='ln -s'
17558     # ... but there are two gotchas:
17559     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17560     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17561     # In both cases, we have to default to `cp -pR'.
17562     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17563       as_ln_s='cp -pR'
17564   elif ln conf$$.file conf$$ 2>/dev/null; then
17565     as_ln_s=ln
17566   else
17567     as_ln_s='cp -pR'
17568   fi
17569 else
17570   as_ln_s='cp -pR'
17571 fi
17572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17573 rmdir conf$$.dir 2>/dev/null
17574
17575
17576 # as_fn_mkdir_p
17577 # -------------
17578 # Create "$as_dir" as a directory, including parents if necessary.
17579 as_fn_mkdir_p ()
17580 {
17581
17582   case $as_dir in #(
17583   -*) as_dir=./$as_dir;;
17584   esac
17585   test -d "$as_dir" || eval $as_mkdir_p || {
17586     as_dirs=
17587     while :; do
17588       case $as_dir in #(
17589       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17590       *) as_qdir=$as_dir;;
17591       esac
17592       as_dirs="'$as_qdir' $as_dirs"
17593       as_dir=`$as_dirname -- "$as_dir" ||
17594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17595          X"$as_dir" : 'X\(//\)[^/]' \| \
17596          X"$as_dir" : 'X\(//\)$' \| \
17597          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17598 $as_echo X"$as_dir" |
17599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17600             s//\1/
17601             q
17602           }
17603           /^X\(\/\/\)[^/].*/{
17604             s//\1/
17605             q
17606           }
17607           /^X\(\/\/\)$/{
17608             s//\1/
17609             q
17610           }
17611           /^X\(\/\).*/{
17612             s//\1/
17613             q
17614           }
17615           s/.*/./; q'`
17616       test -d "$as_dir" && break
17617     done
17618     test -z "$as_dirs" || eval "mkdir $as_dirs"
17619   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17620
17621
17622 } # as_fn_mkdir_p
17623 if mkdir -p . 2>/dev/null; then
17624   as_mkdir_p='mkdir -p "$as_dir"'
17625 else
17626   test -d ./-p && rmdir ./-p
17627   as_mkdir_p=false
17628 fi
17629
17630
17631 # as_fn_executable_p FILE
17632 # -----------------------
17633 # Test if FILE is an executable regular file.
17634 as_fn_executable_p ()
17635 {
17636   test -f "$1" && test -x "$1"
17637 } # as_fn_executable_p
17638 as_test_x='test -x'
17639 as_executable_p=as_fn_executable_p
17640
17641 # Sed expression to map a string onto a valid CPP name.
17642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17643
17644 # Sed expression to map a string onto a valid variable name.
17645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17646
17647
17648 exec 6>&1
17649 ## ----------------------------------- ##
17650 ## Main body of $CONFIG_STATUS script. ##
17651 ## ----------------------------------- ##
17652 _ASEOF
17653 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17654
17655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17656 # Save the log message, to keep $0 and so on meaningful, and to
17657 # report actual input values of CONFIG_FILES etc. instead of their
17658 # values after options handling.
17659 ac_log="
17660 This file was extended by ecryptfs-utils $as_me 111, which was
17661 generated by GNU Autoconf 2.69.  Invocation command line was
17662
17663   CONFIG_FILES    = $CONFIG_FILES
17664   CONFIG_HEADERS  = $CONFIG_HEADERS
17665   CONFIG_LINKS    = $CONFIG_LINKS
17666   CONFIG_COMMANDS = $CONFIG_COMMANDS
17667   $ $0 $@
17668
17669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17670 "
17671
17672 _ACEOF
17673
17674 case $ac_config_files in *"
17675 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17676 esac
17677
17678 case $ac_config_headers in *"
17679 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17680 esac
17681
17682
17683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17684 # Files that config.status was made for.
17685 config_files="$ac_config_files"
17686 config_headers="$ac_config_headers"
17687 config_commands="$ac_config_commands"
17688
17689 _ACEOF
17690
17691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17692 ac_cs_usage="\
17693 \`$as_me' instantiates files and other configuration actions
17694 from templates according to the current configuration.  Unless the files
17695 and actions are specified as TAGs, all are instantiated by default.
17696
17697 Usage: $0 [OPTION]... [TAG]...
17698
17699   -h, --help       print this help, then exit
17700   -V, --version    print version number and configuration settings, then exit
17701       --config     print configuration, then exit
17702   -q, --quiet, --silent
17703                    do not print progress messages
17704   -d, --debug      don't remove temporary files
17705       --recheck    update $as_me by reconfiguring in the same conditions
17706       --file=FILE[:TEMPLATE]
17707                    instantiate the configuration file FILE
17708       --header=FILE[:TEMPLATE]
17709                    instantiate the configuration header FILE
17710
17711 Configuration files:
17712 $config_files
17713
17714 Configuration headers:
17715 $config_headers
17716
17717 Configuration commands:
17718 $config_commands
17719
17720 Report bugs to the package provider."
17721
17722 _ACEOF
17723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17724 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17725 ac_cs_version="\\
17726 ecryptfs-utils config.status 111
17727 configured by $0, generated by GNU Autoconf 2.69,
17728   with options \\"\$ac_cs_config\\"
17729
17730 Copyright (C) 2012 Free Software Foundation, Inc.
17731 This config.status script is free software; the Free Software Foundation
17732 gives unlimited permission to copy, distribute and modify it."
17733
17734 ac_pwd='$ac_pwd'
17735 srcdir='$srcdir'
17736 INSTALL='$INSTALL'
17737 MKDIR_P='$MKDIR_P'
17738 AWK='$AWK'
17739 test -n "\$AWK" || AWK=awk
17740 _ACEOF
17741
17742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17743 # The default lists apply if the user does not specify any file.
17744 ac_need_defaults=:
17745 while test $# != 0
17746 do
17747   case $1 in
17748   --*=?*)
17749     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17750     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17751     ac_shift=:
17752     ;;
17753   --*=)
17754     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17755     ac_optarg=
17756     ac_shift=:
17757     ;;
17758   *)
17759     ac_option=$1
17760     ac_optarg=$2
17761     ac_shift=shift
17762     ;;
17763   esac
17764
17765   case $ac_option in
17766   # Handling of the options.
17767   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17768     ac_cs_recheck=: ;;
17769   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17770     $as_echo "$ac_cs_version"; exit ;;
17771   --config | --confi | --conf | --con | --co | --c )
17772     $as_echo "$ac_cs_config"; exit ;;
17773   --debug | --debu | --deb | --de | --d | -d )
17774     debug=: ;;
17775   --file | --fil | --fi | --f )
17776     $ac_shift
17777     case $ac_optarg in
17778     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17779     '') as_fn_error $? "missing file argument" ;;
17780     esac
17781     as_fn_append CONFIG_FILES " '$ac_optarg'"
17782     ac_need_defaults=false;;
17783   --header | --heade | --head | --hea )
17784     $ac_shift
17785     case $ac_optarg in
17786     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17787     esac
17788     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17789     ac_need_defaults=false;;
17790   --he | --h)
17791     # Conflict between --help and --header
17792     as_fn_error $? "ambiguous option: \`$1'
17793 Try \`$0 --help' for more information.";;
17794   --help | --hel | -h )
17795     $as_echo "$ac_cs_usage"; exit ;;
17796   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17797   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17798     ac_cs_silent=: ;;
17799
17800   # This is an error.
17801   -*) as_fn_error $? "unrecognized option: \`$1'
17802 Try \`$0 --help' for more information." ;;
17803
17804   *) as_fn_append ac_config_targets " $1"
17805      ac_need_defaults=false ;;
17806
17807   esac
17808   shift
17809 done
17810
17811 ac_configure_extra_args=
17812
17813 if $ac_cs_silent; then
17814   exec 6>/dev/null
17815   ac_configure_extra_args="$ac_configure_extra_args --silent"
17816 fi
17817
17818 _ACEOF
17819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17820 if \$ac_cs_recheck; then
17821   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17822   shift
17823   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17824   CONFIG_SHELL='$SHELL'
17825   export CONFIG_SHELL
17826   exec "\$@"
17827 fi
17828
17829 _ACEOF
17830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17831 exec 5>>config.log
17832 {
17833   echo
17834   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17835 ## Running $as_me. ##
17836 _ASBOX
17837   $as_echo "$ac_log"
17838 } >&5
17839
17840 _ACEOF
17841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17842 #
17843 # INIT-COMMANDS
17844 #
17845 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17846
17847
17848 # The HP-UX ksh and POSIX shell print the target directory to stdout
17849 # if CDPATH is set.
17850 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17851
17852 sed_quote_subst='$sed_quote_subst'
17853 double_quote_subst='$double_quote_subst'
17854 delay_variable_subst='$delay_variable_subst'
17855 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17856 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17857 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17858 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17859 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17860 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17861 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17862 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17863 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17864 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17865 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17866 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17867 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17868 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17869 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17870 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17871 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17872 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17873 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17874 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17875 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17876 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17877 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17878 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17879 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17880 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17881 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17882 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17883 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17884 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17885 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17886 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17887 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17888 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17889 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17890 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17891 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17892 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17893 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17894 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17895 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17896 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17897 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17898 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17899 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17900 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17901 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17902 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17903 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17904 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17905 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17906 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17907 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17908 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17909 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17910 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17911 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17912 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17913 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"`'
17914 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17915 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17916 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17917 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17918 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17919 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17920 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17921 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17922 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17923 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17924 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17925 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17926 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17927 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17928 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17929 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17930 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17931 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17932 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17933 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17934 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17935 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17936 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17937 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17938 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17939 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17940 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17941 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17942 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17943 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17944 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17945 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17946 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17947 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17948 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17949 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17950 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17951 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17952 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17953 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17954 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17955 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17956 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17957 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17958 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17959 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17960 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17961 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17962 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17963 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17964 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17965 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17966 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17967 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17968 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17969 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17970 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17971 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17972 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17973 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17974 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17975 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17976 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17977 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17978 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17979 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17980 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17981 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17982 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17983 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17984 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17985 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17986 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17987 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17988 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17989 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17990
17991 LTCC='$LTCC'
17992 LTCFLAGS='$LTCFLAGS'
17993 compiler='$compiler_DEFAULT'
17994
17995 # A function that is used when there is no print builtin or printf.
17996 func_fallback_echo ()
17997 {
17998   eval 'cat <<_LTECHO_EOF
17999 \$1
18000 _LTECHO_EOF'
18001 }
18002
18003 # Quote evaled strings.
18004 for var in SHELL \
18005 ECHO \
18006 PATH_SEPARATOR \
18007 SED \
18008 GREP \
18009 EGREP \
18010 FGREP \
18011 LD \
18012 NM \
18013 LN_S \
18014 lt_SP2NL \
18015 lt_NL2SP \
18016 reload_flag \
18017 OBJDUMP \
18018 deplibs_check_method \
18019 file_magic_cmd \
18020 file_magic_glob \
18021 want_nocaseglob \
18022 DLLTOOL \
18023 sharedlib_from_linklib_cmd \
18024 AR \
18025 AR_FLAGS \
18026 archiver_list_spec \
18027 STRIP \
18028 RANLIB \
18029 CC \
18030 CFLAGS \
18031 compiler \
18032 lt_cv_sys_global_symbol_pipe \
18033 lt_cv_sys_global_symbol_to_cdecl \
18034 lt_cv_sys_global_symbol_to_import \
18035 lt_cv_sys_global_symbol_to_c_name_address \
18036 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18037 lt_cv_nm_interface \
18038 nm_file_list_spec \
18039 lt_cv_truncate_bin \
18040 lt_prog_compiler_no_builtin_flag \
18041 lt_prog_compiler_pic \
18042 lt_prog_compiler_wl \
18043 lt_prog_compiler_static \
18044 lt_cv_prog_compiler_c_o \
18045 need_locks \
18046 MANIFEST_TOOL \
18047 DSYMUTIL \
18048 NMEDIT \
18049 LIPO \
18050 OTOOL \
18051 OTOOL64 \
18052 shrext_cmds \
18053 export_dynamic_flag_spec \
18054 whole_archive_flag_spec \
18055 compiler_needs_object \
18056 with_gnu_ld \
18057 allow_undefined_flag \
18058 no_undefined_flag \
18059 hardcode_libdir_flag_spec \
18060 hardcode_libdir_separator \
18061 exclude_expsyms \
18062 include_expsyms \
18063 file_list_spec \
18064 variables_saved_for_relink \
18065 libname_spec \
18066 library_names_spec \
18067 soname_spec \
18068 install_override_mode \
18069 finish_eval \
18070 old_striplib \
18071 striplib; do
18072     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18073     *[\\\\\\\`\\"\\\$]*)
18074       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18075       ;;
18076     *)
18077       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18078       ;;
18079     esac
18080 done
18081
18082 # Double-quote double-evaled strings.
18083 for var in reload_cmds \
18084 old_postinstall_cmds \
18085 old_postuninstall_cmds \
18086 old_archive_cmds \
18087 extract_expsyms_cmds \
18088 old_archive_from_new_cmds \
18089 old_archive_from_expsyms_cmds \
18090 archive_cmds \
18091 archive_expsym_cmds \
18092 module_cmds \
18093 module_expsym_cmds \
18094 export_symbols_cmds \
18095 prelink_cmds \
18096 postlink_cmds \
18097 postinstall_cmds \
18098 postuninstall_cmds \
18099 finish_cmds \
18100 sys_lib_search_path_spec \
18101 configure_time_dlsearch_path \
18102 configure_time_lt_sys_library_path; do
18103     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18104     *[\\\\\\\`\\"\\\$]*)
18105       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18106       ;;
18107     *)
18108       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18109       ;;
18110     esac
18111 done
18112
18113 ac_aux_dir='$ac_aux_dir'
18114
18115 # See if we are running on zsh, and set the options that allow our
18116 # commands through without removal of \ escapes INIT.
18117 if test -n "\${ZSH_VERSION+set}"; then
18118    setopt NO_GLOB_SUBST
18119 fi
18120
18121
18122     PACKAGE='$PACKAGE'
18123     VERSION='$VERSION'
18124     RM='$RM'
18125     ofile='$ofile'
18126
18127
18128
18129
18130
18131 _ACEOF
18132
18133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18134
18135 # Handling of arguments.
18136 for ac_config_target in $ac_config_targets
18137 do
18138   case $ac_config_target in
18139     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18140     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18141     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18142     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18143     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18144     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18145     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18146     "src/libecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/Makefile" ;;
18147     "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
18148     "src/key_mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/key_mod/Makefile" ;;
18149     "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
18150     "src/desktop/Makefile") CONFIG_FILES="$CONFIG_FILES src/desktop/Makefile" ;;
18151     "src/desktop/ecryptfs-mount-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-mount-private.desktop" ;;
18152     "src/desktop/ecryptfs-setup-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-setup-private.desktop" ;;
18153     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
18154     "doc/manpage/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpage/Makefile" ;;
18155     "src/pam_ecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/pam_ecryptfs/Makefile" ;;
18156     "src/libecryptfs/libecryptfs.pc") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/libecryptfs.pc" ;;
18157     "src/libecryptfs-swig/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs-swig/Makefile" ;;
18158     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18159     "tests/lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/Makefile" ;;
18160     "tests/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kernel/Makefile" ;;
18161     "tests/userspace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userspace/Makefile" ;;
18162     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18163     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
18164
18165   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18166   esac
18167 done
18168
18169
18170 # If the user did not use the arguments to specify the items to instantiate,
18171 # then the envvar interface is used.  Set only those that are not.
18172 # We use the long form for the default assignment because of an extremely
18173 # bizarre bug on SunOS 4.1.3.
18174 if $ac_need_defaults; then
18175   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18176   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18177   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18178 fi
18179
18180 # Have a temporary directory for convenience.  Make it in the build tree
18181 # simply because there is no reason against having it here, and in addition,
18182 # creating and moving files from /tmp can sometimes cause problems.
18183 # Hook for its removal unless debugging.
18184 # Note that there is a small window in which the directory will not be cleaned:
18185 # after its creation but before its name has been assigned to `$tmp'.
18186 $debug ||
18187 {
18188   tmp= ac_tmp=
18189   trap 'exit_status=$?
18190   : "${ac_tmp:=$tmp}"
18191   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18192 ' 0
18193   trap 'as_fn_exit 1' 1 2 13 15
18194 }
18195 # Create a (secure) tmp directory for tmp files.
18196
18197 {
18198   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18199   test -d "$tmp"
18200 }  ||
18201 {
18202   tmp=./conf$$-$RANDOM
18203   (umask 077 && mkdir "$tmp")
18204 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18205 ac_tmp=$tmp
18206
18207 # Set up the scripts for CONFIG_FILES section.
18208 # No need to generate them if there are no CONFIG_FILES.
18209 # This happens for instance with `./config.status config.h'.
18210 if test -n "$CONFIG_FILES"; then
18211
18212
18213 ac_cr=`echo X | tr X '\015'`
18214 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18215 # But we know of no other shell where ac_cr would be empty at this
18216 # point, so we can use a bashism as a fallback.
18217 if test "x$ac_cr" = x; then
18218   eval ac_cr=\$\'\\r\'
18219 fi
18220 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18221 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18222   ac_cs_awk_cr='\\r'
18223 else
18224   ac_cs_awk_cr=$ac_cr
18225 fi
18226
18227 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18228 _ACEOF
18229
18230
18231 {
18232   echo "cat >conf$$subs.awk <<_ACEOF" &&
18233   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18234   echo "_ACEOF"
18235 } >conf$$subs.sh ||
18236   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18237 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18238 ac_delim='%!_!# '
18239 for ac_last_try in false false false false false :; do
18240   . ./conf$$subs.sh ||
18241     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18242
18243   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18244   if test $ac_delim_n = $ac_delim_num; then
18245     break
18246   elif $ac_last_try; then
18247     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18248   else
18249     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18250   fi
18251 done
18252 rm -f conf$$subs.sh
18253
18254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18256 _ACEOF
18257 sed -n '
18258 h
18259 s/^/S["/; s/!.*/"]=/
18260 p
18261 g
18262 s/^[^!]*!//
18263 :repl
18264 t repl
18265 s/'"$ac_delim"'$//
18266 t delim
18267 :nl
18268 h
18269 s/\(.\{148\}\)..*/\1/
18270 t more1
18271 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18272 p
18273 n
18274 b repl
18275 :more1
18276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18277 p
18278 g
18279 s/.\{148\}//
18280 t nl
18281 :delim
18282 h
18283 s/\(.\{148\}\)..*/\1/
18284 t more2
18285 s/["\\]/\\&/g; s/^/"/; s/$/"/
18286 p
18287 b
18288 :more2
18289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18290 p
18291 g
18292 s/.\{148\}//
18293 t delim
18294 ' <conf$$subs.awk | sed '
18295 /^[^""]/{
18296   N
18297   s/\n//
18298 }
18299 ' >>$CONFIG_STATUS || ac_write_fail=1
18300 rm -f conf$$subs.awk
18301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18302 _ACAWK
18303 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18304   for (key in S) S_is_set[key] = 1
18305   FS = "\a"
18306
18307 }
18308 {
18309   line = $ 0
18310   nfields = split(line, field, "@")
18311   substed = 0
18312   len = length(field[1])
18313   for (i = 2; i < nfields; i++) {
18314     key = field[i]
18315     keylen = length(key)
18316     if (S_is_set[key]) {
18317       value = S[key]
18318       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18319       len += length(value) + length(field[++i])
18320       substed = 1
18321     } else
18322       len += 1 + keylen
18323   }
18324
18325   print line
18326 }
18327
18328 _ACAWK
18329 _ACEOF
18330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18331 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18332   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18333 else
18334   cat
18335 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18336   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18337 _ACEOF
18338
18339 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18340 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18341 # trailing colons and then remove the whole line if VPATH becomes empty
18342 # (actually we leave an empty line to preserve line numbers).
18343 if test "x$srcdir" = x.; then
18344   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18345 h
18346 s///
18347 s/^/:/
18348 s/[      ]*$/:/
18349 s/:\$(srcdir):/:/g
18350 s/:\${srcdir}:/:/g
18351 s/:@srcdir@:/:/g
18352 s/^:*//
18353 s/:*$//
18354 x
18355 s/\(=[   ]*\).*/\1/
18356 G
18357 s/\n//
18358 s/^[^=]*=[       ]*$//
18359 }'
18360 fi
18361
18362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363 fi # test -n "$CONFIG_FILES"
18364
18365 # Set up the scripts for CONFIG_HEADERS section.
18366 # No need to generate them if there are no CONFIG_HEADERS.
18367 # This happens for instance with `./config.status Makefile'.
18368 if test -n "$CONFIG_HEADERS"; then
18369 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18370 BEGIN {
18371 _ACEOF
18372
18373 # Transform confdefs.h into an awk script `defines.awk', embedded as
18374 # here-document in config.status, that substitutes the proper values into
18375 # config.h.in to produce config.h.
18376
18377 # Create a delimiter string that does not exist in confdefs.h, to ease
18378 # handling of long lines.
18379 ac_delim='%!_!# '
18380 for ac_last_try in false false :; do
18381   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18382   if test -z "$ac_tt"; then
18383     break
18384   elif $ac_last_try; then
18385     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18386   else
18387     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18388   fi
18389 done
18390
18391 # For the awk script, D is an array of macro values keyed by name,
18392 # likewise P contains macro parameters if any.  Preserve backslash
18393 # newline sequences.
18394
18395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18396 sed -n '
18397 s/.\{148\}/&'"$ac_delim"'/g
18398 t rset
18399 :rset
18400 s/^[     ]*#[    ]*define[       ][      ]*/ /
18401 t def
18402 d
18403 :def
18404 s/\\$//
18405 t bsnl
18406 s/["\\]/\\&/g
18407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18408 D["\1"]=" \3"/p
18409 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18410 d
18411 :bsnl
18412 s/["\\]/\\&/g
18413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18414 D["\1"]=" \3\\\\\\n"\\/p
18415 t cont
18416 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18417 t cont
18418 d
18419 :cont
18420 n
18421 s/.\{148\}/&'"$ac_delim"'/g
18422 t clear
18423 :clear
18424 s/\\$//
18425 t bsnlc
18426 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18427 d
18428 :bsnlc
18429 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18430 b cont
18431 ' <confdefs.h | sed '
18432 s/'"$ac_delim"'/"\\\
18433 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18434
18435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18436   for (key in D) D_is_set[key] = 1
18437   FS = "\a"
18438 }
18439 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18440   line = \$ 0
18441   split(line, arg, " ")
18442   if (arg[1] == "#") {
18443     defundef = arg[2]
18444     mac1 = arg[3]
18445   } else {
18446     defundef = substr(arg[1], 2)
18447     mac1 = arg[2]
18448   }
18449   split(mac1, mac2, "(") #)
18450   macro = mac2[1]
18451   prefix = substr(line, 1, index(line, defundef) - 1)
18452   if (D_is_set[macro]) {
18453     # Preserve the white space surrounding the "#".
18454     print prefix "define", macro P[macro] D[macro]
18455     next
18456   } else {
18457     # Replace #undef with comments.  This is necessary, for example,
18458     # in the case of _POSIX_SOURCE, which is predefined and required
18459     # on some systems where configure will not decide to define it.
18460     if (defundef == "undef") {
18461       print "/*", prefix defundef, macro, "*/"
18462       next
18463     }
18464   }
18465 }
18466 { print }
18467 _ACAWK
18468 _ACEOF
18469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18470   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18471 fi # test -n "$CONFIG_HEADERS"
18472
18473
18474 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18475 shift
18476 for ac_tag
18477 do
18478   case $ac_tag in
18479   :[FHLC]) ac_mode=$ac_tag; continue;;
18480   esac
18481   case $ac_mode$ac_tag in
18482   :[FHL]*:*);;
18483   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18484   :[FH]-) ac_tag=-:-;;
18485   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18486   esac
18487   ac_save_IFS=$IFS
18488   IFS=:
18489   set x $ac_tag
18490   IFS=$ac_save_IFS
18491   shift
18492   ac_file=$1
18493   shift
18494
18495   case $ac_mode in
18496   :L) ac_source=$1;;
18497   :[FH])
18498     ac_file_inputs=
18499     for ac_f
18500     do
18501       case $ac_f in
18502       -) ac_f="$ac_tmp/stdin";;
18503       *) # Look for the file first in the build tree, then in the source tree
18504          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18505          # because $ac_f cannot contain `:'.
18506          test -f "$ac_f" ||
18507            case $ac_f in
18508            [\\/$]*) false;;
18509            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18510            esac ||
18511            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18512       esac
18513       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18514       as_fn_append ac_file_inputs " '$ac_f'"
18515     done
18516
18517     # Let's still pretend it is `configure' which instantiates (i.e., don't
18518     # use $as_me), people would be surprised to read:
18519     #    /* config.h.  Generated by config.status.  */
18520     configure_input='Generated from '`
18521           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18522         `' by configure.'
18523     if test x"$ac_file" != x-; then
18524       configure_input="$ac_file.  $configure_input"
18525       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18526 $as_echo "$as_me: creating $ac_file" >&6;}
18527     fi
18528     # Neutralize special characters interpreted by sed in replacement strings.
18529     case $configure_input in #(
18530     *\&* | *\|* | *\\* )
18531        ac_sed_conf_input=`$as_echo "$configure_input" |
18532        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18533     *) ac_sed_conf_input=$configure_input;;
18534     esac
18535
18536     case $ac_tag in
18537     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18538       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18539     esac
18540     ;;
18541   esac
18542
18543   ac_dir=`$as_dirname -- "$ac_file" ||
18544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18545          X"$ac_file" : 'X\(//\)[^/]' \| \
18546          X"$ac_file" : 'X\(//\)$' \| \
18547          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18548 $as_echo X"$ac_file" |
18549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18550             s//\1/
18551             q
18552           }
18553           /^X\(\/\/\)[^/].*/{
18554             s//\1/
18555             q
18556           }
18557           /^X\(\/\/\)$/{
18558             s//\1/
18559             q
18560           }
18561           /^X\(\/\).*/{
18562             s//\1/
18563             q
18564           }
18565           s/.*/./; q'`
18566   as_dir="$ac_dir"; as_fn_mkdir_p
18567   ac_builddir=.
18568
18569 case "$ac_dir" in
18570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18571 *)
18572   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18573   # A ".." for each directory in $ac_dir_suffix.
18574   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18575   case $ac_top_builddir_sub in
18576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18578   esac ;;
18579 esac
18580 ac_abs_top_builddir=$ac_pwd
18581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18582 # for backward compatibility:
18583 ac_top_builddir=$ac_top_build_prefix
18584
18585 case $srcdir in
18586   .)  # We are building in place.
18587     ac_srcdir=.
18588     ac_top_srcdir=$ac_top_builddir_sub
18589     ac_abs_top_srcdir=$ac_pwd ;;
18590   [\\/]* | ?:[\\/]* )  # Absolute name.
18591     ac_srcdir=$srcdir$ac_dir_suffix;
18592     ac_top_srcdir=$srcdir
18593     ac_abs_top_srcdir=$srcdir ;;
18594   *) # Relative name.
18595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18596     ac_top_srcdir=$ac_top_build_prefix$srcdir
18597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18598 esac
18599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18600
18601
18602   case $ac_mode in
18603   :F)
18604   #
18605   # CONFIG_FILE
18606   #
18607
18608   case $INSTALL in
18609   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18610   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18611   esac
18612   ac_MKDIR_P=$MKDIR_P
18613   case $MKDIR_P in
18614   [\\/$]* | ?:[\\/]* ) ;;
18615   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18616   esac
18617 _ACEOF
18618
18619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18620 # If the template does not know about datarootdir, expand it.
18621 # FIXME: This hack should be removed a few years after 2.60.
18622 ac_datarootdir_hack=; ac_datarootdir_seen=
18623 ac_sed_dataroot='
18624 /datarootdir/ {
18625   p
18626   q
18627 }
18628 /@datadir@/p
18629 /@docdir@/p
18630 /@infodir@/p
18631 /@localedir@/p
18632 /@mandir@/p'
18633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18634 *datarootdir*) ac_datarootdir_seen=yes;;
18635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18636   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18638 _ACEOF
18639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18640   ac_datarootdir_hack='
18641   s&@datadir@&$datadir&g
18642   s&@docdir@&$docdir&g
18643   s&@infodir@&$infodir&g
18644   s&@localedir@&$localedir&g
18645   s&@mandir@&$mandir&g
18646   s&\\\${datarootdir}&$datarootdir&g' ;;
18647 esac
18648 _ACEOF
18649
18650 # Neutralize VPATH when `$srcdir' = `.'.
18651 # Shell code in configure.ac might set extrasub.
18652 # FIXME: do we really want to maintain this feature?
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654 ac_sed_extra="$ac_vpsub
18655 $extrasub
18656 _ACEOF
18657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18658 :t
18659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18660 s|@configure_input@|$ac_sed_conf_input|;t t
18661 s&@top_builddir@&$ac_top_builddir_sub&;t t
18662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18663 s&@srcdir@&$ac_srcdir&;t t
18664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18665 s&@top_srcdir@&$ac_top_srcdir&;t t
18666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18667 s&@builddir@&$ac_builddir&;t t
18668 s&@abs_builddir@&$ac_abs_builddir&;t t
18669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18670 s&@INSTALL@&$ac_INSTALL&;t t
18671 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18672 $ac_datarootdir_hack
18673 "
18674 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18675   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18676
18677 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18678   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18679   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18680       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18681   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18682 which seems to be undefined.  Please make sure it is defined" >&5
18683 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18684 which seems to be undefined.  Please make sure it is defined" >&2;}
18685
18686   rm -f "$ac_tmp/stdin"
18687   case $ac_file in
18688   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18689   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18690   esac \
18691   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18692  ;;
18693   :H)
18694   #
18695   # CONFIG_HEADER
18696   #
18697   if test x"$ac_file" != x-; then
18698     {
18699       $as_echo "/* $configure_input  */" \
18700       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18701     } >"$ac_tmp/config.h" \
18702       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18703     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18704       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18705 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18706     else
18707       rm -f "$ac_file"
18708       mv "$ac_tmp/config.h" "$ac_file" \
18709         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18710     fi
18711   else
18712     $as_echo "/* $configure_input  */" \
18713       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18714       || as_fn_error $? "could not create -" "$LINENO" 5
18715   fi
18716 # Compute "$ac_file"'s index in $config_headers.
18717 _am_arg="$ac_file"
18718 _am_stamp_count=1
18719 for _am_header in $config_headers :; do
18720   case $_am_header in
18721     $_am_arg | $_am_arg:* )
18722       break ;;
18723     * )
18724       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18725   esac
18726 done
18727 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18728 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18729          X"$_am_arg" : 'X\(//\)[^/]' \| \
18730          X"$_am_arg" : 'X\(//\)$' \| \
18731          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18732 $as_echo X"$_am_arg" |
18733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18734             s//\1/
18735             q
18736           }
18737           /^X\(\/\/\)[^/].*/{
18738             s//\1/
18739             q
18740           }
18741           /^X\(\/\/\)$/{
18742             s//\1/
18743             q
18744           }
18745           /^X\(\/\).*/{
18746             s//\1/
18747             q
18748           }
18749           s/.*/./; q'`/stamp-h$_am_stamp_count
18750  ;;
18751
18752   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18753 $as_echo "$as_me: executing $ac_file commands" >&6;}
18754  ;;
18755   esac
18756
18757
18758   case $ac_file$ac_mode in
18759     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18760   # Older Autoconf quotes --file arguments for eval, but not when files
18761   # are listed without --file.  Let's play safe and only enable the eval
18762   # if we detect the quoting.
18763   case $CONFIG_FILES in
18764   *\'*) eval set x "$CONFIG_FILES" ;;
18765   *)   set x $CONFIG_FILES ;;
18766   esac
18767   shift
18768   for mf
18769   do
18770     # Strip MF so we end up with the name of the file.
18771     mf=`echo "$mf" | sed -e 's/:.*$//'`
18772     # Check whether this is an Automake generated Makefile or not.
18773     # We used to match only the files named 'Makefile.in', but
18774     # some people rename them; so instead we look at the file content.
18775     # Grep'ing the first line is not enough: some people post-process
18776     # each Makefile.in and add a new line on top of each file to say so.
18777     # Grep'ing the whole file is not good either: AIX grep has a line
18778     # limit of 2048, but all sed's we know have understand at least 4000.
18779     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18780       dirpart=`$as_dirname -- "$mf" ||
18781 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18782          X"$mf" : 'X\(//\)[^/]' \| \
18783          X"$mf" : 'X\(//\)$' \| \
18784          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18785 $as_echo X"$mf" |
18786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18787             s//\1/
18788             q
18789           }
18790           /^X\(\/\/\)[^/].*/{
18791             s//\1/
18792             q
18793           }
18794           /^X\(\/\/\)$/{
18795             s//\1/
18796             q
18797           }
18798           /^X\(\/\).*/{
18799             s//\1/
18800             q
18801           }
18802           s/.*/./; q'`
18803     else
18804       continue
18805     fi
18806     # Extract the definition of DEPDIR, am__include, and am__quote
18807     # from the Makefile without running 'make'.
18808     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18809     test -z "$DEPDIR" && continue
18810     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18811     test -z "$am__include" && continue
18812     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18813     # Find all dependency output files, they are included files with
18814     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18815     # simplest approach to changing $(DEPDIR) to its actual value in the
18816     # expansion.
18817     for file in `sed -n "
18818       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18819          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18820       # Make sure the directory exists.
18821       test -f "$dirpart/$file" && continue
18822       fdir=`$as_dirname -- "$file" ||
18823 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18824          X"$file" : 'X\(//\)[^/]' \| \
18825          X"$file" : 'X\(//\)$' \| \
18826          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18827 $as_echo X"$file" |
18828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18829             s//\1/
18830             q
18831           }
18832           /^X\(\/\/\)[^/].*/{
18833             s//\1/
18834             q
18835           }
18836           /^X\(\/\/\)$/{
18837             s//\1/
18838             q
18839           }
18840           /^X\(\/\).*/{
18841             s//\1/
18842             q
18843           }
18844           s/.*/./; q'`
18845       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18846       # echo "creating $dirpart/$file"
18847       echo '# dummy' > "$dirpart/$file"
18848     done
18849   done
18850 }
18851  ;;
18852     "libtool":C)
18853
18854     # See if we are running on zsh, and set the options that allow our
18855     # commands through without removal of \ escapes.
18856     if test -n "${ZSH_VERSION+set}"; then
18857       setopt NO_GLOB_SUBST
18858     fi
18859
18860     cfgfile=${ofile}T
18861     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18862     $RM "$cfgfile"
18863
18864     cat <<_LT_EOF >> "$cfgfile"
18865 #! $SHELL
18866 # Generated automatically by $as_me ($PACKAGE) $VERSION
18867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18868 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18869
18870 # Provide generalized library-building support services.
18871 # Written by Gordon Matzigkeit, 1996
18872
18873 # Copyright (C) 2014 Free Software Foundation, Inc.
18874 # This is free software; see the source for copying conditions.  There is NO
18875 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18876
18877 # GNU Libtool is free software; you can redistribute it and/or modify
18878 # it under the terms of the GNU General Public License as published by
18879 # the Free Software Foundation; either version 2 of of the License, or
18880 # (at your option) any later version.
18881 #
18882 # As a special exception to the GNU General Public License, if you
18883 # distribute this file as part of a program or library that is built
18884 # using GNU Libtool, you may include this file under the  same
18885 # distribution terms that you use for the rest of that program.
18886 #
18887 # GNU Libtool is distributed in the hope that it will be useful, but
18888 # WITHOUT ANY WARRANTY; without even the implied warranty of
18889 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18890 # GNU General Public License for more details.
18891 #
18892 # You should have received a copy of the GNU General Public License
18893 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18894
18895
18896 # The names of the tagged configurations supported by this script.
18897 available_tags=''
18898
18899 # Configured defaults for sys_lib_dlsearch_path munging.
18900 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18901
18902 # ### BEGIN LIBTOOL CONFIG
18903
18904 # Whether or not to build static libraries.
18905 build_old_libs=$enable_static
18906
18907 # Which release of libtool.m4 was used?
18908 macro_version=$macro_version
18909 macro_revision=$macro_revision
18910
18911 # Whether or not to build shared libraries.
18912 build_libtool_libs=$enable_shared
18913
18914 # What type of objects to build.
18915 pic_mode=$pic_mode
18916
18917 # Whether or not to optimize for fast installation.
18918 fast_install=$enable_fast_install
18919
18920 # Shared archive member basename,for filename based shared library versioning on AIX.
18921 shared_archive_member_spec=$shared_archive_member_spec
18922
18923 # Shell to use when invoking shell scripts.
18924 SHELL=$lt_SHELL
18925
18926 # An echo program that protects backslashes.
18927 ECHO=$lt_ECHO
18928
18929 # The PATH separator for the build system.
18930 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18931
18932 # The host system.
18933 host_alias=$host_alias
18934 host=$host
18935 host_os=$host_os
18936
18937 # The build system.
18938 build_alias=$build_alias
18939 build=$build
18940 build_os=$build_os
18941
18942 # A sed program that does not truncate output.
18943 SED=$lt_SED
18944
18945 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18946 Xsed="\$SED -e 1s/^X//"
18947
18948 # A grep program that handles long lines.
18949 GREP=$lt_GREP
18950
18951 # An ERE matcher.
18952 EGREP=$lt_EGREP
18953
18954 # A literal string matcher.
18955 FGREP=$lt_FGREP
18956
18957 # A BSD- or MS-compatible name lister.
18958 NM=$lt_NM
18959
18960 # Whether we need soft or hard links.
18961 LN_S=$lt_LN_S
18962
18963 # What is the maximum length of a command?
18964 max_cmd_len=$max_cmd_len
18965
18966 # Object file suffix (normally "o").
18967 objext=$ac_objext
18968
18969 # Executable file suffix (normally "").
18970 exeext=$exeext
18971
18972 # whether the shell understands "unset".
18973 lt_unset=$lt_unset
18974
18975 # turn spaces into newlines.
18976 SP2NL=$lt_lt_SP2NL
18977
18978 # turn newlines into spaces.
18979 NL2SP=$lt_lt_NL2SP
18980
18981 # convert \$build file names to \$host format.
18982 to_host_file_cmd=$lt_cv_to_host_file_cmd
18983
18984 # convert \$build files to toolchain format.
18985 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18986
18987 # An object symbol dumper.
18988 OBJDUMP=$lt_OBJDUMP
18989
18990 # Method to check whether dependent libraries are shared objects.
18991 deplibs_check_method=$lt_deplibs_check_method
18992
18993 # Command to use when deplibs_check_method = "file_magic".
18994 file_magic_cmd=$lt_file_magic_cmd
18995
18996 # How to find potential files when deplibs_check_method = "file_magic".
18997 file_magic_glob=$lt_file_magic_glob
18998
18999 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19000 want_nocaseglob=$lt_want_nocaseglob
19001
19002 # DLL creation program.
19003 DLLTOOL=$lt_DLLTOOL
19004
19005 # Command to associate shared and link libraries.
19006 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19007
19008 # The archiver.
19009 AR=$lt_AR
19010
19011 # Flags to create an archive.
19012 AR_FLAGS=$lt_AR_FLAGS
19013
19014 # How to feed a file listing to the archiver.
19015 archiver_list_spec=$lt_archiver_list_spec
19016
19017 # A symbol stripping program.
19018 STRIP=$lt_STRIP
19019
19020 # Commands used to install an old-style archive.
19021 RANLIB=$lt_RANLIB
19022 old_postinstall_cmds=$lt_old_postinstall_cmds
19023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19024
19025 # Whether to use a lock for old archive extraction.
19026 lock_old_archive_extraction=$lock_old_archive_extraction
19027
19028 # A C compiler.
19029 LTCC=$lt_CC
19030
19031 # LTCC compiler flags.
19032 LTCFLAGS=$lt_CFLAGS
19033
19034 # Take the output of nm and produce a listing of raw symbols and C names.
19035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19036
19037 # Transform the output of nm in a proper C declaration.
19038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19039
19040 # Transform the output of nm into a list of symbols to manually relocate.
19041 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19042
19043 # Transform the output of nm in a C name address pair.
19044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19045
19046 # Transform the output of nm in a C name address pair when lib prefix is needed.
19047 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19048
19049 # The name lister interface.
19050 nm_interface=$lt_lt_cv_nm_interface
19051
19052 # Specify filename containing input files for \$NM.
19053 nm_file_list_spec=$lt_nm_file_list_spec
19054
19055 # The root where to search for dependent libraries,and where our libraries should be installed.
19056 lt_sysroot=$lt_sysroot
19057
19058 # Command to truncate a binary pipe.
19059 lt_truncate_bin=$lt_lt_cv_truncate_bin
19060
19061 # The name of the directory that contains temporary libtool files.
19062 objdir=$objdir
19063
19064 # Used to examine libraries when file_magic_cmd begins with "file".
19065 MAGIC_CMD=$MAGIC_CMD
19066
19067 # Must we lock files when doing compilation?
19068 need_locks=$lt_need_locks
19069
19070 # Manifest tool.
19071 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19072
19073 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19074 DSYMUTIL=$lt_DSYMUTIL
19075
19076 # Tool to change global to local symbols on Mac OS X.
19077 NMEDIT=$lt_NMEDIT
19078
19079 # Tool to manipulate fat objects and archives on Mac OS X.
19080 LIPO=$lt_LIPO
19081
19082 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19083 OTOOL=$lt_OTOOL
19084
19085 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19086 OTOOL64=$lt_OTOOL64
19087
19088 # Old archive suffix (normally "a").
19089 libext=$libext
19090
19091 # Shared library suffix (normally ".so").
19092 shrext_cmds=$lt_shrext_cmds
19093
19094 # The commands to extract the exported symbol list from a shared archive.
19095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19096
19097 # Variables whose values should be saved in libtool wrapper scripts and
19098 # restored at link time.
19099 variables_saved_for_relink=$lt_variables_saved_for_relink
19100
19101 # Do we need the "lib" prefix for modules?
19102 need_lib_prefix=$need_lib_prefix
19103
19104 # Do we need a version for libraries?
19105 need_version=$need_version
19106
19107 # Library versioning type.
19108 version_type=$version_type
19109
19110 # Shared library runtime path variable.
19111 runpath_var=$runpath_var
19112
19113 # Shared library path variable.
19114 shlibpath_var=$shlibpath_var
19115
19116 # Is shlibpath searched before the hard-coded library search path?
19117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19118
19119 # Format of library name prefix.
19120 libname_spec=$lt_libname_spec
19121
19122 # List of archive names.  First name is the real one, the rest are links.
19123 # The last name is the one that the linker finds with -lNAME
19124 library_names_spec=$lt_library_names_spec
19125
19126 # The coded name of the library, if different from the real name.
19127 soname_spec=$lt_soname_spec
19128
19129 # Permission mode override for installation of shared libraries.
19130 install_override_mode=$lt_install_override_mode
19131
19132 # Command to use after installation of a shared archive.
19133 postinstall_cmds=$lt_postinstall_cmds
19134
19135 # Command to use after uninstallation of a shared archive.
19136 postuninstall_cmds=$lt_postuninstall_cmds
19137
19138 # Commands used to finish a libtool library installation in a directory.
19139 finish_cmds=$lt_finish_cmds
19140
19141 # As "finish_cmds", except a single script fragment to be evaled but
19142 # not shown.
19143 finish_eval=$lt_finish_eval
19144
19145 # Whether we should hardcode library paths into libraries.
19146 hardcode_into_libs=$hardcode_into_libs
19147
19148 # Compile-time system search path for libraries.
19149 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19150
19151 # Detected run-time system search path for libraries.
19152 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19153
19154 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19155 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19156
19157 # Whether dlopen is supported.
19158 dlopen_support=$enable_dlopen
19159
19160 # Whether dlopen of programs is supported.
19161 dlopen_self=$enable_dlopen_self
19162
19163 # Whether dlopen of statically linked programs is supported.
19164 dlopen_self_static=$enable_dlopen_self_static
19165
19166 # Commands to strip libraries.
19167 old_striplib=$lt_old_striplib
19168 striplib=$lt_striplib
19169
19170
19171 # The linker used to build libraries.
19172 LD=$lt_LD
19173
19174 # How to create reloadable object files.
19175 reload_flag=$lt_reload_flag
19176 reload_cmds=$lt_reload_cmds
19177
19178 # Commands used to build an old-style archive.
19179 old_archive_cmds=$lt_old_archive_cmds
19180
19181 # A language specific compiler.
19182 CC=$lt_compiler
19183
19184 # Is the compiler the GNU compiler?
19185 with_gcc=$GCC
19186
19187 # Compiler flag to turn off builtin functions.
19188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19189
19190 # Additional compiler flags for building library objects.
19191 pic_flag=$lt_lt_prog_compiler_pic
19192
19193 # How to pass a linker flag through the compiler.
19194 wl=$lt_lt_prog_compiler_wl
19195
19196 # Compiler flag to prevent dynamic linking.
19197 link_static_flag=$lt_lt_prog_compiler_static
19198
19199 # Does compiler simultaneously support -c and -o options?
19200 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19201
19202 # Whether or not to add -lc for building shared libraries.
19203 build_libtool_need_lc=$archive_cmds_need_lc
19204
19205 # Whether or not to disallow shared libs when runtime libs are static.
19206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19207
19208 # Compiler flag to allow reflexive dlopens.
19209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19210
19211 # Compiler flag to generate shared objects directly from archives.
19212 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19213
19214 # Whether the compiler copes with passing no objects directly.
19215 compiler_needs_object=$lt_compiler_needs_object
19216
19217 # Create an old-style archive from a shared archive.
19218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19219
19220 # Create a temporary old-style archive to link instead of a shared archive.
19221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19222
19223 # Commands used to build a shared archive.
19224 archive_cmds=$lt_archive_cmds
19225 archive_expsym_cmds=$lt_archive_expsym_cmds
19226
19227 # Commands used to build a loadable module if different from building
19228 # a shared archive.
19229 module_cmds=$lt_module_cmds
19230 module_expsym_cmds=$lt_module_expsym_cmds
19231
19232 # Whether we are building with GNU ld or not.
19233 with_gnu_ld=$lt_with_gnu_ld
19234
19235 # Flag that allows shared libraries with undefined symbols to be built.
19236 allow_undefined_flag=$lt_allow_undefined_flag
19237
19238 # Flag that enforces no undefined symbols.
19239 no_undefined_flag=$lt_no_undefined_flag
19240
19241 # Flag to hardcode \$libdir into a binary during linking.
19242 # This must work even if \$libdir does not exist
19243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19244
19245 # Whether we need a single "-rpath" flag with a separated argument.
19246 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19247
19248 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19249 # DIR into the resulting binary.
19250 hardcode_direct=$hardcode_direct
19251
19252 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19253 # DIR into the resulting binary and the resulting library dependency is
19254 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19255 # library is relocated.
19256 hardcode_direct_absolute=$hardcode_direct_absolute
19257
19258 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19259 # into the resulting binary.
19260 hardcode_minus_L=$hardcode_minus_L
19261
19262 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19263 # into the resulting binary.
19264 hardcode_shlibpath_var=$hardcode_shlibpath_var
19265
19266 # Set to "yes" if building a shared library automatically hardcodes DIR
19267 # into the library and all subsequent libraries and executables linked
19268 # against it.
19269 hardcode_automatic=$hardcode_automatic
19270
19271 # Set to yes if linker adds runtime paths of dependent libraries
19272 # to runtime path list.
19273 inherit_rpath=$inherit_rpath
19274
19275 # Whether libtool must link a program against all its dependency libraries.
19276 link_all_deplibs=$link_all_deplibs
19277
19278 # Set to "yes" if exported symbols are required.
19279 always_export_symbols=$always_export_symbols
19280
19281 # The commands to list exported symbols.
19282 export_symbols_cmds=$lt_export_symbols_cmds
19283
19284 # Symbols that should not be listed in the preloaded symbols.
19285 exclude_expsyms=$lt_exclude_expsyms
19286
19287 # Symbols that must always be exported.
19288 include_expsyms=$lt_include_expsyms
19289
19290 # Commands necessary for linking programs (against libraries) with templates.
19291 prelink_cmds=$lt_prelink_cmds
19292
19293 # Commands necessary for finishing linking programs.
19294 postlink_cmds=$lt_postlink_cmds
19295
19296 # Specify filename containing input files.
19297 file_list_spec=$lt_file_list_spec
19298
19299 # How to hardcode a shared library path into an executable.
19300 hardcode_action=$hardcode_action
19301
19302 # ### END LIBTOOL CONFIG
19303
19304 _LT_EOF
19305
19306     cat <<'_LT_EOF' >> "$cfgfile"
19307
19308 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19309
19310 # func_munge_path_list VARIABLE PATH
19311 # -----------------------------------
19312 # VARIABLE is name of variable containing _space_ separated list of
19313 # directories to be munged by the contents of PATH, which is string
19314 # having a format:
19315 # "DIR[:DIR]:"
19316 #       string "DIR[ DIR]" will be prepended to VARIABLE
19317 # ":DIR[:DIR]"
19318 #       string "DIR[ DIR]" will be appended to VARIABLE
19319 # "DIRP[:DIRP]::[DIRA:]DIRA"
19320 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19321 #       "DIRA[ DIRA]" will be appended to VARIABLE
19322 # "DIR[:DIR]"
19323 #       VARIABLE will be replaced by "DIR[ DIR]"
19324 func_munge_path_list ()
19325 {
19326     case x$2 in
19327     x)
19328         ;;
19329     *:)
19330         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19331         ;;
19332     x:*)
19333         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19334         ;;
19335     *::*)
19336         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19337         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19338         ;;
19339     *)
19340         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19341         ;;
19342     esac
19343 }
19344
19345
19346 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19347 func_cc_basename ()
19348 {
19349     for cc_temp in $*""; do
19350       case $cc_temp in
19351         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19352         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19353         \-*) ;;
19354         *) break;;
19355       esac
19356     done
19357     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19358 }
19359
19360
19361 # ### END FUNCTIONS SHARED WITH CONFIGURE
19362
19363 _LT_EOF
19364
19365   case $host_os in
19366   aix3*)
19367     cat <<\_LT_EOF >> "$cfgfile"
19368 # AIX sometimes has problems with the GCC collect2 program.  For some
19369 # reason, if we set the COLLECT_NAMES environment variable, the problems
19370 # vanish in a puff of smoke.
19371 if test set != "${COLLECT_NAMES+set}"; then
19372   COLLECT_NAMES=
19373   export COLLECT_NAMES
19374 fi
19375 _LT_EOF
19376     ;;
19377   esac
19378
19379
19380 ltmain=$ac_aux_dir/ltmain.sh
19381
19382
19383   # We use sed instead of cat because bash on DJGPP gets confused if
19384   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19385   # text mode, it properly converts lines to CR/LF.  This bash problem
19386   # is reportedly fixed, but why not run on old versions too?
19387   sed '$q' "$ltmain" >> "$cfgfile" \
19388      || (rm -f "$cfgfile"; exit 1)
19389
19390    mv -f "$cfgfile" "$ofile" ||
19391     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19392   chmod +x "$ofile"
19393
19394  ;;
19395     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
19396         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
19397       esac ;;
19398     "po/stamp-it":C)
19399     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
19400        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
19401     fi
19402     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
19403     >"po/stamp-it.tmp"
19404     sed '/^#/d
19405          s/^[[].*] *//
19406          /^[    ]*$/d
19407         '"s|^|  $ac_top_srcdir/|" \
19408       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
19409
19410     sed '/^POTFILES =/,/[^\\]$/ {
19411                 /^POTFILES =/!d
19412                 r po/POTFILES
19413           }
19414          ' "po/Makefile.in" >"po/Makefile"
19415     rm -f "po/Makefile.tmp"
19416     mv "po/stamp-it.tmp" "po/stamp-it"
19417    ;;
19418
19419   esac
19420 done # for ac_tag
19421
19422
19423 as_fn_exit 0
19424 _ACEOF
19425 ac_clean_files=$ac_clean_files_save
19426
19427 test $ac_write_fail = 0 ||
19428   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19429
19430
19431 # configure is writing to config.log, and then calls config.status.
19432 # config.status does its own redirection, appending to config.log.
19433 # Unfortunately, on DOS this fails, as config.log is still kept open
19434 # by configure, so config.status won't be able to write to it; its
19435 # output is simply discarded.  So we exec the FD to /dev/null,
19436 # effectively closing config.log, so it can be properly (re)opened and
19437 # appended to by config.status.  When coming back to configure, we
19438 # need to make the FD available again.
19439 if test "$no_create" != yes; then
19440   ac_cs_success=:
19441   ac_config_status_args=
19442   test "$silent" = yes &&
19443     ac_config_status_args="$ac_config_status_args --quiet"
19444   exec 5>/dev/null
19445   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19446   exec 5>>config.log
19447   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19448   # would make configure fail if this is the last instruction.
19449   $ac_cs_success || as_fn_exit 1
19450 fi
19451 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19452   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19453 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19454 fi
19455
19456
19457 if test "${prefix}" != "/usr"; then
19458         echo
19459         echo "Warning: install prefix is $prefix"
19460         echo
19461         echo "Most mount applications expect the mount helper to install to"
19462         echo "/sbin. You can install the mount helper to that location by "
19463         echo "running the configure script again with --prefix=/usr:"
19464         echo
19465         echo "./configure --prefix=/usr"
19466         echo
19467 fi